Colobot
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Ui::CList Class Reference
Inheritance diagram for Ui::CList:
Inheritance graph
[legend]

Public Member Functions

bool Create (Math::Point pos, Math::Point dim, int icon, EventType eventMsg, float expand)
void SetPos (Math::Point pos)
void SetDim (Math::Point dim)
bool SetState (int state, bool bState)
bool SetState (int state)
bool ClearState (int state)
bool EventProcess (const Event &event)
void Draw ()
void Flush ()
void SetTotal (int i)
int GetTotal ()
void SetSelect (int i)
int GetSelect ()
void SetSelectCap (bool bEnable)
bool GetSelectCap ()
void SetBlink (bool bEnable)
bool GetBlink ()
void SetItemName (int i, const char *name)
char * GetItemName (int i)
void SetCheck (int i, bool bMode)
bool GetCheck (int i)
void SetEnable (int i, bool bEnable)
bool GetEnable (int i)
void SetTabs (int i, float pos, Gfx::TextAlign justif=Gfx::TEXT_ALIGN_LEFT)
float GetTabs (int i)
void ShowSelect (bool bFixed)
EventType GetEventMsgButton (int i)
EventType GetEventMsgScroll ()
- Public Member Functions inherited from Ui::CControl
virtual bool Create (Math::Point pos, Math::Point dim, int icon, EventType eventType)
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 (bool bFocus)
virtual bool GetFocus ()
virtual EventType GetEventType ()

Protected Member Functions

bool MoveAdjust ()
void UpdateButton ()
void UpdateScroll ()
void MoveScroll ()
void DrawCase (char *text, Math::Point pos, float width, Gfx::TextAlign justif)
- 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)

Protected Attributes

CButtonm_button [LISTMAXDISPLAY]
CScrollm_scroll
EventType m_eventButton [LISTMAXDISPLAY]
EventType m_eventScroll
float m_expand
int m_totalLine
int m_displayLine
int m_selectLine
int m_firstLine
bool m_bBlink
bool m_bSelectCap
float m_blinkTime
float m_tabs [10]
Gfx::TextAlign m_justifs [10]
char m_text [LISTMAXTOTAL][100]
char m_check [LISTMAXTOTAL]
char m_enable [LISTMAXTOTAL]
- Protected Attributes inherited from Ui::CControl
Gfx::CEnginem_engine
Gfx::CParticlem_particle
CEventQueuem_event
CRobotMainm_main
CSoundInterfacem_sound
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

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