#include <PlayerText.h>
|
| enum | PlayerState { SLEEPING = 1,
OCCURRING,
PAUSED
} |
| |
| enum | PlayerProperty {
PROP_UNKNOWN = 0,
PROP_BACKGROUND,
PROP_BALANCE,
PROP_BASS,
PROP_BOTTOM,
PROP_BOUNDS,
PROP_DEBUG,
PROP_DURATION,
PROP_EXPLICIT_DUR,
PROP_FOCUS_INDEX,
PROP_FONT_BG_COLOR,
PROP_FONT_COLOR,
PROP_FONT_FAMILY,
PROP_FONT_SIZE,
PROP_FONT_STYLE,
PROP_FONT_VARIANT,
PROP_FONT_WEIGHT,
PROP_FREEZE,
PROP_HEIGHT,
PROP_HORZ_ALIGN,
PROP_LEFT,
PROP_LOCATION,
PROP_MUTE,
PROP_RIGHT,
PROP_SIZE,
PROP_TOP,
PROP_TRANSPARENCY,
PROP_TREBLE,
PROP_VERT_ALIGN,
PROP_VISIBLE,
PROP_VOLUME,
PROP_WIDTH,
PROP_Z_INDEX
} |
| |
|
| 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. More...
|
| |
| static string | getCurrentFocus () |
| |
| static void | setCurrentFocus (const string &) |
| |
| static PlayerProperty | getPlayerProperty (const string &, string *) |
| |
| static Player * | createPlayer (Formatter *, const string &, const string &, const string &) |
| |
| Enumerator |
|---|
| PROP_UNKNOWN |
|
| PROP_BACKGROUND |
|
| PROP_BALANCE |
|
| PROP_BASS |
|
| PROP_BOTTOM |
|
| PROP_BOUNDS |
|
| PROP_DEBUG |
|
| PROP_DURATION |
|
| PROP_EXPLICIT_DUR |
|
| PROP_FOCUS_INDEX |
|
| PROP_FONT_BG_COLOR |
|
| PROP_FONT_COLOR |
|
| PROP_FONT_FAMILY |
|
| PROP_FONT_SIZE |
|
| PROP_FONT_STYLE |
|
| PROP_FONT_VARIANT |
|
| PROP_FONT_WEIGHT |
|
| PROP_FREEZE |
|
| PROP_HEIGHT |
|
| PROP_HORZ_ALIGN |
|
| PROP_LEFT |
|
| PROP_LOCATION |
|
| PROP_MUTE |
|
| PROP_RIGHT |
|
| PROP_SIZE |
|
| PROP_TOP |
|
| PROP_TRANSPARENCY |
|
| PROP_TREBLE |
|
| PROP_VERT_ALIGN |
|
| PROP_VISIBLE |
|
| PROP_VOLUME |
|
| PROP_WIDTH |
|
| PROP_Z_INDEX |
|
| Enumerator |
|---|
| SLEEPING |
|
| OCCURRING |
|
| PAUSED |
|
| PlayerText::PlayerText |
( |
Formatter * |
formatter, |
|
|
const string & |
id, |
|
|
const string & |
uri |
|
) |
| |
| PlayerText::~PlayerText |
( |
| ) |
|
| Player * Player::createPlayer |
( |
Formatter * |
formatter, |
|
|
const string & |
id, |
|
|
const string & |
uri, |
|
|
const string & |
mime |
|
) |
| |
|
staticinherited |
| bool PlayerText::doSetProperty |
( |
PlayerProperty |
, |
|
|
const string & |
, |
|
|
const string & |
|
|
) |
| |
|
overrideprotectedvirtual |
Reimplemented from Player.
References Player::_dirty, _prop, Player::doSetProperty(), GINGA_NAMESPACE_END, Player::PROP_FONT_BG_COLOR, Player::PROP_FONT_COLOR, Player::PROP_FONT_FAMILY, Player::PROP_FONT_SIZE, Player::PROP_FONT_STYLE, Player::PROP_FONT_VARIANT, Player::PROP_FONT_WEIGHT, Player::PROP_HORZ_ALIGN, Player::PROP_VERT_ALIGN, try_parse_color(), and unlikely.
| string Player::getCurrentFocus |
( |
| ) |
|
|
staticinherited |
| Time Player::getDuration |
( |
| ) |
|
|
inherited |
| string Player::getProperty |
( |
const string & |
name | ) |
|
|
virtualinherited |
| void Player::getZ |
( |
int * |
z, |
|
|
int * |
zorder |
|
) |
| |
|
inherited |
| void Player::incTime |
( |
Time |
inc | ) |
|
|
inherited |
| bool Player::isFocused |
( |
| ) |
|
|
inherited |
| void Player::redraw |
( |
cairo_t * |
cr | ) |
|
|
virtualinherited |
| void PlayerText::reload |
( |
| ) |
|
|
overridevirtual |
Reimplemented from Player.
References Player::_gltexture, Player::_opengl, _prop, Player::_prop, Player::_surface, Player::_uri, GL::create_texture(), GL::delete_texture(), ERROR, g_assert_nonnull(), g_free(), Player::reload(), renderSurface(), and unlikely.
| GINGA_NAMESPACE_BEGIN cairo_surface_t * PlayerText::renderSurface |
( |
const string & |
text, |
|
|
const string & |
family, |
|
|
const string & |
weight, |
|
|
const string & |
style, |
|
|
const string & |
size, |
|
|
Color |
fg, |
|
|
Color |
bg, |
|
|
Rect |
rect, |
|
|
const string & |
halign, |
|
|
const string & |
valign, |
|
|
bool |
antialias, |
|
|
Rect * |
ink |
|
) |
| |
|
static |
Creates surface from text.
- Parameters
-
| text | Text to be rendered. |
| family | Font family. |
| weight | Font weight ("normal" or "bold"). |
| style | Font style ("normal" or "italic"). |
| size | Font size |
| fg | Text color. |
| bg | Background color. |
| rect | Dimensions of the resulting surface. |
| halign | Horizontal alignment ("left", "center", "right", or "justified"). |
| valign | Vertical alignment ("bottom", "middle", or "top"). |
| antialias | Whether to use antialias. |
| ink | Variable to store the inked rectangle. |
- Returns
- The resulting surface.
References ERROR, g_assert_nonnull(), and xstrbuild().
Referenced by Formatter::redraw(), Player::redrawDebuggingInfo(), and reload().
| void Player::resetProperties |
( |
| ) |
|
|
inherited |
| void Player::resetProperties |
( |
set< string > * |
props | ) |
|
|
inherited |
| void Player::schedulePropertyAnimation |
( |
const string & |
name, |
|
|
const string & |
from, |
|
|
const string & |
to, |
|
|
Time |
dur |
|
) |
| |
|
inherited |
| void Player::sendKeyEvent |
( |
const string & |
, |
|
|
bool |
|
|
) |
| |
|
virtualinherited |
| void Player::setCurrentFocus |
( |
const string & |
index | ) |
|
|
staticinherited |
| void Player::setDuration |
( |
Time |
duration | ) |
|
|
inherited |
| void Player::setEOS |
( |
bool |
eos | ) |
|
|
inherited |
| void Player::setProperty |
( |
const string & |
name, |
|
|
const string & |
value |
|
) |
| |
|
virtualinherited |
| void Player::setZ |
( |
int |
z, |
|
|
int |
zorder |
|
) |
| |
|
inherited |
| struct { ... } PlayerText::_prop |
| map<string, string> Player::_properties |
|
protectedinherited |
Referenced by PlayerVideo::doSetProperty(), PlayerLua::doSetProperty(), PlayerVideo::pause(), PlayerLua::pause(), PlayerVideo::redraw(), PlayerLua::redraw(), PlayerSvg::reload(), PlayerVideo::resume(), PlayerLua::resume(), PlayerVideo::start(), PlayerLua::start(), PlayerVideo::stop(), and PlayerLua::stop().
| cairo_surface_t* Player::_surface |
|
protectedinherited |
| string Player::focusIndex |
|
inherited |
| Color PlayerText::fontBgColor |
| Color PlayerText::fontColor |
| string PlayerText::fontFamily |
| string PlayerText::fontSize |
| string PlayerText::fontStyle |
| string PlayerText::fontVariant |
| string PlayerText::fontWeight |
| string PlayerText::horzAlign |
| string PlayerText::vertAlign |
The documentation for this class was generated from the following files: