Lumiera  0.pre.03
»edit your freedom«
playback-controller.hpp
Go to the documentation of this file.
1 /*
2  PLAYBACK-CONTROLLER.hpp - playback controller object
3 
4  Copyright (C) Lumiera.org
5  2009, 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 
39 #ifndef PLAYBACK_CONTROLLER_HPP
40 #define PLAYBACK_CONTROLLER_HPP
41 
42 #include "stage/gtk-base.hpp"
44 #include "include/display-facade.h"
45 #include "lib/nocopy.hpp"
46 
47 
48 
49 namespace stage {
50 namespace ctrl {
51 
52 
53 
57  {
58 
59  volatile bool playing_;
60 
62 
63  LumieraDisplaySlot viewerHandle_;
64 
65  static PlaybackController* instance;
66 
67  public:
68 
71 
72  static PlaybackController& get();
73 
74  void play();
75  void pause();
76  void stop();
77 
78  bool is_playing();
79 
80  void useDisplay (LumieraDisplaySlot display);
81 
82  private:
83 
84  void on_frame();
85 
86  };
87 
88 
89 }} // namespace stage::ctrl
90 #endif // PLAYBACK_CONTROLLER_HPP
91 
Playback process, front-end to be used by client code.
Any copy and copy construction prohibited.
Definition: nocopy.hpp:46
Experimental Interface, allowing the Dummy-Player to access the video display widget in the GUI...
Mix-Ins to allow or prohibit various degrees of copying and cloning.
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:46
A set of basic GTK includes for the UI.