Thrive
Public Member Functions | Static Public Member Functions | List of all members
thrive::CEGUIVideoPlayer Class Reference
Inheritance diagram for thrive::CEGUIVideoPlayer:
thrive::CEGUIWindow

Public Member Functions

 CEGUIVideoPlayer (std::string name, int width, int height)
 Constructor. More...
 
 CEGUIVideoPlayer (std::string name)
 Constructor. More...
 
virtual ~CEGUIVideoPlayer ()
 Destructor.
 
void setVideo (std::string videoName)
 Sets the video to play. More...
 
void play ()
 
void pause ()
 
void update ()
 
bool isPaused ()
 
double getDuration ()
 
double getCurrentTime ()
 
void seek (double time)
 
- Public Member Functions inherited from thrive::CEGUIWindow
 CEGUIWindow (std::string layoutName)
 Constructor. More...
 
 CEGUIWindow (std::string type, std::string name)
 Constructor. More...
 
virtual ~CEGUIWindow ()
 Destructor.
 
bool isNull () const
 Returns whether the underlying CEGUI::Window is a nullptr. More...
 
CEGUIWindow createChildWindow (std::string layoutName)
 Creates a new windows and adds it to the underlying CEGUI window. More...
 
void addChild (CEGUIWindow *window)
 Adds a child to the window. More...
 
void removeChild (CEGUIWindow *window)
 Removes a child from the window. More...
 
void destroy () const
 Destroys the underlying CEGUI Window.
 
std::string getText () const
 Get the underlying cegui windows text if it has any. More...
 
void setText (const std::string &text)
 Sets the underlying cegui windows text. More...
 
void appendText (const std::string &text)
 Appends to the underlying cegui windows text. More...
 
void setImage (const std::string &image)
 Sets the underlying windows image property. More...
 
void setProperty (const std::string &parameter, const std::string &property)
 Sets the underlying windows property. More...
 
void listWidgetAddStandardItem (StandardItemWrapper *item)
 Adds a StandardItem to the window if it is a ListWidget otherwise throws bad_cast exception.
 
void listWidgetAddItem (const std::string &text, int id)
 Creates and adds a StandardItem to the window if it is a ListWidget otherwise throws bad_cast exception.
 
void listWidgetAddTextItem (const std::string &text)
 Adds a string to the window if it is a ListWidget otherwise throws bad_cast exception.
 
void listWidgetUpdateItem (StandardItemWrapper *item, const std::string &text)
 Updates an item with the new text.
 
void listWidgetResetList ()
 Clears the list if the window is a ListWidget otherwise throws bad_cast exception.
 
std::string listWidgetGetFirstSelectedItemText ()
 
int listWidgetGetFirstSelectedID ()
 
void progressbarSetProgress (float progress)
 Sets the progress of the progressbar. More...
 
float scrollingpaneGetVerticalPosition ()
 Gets the vertical scroll position. More...
 
void scrollingpaneSetVerticalPosition (float position)
 Sets the vertical scroll position. More...
 
void scrollingpaneAddIcon (CEGUIWindow *icon)
 Adds an icon vertically to the scrollable pane. More...
 
CEGUIWindow getParent () const
 Gets the underlying cegui windows parent, wrapped as a CEGUIWindow*. More...
 
CEGUIWindow getChild (const std::string &name) const
 Gets one of the underlying cegui windows children by name, wrapped as a CEGUIWindow*. More...
 
void registerEventHandler (const std::string &eventName, CEGUI::Event::Subscriber callback) const
 Registers an callback for a given generic CEGUI event. More...
 
void registerEventHandler (const std::string &eventName, const luabind::object &callback) const
 Same as above but for lua callbacks.
 
void registerKeyEventHandler (CEGUI::Event::Subscriber callback) const
 Registers an callback for a given keypress CEGUI event. More...
 
void registerKeyEventHandler (const luabind::object &callback) const
 Same as above but for lua callbacks.
 
void enable ()
 Enables the window, allowing interaction.
 
void disable ()
 Disables interaction with the window.
 
void setFocus ()
 Sets focus to the underlying cegui window.
 
void show ()
 Makes the window visible.
 
void hide ()
 Hides the window.
 
void moveToFront ()
 Moves the window in front of all other windows.
 
void moveToBack ()
 Moves the window behind all other windows.
 
void moveInFront (const CEGUIWindow &target)
 Moves the window in front of target window. More...
 
void moveBehind (const CEGUIWindow &target)
 Moves the window behind target window. More...
 
void setPositionAbs (float x, float y)
 Sets the windows position. More...
 
void setPositionRel (float x, float y)
 
void setSizeAbs (float width, float height)
 Sets the windows size. More...
 
void setSizeRel (float width, float height)
 
std::string getName ()
 Returns the windows internal name.
 
void playAnimation (std::string name)
 Plays an animation by name. More...
 

Static Public Member Functions

static luabind::scope luaBindings ()
 Lua bindings. More...
 
static void destroyVideoPlayer (CEGUIVideoPlayer *player)
 
- Static Public Member Functions inherited from thrive::CEGUIWindow
static CEGUIWindow getRootWindow ()
 
static luabind::scope luaBindings ()
 Lua bindings. More...
 
static void setGuiMoveMode (bool value)
 
static CEGUIWindow getWindowUnderMouse ()
 

Additional Inherited Members

- Protected Attributes inherited from thrive::CEGUIWindow
CEGUI::Window * m_window = nullptr
 

Constructor & Destructor Documentation

CEGUIVideoPlayer::CEGUIVideoPlayer ( std::string  name,
int  width,
int  height 
)

Constructor.

Parameters
name
width
height
CEGUIVideoPlayer::CEGUIVideoPlayer ( std::string  name)

Constructor.

Parameters
name
Note
This constructor makes a fullscreen player

Member Function Documentation

luabind::scope CEGUIVideoPlayer::luaBindings ( )
static

Lua bindings.

Exposes:

  • CEGUIWindow::CEGUIWindow(string, int, int)
  • CEGUIWindow::isNull
  • CEGUIWindow::play
  • CEGUIWindow::pause
  • CEGUIWindow::setVideo
  • CEGUIWindow::update
  • CEGUIWindow::getDuration
  • CEGUIWindow::getCurrentTime
  • CEGUIWindow::seek
Returns
void CEGUIVideoPlayer::setVideo ( std::string  videoName)

Sets the video to play.

Parameters
videoNameThe name of the video to play. Must be loaded by ogres resource manager

The documentation for this class was generated from the following files: