HPGCC3 Documentation 3.0 R003

gControl Class Reference

#include <gui.h>

Inheritance diagram for gControl:
gApplication gCheckBox gEditBox gForm gListBox gSoftMenu gStaticText gStaticTextWrap

Public Member Functions

virtual void Update (gUpdate *)
virtual BOOL AcceptFocus ()
virtual BOOL DefaultEvent (gEvent *)
virtual BOOL DoEvent (gEvent *)
virtual BOOL DoEventExclusive (gEvent *)
void AddChild (gControl &)
void RemoveChild (gControl &)
void AddHandler (unsigned int Type, unsigned int Mask, unsigned int Arg, gEvHandler Function)
void RemoveHandler (unsigned int Type, unsigned int Mask=0, unsigned int Arg=0)
gEvHandler GetHandler (unsigned int Type, unsigned int Mask=0, unsigned int Arg=0)
void InsufMemoryError ()
gApplicationGetApplication ()
virtual void DrawVScrollBar ()
virtual void DrawHScrollBar ()
virtual void SetViewPos (int x, int y)
virtual void SetViewX (int x)
virtual void SetViewY (int y)
virtual void EnsureVisible (int x1, int y1, int x2, int y2)
virtual void SetVisible (BOOL visible)
virtual BOOL IsVisible ()
virtual BOOL Resize (int width, int height)
virtual void Move (int x, int y)
virtual void ParentToClient (int &x, int &y)
virtual void ClientToParent (int &x, int &y)
virtual void ClipToView (gUpdate *u)
virtual void Invalidate (gUpdate *u, gControl *Sender=NULL)
virtual void Invalidate (gControl *Sender=NULL)
virtual void RedrawBackground (gUpdate *)
virtual void HLine (int y, int x1, int x2, int pattern)
virtual void VLine (int x, int y1, int y2, int pattern)
virtual void Line (int x, int y, int x2, int y2, int pattern)
virtual void Rect (int x1, int y1, int x2, int y2, int pattern)
virtual void RectP (int x1, int y1, int x2, int y2, int *Pattern)
virtual void Plot (int x1, int y1, int color)
virtual int GetPixel (int x1, int y1)
virtual void DrawText (int x, int y, char *Text, gFont *Font, int color)
virtual void DrawTextBk (int x, int y, char *Text, gFont *Font, int color, int BkColor)
virtual void DrawIcon (int x, int y, unsigned int *IconData, int width, int height)
virtual void DrawIconPartial (int x, int y, unsigned int *IconData, int iconwidth, int iconx, int icony, int width, int height)
virtual void SetClipRegion (int x1, int y1, int x2, int y2)
virtual void ClearClipRegion ()
 gControl ()
 gControl (gControl &_Parent)
virtual ~gControl ()

Static Public Member Functions

static unsigned int SolidColor (int c)

Data Fields

gglsurface drawsurf
int posx
int posy
int sizex
int sizey
int clipx
int clipy
int clipx2
int clipy2
int ncx
int ncy
int ncwidth
int ncheight
int viewx
int viewy
int vieww
int viewh
BOOL scrollh
BOOL scrollv
gEvHandlerRedrawBk
unsigned int * CtlData
gControlFirstChild
gControlLastChild
gControlNext
gControlPrev
gControlParent
gControlUpdateFirst
gEvHandlerListEvents

Private Member Functions

virtual void vTable ()

Detailed Description

Definition at line 463 of file gui.h.


Constructor & Destructor Documentation

gControl::gControl ( )
gControl::gControl ( gControl _Parent)
virtual gControl::~gControl ( ) [virtual]

Member Function Documentation

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

Reimplemented in gCheckBox, gEditBox, and gListBox.

Definition at line 486 of file gui.h.

References FALSE.

void gControl::AddChild ( gControl )
void gControl::AddHandler ( unsigned int  Type,
unsigned int  Mask,
unsigned int  Arg,
gEvHandler  Function 
)
virtual void gControl::ClearClipRegion ( ) [virtual]
virtual void gControl::ClientToParent ( int &  x,
int &  y 
) [virtual]
virtual void gControl::ClipToView ( gUpdate u) [virtual]
virtual BOOL gControl::DefaultEvent ( gEvent ) [virtual]

Reimplemented in gForm, gSoftMenu, gCheckBox, gEditBox, and gListBox.

virtual BOOL gControl::DoEvent ( gEvent ) [virtual]

Reimplemented in gForm.

virtual BOOL gControl::DoEventExclusive ( gEvent ) [virtual]
virtual void gControl::DrawHScrollBar ( ) [virtual]

Reimplemented in gListBox.

virtual void gControl::DrawIcon ( int  x,
int  y,
unsigned int *  IconData,
int  width,
int  height 
) [virtual]
virtual void gControl::DrawIconPartial ( int  x,
int  y,
unsigned int *  IconData,
int  iconwidth,
int  iconx,
int  icony,
int  width,
int  height 
) [virtual]
virtual void gControl::DrawText ( int  x,
int  y,
char *  Text,
gFont Font,
int  color 
) [virtual]
virtual void gControl::DrawTextBk ( int  x,
int  y,
char *  Text,
gFont Font,
int  color,
int  BkColor 
) [virtual]
virtual void gControl::DrawVScrollBar ( ) [virtual]

Reimplemented in gEditBox, and gListBox.

virtual void gControl::EnsureVisible ( int  x1,
int  y1,
int  x2,
int  y2 
) [inline, virtual]

Definition at line 513 of file gui.h.

gApplication* gControl::GetApplication ( )
gEvHandler gControl::GetHandler ( unsigned int  Type,
unsigned int  Mask = 0,
unsigned int  Arg = 0 
)
virtual int gControl::GetPixel ( int  x1,
int  y1 
) [virtual]
virtual void gControl::HLine ( int  y,
int  x1,
int  x2,
int  pattern 
) [virtual]
void gControl::InsufMemoryError ( )
virtual void gControl::Invalidate ( gUpdate u,
gControl Sender = NULL 
) [virtual]

Reimplemented in gApplication.

virtual void gControl::Invalidate ( gControl Sender = NULL) [virtual]

Reimplemented in gApplication, and gSoftMenu.

virtual BOOL gControl::IsVisible ( ) [inline, virtual]

Reimplemented in gSoftMenu.

Definition at line 520 of file gui.h.

References TRUE.

virtual void gControl::Line ( int  x,
int  y,
int  x2,
int  y2,
int  pattern 
) [virtual]
virtual void gControl::Move ( int  x,
int  y 
) [virtual]
virtual void gControl::ParentToClient ( int &  x,
int &  y 
) [virtual]
virtual void gControl::Plot ( int  x1,
int  y1,
int  color 
) [virtual]
virtual void gControl::Rect ( int  x1,
int  y1,
int  x2,
int  y2,
int  pattern 
) [virtual]
virtual void gControl::RectP ( int  x1,
int  y1,
int  x2,
int  y2,
int *  Pattern 
) [virtual]
virtual void gControl::RedrawBackground ( gUpdate ) [virtual]

Reimplemented in gForm.

void gControl::RemoveChild ( gControl )
void gControl::RemoveHandler ( unsigned int  Type,
unsigned int  Mask = 0,
unsigned int  Arg = 0 
)
virtual BOOL gControl::Resize ( int  width,
int  height 
) [virtual]
virtual void gControl::SetClipRegion ( int  x1,
int  y1,
int  x2,
int  y2 
) [virtual]
virtual void gControl::SetViewPos ( int  x,
int  y 
) [inline, virtual]

Definition at line 510 of file gui.h.

virtual void gControl::SetViewX ( int  x) [virtual]
virtual void gControl::SetViewY ( int  y) [virtual]
virtual void gControl::SetVisible ( BOOL  visible) [inline, virtual]

Reimplemented in gSoftMenu.

Definition at line 519 of file gui.h.

static unsigned int gControl::SolidColor ( int  c) [inline, static]

Definition at line 529 of file gui.h.

References ggl_mkcolor().

virtual void gControl::Update ( gUpdate ) [virtual]
virtual void gControl::VLine ( int  x,
int  y1,
int  y2,
int  pattern 
) [virtual]
virtual void gControl::vTable ( ) [private, virtual]

Field Documentation

Definition at line 471 of file gui.h.

Definition at line 471 of file gui.h.

Definition at line 471 of file gui.h.

Definition at line 471 of file gui.h.

unsigned int* gControl::CtlData

Definition at line 478 of file gui.h.

Definition at line 468 of file gui.h.

Definition at line 482 of file gui.h.

Definition at line 479 of file gui.h.

Definition at line 479 of file gui.h.

Definition at line 472 of file gui.h.

Definition at line 472 of file gui.h.

Definition at line 472 of file gui.h.

Definition at line 472 of file gui.h.

Definition at line 480 of file gui.h.

Definition at line 481 of file gui.h.

Definition at line 469 of file gui.h.

Definition at line 469 of file gui.h.

Definition at line 480 of file gui.h.

Definition at line 477 of file gui.h.

Definition at line 475 of file gui.h.

Definition at line 475 of file gui.h.

Definition at line 470 of file gui.h.

Definition at line 470 of file gui.h.

Definition at line 481 of file gui.h.

Definition at line 474 of file gui.h.

Definition at line 474 of file gui.h.

Definition at line 473 of file gui.h.

Definition at line 473 of file gui.h.


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