Lumiera  0.pre.03
»edit your freedom«
video-display-widget.hpp
Go to the documentation of this file.
1 /*
2  VIDEO-DISPLAY-WIDGET.hpp - GUI widget for displaying video
3 
4  Copyright (C) Lumiera.org
5  2008, Joel Holdsworth <joel@airwebreathe.org.uk>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 */
22 
23 
32 #ifndef STAGE_WIDGET_VIDEO_DISPLAY_WIDGET_H
33 #define STAGE_WIDGET_VIDEO_DISPLAY_WIDGET_H
34 
35 #include "stage/gtk-base.hpp"
37 
38 
39 using namespace stage::output;
40 
41 namespace stage {
42 namespace widget {
43 
51  : public Gtk::DrawingArea
52  {
53  Displayer* displayer_;
54 
55  public:
58 
59  Displayer* getDisplayer() const;
60 
61 
62  private: /* ===== Overrides ===== */
63  virtual void on_realize() override;
64 
65 
66  private: /* ===== Internals ===== */
67  static Displayer*
68  createDisplayer (Gtk::Widget* drawingArea, int width, int height);
69  };
70 
71 
72 }}// stage::widget
73 #endif /*STAGE_WIDGET_VIDEO_DISPLAY_WIDGET_H*/
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
Video output implementation.
Definition: gtk-base.hpp:145
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