Lumiera  0.pre.03
»edit your freedom«
gdkdisplayer.hpp
Go to the documentation of this file.
1 /*
2  GDKDISPLAYER.hpp - displaying video via GDK
3 
4  Copyright (C) Lumiera.org
5  2000, Arne Schirmacher <arne@schirmacher.de>
6  2001-2007, Dan Dennedy <dan@dennedy.org>
7  2008, Joel Holdsworth <joel@airwebreathe.org.uk>
8 
9  This program is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License as
11  published by the Free Software Foundation; either version 2 of
12  the License, or (at your option) any later version.
13 
14  This program is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU General Public License for more details.
18 
19  You should have received a copy of the GNU General Public License
20  along with this program; if not, write to the Free Software
21  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
22 
23 */
24 
25 
33 #ifndef STAGE_OUTPUT_GDKDISPLAYER_H
34 #define STAGE_OUTPUT_GDKDISPLAYER_H
35 
36 #include "stage/gtk-base.hpp"
38 
39 namespace Gtk {
40  class Widget;
41 }
42 
43 namespace stage {
44 namespace output {
45 
55  : public Displayer
56  {
57  public:
58 
68  GdkDisplayer( Gtk::Widget *drawing_area, int width, int height );
69 
75  void put (void* const image);
76 
77  protected:
78 
83  bool usable();
84 
85  private:
86 
91  Gtk::Widget *drawingArea;
92  };
93 
94 
95 
96 }} // namespace stage::output
97 #endif /*STAGE_OUTPUT_GDKDISPLAYER_H*/
Gtk::Widget * drawingArea
The widget that video will be drawn into.
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
The Displayer serves as base of all video display implementations.
A set of basic GTK includes for the UI.
A Displayer is a class which is responsible for rendering an image in some way (ie: Xvideo...
Definition: displayer.hpp:74
GdkDisplayer is a class which is responsible for rendering a video image via GDK. ...