39 VideoDisplayWidget::VideoDisplayWidget()
44 VideoDisplayWidget::~VideoDisplayWidget()
46 if (displayer_)
delete displayer_;
51 VideoDisplayWidget::getDisplayer()
const 58 VideoDisplayWidget::on_realize()
61 Gtk::Widget::on_realize ();
66 if (displayer_)
delete displayer_;
67 displayer_ = createDisplayer (
this, 320, 240);
69 add_events (Gdk::ALL_EVENTS_MASK);
74 VideoDisplayWidget::createDisplayer (Gtk::Widget *drawingArea,
int width,
int height)
76 REQUIRE (drawingArea != NULL);
77 REQUIRE (width > 0 && height > 0);
81 displayer =
new XvDisplayer (drawingArea, width, height);
90 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. ...