|
Ginga
0.13.6.1771-df200
The iTV middleware.
|
#include <Formatter.h>


Public Member Functions | |
| GingaState | getState () |
| bool | start (const string &, string *) |
| bool | stop () |
| void | resize (int, int) |
| void | redraw (cairo_t *) |
| bool | sendKeyEvent (const string &, bool) |
| bool | sendTickEvent (uint64_t, uint64_t, uint64_t) |
| const GingaOptions * | getOptions () |
| bool | getOptionBool (const string &) |
| void | setOptionBool (const string &, bool) |
| int | getOptionInt (const string &) |
| void | setOptionInt (const string &, int) |
| string | getOptionString (const string &) |
| void | setOptionString (const string &, string) |
| Formatter (int, char **, GingaOptions *) | |
| ~Formatter () | |
| bool | getEOS () |
| void | setEOS (bool) |
| virtual bool | start (const std::string &, std::string *)=0 |
| virtual bool | sendKeyEvent (const std::string &, bool)=0 |
| virtual bool | getOptionBool (const std::string &)=0 |
| virtual void | setOptionBool (const std::string &, bool)=0 |
| virtual int | getOptionInt (const std::string &)=0 |
| virtual void | setOptionInt (const std::string &, int)=0 |
| virtual std::string | getOptionString (const std::string &)=0 |
| virtual void | setOptionString (const std::string &, std::string)=0 |
Static Public Member Functions | |
| static void | setOptionBackground (Formatter *, const string &, string) |
| static void | setOptionDebug (Formatter *, const string &, bool) |
| static void | setOptionExperimental (Formatter *, const string &, bool) |
| static void | setOptionOpenGL (Formatter *, const string &, bool) |
| static void | setOptionSize (Formatter *, const string &, int) |
| static Ginga * | create (int, char **, GingaOptions *) |
| Creates a new Ginga handle. More... | |
| static std::string | version () |
| Gets Ginga version string. More... | |
Private Member Functions | |
| list< Object * > | getObjectList (Event::State) |
| Object * | obtainExecutionObject (const string &) |
| Event * | obtainEvent (Object *, Event::Type, NclAnchor *, const string &) |
| Event * | obtainFormatterEventFromBind (NclBind *) |
| pair< list< Action >, list< Action > > | obtainFormatterLink (NclLink *) |
Private Attributes | |
| GingaState | _state |
| GingaOptions | _opts |
| Color | _background |
| uint64_t | _last_tick_total |
| uint64_t | _last_tick_diff |
| uint64_t | _last_tick_frameno |
| string | _saved_G_MESSAGES_DEBUG |
| Document * | _doc |
| NclDocument * | _docLegacy |
| string | _docPath |
| bool | _eos |
| Formatter::Formatter | ( | int | , |
| char ** | , | ||
| GingaOptions * | |||
| ) |
References GINGA_STATE_STOPPED.
| Formatter::~Formatter | ( | ) |
|
staticinherited |
Creates a new Ginga handle.
| argc | Number arguments passed to main. |
| argv | Arguments passed to main. |
| opts | State options. |
| bool Formatter::getEOS | ( | ) |
|
private |
References Event::getState().
| bool Formatter::getOptionBool | ( | const string & | ) |
Referenced by Player::Player().
|
pure virtualinherited |
| int Formatter::getOptionInt | ( | const string & | ) |
Referenced by PlayerAnimator::doSchedule().
|
pure virtualinherited |
|
virtual |
Implements Ginga.
| string Formatter::getOptionString | ( | const string & | ) |
|
pure virtualinherited |
|
virtual |
Implements Ginga.
|
private |
References Object::addAttributionEvent(), Object::addPresentationEvent(), Object::addSelectionEvent(), Event::ATTRIBUTION, cast, g_assert(), g_assert_nonnull(), Object::getAttributionEvent(), NclArea::getBegin(), NclArea::getEnd(), Object::getEvent(), NclEntity::getId(), Object::getPresentationEvent(), Object::getSelectionEvent(), instanceof, Event::PRESENTATION, and Event::SELECTION.
|
private |
References NclBind::ACTION, Predicate::ATOM, Predicate::clone(), NclBind::CONDITION, Predicate::CONJUNCTION, Predicate::DISJUNCTION, Action::event, Predicate::FALSUM, g_assert_nonnull(), NclLink::getBinds(), Predicate::getChildren(), NclLink::getGhostBind(), Predicate::getTest(), Predicate::getType(), GINGA_NAMESPACE_END, Predicate::NEGATION, Action::predicate, Predicate::setTest(), Action::transition, Action::value, and Predicate::VERUM.
|
virtual |
Implements Ginga.
References GL::beginDraw(), cast, GL::clear_scene(), cmpz(), GL::draw_quad(), GINGA_SECOND, GINGA_STATE_PLAYING, GINGA_TIME_ARGS, GINGA_TIME_FORMAT, PlayerText::renderSurface(), and xstrbuild().
|
virtual |
Implements Ginga.
References g_assert(), GINGA_STATE_PLAYING, and instanceof.
| bool Formatter::sendKeyEvent | ( | const string & | key, |
| bool | press | ||
| ) |
References _GINGA_CHECK_EOS, GINGA_STATE_PLAYING, and Event::OCCURRING.
|
pure virtualinherited |
|
virtual |
Implements Ginga.
References _GINGA_CHECK_EOS, GINGA_STATE_PLAYING, and Event::OCCURRING.
| void Formatter::setEOS | ( | bool | eos | ) |
|
static |
References g_assert(), parse_color(), and TRACE.
| void Formatter::setOptionBool | ( | const string & | , |
| bool | |||
| ) |
|
pure virtualinherited |
|
static |
References g_assert(), strbool, and TRACE.
|
static |
References g_assert(), strbool, and TRACE.
| void Formatter::setOptionInt | ( | const string & | , |
| int | |||
| ) |
|
pure virtualinherited |
|
static |
|
static |
References g_assert(), GingaOptions::height, TRACE, and GingaOptions::width.
| void Formatter::setOptionString | ( | const string & | , |
| string | |||
| ) |
|
pure virtualinherited |
| bool Formatter::start | ( | const string & | file, |
| string * | errmsg | ||
| ) |
References Object::addAlias(), NclNode::addAnchor(), cast, g_assert(), g_assert_nonnull(), NclNode::getAnchors(), NclEntity::getId(), Object::getLambda(), NclContext::getLinks(), NclProperty::getName(), NclComposition::getPorts(), NclProperty::getValue(), GINGA_STATE_PLAYING, GINGA_STATE_STOPPED, instanceof, ParserXercesC::parse(), Parser::parseFile(), Event::PRESENTATION, MediaSettings::setProperty(), NclProperty::setValue(), Event::START, TRACE, Event::transition(), unlikely, and MediaSettings::updateCurrentFocus().
|
pure virtualinherited |
|
virtual |
Implements Ginga.
References GINGA_STATE_STOPPED.
|
staticinherited |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |