ginga 1.0
The Ginga iTV middleware
Loading...
Searching...
No Matches
MediaSettings.h
1/* Copyright (C) 2006-2018 PUC-Rio/Laboratorio TeleMidia
2
3This file is part of Ginga (Ginga-NCL).
4
5Ginga is free software: you can redistribute it and/or modify it
6under the terms of the GNU General Public License as published by
7the Free Software Foundation, either version 2 of the License, or
8(at your option) any later version.
9
10Ginga is distributed in the hope that it will be useful, but WITHOUT
11ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
13License for more details.
14
15You should have received a copy of the GNU General Public License
16along with Ginga. If not, see <https://www.gnu.org/licenses/>. */
17
18#ifndef MEDIA_SETTINGS_H
19#define MEDIA_SETTINGS_H
20
21#include "Media.h"
22
23namespace ginga {
24
25class MediaSettings : public Media
26{
27public:
28 explicit MediaSettings (const string &);
30
31 // Object:
32 string getObjectTypeAsString () override;
33 void setProperty (const string &, const string &, Time) override;
34 void sendTick (Time, Time, Time) override;
35
36 // Media;
37 bool isFocused () override;
38 bool getZ (int *, int *) override;
39 void redraw (cairo_t *) override;
40
41 // MediaSettings:
42 void updateCurrentFocus (const string &);
43 void scheduleFocusUpdate (const string &);
44
45private:
46 string _nextFocus; // next focus index
47 bool _hasNextFocus; // true if a focus update is scheduled
48};
49
50}
51
52#endif // MEDIA_SETTINGS_H
Definition MediaSettings.h:26
Definition Media.h:27