ginga 1.0
The Ginga iTV middleware
Loading...
Searching...
No Matches
PlayerText.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 PLAYER_TEXT_H
19#define PLAYER_TEXT_H
20
21#include "Player.h"
22
23namespace ginga {
24
25class PlayerText : public Player
26{
27public:
28 static cairo_surface_t *renderSurface (const string &, const string &,
29 const string &, const string &,
30 const string &, Color, Color, Rect,
31 const string &, const string &,
32 bool, Rect *);
33
35 ~PlayerText ();
36 void reload () override;
37
38protected:
39 bool doSetProperty (Property, const string &, const string &) override;
40
41private:
42 struct
43 {
44 Color fontColor;
45 Color fontBgColor;
46 string fontFamily;
47 string fontSize;
48 string fontStyle;
49 string fontVariant;
50 string fontWeight;
51 string horzAlign;
52 string vertAlign;
53 } _prop;
54};
55
56}
57
58#endif // PLAYER_TEXT
Interface between libginga and the external world.
Definition Formatter.h:39
Definition Media.h:27
Definition PlayerText.h:26
static cairo_surface_t * renderSurface(const string &, const string &, const string &, const string &, const string &, Color, Color, Rect, const string &, const string &, bool, Rect *)
Creates surface from text.
Definition PlayerText.cpp:44
Definition Player.h:29