YCLIMP
Yandex Command Line Interface Music Player
Loading...
Searching...
No Matches
SWHolder Class Reference

The SWHolder class does not own SubWindows It's only responsible for Positions, Size, Resize events and what SubWindow to display. More...

#include <SWHolder.hpp>

Public Member Functions

 SWHolder (SWHolderType holderType, Recti bounds, PositionType posType)
void HoldSubWindow (SubWindow::Ptr subWindow)
void HandleResizeEvent (Recti newRect)
void UpdateRectSize (Recti newRect)
void SetNewPosNBounds (PositionType posType, Recti bounds)
void EnableAndSelect ()
void DisableAndDeselect ()
void Select ()
void Deselect ()
void SelectSubWindow (ESWTypes swType)
bool IsSelected () const
bool IsVisible () const
PositionType GetPosType () const
const RectiGetBounds () const

Detailed Description

The SWHolder class does not own SubWindows It's only responsible for Positions, Size, Resize events and what SubWindow to display.

Warning
Despite the fact, that SWHolder is responsible for Size/Resize/Pos, it's not responsible for drawing anything at all.
BoundingRectangles usually drawn by SubWindows.
Once again, this class has no Draw method and simply unable to display stuff.
  • Has bindings/hotkeys
  • Created right from the start
  • Some of SWHolders will be hidden if not needed
  • Selectable, if selected, local bindings will be active

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