Colobot
Loading...
Searching...
No Matches
Ui::CScroll Class Reference
Inheritance diagram for Ui::CScroll:

Public Member Functions

bool Create (Math::Point pos, Math::Point dim, int icon, EventType eventMsg) override
void SetPos (Math::Point pos) override
void SetDim (Math::Point dim) override
bool SetState (int state, bool bState) override
bool SetState (int state) override
bool ClearState (int state) override
bool EventProcess (const Event &event) override
void Draw () override
void SetVisibleValue (float value)
float GetVisibleValue ()
void SetVisibleRatio (float value)
float GetVisibleRatio ()
void SetArrowStep (float step)
float GetArrowStep ()
Public Member Functions inherited from Ui::CControl
virtual Math::Point GetPos ()
virtual Math::Point GetDim ()
virtual bool TestState (int state)
virtual int GetState ()
virtual void SetIcon (int icon)
virtual int GetIcon ()
virtual void SetName (std::string name, bool bTooltip=true)
virtual std::string GetName ()
virtual void SetTextAlign (Gfx::TextAlign mode)
virtual int GetTextAlign ()
virtual void SetFontSize (float size)
virtual float GetFontSize ()
virtual void SetFontStretch (float stretch)
virtual float GetFontStretch ()
virtual void SetFontType (Gfx::FontType font)
virtual Gfx::FontType GetFontType ()
virtual bool SetTooltip (std::string name)
virtual bool GetTooltip (Math::Point pos, std::string &name)
virtual void SetFocus (CControl *focusControl)
virtual bool GetFocus ()
virtual EventType GetEventType ()

Protected Member Functions

void MoveAdjust ()
void AdjustGlint ()
void DrawVertex (Math::Point pos, Math::Point dim, int icon)
Protected Member Functions inherited from Ui::CControl
void GlintDelete ()
void GlintCreate (Math::Point ref, bool bLeft=true, bool bUp=true)
void GlintFrame (const Event &event)
void DrawPart (int icon, float zoom, float ex)
void DrawIcon (Math::Point pos, Math::Point dim, Math::Point uv1, Math::Point uv2, float ex=0.0f)
void DrawIcon (Math::Point pos, Math::Point dim, Math::Point uv1, Math::Point uv2, Math::Point corner, float ex)
void DrawWarning (Math::Point pos, Math::Point dim)
void DrawShadow (Math::Point pos, Math::Point dim, float deep=1.0f)
virtual bool Detect (Math::Point pos)
std::string GetResourceName (EventType eventType)
int SetButtonTextureForIcon (int icon)
 Set texture in m_engine to correct buttonX.png for given icon.

Protected Attributes

std::unique_ptr< CButtonm_buttonUp
std::unique_ptr< CButtonm_buttonDown
float m_visibleValue
float m_visibleRatio
float m_step
bool m_bCapture
Math::Point m_pressPos
float m_pressValue
Protected Attributes inherited from Ui::CControl
Gfx::CEnginem_engine
Gfx::CParticlem_particle
CEventQueuem_event
CRobotMainm_main
CSoundInterfacem_sound
CSettingsm_settings
Math::Point m_pos
Math::Point m_dim
int m_icon
EventType m_eventType
int m_state
float m_fontSize
float m_fontStretch
Gfx::FontType m_fontType
Gfx::TextAlign m_textAlign
std::string m_name
std::string m_tooltip
bool m_bFocus
bool m_bCapture
bool m_bGlint
Math::Point m_glintCorner1
Math::Point m_glintCorner2
float m_glintProgress
Math::Point m_glintMouse

Member Function Documentation

◆ Create()

bool Ui::CScroll::Create ( Math::Point pos,
Math::Point dim,
int icon,
EventType eventMsg )
overridevirtual

Reimplemented from Ui::CControl.

◆ SetPos()

void Ui::CScroll::SetPos ( Math::Point pos)
overridevirtual

Reimplemented from Ui::CControl.

◆ SetDim()

void Ui::CScroll::SetDim ( Math::Point dim)
overridevirtual

Reimplemented from Ui::CControl.

◆ SetState() [1/2]

bool Ui::CScroll::SetState ( int state,
bool bState )
overridevirtual

Reimplemented from Ui::CControl.

◆ SetState() [2/2]

bool Ui::CScroll::SetState ( int state)
overridevirtual

Reimplemented from Ui::CControl.

◆ ClearState()

bool Ui::CScroll::ClearState ( int state)
overridevirtual

Reimplemented from Ui::CControl.

◆ EventProcess()

bool Ui::CScroll::EventProcess ( const Event & event)
overridevirtual

Reimplemented from Ui::CControl.

◆ Draw()

void Ui::CScroll::Draw ( )
overridevirtual

Reimplemented from Ui::CControl.


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