Ginga handle.
More...
#include <ginga.h>
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()
Ginga::getOptionBool |
( |
const std::string & |
name | ) |
|
|
pure virtual |
Gets boolean option value.
- Parameters
-
- Returns
- Option value.
Implemented in Formatter.
◆ getOptionInt()
Ginga::getOptionInt |
( |
const std::string & |
name | ) |
|
|
pure virtual |
Gets integer option value.
- Parameters
-
- Returns
- Option value.
Implemented in Formatter.
◆ getOptions()
Gets current options.
- Returns
- Current options.
Implemented in Formatter.
◆ getOptionString()
Ginga::getOptionString |
( |
const std::string & |
name | ) |
|
|
pure virtual |
Gets string option value.
- Parameters
-
- Returns
- Option value.
Implemented in Formatter.
◆ getState()
◆ redraw()
Ginga::redraw |
( |
cairo_t * |
cr | ) |
|
|
pure virtual |
Draws the latest frame of the presentation on Cairo context.
- Parameters
-
Implemented in Formatter.
◆ resize()
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 Formatter.
◆ sendKey()
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 Formatter.
◆ sendTick()
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 Formatter.
◆ setOptionBool()
Ginga::setOptionBool |
( |
const std::string & |
name, |
|
|
bool |
value |
|
) |
| |
|
pure virtual |
Sets boolean option.
- Parameters
-
name | Option name. |
value | Option value. |
Implemented in Formatter.
◆ setOptionInt()
Ginga::setOptionInt |
( |
const std::string & |
name, |
|
|
int |
value |
|
) |
| |
|
pure virtual |
Sets integer option.
- Parameters
-
name | Option name. |
value | Option value. |
Implemented in Formatter.
◆ setOptionString()
Ginga::setOptionString |
( |
const std::string & |
name, |
|
|
std::string |
value |
|
) |
| |
|
pure virtual |
Sets string option.
- Parameters
-
name | Option name. |
value | Option value. |
Implemented in Formatter.
◆ start()
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 Formatter.
◆ stop()
Stops the presentation.
- Returns
true
if successful or false
otherwise.
Implemented in 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: