Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

OglGui::TextEdit Class Reference

#include <TextEdit.h>

Inheritance diagram for OglGui::TextEdit:

Inheritance graph
[legend]
Collaboration diagram for OglGui::TextEdit:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TextEdit (int x, int y, int w, int h, strconst text, int sB=3)
 TextEdit (Window *parent, int w, int h, strconst text, int sB=3)
 TextEdit (Window *parent, int x, int y, int w, int h, strconst text, int sB=3)
void EmptyChangeInfoDeque (std::deque< ChangeInfo * > &deQue)
void UndoAction ()
void RedoAction ()
void UndoableInsertKey (int c)
void UndoableInsertString (string str)
void UndoableDeleteKey (int dir)
bool ReadFile (strconst fileName)
void PublishChange ()
void SetTextEditListener (TextEditListener *listener, void *userData=0)
void SetText (strconst txt)
string GetText ()
ScrollBarHorizontalScrollBar ()
ScrollBarVerticalScrollBar ()
void Editable (bool mode)
bool Editable ()
void SingleLine (bool mode)
bool SingleLine ()
void ClipBackground (bool mode)
bool ClipBackground ()
void CaretColor (ULONG col)
ULONG CaretColor ()
void TextShadowed (bool mode)
bool TextShadowed ()
void TextShadowColor (ULONG shadCol)
ULONG TextShadowColor ()
void LineHeight (int h)
int LineHeight ()
int Length ()
string GetSelection ()
void SetCaretMark (int caret, int mark)
void Caret (int ind)
void Mark (int ind)
int Caret ()
int Mark ()
int CaretX ()
int CaretY ()
void RecomputeDocument ()
int ComputeDocHeight ()
int ComputeMaxWidth ()
void ComputeCaretPosition ()
void ClampDocX ()
void ClampDocY ()
void GetSelectionLeftRight (int &left, int &right)
int FindIndexAtWidth (string *str, int w)
int FindInsertionIndexAtWidth (string *str, int w)
int FindWidthAtIndex (string *str, int ind)
int FindLineAtY (int wndY, int &lineY)
int FindFirstVisibleLine (int &lineY)
int GetLineAtIndex (string *str, int ind)
void InvertBlock (int x1, int y1, int x2, int y2)
void HandleInvertLineSelection (string *str, int ind, int indEnd, int y)
void PrintBuf (int x, int y, const char *buf)
void DrawTabbedLine (int x, int y, const char *buf)
void DrawText ()
void MoveToCaret ()
void HandleMoveKey (int c, int state)
void DoDeleteSelection ()
void InsertKey (int c)
void InsertString (string str)
void DeleteSelection ()
void BackSpace ()
void DeleteKey ()
void Paste ()
void Copy ()
void Cut ()
void StartScrollClipping ()
void EndScrollClipping ()
virtual void OnScroll (ScrollBar *src, int position, void *userData)
void HandleScrollBarsOnDisplay ()
virtual void InitFunc ()
virtual void ExitFunc ()
virtual void InitDisplayFunc ()
virtual void DisplayFunc ()
virtual void MouseFunc (int msg, int btn, int state, int x, int y)
 This function is called by the event handling system everytime the user has moved or clicked the mouse.
virtual void KeyboardFunc (int c, int state)
virtual void ReshapeFunc (int w, int h)

Protected Member Functions

void Init (strconst text, int w, int h, int sB)

Protected Attributes

std::deque< ChangeInfo * > undoDeque
std::deque< ChangeInfo * > redoDeque
WindowScrollBarmHorizontalScrollBar
WindowScrollBarmVerticalScrollBar
bool mClipBackground
string mText
int mLineH
bool mInitialized
bool mEditable
bool mSingleLine
int mMark
int mCaret
int mCaretX
int mCaretY
ULONG mCaretColor
int mLeftMargin
int mOldH
int mUpDownPos
bool mTextShadowed
ULONG mShadowColor
int mPropagateScrollingY
int mPropagateScrollingX
int mLastMouseX
int mLastMouseY
TextEditListenermListener
void * mListenerData

Private Types

typedef std::string string

Classes

class  ChangeInfo

Detailed Description

Definition at line 25 of file TextEdit.h.


The documentation for this class was generated from the following file:
Generated on Fri Mar 19 12:07:48 2010 for ImpalaSrc by  doxygen 1.5.1