SkyGI::VideoView Class Reference

Inheritance diagram for SkyGI::VideoView:
[legend]
Collaboration diagram for SkyGI::VideoView:
[legend]
List of all members.

Public Member Functions

 VideoView (Window *pParent, const Rect &rFrame, unsigned int nWindowLayoutFlags, unsigned int uiFlags=0)
 ~VideoView ()
void Paint (const Rect &rDirty)
void SetAutoScale (bool bAutoScale=true)
bool IsAutoScale ()
void DrawFrame (ISSPacket *pPacket)
void OutputFormatChanged (const ISSFormat pFormat)

Classes

class  Private

Detailed Description

VideoView

Description:
A VideoView can display a video and play audio. VideoView is using MediaStream to actually decode the audio/video data.
Examples:

videoview.cpp.


Constructor & Destructor Documentation

VideoView::VideoView ( Window pParent,
const Rect rFrame,
unsigned int  nWindowLayoutFlags,
unsigned int  uiFlags = 0 
)

VideoView::~VideoView (  ) 


Member Function Documentation

void VideoView::Paint ( const Rect rDirty  )  [virtual]

Paint window content

Description:
This function gets called whenever an area of the window has to be redrawn. Usually you should only draw from inside the Paint function. If you need to redraw a window (when lets say some content must be updated), simply call Invalidate() which will then (asynchronly) call this paint function.

Usually you should draw the background using Window::DrawBackground(rDirty) and the border with DrawBorder(rRect). This way the user has full control over the appearance of your window, meaning he can change the background and border style.
The window content area itself is defined by the border margin and the window margin. Every window may define a margin. If you draw content into this window always make sure to not draw into the margin area. Additionally, the border has a margin too. As the user has full control to select any border for your window make sure to user the current borders margin when drawing window content. the dra Window::Paint() just redraws the background using DrawBackground. Overload this member function to add custom dawing code
Overload this member function to add custom dawing code
Parameters:
rDirty - Dirty rectangular region which has to be redrawn. Prior entering this function the painters clip region is automatically set to this dirty region.
See also:
DrawBorder, DrawBackground, Border, GetBorder, GetBorder::Margin, GetMargin

Reimplemented from SkyGI::View.

Reimplemented in SkyGI::VideoViewPreview.

void VideoView::SetAutoScale ( bool  bAutoScale = true  ) 

bool VideoView::IsAutoScale (  ) 

void VideoView::DrawFrame ( ISSPacket pPacket  )  [virtual]

Reimplemented from SkyGI::ISSVideoOutput.

void VideoView::OutputFormatChanged ( const ISSFormat  pFormat  )  [virtual]

Reimplemented from SkyGI::ISSVideoOutput.


Generated on Thu Dec 13 18:14:47 2007 for SkyGI by  doxygen 1.5.1-p1