30 VideoDisplayWidget::VideoDisplayWidget()
35 VideoDisplayWidget::~VideoDisplayWidget()
37 if (displayer_)
delete displayer_;
42 VideoDisplayWidget::getDisplayer()
const 49 VideoDisplayWidget::on_realize()
52 Gtk::Widget::on_realize ();
57 if (displayer_)
delete displayer_;
58 displayer_ = createDisplayer (
this, 320, 240);
60 add_events (Gdk::ALL_EVENTS_MASK);
65 VideoDisplayWidget::createDisplayer (Gtk::Widget *drawingArea,
int width,
int height)
67 REQUIRE (drawingArea != NULL);
68 REQUIRE (width > 0 && height > 0);
72 displayer =
new XvDisplayer (drawingArea, width, height);
81 displayer =
new GdkDisplayer (drawingArea, width, height);
Lumiera GTK UI implementation root.
XvDisplayer is a class which is responsible for rendering a video image via XVideo.
virtual bool usable()
Indicates if this object can be used to render images on the running system.
A set of basic GTK includes for the UI.
Implementation of video output via XVideo.
A Displayer is a class which is responsible for rendering an image in some way (ie: Xvideo...
GdkDisplayer is a class which is responsible for rendering a video image via GDK. ...