TopWindow Class Reference

Class to handle top-level windows. More...

Inheritance diagram for TopWindow:

Inheritance graph
[legend]
Collaboration diagram for TopWindow:

Collaboration graph
[legend]

Public Member Functions

 TopWindow (intf_thread_t *pIntf, int xPos, int yPos, WindowManager &rWindowManager, bool dragDrop, bool playOnDrop, bool visible)
virtual ~TopWindow ()
virtual void processEvent (EvtFocus &rEvtFocus)
 Methods to process OS events.
virtual void processEvent (EvtMenu &rEvtMenu)
virtual void processEvent (EvtMotion &rEvtMotion)
virtual void processEvent (EvtMouse &rEvtMouse)
virtual void processEvent (EvtLeave &rEvtLeave)
virtual void processEvent (EvtKey &rEvtKey)
virtual void processEvent (EvtScroll &rEvtScroll)
virtual void forwardEvent (EvtGeneric &rEvt, CtrlGeneric &rCtrl)
 Forward an event to a control.
virtual void refresh (int left, int top, int width, int height)
 Refresh an area of the window.
virtual const GenericLayoutgetActiveLayout () const
 Get the active layout.
virtual void updateShape ()
 Update the shape of the window from the active layout.
virtual void onControlCapture (const CtrlGeneric &rCtrl)
 Called by a control that wants to capture the mouse.
virtual void onControlRelease (const CtrlGeneric &rCtrl)
 Called by a control that wants to release the mouse.
virtual void onTooltipChange (const CtrlGeneric &rCtrl)
 Called by a control when its tooltip changed.
VarBoolgetMaximizedVar ()
 Get the "maximized" variable.
bool isVisible () const
 Get the initial visibility status.

Protected Member Functions

virtual void innerShow ()
 Actually show the window.
virtual void innerHide ()
 Actually hide the window.

Friends

class WindowManager

Detailed Description

Class to handle top-level windows.

Constructor & Destructor Documentation

TopWindow::TopWindow ( intf_thread_t pIntf,
int  xPos,
int  yPos,
WindowManager rWindowManager,
bool  dragDrop,
bool  playOnDrop,
bool  visible 
)

TopWindow::~TopWindow (  )  [virtual]


Member Function Documentation

void TopWindow::processEvent ( EvtFocus rEvtFocus  )  [virtual]

Methods to process OS events.

Reimplemented from GenericWindow.

void TopWindow::processEvent ( EvtMenu rEvtMenu  )  [virtual]

void TopWindow::processEvent ( EvtMotion rEvtMotion  )  [virtual]

void TopWindow::processEvent ( EvtMouse rEvtMouse  )  [virtual]

void TopWindow::processEvent ( EvtLeave rEvtLeave  )  [virtual]

Reimplemented from GenericWindow.

References WindowManager::hideTooltip().

void TopWindow::processEvent ( EvtKey rEvtKey  )  [virtual]

void TopWindow::processEvent ( EvtScroll rEvtScroll  )  [virtual]

void TopWindow::forwardEvent ( EvtGeneric rEvt,
CtrlGeneric rCtrl 
) [virtual]

Forward an event to a control.

References CtrlGeneric::handleEvent().

Referenced by CtrlSliderBg::handleEvent().

void TopWindow::refresh ( int  left,
int  top,
int  width,
int  height 
) [virtual]

Refresh an area of the window.

Reimplemented from GenericWindow.

References OSGraphics::copyToWindow(), GenericLayout::getImage(), and GenericWindow::getOSWindow().

Referenced by GenericLayout::refreshRect().

const GenericLayout & TopWindow::getActiveLayout (  )  const [virtual]

Get the active layout.

Referenced by WindowManager::maximize(), Theme::saveConfig(), and WindowManager::unmaximize().

void TopWindow::updateShape (  )  [virtual]

Update the shape of the window from the active layout.

References OSGraphics::applyMaskToWindow(), GenericLayout::getImage(), and GenericWindow::getOSWindow().

Referenced by GenericLayout::refreshRect().

void TopWindow::onControlCapture ( const CtrlGeneric rCtrl  )  [virtual]

Called by a control that wants to capture the mouse.

Referenced by GenericLayout::onControlCapture().

void TopWindow::onControlRelease ( const CtrlGeneric rCtrl  )  [virtual]

void TopWindow::onTooltipChange ( const CtrlGeneric rCtrl  )  [virtual]

VarBool& TopWindow::getMaximizedVar (  )  [inline]

Get the "maximized" variable.

Referenced by Interpreter::getVarBool().

bool TopWindow::isVisible (  )  const [inline]

Get the initial visibility status.

void TopWindow::innerShow (  )  [protected, virtual]

void TopWindow::innerHide (  )  [protected, virtual]

Actually hide the window.

Reimplemented from GenericWindow.

References GenericWindow::innerHide(), and GenericLayout::onHide().


Friends And Related Function Documentation

friend class WindowManager [friend]

Reimplemented from GenericWindow.


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

Generated on Tue May 25 08:06:26 2010 for VLC by  doxygen 1.5.6