Emergency 20 Dokumentation  4.2.0
em5::FullscreenVideoWindow Class Reference

#include <FullscreenVideoWindow.h>

Inheritance diagram for em5::FullscreenVideoWindow:
qsf::GuiDocument qsf::InputListener

Public Member Functions

 FullscreenVideoWindow (qsf::GuiContext &guiContext)
virtual ~FullscreenVideoWindow ()
void showVideoByFilename (const std::string &videoFile, bool exclusiveMode=true)
 Show video by filename. More...
void clearVideo ()
bool isVideoPlaying () const
qsf::VideoPlayergetVideoPlayer () const
virtual void processEvent (const std::string &eventKey, Rocket::Core::Event &event) override
virtual void processViewportDimensionsChanged (int width, int height) override
virtual void eventReceived (const qsf::InputEvent &inputEvent, Response &response) override
- Public Member Functions inherited from qsf::GuiDocument
 GuiDocument (GuiContext &guiContext)
 Constructor. More...
 GuiDocument (GuiContext &guiContext, Rocket::Core::ElementDocument &rocketCoreElementDocument)
 Constructor. More...
virtual ~GuiDocument ()
 Destructor. More...
GuiContextgetGuiContext () const
 Return the document's owning GUI context. More...
Rocket::Core::ElementDocument * getRocketCoreElementDocument () const
 Return the document's libRocket document. More...
bool loadByFilename (const std::string &filename)
 Load the document from an RML file. More...
void unload ()
 Use this method if you want to change a documents .rml file at runtime. More...
void show ()
 Show the document. More...
void showFocused ()
 Show the document focused. More...
void showModal ()
 Show the document modal. More...
void hide ()
 Hide the document. More...
bool isVisible () const
 Check if the document is currently visible. More...
void setVisible (bool visible)
 Show/hide the document. More...
void pullToFront ()
 Pull the document to the front. More...
Rocket::Core::Element * findElementById (const std::string &elementId) const
 Find an element inside the document by its case-sensitive ID. More...
void registerNewButton (const std::string &buttonId, const std::string &event, const std::string &eventKey)
 Register a new button. More...
virtual void toggleVisibility ()
 Toggle visibility. More...
- Public Member Functions inherited from qsf::InputListener
 InputListener ()
 Default constructor. More...
virtual ~InputListener ()
 Destructor. More...
WindowgetFocusWindow () const
 Return the focus window. More...
void setFocusWindow (Window *focusWindow)
 Set focus window. More...

Additional Inherited Members

- Static Public Member Functions inherited from qsf::GuiDocument
static Rocket::Core::EventListener * createEventListener (const std::string &eventKey)
 Create an event listener. More...
static GuiDocumentgetGuiDocumentByRocketCoreElement (Rocket::Core::Element *element)
 Return a QSF GUI document instance by using a given libRocket element instance. More...
- Protected Member Functions inherited from qsf::GuiDocument
void createEmptyDocument ()

Constructor & Destructor Documentation

em5::FullscreenVideoWindow::FullscreenVideoWindow ( qsf::GuiContext guiContext)
virtual em5::FullscreenVideoWindow::~FullscreenVideoWindow ( )

Member Function Documentation

void em5::FullscreenVideoWindow::clearVideo ( )
virtual void em5::FullscreenVideoWindow::eventReceived ( const qsf::InputEvent inputEvent,
Response response 

Reimplemented from qsf::InputListener.

qsf::VideoPlayer& em5::FullscreenVideoWindow::getVideoPlayer ( ) const
bool em5::FullscreenVideoWindow::isVideoPlaying ( ) const
virtual void em5::FullscreenVideoWindow::processEvent ( const std::string &  eventKey,
Rocket::Core::Event &  event 

Reimplemented from qsf::GuiDocument.

virtual void em5::FullscreenVideoWindow::processViewportDimensionsChanged ( int  width,
int  height 

Reimplemented from qsf::GuiDocument.

void em5::FullscreenVideoWindow::showVideoByFilename ( const std::string &  videoFile,
bool  exclusiveMode = true 

Show video by filename.

[in]videoFileVideo file to play, for example "data/em5/local/video/logo/publisher_720p.ogv"
[in]exclusiveMode"true" for exclusive mode resulting in that the video gets as much resources as possible by disabling some jobs, else "false"

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