Ginga handle.
More...
#include <ginga.h>
|
| | Ginga (const GingaOptions *opts) |
| | Creates a new Ginga object.
|
| |
|
virtual | ~Ginga ()=0 |
| | Destroys Ginga object.
|
| |
| virtual GingaState | getState ()=0 |
| | Gets Ginga object state.
|
| |
| virtual bool | start (const std::string &path, std::string *errmsg)=0 |
| | Starts the presentation of an NCL file.
|
| |
| virtual bool | stop ()=0 |
| | Stops the presentation.
|
| |
| virtual void | resize (int width, int height)=0 |
| | Resizes the presentation screen.
|
| |
| virtual void | redraw (cairo_t *cr)=0 |
| | Draws the latest frame of the presentation on Cairo context.
|
| |
| virtual bool | sendKey (const std::string &key, bool press)=0 |
| | Sends key event to presentation.
|
| |
| virtual bool | sendTick (uint64_t total, uint64_t diff, uint64_t frame)=0 |
| | Sends tick event to presentation.
|
| |
| virtual const GingaOptions * | getOptions ()=0 |
| | Gets current options.
|
| |
| virtual bool | getOptionBool (const std::string &name)=0 |
| | Gets boolean option value.
|
| |
| virtual void | setOptionBool (const std::string &name, bool value)=0 |
| | Sets boolean option.
|
| |
| virtual int | getOptionInt (const std::string &name)=0 |
| | Gets integer option value.
|
| |
| virtual void | setOptionInt (const std::string &name, int value)=0 |
| | Sets integer option.
|
| |
| virtual std::string | getOptionString (const std::string &name)=0 |
| | Gets string option value.
|
| |
| virtual void | setOptionString (const std::string &name, std::string value)=0 |
| | Sets string option.
|
| |
Ginga handle.
Opaque handle that represents an NCL formatter.
◆ Ginga()
Creates a new Ginga object.
- Parameters
-
| opts | Options to initialize the object with. |
- Returns
- New Ginga.
◆ create()
Creates a new Ginga object.
- Parameters
-
| opts | Options to initialize the object with. |
- Returns
- New Ginga.
◆ getOptionBool()
| virtual bool Ginga::getOptionBool |
( |
const std::string & | name | ) |
|
|
pure virtual |
Gets boolean option value.
- Parameters
-
- Returns
- Option value.
Implemented in ginga::Formatter.
◆ getOptionInt()
| virtual int Ginga::getOptionInt |
( |
const std::string & | name | ) |
|
|
pure virtual |
Gets integer option value.
- Parameters
-
- Returns
- Option value.
Implemented in ginga::Formatter.
◆ getOptions()
◆ getOptionString()
| virtual std::string Ginga::getOptionString |
( |
const std::string & | name | ) |
|
|
pure virtual |
Gets string option value.
- Parameters
-
- Returns
- Option value.
Implemented in ginga::Formatter.
◆ getState()
◆ redraw()
| virtual void Ginga::redraw |
( |
cairo_t * | cr | ) |
|
|
pure virtual |
Draws the latest frame of the presentation on Cairo context.
- Parameters
-
Implemented in ginga::Formatter.
◆ resize()
| virtual void Ginga::resize |
( |
int | width, |
|
|
int | height ) |
|
pure virtual |
Resizes the presentation screen.
- Parameters
-
| width | Screen width (in pixels). |
| height | Screen height (in pixels). |
Implemented in ginga::Formatter.
◆ sendKey()
| virtual bool Ginga::sendKey |
( |
const std::string & | key, |
|
|
bool | press ) |
|
pure virtual |
Sends key event to presentation.
- Parameters
-
| key | Key name. |
| press | Whether the key was pressed (or released). |
- Returns
true if successful, or false otherwise.
Implemented in ginga::Formatter.
◆ sendTick()
| virtual bool Ginga::sendTick |
( |
uint64_t | total, |
|
|
uint64_t | diff, |
|
|
uint64_t | frame ) |
|
pure virtual |
Sends tick event to presentation.
- Parameters
-
| total | Time since the presentation started. |
| diff | Time since last tick. |
| frame | Tick number. |
- Returns
true if successful, or false otherwise.
Implemented in ginga::Formatter.
◆ setOptionBool()
| virtual void Ginga::setOptionBool |
( |
const std::string & | name, |
|
|
bool | value ) |
|
pure virtual |
Sets boolean option.
- Parameters
-
| name | Option name. |
| value | Option value. |
Implemented in ginga::Formatter.
◆ setOptionInt()
| virtual void Ginga::setOptionInt |
( |
const std::string & | name, |
|
|
int | value ) |
|
pure virtual |
Sets integer option.
- Parameters
-
| name | Option name. |
| value | Option value. |
Implemented in ginga::Formatter.
◆ setOptionString()
| virtual void Ginga::setOptionString |
( |
const std::string & | name, |
|
|
std::string | value ) |
|
pure virtual |
Sets string option.
- Parameters
-
| name | Option name. |
| value | Option value. |
Implemented in ginga::Formatter.
◆ start()
| virtual bool Ginga::start |
( |
const std::string & | path, |
|
|
std::string * | errmsg ) |
|
pure virtual |
Starts the presentation of an NCL file.
- Parameters
-
| path | Path to NCL file. |
| [out] | errmsg | Variable to store the error message (if any). |
- Returns
true if successful or false otherwise.
Implemented in ginga::Formatter.
◆ stop()
| virtual bool Ginga::stop |
( |
| ) |
|
|
pure virtual |
Stops the presentation.
- Returns
true if successful or false otherwise.
Implemented in ginga::Formatter.
◆ version()
| string Ginga::version |
( |
| ) |
|
|
static |
Gets libginga version string.
- Returns
- libginga version string.
The documentation for this class was generated from the following files: