Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages | Examples

fgl::FGBaseGui Class Reference

#include <fastgl.h>

Inheritance diagram for fgl::FGBaseGui:

Inheritance graph
[legend]
Collaboration diagram for fgl::FGBaseGui:

Collaboration graph
[legend]
List of all members.

Detailed Description

base objects for all graphics objects

This class is base parent of all graphics objects into OpenGUI library and encapsulates all basic methods. These methods are used in FGWindow, FGEditBox, FGRadioButton and other GUI classes. It implements a linked list of objects also. This is used to release memory when FGWindow is destroyed.


Public Member Functions

 FGBaseGui (int xs, int ys, int ws, int hs, const char *nm, ObjectType typ, FGPixel i, FGPixel p, long flag)
unsigned __fastcall GetInk (void) const
unsigned __fastcall GetPaper (void) const
bool IsVisible (void) const
void SetColors (void)
int GetX (void) const
int GetY (void) const
virtual void OnFocus (void)
virtual void OnLostFocus (void)
void * GetPrivateData (void) const
void SetPrivateData (void *val)
void * GetUserData (void) const
void SetUserData (void *val)

Protected Types

enum  bs {
  EBOX_LOW = 1, EBOX_UPR, BDOWN, BUP, WHIDE, WVISIBLE,
  WDEACTIVE, WACTIVE
}

Protected Member Functions

void __fastcall Resize (int dx, int dy)
void frame (void)
virtual void DrawAsSelected (void)

Protected Attributes

int x
int y
void * tab_page_controls
void * private_data
void * user_data
unsigned ink
unsigned paper
bool temporary_hidden


Member Function Documentation

void fgl::FGBaseGui::frame void   )  [protected]
 

Draws the frame of FGControl.

unsigned __fastcall fgl::FGBaseGui::GetInk void   )  const [inline]
 

Returns a foreground color of the object.

Reimplemented from fgl::FGDrawBuffer.

unsigned __fastcall fgl::FGBaseGui::GetPaper void   )  const [inline]
 

Retutns a background color of the object.

Reimplemented from fgl::FGDrawBuffer.

void* fgl::FGBaseGui::GetUserData void   )  const [inline]
 

Get user data pointer.

int fgl::FGBaseGui::GetX void   )  const [inline]
 

Returns the 'x' coordinates of the object.

int fgl::FGBaseGui::GetY void   )  const [inline]
 

Returns the 'y' coordinates of the object.

bool fgl::FGBaseGui::IsVisible void   )  const [inline]
 

Returns vivibility of the object.

virtual void fgl::FGBaseGui::OnFocus void   )  [inline, virtual]
 

Callback on focus get.

virtual void fgl::FGBaseGui::OnLostFocus void   )  [inline, virtual]
 

Callback on focus lost.

void fgl::FGBaseGui::SetColors void   )  [inline]
 

Set the object's color as default for drawing.

Examples:
bgroup.cpp.

void fgl::FGBaseGui::SetUserData void *  val  )  [inline]
 

Set user data pointer.


Generated on Wed Feb 9 11:31:39 2005 for OpenGUI by  doxygen 1.4.0