|
ginga 1.0
The Ginga iTV middleware
|
Interface between libginga and the external world. More...
#include <Formatter.h>


Public Member Functions | |
| GingaState | getState () |
| Gets Ginga object state. | |
| bool | start (const std::string &, std::string *) |
| Starts the presentation of an NCL file. | |
| bool | stop () |
| Stops the presentation. | |
| void | resize (int, int) |
| Resizes the presentation screen. | |
| void | redraw (cairo_t *) |
| Draws the latest frame of the presentation on Cairo context. | |
| bool | sendKey (const std::string &, bool) |
| Sends key event to presentation. | |
| bool | sendTick (uint64_t, uint64_t, uint64_t) |
| Sends tick event to presentation. | |
| const GingaOptions * | getOptions () |
| Gets current options. | |
| bool | getOptionBool (const std::string &) |
| Gets boolean option value. | |
| void | setOptionBool (const std::string &, bool) |
| Sets boolean option. | |
| int | getOptionInt (const std::string &) |
| Gets integer option value. | |
| void | setOptionInt (const std::string &, int) |
| Sets integer option. | |
| string | getOptionString (const std::string &) |
| Gets string option value. | |
| void | setOptionString (const std::string &, std::string) |
| Sets string option. | |
| Formatter (const GingaOptions *) | |
| Creates a new Formatter. | |
| ~Formatter () | |
| Destroys formatter. | |
| Document * | getDocument () |
| Gets current document. | |
| WebServices * | getWebServices () |
| Gets WebServices. | |
| bool | getEOS () |
| Gets EOS flag. | |
| void | setEOS (bool) |
| Sets EOS flag. | |
Public Member Functions inherited from Ginga | |
| Ginga (const GingaOptions *opts) | |
| Creates a new Ginga object. | |
| virtual | ~Ginga ()=0 |
| Destroys Ginga object. | |
Static Public Member Functions | |
| static void | setOptionBackground (Formatter *, const string &, string) |
| Sets background option of the given Formatter. | |
| static void | setOptionDebug (Formatter *, const string &, bool) |
| Sets debug option of the given Formatter. | |
| static void | setOptionWebServices (Formatter *, const string &, bool) |
| Sets WebServices option option of the given Formatter. | |
| static void | setOptionExperimental (Formatter *, const string &, bool) |
| Sets the experimental option of the given Formatter. | |
| static void | setOptionOpenGL (Formatter *, const string &, bool) |
| Sets the OpenGL option of the given Formatter. | |
| static void | setOptionSize (Formatter *, const string &, int) |
| Sets the width or height options of the given Formatter. | |
Static Public Member Functions inherited from Ginga | |
| static Ginga * | create (const GingaOptions *opts) |
| Creates a new Ginga object. | |
| static std::string | version () |
| Gets libginga version string. | |
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. | |
| WebServices * | _webservices |
| Current WebServices. | |
| 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.
|
explicit |
| Document * ginga::Formatter::getDocument | ( | ) |
Gets current document.
| bool ginga::Formatter::getEOS | ( | ) |
Gets EOS flag.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| WebServices * ginga::Formatter::getWebServices | ( | ) |
Gets WebServices.
|
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 ginga::Formatter::setEOS | ( | bool | eos | ) |
Sets EOS flag.
| eos | Flag value. |
|
static |
|
virtual |
|
static |
|
static |
|
virtual |
|
static |
|
static |
|
virtual |
|
static |
Sets WebServices option option of the given Formatter.
| self | Formatter. |
| name | Must be the string "webservies". |
| value | webservies flag value. |
|
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 |