YCLIMP
Yandex Command Line Interface Music Player
Loading...
Searching...
No Matches
SubWindow Class Referenceabstract

The SubWindow class. More...

#include <SubWindow.hpp>

Inheritance diagram for SubWindow:
Collaboration diagram for SubWindow:

Public Types

using Ptr = std::shared_ptr<SubWindow>

Public Member Functions

 SubWindow (ESWTypes swType, const Recti &rect, Context text, SWHolderType inHolderType=SWHolderType::None)
virtual void EventLoopIterationStart ()
virtual void HandleUserEvent (Event event, bool rawInputMode)
virtual void HandleSWEvents (std::vector< SWEvent > &swEvents)=0
virtual void Update ()=0
virtual void Draw () const =0
virtual void HandleResizeEvent (const Recti &newRect)
virtual void Reload ()
virtual bool HasSelection () const
virtual void Select ()
virtual void Deselect ()
virtual bool IsVisible () const
virtual void SetVisible (bool visibleValue)
virtual void SetHighDrawPriority (bool priority)
 if true, drawn last
virtual bool GetDrawPriority () const
 only boolean, if true, drawn last
SWHolderType GetHolderType () const
const std::string & GetName () const
ESWTypes GetSWType () const
const RectiGetBounds () const

Static Public Member Functions

static const std::string & ConvertToSWName (ESWTypes swType)
 Convert ESWTypes to it's std::string representation.

Protected Member Functions

Context GetContext ()
void DrawBoundsRectangle (const std::string &rectName="") const

Protected Attributes

HotKeyComponent mHotKeyComponent

Detailed Description

The SubWindow class.

SWHolder holds SubWindows and responsible for size and pos, unable to draw
SWManager manages all the SubWindows

  • Has bindings/hotkeys
  • Selectable, if selected, local bindings will be active
  • Can be visible/invisible, simply not drawn if invisible
  • Usually created right from the start of the programm
  • Has boolean DrawPriority, if true, wll be drawn last
  • Has Context

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