|
Ginga
0.13.6.2086-83aa
The iTV middleware.
|
Interface between libginga and the external world. More...
#include <Formatter.h>


Public Member Functions | |
| GingaState | getState () |
| Gets Ginga object state. More... | |
| bool | start (const std::string &, std::string *) |
| Starts the presentation of an NCL file. More... | |
| bool | stop () |
| Stops the presentation. More... | |
| void | resize (int, int) |
| Resizes the presentation screen. More... | |
| void | redraw (cairo_t *) |
| Draws the latest frame of the presentation on Cairo context. More... | |
| bool | sendKey (const std::string &, bool) |
| Sends key event to presentation. More... | |
| bool | sendTick (uint64_t, uint64_t, uint64_t) |
| Sends tick event to presentation. More... | |
| const GingaOptions * | getOptions () |
| Gets current options. More... | |
| bool | getOptionBool (const std::string &) |
| Gets boolean option value. More... | |
| void | setOptionBool (const std::string &, bool) |
| Sets boolean option. More... | |
| int | getOptionInt (const std::string &) |
| Gets integer option value. More... | |
| void | setOptionInt (const std::string &, int) |
| Sets integer option. More... | |
| string | getOptionString (const std::string &) |
| Gets string option value. More... | |
| void | setOptionString (const std::string &, std::string) |
| Sets string option. More... | |
| Formatter (const GingaOptions *) | |
| Creates a new Formatter. More... | |
| ~Formatter () | |
| Destroys formatter. | |
| Document * | getDocument () |
| Gets current document. More... | |
| bool | getEOS () |
| Gets EOS flag. More... | |
| void | setEOS (bool) |
| Sets EOS flag. More... | |
Public Member Functions inherited from Ginga | |
| Ginga (const GingaOptions *opts) | |
| Creates a new Ginga object. More... | |
| virtual | ~Ginga ()=0 |
| Destroys Ginga object. | |
Static Public Member Functions | |
| static void | setOptionBackground (Formatter *, const string &, string) |
| Sets background option of the given Formatter. More... | |
| static void | setOptionDebug (Formatter *, const string &, bool) |
| Sets debug option of the given Formatter. More... | |
| static void | setOptionExperimental (Formatter *, const string &, bool) |
| Sets the experimental option of the given Formatter. More... | |
| static void | setOptionOpenGL (Formatter *, const string &, bool) |
| Sets the OpenGL option of the given Formatter. More... | |
| static void | setOptionSize (Formatter *, const string &, int) |
| Sets the width or height options of the given Formatter. More... | |
Static Public Member Functions inherited from Ginga | |
| static Ginga * | create (const GingaOptions *opts) |
| Creates a new Ginga object. More... | |
| static std::string | version () |
| Gets libginga version string. More... | |
Private Attributes | |
| GingaState | _state |
| Current state. | |
| GingaOptions | _opts |
| Current options. | |
| Color | _background |
| Current background color. | |
| Time | _lastTickTotal |
| The last total time informed via Formatter::sendTick. | |
| Time | _lastTickDiff |
| The last diff time informed via Formatter::sendTick. | |
| uint64_t | _lastTickFrameNo |
| The last frame number informed via Formatter::sendTick. | |
| string | _saved_G_MESSAGES_DEBUG |
| The saved value of environment variable G_MESSAGES_DEBUG. | |
| Document * | _doc |
| Current document tree. | |
| string | _docPath |
| Path of the file that originated the current document. | |
| bool | _eos |
| Whether the presentation has ended naturally. | |
Interface between libginga and the external world.
| Formatter::Formatter | ( | const GingaOptions * | opts | ) |
| Document * Formatter::getDocument | ( | ) |
Gets current document.
| bool Formatter::getEOS | ( | ) |
Gets EOS flag.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Draws the latest frame of the presentation on Cairo context.
| cr | Cairo context. |
Implements Ginga.
|
virtual |
Resizes the presentation screen.
| width | Screen width (in pixels). |
| height | Screen height (in pixels). |
Implements Ginga.
|
virtual |
Sends key event to presentation.
| key | Key name. |
| press | Whether the key was pressed (or released). |
true if successful, or false otherwise. Implements Ginga.
|
virtual |
Sends tick event to presentation.
| total | Time since the presentation started. |
| diff | Time since last tick. |
| frame | Tick number. |
true if successful, or false otherwise. Implements Ginga.
| void Formatter::setEOS | ( | bool | eos | ) |
Sets EOS flag.
| eos | Flag value. |
|
static |
|
virtual |
|
static |
|
static |
|
virtual |
|
static |
|
static |
|
virtual |
|
virtual |
Starts the presentation of an NCL file.
| path | Path to NCL file. | |
| [out] | errmsg | Variable to store the error message (if any). |
true if successful or false otherwise. Implements Ginga.
|
virtual |