Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
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)
5 2008, Joel Holdsworth <joel@airwebreathe.org.uk>
6
7  **Lumiera** is free software; you can redistribute it and/or modify it
8  under the terms of the GNU General Public License as published by the
9  Free Software Foundation; either version 2 of the License, or (at your
10  option) any later version. See the file COPYING for further details.
11
12*/
13
14
24#ifndef STAGE_WIDGET_VIDEO_DISPLAY_WIDGET_H
25#define STAGE_WIDGET_VIDEO_DISPLAY_WIDGET_H
26
27#include "stage/gtk-base.hpp"
29
30#include <memory>
31
32namespace stage {
33namespace widget {
34
37
38
46 : public Gtk::Image
47 {
48 std::unique_ptr<Displayer> displayer_;
49
50 public:
52
54 void pushFrame (void* const);
55
57 sigc::signal<void(DisplayerInput)> signal_activate;
58
59 private:
60 virtual void on_realize() override;
61
62
63 private:
64 void setupDisplayer(uint videoWidth, uint videoHeight);
65 };
66
67
68}}// stage::widget
69#endif /*STAGE_WIDGET_VIDEO_DISPLAY_WIDGET_H*/
A Displayer is a class which is responsible for rendering an image in some way (ie: Xvideo,...
Definition displayer.hpp:62
sigc::signal< void(DisplayerInput)> signal_activate
signal to configure the image generation format
void pushFrame(void *const)
signal slot to display the next frame
std::unique_ptr< Displayer > displayer_
void setupDisplayer(uint videoWidth, uint videoHeight)
The Displayer serves as base of all video display implementations.
A set of basic GTK includes for the UI.
unsigned int uint
Definition integral.hpp:29
DisplayerInput
Supported Displayer formats.
Lumiera GTK UI implementation root.
Definition guifacade.cpp:37