22 # define GINGA_BEGIN_DECLS extern "C" { 23 # define GINGA_END_DECLS } 25 # define GINGA_BEGIN_DECLS 26 # define GINGA_END_DECLS 87 virtual bool start (
const std::string &path, std::string *errmsg) = 0;
88 virtual bool stop () = 0;
90 virtual void resize (
int width,
int height) = 0;
91 virtual void redraw (cairo_t *cr) = 0;
93 virtual bool sendKey (
const std::string &key,
bool press) = 0;
94 virtual bool sendTick (uint64_t total, uint64_t diff, uint64_t frame) = 0;
98 virtual void setOptionBool (
const std::string &name,
bool value) = 0;
100 virtual void setOptionInt (
const std::string &name,
int value) = 0;
103 std::string value) = 0;
Ginga handle.
Definition: ginga.h:80
virtual bool start(const std::string &path, std::string *errmsg)=0
Starts the presentation of an NCL file.
virtual void setOptionString(const std::string &name, std::string value)=0
Sets string option.
virtual void redraw(cairo_t *cr)=0
Draws the latest frame of the presentation on Cairo context.
int height
Screen height (in pixels).
Definition: ginga.h:50
virtual bool sendKey(const std::string &key, bool press)=0
Sends key event to presentation.
virtual void setOptionInt(const std::string &name, int value)=0
Sets integer option.
virtual ~Ginga()=0
Destroys Ginga object.
Definition: Ginga.cpp:41
virtual std::string getOptionString(const std::string &name)=0
Gets string option value.
Ginga control options.
Definition: ginga.h:44
virtual void resize(int width, int height)=0
Resizes the presentation screen.
Ginga(const GingaOptions *opts)
Creates a new Ginga object.
Definition: Ginga.cpp:34
virtual bool sendTick(uint64_t total, uint64_t diff, uint64_t frame)=0
Sends tick event to presentation.
std::string background
Background color.
Definition: ginga.h:63
Ginga is playing.
Definition: ginga.h:71
virtual void setOptionBool(const std::string &name, bool value)=0
Sets boolean option.
GingaState
Ginga states.
Definition: ginga.h:69
virtual int getOptionInt(const std::string &name)=0
Gets integer option value.
bool debug
Whether to enable debug mode.
Definition: ginga.h:53
bool experimental
Whether to enable experimental features.
Definition: ginga.h:56
bool opengl
Whether to use OpenGL back-end.
Definition: ginga.h:60
virtual bool getOptionBool(const std::string &name)=0
Gets boolean option value.
Ginga is stopped.
Definition: ginga.h:72
static std::string version()
Gets libginga version string.
Definition: Ginga.cpp:62
virtual bool stop()=0
Stops the presentation.
int width
Screen width (in pixels).
Definition: ginga.h:47
virtual const GingaOptions * getOptions()=0
Gets current options.
static Ginga * create(const GingaOptions *opts)
Creates a new Ginga object.
Definition: Ginga.cpp:51
virtual GingaState getState()=0
Gets Ginga object state.