22# define GINGA_BEGIN_DECLS extern "C" {
23# define GINGA_END_DECLS }
25# define GINGA_BEGIN_DECLS
26# define GINGA_END_DECLS
90 virtual bool start (
const std::string &path, std::string *errmsg) = 0;
93 virtual void resize (
int width,
int height) = 0;
94 virtual void redraw (cairo_t *cr) = 0;
96 virtual bool sendKey (
const std::string &key,
bool press) = 0;
97 virtual bool sendTick (uint64_t total, uint64_t diff, uint64_t frame) = 0;
106 std::string value) = 0;
Ginga handle.
Definition ginga.h:84
virtual bool stop()=0
Stops the presentation.
virtual void resize(int width, int height)=0
Resizes the presentation screen.
static Ginga * create(const GingaOptions *opts)
Creates a new Ginga object.
Definition Ginga.cpp:51
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 GingaState getState()=0
Gets Ginga object state.
virtual bool getOptionBool(const std::string &name)=0
Gets boolean option value.
static std::string version()
Gets libginga version string.
Definition Ginga.cpp:62
virtual int getOptionInt(const std::string &name)=0
Gets integer option value.
virtual ~Ginga()=0
Destroys Ginga object.
Definition Ginga.cpp:41
virtual void setOptionString(const std::string &name, std::string value)=0
Sets string option.
Ginga(const GingaOptions *opts)
Creates a new Ginga object.
Definition Ginga.cpp:34
virtual void redraw(cairo_t *cr)=0
Draws the latest frame of the presentation on Cairo context.
virtual void setOptionInt(const std::string &name, int value)=0
Sets integer option.
virtual void setOptionBool(const std::string &name, bool value)=0
Sets boolean option.
virtual bool start(const std::string &path, std::string *errmsg)=0
Starts the presentation of an NCL file.
virtual bool sendKey(const std::string &key, bool press)=0
Sends key event to presentation.
virtual std::string getOptionString(const std::string &name)=0
Gets string option value.
GingaState
Ginga states.
Definition ginga.h:73
@ GINGA_STATE_STOPPED
Ginga is stopped.
Definition ginga.h:75
@ GINGA_STATE_PLAYING
Ginga is playing.
Definition ginga.h:74
Ginga control options.
Definition ginga.h:45
bool debug
Whether to enable debug mode.
Definition ginga.h:53
int width
Screen width (in pixels).
Definition ginga.h:47
bool experimental
Whether to enable experimental features.
Definition ginga.h:59
std::string background
Background color.
Definition ginga.h:66
bool opengl
Whether to use OpenGL back-end.
Definition ginga.h:63
int height
Screen height (in pixels).
Definition ginga.h:50
bool webservices
Whether to enable debug mode.
Definition ginga.h:56