OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
MWGui::VideoWidget Class Reference

#include <videowidget.hpp>

Inheritance diagram for MWGui::VideoWidget:
Collaboration diagram for MWGui::VideoWidget:

Public Member Functions

 VideoWidget ()
 
void setVFS (const VFS::Manager *vfs)
 Set the VFS (virtual file system) to find the videos on. More...
 
void playVideo (const std::string &video)
 
int getVideoWidth ()
 
int getVideoHeight ()
 
bool update ()
 
bool hasAudioStream ()
 Return true if a video is currently playing and it has an audio stream. More...
 
void stop ()
 Stop video and free resources (done automatically on destruction) More...
 
void autoResize (bool stretch)
 

Private Attributes

const VFS::ManagermVFS
 
std::auto_ptr< MyGUI::ITexture > mTexture
 
std::auto_ptr< Video::VideoPlayer > mPlayer
 

Detailed Description

Widget that plays a video.

Constructor & Destructor Documentation

MWGui::VideoWidget::VideoWidget ( )

Member Function Documentation

void MWGui::VideoWidget::autoResize ( bool  stretch)

Adjust the coordinates of this video widget relative to its parent, based on the dimensions of the playing video.

Parameters
stretchStretch the video to fill the whole screen? If false, black bars may be added to fix the aspect ratio.

Here is the call graph for this function:

Here is the caller graph for this function:

int MWGui::VideoWidget::getVideoHeight ( )

Here is the caller graph for this function:

int MWGui::VideoWidget::getVideoWidth ( )

Here is the caller graph for this function:

bool MWGui::VideoWidget::hasAudioStream ( )

Return true if a video is currently playing and it has an audio stream.

Here is the caller graph for this function:

void MWGui::VideoWidget::playVideo ( const std::string &  video)

Here is the call graph for this function:

Here is the caller graph for this function:

void MWGui::VideoWidget::setVFS ( const VFS::Manager vfs)

Set the VFS (virtual file system) to find the videos on.

Here is the caller graph for this function:

void MWGui::VideoWidget::stop ( )

Stop video and free resources (done automatically on destruction)

Here is the caller graph for this function:

bool MWGui::VideoWidget::update ( )
Returns
Is the video still playing?

Here is the caller graph for this function:

Member Data Documentation

std::auto_ptr<Video::VideoPlayer> MWGui::VideoWidget::mPlayer
private
std::auto_ptr<MyGUI::ITexture> MWGui::VideoWidget::mTexture
private
const VFS::Manager* MWGui::VideoWidget::mVFS
private

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