#include <GRadioGroup.h>
Public Member Functions | |
const char * | GetClass () |
int64 | Value () |
Returns the index of the set radio button. | |
void | Value (int64 i) |
Sets the 'ith' radio button to on. | |
GRadioButton * | Append (int x, int y, char *name) |
Adds a radio button to the group. | |
int | OnNotify (GViewI *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. | |
void | OnAttach () |
Called after the view is attached to a new parent. | |
int | OnEvent (GMessage *m) |
Called to process every message received by this window. | |
char * | Name () |
Returns the utf-8 text associated with this view. | |
char16 * | NameW () |
Returns the wide char text associated with this view. | |
bool | Name (const char *n) |
Sets the utf-8 text associated with this view. | |
bool | NameW (const char16 *n) |
Sets the wide char text associated with this view. | |
void | SetFont (GFont *Fnt, bool OwnIt=false) |
Sets the font for this control. |
const char* GRadioGroup::GetClass | ( | ) | [inline] |
The class' name. Should be overriden in child classes to return the right class name. Mostly used for debugging, but in the win32 port it is also the default WIN32 class name passed to RegisterClass() in GView::CreateClass().
Reimplemented from GView.
int GRadioGroup::OnNotify | ( | GViewI * | Ctrl, | |
int | Flags | |||
) |
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.
References GView::GetNotify(), and GView::GetParent().
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.
References GView::NameW().
bool GRadioGroup::Name | ( | const 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.
References GView::GetFont(), and GView::Name().
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.
References GView::GetFont(), GView::Invalidate(), and GView::SetFont().