Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

GRadioGroup Class Reference

#include <GRadioGroup.h>

Inheritance diagram for GRadioGroup:

GView GTarget GEvent GFlags List of all members.

Public Member Functions

int Value ()
 Returns the index of the set radio button.
void Value (int i)
 Sets the 'ith' radio button to on.
GRadioButtonAppend (int x, int y, char *name)
 Adds a radio button to the group.
int OnNotify (GView *Ctrl, int Flags)
 Called when a child view or view with it's SetNotify() set to this window changes.
void OnPaint (GSurface *pDC)
 Called to paint the onscreen representation of the view.
int OnEvent (GMessage *m)
 Called to process every message received by this window.
char * Name ()
 Returns the utf-8 text associated with this view.
char16NameW ()
 Returns the wide char text associated with this view.
bool Name (char *n)
 Sets the utf-8 text associated with this view.
bool NameW (char16 *n)
 Sets the wide char text associated with this view.
void SetFont (GFont *Fnt, bool OwnIt=false)
 Sets the font for this control.

Detailed Description

A grouping control. All radio buttons that are children of this control will automatically have only one option selected. Other controls can be children as well but are ignored in the calculation of the groups value. The value of the group is the index into a list of radio buttons of the radio button that is on.


Member Function Documentation

bool GRadioGroup::Name char *  n  ) 
 

Sets the utf-8 text associated with this view.

Name and NameW are interchangable. Using them in any order will convert the text between utf-8 and wide to satify any requirement. Generally once the opposing version of the string is required both the utf-8 and wide copies of the string remain cached in RAM until the Name is changed.

Reimplemented from GView.

char16* GRadioGroup::NameW  )  [inline, virtual]
 

Returns the wide char text associated with this view.

On Win32 the wide characters are 16 bits, on unix systems they are 32-bit characters.

Reimplemented from GView.

int GRadioGroup::OnNotify GView Ctrl,
int  Flags
[virtual]
 

Called when a child view or view with it's SetNotify() set to this window changes.

The event by default will bubble up to the GWindow at the top of the window heirarchy visiting each GView on the way. If it reaches a GView that processes it then the event stops propergating up the heirarchy.

Reimplemented from GView.

void GRadioGroup::SetFont GFont Fnt,
bool  OwnIt = false
[virtual]
 

Sets the font for this control.

The lifetime of the font passed in is the responsibility of the caller. The GView object assumes the pointer will be valid at all times.

Reimplemented from GView.


The documentation for this class was generated from the following files:
Generated on Wed Oct 26 14:47:01 2005 for Lgi by  doxygen 1.4.1