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::CEdit Class Reference
Inheritance diagram for Ui::CEdit:
Inheritance graph
[legend]

Public Member Functions

 CEdit ()
 Object's constructor.
bool Create (Math::Point pos, Math::Point dim, int icon, EventType eventType)
void SetPos (Math::Point pos)
void SetDim (Math::Point dim)
bool EventProcess (const Event &event)
void Draw ()
void SetText (const char *text, bool bNew=true)
void GetText (char *buffer, int max)
char * GetText ()
int GetTextLength ()
bool ReadText (std::string filename, int addSize=0)
bool WriteText (std::string filename)
void SetMaxChar (int max)
int GetMaxChar ()
void SetEditCap (bool bMode)
bool GetEditCap ()
void SetHighlightCap (bool bEnable)
bool GetHighlightCap ()
void SetInsideScroll (bool bInside)
bool GetInsideScroll ()
void SetSoluceMode (bool bSoluce)
bool GetSoluceMode ()
void SetGenericMode (bool bGeneric)
bool GetGenericMode ()
void SetAutoIndent (bool bMode)
bool GetAutoIndent ()
void SetCursor (int cursor1, int cursor2)
void GetCursor (int &cursor1, int &cursor2)
void SetFirstLine (int rank)
int GetFirstLine ()
void ShowSelect ()
void SetDisplaySpec (bool bDisplay)
bool GetDisplaySpec ()
void SetMultiFont (bool bMulti)
bool GetMultiFont ()
bool Cut ()
bool Copy (bool memorize_cursor=false)
bool Paste ()
bool Undo ()
void HyperFlush ()
void HyperHome (std::string filename)
bool HyperTest (EventType event)
bool HyperGo (EventType event)
void SetFontSize (float size)
bool ClearFormat ()
bool SetFormat (int cursor1, int cursor2, int format)
- Public Member Functions inherited from Ui::CControl
virtual Math::Point GetPos ()
virtual Math::Point GetDim ()
virtual bool SetState (int state, bool bState)
virtual bool SetState (int state)
virtual bool ClearState (int state)
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 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

void SendModifEvent ()
bool IsLinkPos (Math::Point pos)
void MouseDoubleClick (Math::Point mouse)
void MouseClick (Math::Point mouse)
void MouseMove (Math::Point mouse)
void MouseRelease (Math::Point mouse)
int MouseDetect (Math::Point mouse)
void MoveAdjust ()
void HyperJump (std::string name, std::string marker)
bool HyperAdd (std::string filename, int firstLine)
void DrawImage (Math::Point pos, std::string name, float width, float offset, float height, int nbLine)
void DrawBack (Math::Point pos, Math::Point dim)
void DrawPart (Math::Point pos, Math::Point dim, int icon)
void FreeImage ()
void LoadImage (std::string name)
void Scroll (int pos, bool bAdjustCursor)
void Scroll ()
void MoveChar (int move, bool bWord, bool bSelect)
void MoveLine (int move, bool bWord, bool bSelect)
void MoveHome (bool bWord, bool bSelect)
void MoveEnd (bool bWord, bool bSelect)
void ColumnFix ()
void Insert (char character)
void InsertOne (char character)
void Delete (int dir)
void DeleteOne (int dir)
int IndentCompute ()
int IndentTabCount ()
void IndentTabAdjust (int number)
bool Shift (bool bLeft)
bool MinMaj (bool bMaj)
void Justif ()
int GetCursorLine (int cursor)
void UndoFlush ()
void UndoMemorize (OperUndo oper)
bool UndoRecall ()
void UpdateScroll ()
- 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

CScrollm_scroll
int m_maxChar
char * m_text
std::vector< Gfx::FontMetaCharm_format
int m_len
int m_cursor1
int m_cursor2
bool m_bMulti
bool m_bEdit
bool m_bHilite
bool m_bInsideScroll
bool m_bDisplaySpec
bool m_bMultiFont
bool m_bSoluce
bool m_bGeneric
bool m_bAutoIndent
float m_lineHeight
float m_lineAscent
float m_lineDescent
int m_lineVisible
int m_lineFirst
int m_lineTotal
int m_lineOffset [EDITLINEMAX]
char m_lineIndent [EDITLINEMAX]
int m_imageTotal
ImageLine m_image [EDITIMAGEMAX]
HyperLink m_link [EDITLINKMAX]
int m_markerTotal
HyperMarker m_marker [EDITLINKMAX]
int m_historyTotal
int m_historyCurrent
HyperHistory m_history [EDITHISTORYMAX]
float m_time
float m_timeBlink
float m_timeLastClick
float m_timeLastScroll
Math::Point m_mouseFirstPos
Math::Point m_mouseLastPos
float m_column
bool m_bCapture
bool m_bUndoForce
OperUndo m_undoOper
EditUndo m_undo [EDITUNDOMAX]
- 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: