WindowManager Class Reference

Window manager for skin windows. More...

Inheritance diagram for WindowManager:

Inheritance graph
[legend]
Collaboration diagram for WindowManager:

Collaboration graph
[legend]

Public Types

enum  Direction_t { kResizeE, kResizeSE, kResizeS, kNone }
 Direction of the resizing. More...

Public Member Functions

 WindowManager (intf_thread_t *pIntf)
virtual ~WindowManager ()
void registerWindow (TopWindow &rWindow)
 Add a window to the list of known windows.
void unregisterWindow (TopWindow &rWindow)
 Remove a previously registered window.
void startMove (TopWindow &rWindow)
 Tell the window manager that a move is initiated for rWindow.
void stopMove ()
 Tell the window manager that the current move ended.
void move (TopWindow &rWindow, int left, int top) const
 Move the rWindow window to (left, top), and move all its anchored windows.
void startResize (GenericLayout &rLayout, Direction_t direction)
 Tell the window manager that a resize is initiated for rLayout.
void stopResize ()
 Tell the window manager that the current resizing ended.
void resize (GenericLayout &rLayout, int width, int height) const
 Resize the rLayout layout to (width, height), and move all its anchored windows, if some anchors are moved during the resizing.
void maximize (TopWindow &rWindow)
 Maximize the given window.
void unmaximize (TopWindow &rWindow)
 Unmaximize the given window.
void raiseAll () const
 Raise all the registered windows.
void showAll (bool firstTime=false) const
 Show all the registered windows.
void hideAll () const
 Hide all the registered windows.
void synchVisibility () const
 Synchronize the windows with their visibility variable.
void saveVisibility ()
 Save the current visibility of the windows.
void restoreVisibility () const
 Restore the saved visibility of the windows.
void raise (TopWindow &rWindow) const
 Raise the given window.
void show (TopWindow &rWindow) const
 Show the given window.
void hide (TopWindow &rWindow) const
 Hide the given window.
void setOnTop (bool b_ontop)
 Set/unset all the windows on top.
void toggleOnTop ()
 Toggle all the windows on top.
void setMagnetValue (int magnet)
 Set the magnetism of screen edges.
void setAlphaValue (int alpha)
 Set the alpha value of the static windows.
void setMoveAlphaValue (int moveAlpha)
 Set the alpha value of the moving windows.
void createTooltip (const GenericFont &rTipFont)
 Create the tooltip window.
void showTooltip ()
 Show the tooltip window.
void hideTooltip ()
 Hide the tooltip window.
void addLayout (TopWindow &rWindow, GenericLayout &rLayout)
 Add a layout of the given window.
void setActiveLayout (TopWindow &rWindow, GenericLayout &rLayout)
 Change the active layout of the given window.
void setActivePopup (Popup &rPopup)
 Mark the given popup as active.
PopupgetActivePopup () const
 Return the active popup, or NULL if none is active.

Detailed Description

Window manager for skin windows.

Member Enumeration Documentation

Direction of the resizing.

Enumerator:
kResizeE 
kResizeSE 
kResizeS 
kNone 


Constructor & Destructor Documentation

WindowManager::WindowManager ( intf_thread_t pIntf  ) 

WindowManager::~WindowManager (  )  [virtual]


Member Function Documentation

void WindowManager::registerWindow ( TopWindow rWindow  ) 

Add a window to the list of known windows.

Necessary if you want your window to be movable...

Referenced by TopWindow::TopWindow().

void WindowManager::unregisterWindow ( TopWindow rWindow  ) 

Remove a previously registered window.

Referenced by TopWindow::~TopWindow().

void WindowManager::startMove ( TopWindow rWindow  ) 

Tell the window manager that a move is initiated for rWindow.

References SkinObject::getIntf(), and var_InheritBool.

Referenced by Theme::loadConfig(), maximize(), and unmaximize().

void WindowManager::stopMove (  ) 

Tell the window manager that the current move ended.

References SkinObject::getIntf(), and var_InheritBool.

Referenced by ThemeLoader::load(), Theme::loadConfig(), maximize(), setActiveLayout(), stopResize(), and unmaximize().

void WindowManager::move ( TopWindow rWindow,
int  left,
int  top 
) const

Move the rWindow window to (left, top), and move all its anchored windows.

If a new anchoring is detected, the windows will move accordingly.

References GenericWindow::getLeft(), and GenericWindow::getTop().

Referenced by Theme::loadConfig(), maximize(), and unmaximize().

void WindowManager::startResize ( GenericLayout rLayout,
Direction_t  direction 
)

void WindowManager::stopResize (  ) 

Tell the window manager that the current resizing ended.

References stopMove().

Referenced by CtrlVideo::attachVoutWindow(), Theme::loadConfig(), maximize(), CtrlVideo::resizeControl(), and unmaximize().

void WindowManager::resize ( GenericLayout rLayout,
int  width,
int  height 
) const

Resize the rLayout layout to (width, height), and move all its anchored windows, if some anchors are moved during the resizing.

If a new anchoring is detected, the windows will move (or resize) accordingly.

References GenericLayout::getHeight(), GenericLayout::getMaxHeight(), GenericLayout::getMaxWidth(), GenericLayout::getMinHeight(), GenericLayout::getMinWidth(), GenericLayout::getWidth(), GenericLayout::getWindow(), kResizeE, kResizeS, kResizeSE, and GenericLayout::resize().

Referenced by CtrlVideo::attachVoutWindow(), CmdResize::execute(), Theme::loadConfig(), maximize(), CtrlVideo::resizeControl(), and unmaximize().

void WindowManager::maximize ( TopWindow rWindow  ) 

void WindowManager::unmaximize ( TopWindow rWindow  ) 

void WindowManager::raiseAll (  )  const

Raise all the registered windows.

Referenced by CmdRaiseAll::execute().

void WindowManager::showAll ( bool  firstTime = false  )  const

Show all the registered windows.

Referenced by ThemeLoader::load(), and Theme::loadConfig().

void WindowManager::hideAll (  )  const

Hide all the registered windows.

Referenced by CmdChangeSkin::execute().

void WindowManager::synchVisibility (  )  const

Synchronize the windows with their visibility variable.

void WindowManager::saveVisibility (  ) 

Save the current visibility of the windows.

Referenced by CmdChangeSkin::execute().

void WindowManager::restoreVisibility (  )  const

Restore the saved visibility of the windows.

References SkinObject::getIntf(), and msg_Warn.

Referenced by CmdChangeSkin::execute().

void WindowManager::raise ( TopWindow rWindow  )  const [inline]

Raise the given window.

Referenced by TopWindow::processEvent().

void WindowManager::show ( TopWindow rWindow  )  const [inline]

void WindowManager::hide ( TopWindow rWindow  )  const [inline]

Hide the given window.

References GenericWindow::hide().

Referenced by CmdHideWindow::execute().

void WindowManager::setOnTop ( bool  b_ontop  ) 

Set/unset all the windows on top.

References CountedPtr< T >::get(), and VarBoolImpl::set().

Referenced by CmdSetOnTop::execute(), and toggleOnTop().

void WindowManager::toggleOnTop (  ) 

Toggle all the windows on top.

References VarBoolImpl::get(), CountedPtr< T >::get(), and setOnTop().

Referenced by CmdOnTop::execute().

void WindowManager::setMagnetValue ( int  magnet  )  [inline]

Set the magnetism of screen edges.

void WindowManager::setAlphaValue ( int  alpha  )  [inline]

Set the alpha value of the static windows.

void WindowManager::setMoveAlphaValue ( int  moveAlpha  )  [inline]

Set the alpha value of the moving windows.

void WindowManager::createTooltip ( const GenericFont rTipFont  ) 

Create the tooltip window.

References SkinObject::getIntf(), and msg_Warn.

void WindowManager::showTooltip (  ) 

Show the tooltip window.

References Tooltip::show().

Referenced by TopWindow::onControlRelease(), and TopWindow::onTooltipChange().

void WindowManager::hideTooltip (  ) 

void WindowManager::addLayout ( TopWindow rWindow,
GenericLayout rLayout 
)

Add a layout of the given window.

This new layout will be the active one.

References TopWindow::setActiveLayout().

void WindowManager::setActiveLayout ( TopWindow rWindow,
GenericLayout rLayout 
)

Change the active layout of the given window.

References TopWindow::setActiveLayout(), and stopMove().

Referenced by CmdLayout::execute(), and Theme::loadConfig().

void WindowManager::setActivePopup ( Popup rPopup  )  [inline]

Mark the given popup as active.

Referenced by Popup::show().

Popup* WindowManager::getActivePopup (  )  const [inline]

Return the active popup, or NULL if none is active.

Referenced by TopWindow::processEvent().


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

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