~ubuntu-branches/ubuntu/saucy/gnash/saucy-proposed

« back to all changes in this revision

Viewing changes to gui/Kde4GlueOgl.h

  • Committer: Bazaar Package Importer
  • Author(s): Sindhudweep Narayan Sarkar
  • Date: 2009-10-07 00:06:10 UTC
  • mfrom: (1.1.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20091007000610-mj9rwqe774gizn1j
Tags: 0.8.6-0ubuntu1
new upstream release 0.8.6 (LP: #435897)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
//   Copyright (C) 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
 
3
//
 
4
// This program is free software; you can redistribute it and/or modify
 
5
// it under the terms of the GNU General Public License as published by
 
6
// the Free Software Foundation; either version 3 of the License, or
 
7
// (at your option) any later version.
 
8
//
 
9
// This program is distributed in the hope that it will be useful,
 
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
// GNU General Public License for more details.
 
13
// 
 
14
// You should have received a copy of the GNU General Public License
 
15
// along with this program; if not, write to the Free Software
 
16
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 
17
 
 
18
#ifndef GNASH_KDE4_AGG_GLUE_H
 
19
#define GNASH_KDE4_AGG_GLUE_H
 
20
 
 
21
 
 
22
#ifdef HAVE_CONFIG_H
 
23
#include "gnashconfig.h"
 
24
#endif
 
25
 
 
26
#include "Kde4Glue.h"
 
27
 
 
28
#include <QImage>
 
29
#include <boost/scoped_array.hpp>
 
30
#include <QPainter>
 
31
#include "snappingrange.h"
 
32
 
 
33
class QRect;
 
34
 
 
35
namespace gnash
 
36
{
 
37
 
 
38
class Kde4OglGlue : public Kde4Glue
 
39
{
 
40
  public:
 
41
    Kde4OglGlue();
 
42
    ~Kde4OglGlue();
 
43
    
 
44
    bool init(int argc, char **argv[]);
 
45
    void prepDrawingArea(QWidget *drawing_area);
 
46
    Renderer* createRenderHandler();
 
47
    void render();
 
48
    void render(const QRect& updateRect);
 
49
 
 
50
  private:
 
51
    int _width;
 
52
    int _height;
 
53
    Renderer* _renderer; // We don't own this pointer.
 
54
};
 
55
 
 
56
 
 
57
 
 
58
 
 
59
}
 
60
 
 
61
#endif