HPGCC3 Documentation 3.0 R003

gEditBox Class Reference

#include <gui.h>

Inheritance diagram for gEditBox:
gControl

Public Member Functions

virtual BOOL AcceptFocus ()
virtual void Update (gUpdate *u)
virtual BOOL DefaultEvent (gEvent *)
void RedrawFrame ()
void DrawVScrollBar ()
void InvalidateVScrollBar ()
void DrawLine (int LineOffset, int x, int y)
void ScrollDown1Line (int ytop)
void ScrollUp1Line (int ybot)
void ScrollRight (int shift)
void ScrollLeft (int shift)
void DrawAllLines ()
void ClrEOL (int x, int y)
void CursorOff ()
void CursorOn ()
void HideCursor ()
void UnhideCursor ()
void StartCursorBlink ()
void StopCursorBlink ()
void CursorUp ()
void CursorDown ()
void CursorRight ()
void CursorLeft ()
void ViewUp ()
void ViewDown ()
void ViewRight ()
void ViewLeft ()
void ViewPageUp ()
void ViewPageDown ()
void ViewHome ()
void ViewEnd ()
void ViewEndOfText ()
void ViewStartOfText ()
void PageUp ()
void PageDown ()
void Home ()
void End ()
void MoveCursor (int Offset)
void EndOfText ()
void StartOfText ()
void InsertChar (int character)
void DelChar (int backspace)
void RemoveText (int StartPos, int EndPos)
void InsertText (int StartPos, int Length, gString &s)
void InsertText (int StartPos, int Length, char *string)
void BeginSelection ()
void EndSelection ()
void Copy ()
void Cut ()
void Paste ()
void BackSpace ()
void Delete ()
void SetEditLimits (int StartPos, int EndPos)
void ClearEditLimits ()
void GetEditLimits (int *StartPos, int *EndPos)
BOOL IsReadOnly ()
void SetReadOnly (BOOL rdonly)
void SetOverwriteMode (BOOL ovrwrite)
void SetText (const char *text)
int GetText (char *data, int maxbytes)
int GetText (char *data, int maxbytes, int StartPos, int EndPos)
void LimitTextSize (int limit, int trimwhere)
int Strlen ()
 gEditBox (gControl &Parent, int x, int y, int width, int height, gStyles Style, gFont *f)
virtual ~gEditBox ()

Data Fields

gString Text
int CursorPos
int CursorLine
int SelStart
int SelEnd
gFont Font
int Color
int BkColor
int SelColor
int DispLines
int TotalLines
int ViewLine
int EditMin
int EditMax
unsigned int State
int Cursorx
int Cursory
int Targetx
gglsurface cursorbk
tmr_t lastblink
int InputMode
int StyleFlags

Private Member Functions

virtual void vTable ()

Detailed Description

Definition at line 781 of file gui.h.


Constructor & Destructor Documentation

gEditBox::gEditBox ( gControl Parent,
int  x,
int  y,
int  width,
int  height,
gStyles  Style,
gFont f 
)
virtual gEditBox::~gEditBox ( ) [virtual]

Member Function Documentation

virtual BOOL gEditBox::AcceptFocus ( ) [inline, virtual]

Reimplemented from gControl.

Definition at line 801 of file gui.h.

References TRUE.

void gEditBox::BackSpace ( )
void gEditBox::BeginSelection ( )
void gEditBox::ClearEditLimits ( )
void gEditBox::ClrEOL ( int  x,
int  y 
)
void gEditBox::Copy ( )
void gEditBox::CursorDown ( )
void gEditBox::CursorLeft ( )
void gEditBox::CursorOff ( )
void gEditBox::CursorOn ( )
void gEditBox::CursorRight ( )
void gEditBox::CursorUp ( )
void gEditBox::Cut ( )
virtual BOOL gEditBox::DefaultEvent ( gEvent ) [virtual]

Reimplemented from gControl.

void gEditBox::DelChar ( int  backspace)
void gEditBox::Delete ( )
void gEditBox::DrawAllLines ( )
void gEditBox::DrawLine ( int  LineOffset,
int  x,
int  y 
)
void gEditBox::DrawVScrollBar ( ) [virtual]

Reimplemented from gControl.

void gEditBox::End ( )
void gEditBox::EndOfText ( )
void gEditBox::EndSelection ( )
void gEditBox::GetEditLimits ( int *  StartPos,
int *  EndPos 
)
int gEditBox::GetText ( char *  data,
int  maxbytes 
)
int gEditBox::GetText ( char *  data,
int  maxbytes,
int  StartPos,
int  EndPos 
)
void gEditBox::HideCursor ( )
void gEditBox::Home ( )
void gEditBox::InsertChar ( int  character)
void gEditBox::InsertText ( int  StartPos,
int  Length,
gString s 
)
void gEditBox::InsertText ( int  StartPos,
int  Length,
char *  string 
)
void gEditBox::InvalidateVScrollBar ( )
BOOL gEditBox::IsReadOnly ( )
void gEditBox::LimitTextSize ( int  limit,
int  trimwhere 
)
void gEditBox::MoveCursor ( int  Offset)
void gEditBox::PageDown ( )
void gEditBox::PageUp ( )
void gEditBox::Paste ( )
void gEditBox::RedrawFrame ( )
void gEditBox::RemoveText ( int  StartPos,
int  EndPos 
)
void gEditBox::ScrollDown1Line ( int  ytop)
void gEditBox::ScrollLeft ( int  shift)
void gEditBox::ScrollRight ( int  shift)
void gEditBox::ScrollUp1Line ( int  ybot)
void gEditBox::SetEditLimits ( int  StartPos,
int  EndPos 
)
void gEditBox::SetOverwriteMode ( BOOL  ovrwrite)
void gEditBox::SetReadOnly ( BOOL  rdonly)
void gEditBox::SetText ( const char *  text)
void gEditBox::StartCursorBlink ( )
void gEditBox::StartOfText ( )
void gEditBox::StopCursorBlink ( )
int gEditBox::Strlen ( ) [inline]

Definition at line 874 of file gui.h.

References gString::Strlen(), and Text.

void gEditBox::UnhideCursor ( )
virtual void gEditBox::Update ( gUpdate u) [virtual]

Reimplemented from gControl.

void gEditBox::ViewDown ( )
void gEditBox::ViewEnd ( )
void gEditBox::ViewEndOfText ( )
void gEditBox::ViewHome ( )
void gEditBox::ViewLeft ( )
void gEditBox::ViewPageDown ( )
void gEditBox::ViewPageUp ( )
void gEditBox::ViewRight ( )
void gEditBox::ViewStartOfText ( )
void gEditBox::ViewUp ( )
virtual void gEditBox::vTable ( ) [private, virtual]

Reimplemented from gControl.


Field Documentation

Definition at line 789 of file gui.h.

Definition at line 789 of file gui.h.

Definition at line 796 of file gui.h.

Definition at line 786 of file gui.h.

Definition at line 786 of file gui.h.

Definition at line 795 of file gui.h.

Definition at line 795 of file gui.h.

Definition at line 790 of file gui.h.

Definition at line 793 of file gui.h.

Definition at line 793 of file gui.h.

Definition at line 788 of file gui.h.

Definition at line 798 of file gui.h.

Definition at line 797 of file gui.h.

Definition at line 789 of file gui.h.

Definition at line 787 of file gui.h.

Definition at line 787 of file gui.h.

unsigned int gEditBox::State

Definition at line 794 of file gui.h.

Definition at line 799 of file gui.h.

Definition at line 795 of file gui.h.

Definition at line 785 of file gui.h.

Referenced by Strlen().

Definition at line 791 of file gui.h.

Definition at line 792 of file gui.h.


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