|
Back to Table of contents |
General information |
type: class
inherits: GlowRadioGroupWidget
module: glowQuickPaletteGlowQuickRadioGroupWidget is a radio group widget that auto-packs and is intended for use with a QuickPalette. You never construct a GlowQuickRadioGroupWidget directly, but instead use the AddRadioGroup() method of GlowQuickPanelWidget, GlowQuickPaletteWindow or GlowQuickPaletteSubwindow.
GLOW programs that use the QuickPalette interface to generate radio groups will use this class.
Constants |
Arrangement constants
These constants specify whether to arrange the radio group horizontally or vertically.enum { vertical }
enum { horizontal }Inherited constants
These constants are inherited from GlowPanelWidget.enum GlowPanelWidget::Style transparentStyle
enum GlowPanelWidget::Style plainStyle
enum GlowPanelWidget::Style etchedStyle
enum GlowPanelWidget::Style raisedStyle
enum GlowPanelWidget::Style loweredStyleInherited constants
These constants are inherited from GlowWidget.enum GlowWidget::AutoPackError noAutoPackError
enum GlowWidget::AutoPackError hAutoPackError
enum GlowWidget::AutoPackError vAutoPackErrorenum GlowWidget::AutoPackOptions noReshape
enum GlowWidget::AutoPackOptions preferredSize
enum GlowWidget::AutoPackOptions expandPreferredSize
enum GlowWidget::AutoPackOptions forcedSize
enum GlowWidget::AutoPackOptions noMove
enum GlowWidget::AutoPackOptions leftPos
enum GlowWidget::AutoPackOptions rightPos
enum GlowWidget::AutoPackOptions topPos
enum GlowWidget::AutoPackOptions bottomPos
enum GlowWidget::AutoPackOptions centerPosenum { unspecifiedSize }
enum { unspecifiedPos }
Methods |
Adding radio buttons
GlowRadioButtonWidget* AddRadioButton(const char* label)
Adds a radio button to the radio group, and returns a pointer to the created radio button widget.Inherited methods
These methods are inherited from GlowRadioGroupWidget.GlowRadioButtonWidget* GetState(void) const
void SetState(GlowRadioButtonWidget* state)
TSender<const GlowRadioButtonMessage&>& Notifier(void)
Inherited methods
These methods are inherited from GlowPanelWidget.int GetStyle(void) const
void SetStyle(int style)
GlowColor GetBackColor(void) const
void SetBackColor(GlowColor c)
GlowColor GetLightBevelColor(void) const
void SetLightBevelColor(GlowColor c)
GlowColor GetDarkBevelColor(void) const
void SetDarkBevelColor(GlowColor c)
Inherited methods
These methods are inherited from GlowWidget.void Move(int x, int y)
int PositionX(void) const
int PositionY(void) const
int RootPositionX(void) const
int RootPositionY(void) const
int GlobalPositionX(void) const
int GlobalPositionY(void) const
void Reshape(int width, int height)
int Width(void) const
int Height(void) const
GlowWidget::AutoPackError AutoPack(int leftLimit, int rightLimit, int topLimit, int bottomLimit, GlowWidget::AutoPackOptions hOption, GlowWidget::AutoPackOptions vOption, int& leftMargin, int& rightMargin, int& topMargin, int& bottomMargin)
GlowWidget::AutoPackError AutoPack(int leftLimit, int rightLimit, int topLimit, int bottomLimit, GlowWidget::AutoPackOptions hOption, GlowWidget::AutoPackOptions vOption)GlowWidget::AutoPackError AutoReshape(int& leftMargin, int& rightMargin, int& topMargin, int& bottomMargin)
GlowWidget::AutoPackError AutoReshape()void Hide(void)
void Show(void)
bool IsVisible(void) const
bool IsInvisible(void) const
bool IsVisibleMasked(void) const
void Refresh(void)
void SetRefreshEnabled(bool enabled)
bool IsRefreshEnabled(void) const
void SetClipping(bool clip)
bool IsClipping(void)
void GrabKeyboardFocus(void)
Radio groups should not attempt to grab the keyboard focus unless a subclass makes use of keyboard events.void RelinquishKeyboardFocus(void)
bool HasKeyboardFocus(void)
GlowWidgetRoot* Root(void)
void SetRefCon(long refcon)
long GetRefCon(void)
Inherited methods
These methods are inherited from GlowComponent.void Close(void)
GlowComponent* Parent(void) const
GlowSubwindow* WhichWindow(void)
GlowSubwindow* ParentWindow(void) const
GlowWindow* ToplevelWindow(void)
bool IsToplevel(void) const
GlowComponent* Next(void) const
GlowComponent* Prev(void) const
int NumChildren(void) const
GlowComponent* FirstChild(void) const
GlowComponent* LastChild(void) const
void ReorderChild(GlowComponent* child, GlowComponent* pos)
void KillChildren(void)
void Activate(void)
void Deactivate(void)
bool IsActive(void)
bool IsInactive(void)
bool IsActiveStandby(void)
void Paint(void)
Protected methods for subclasses |
Inherited methods
These methods are inherited from GlowWidget.void NormalizeCoordinates(int x, int y, GLfloat& xn, GLfloat& yn) const
void RegisterMouseEvents(void)
void RegisterKeyboardEvents(void)
void UnegisterMouseEvents(void)
void UnregisterKeyboardEvents(void)
Overrideable methods |
Event handlers
These methods are called as soon as a widget-level event occurs. The default methods typically send the appropriate messages to the attached receivers.virtual void OnToggled(GlowRadioButtonWidget* button, Glow::Modifiers modifiers)
Called when a radio button has been selected. button points to the new button, and modifiers gives the keyboard modifiers that were down when the mouse button was pressed. The default method toggles the state and sends messages to the attached GlowRadioButtonReceivers.Inherited methods
These methods are inherited from GlowWidget.virtual void OnWidgetPaint(void)
GlowRadioGroupWidget overrides this method to draw the group box for the radio group. You should not override it again unless a subclass needs to modify how radio group boxes are drawn.virtual void OnWidgetMouseDown(Glow::MouseButton mouseButton, int x, int y, Glow::Modifiers modifiers)
GlowRadioGroupWidgets do not need to receive mouse events. Instead, the individual radio buttons will handle events. Override this method if your subclass needs to change this behavior.virtual void OnWidgetMouseUp(Glow::MouseButton mouseButton, int x, int y, Glow::Modifiers modifiers)
GlowRadioGroupWidgets do not need to receive mouse events. Instead, the individual radio buttons will handle events. Override this method if your subclass needs to change this behavior.virtual void OnWidgetMouseDrag(int x, int y)
GlowRadioGroupWidgets do not need to receive mouse events. Instead, the individual radio buttons will handle events. Override this method if your subclass needs to change this behavior.virtual void OnWidgetKeyboard(Glow::KeyCode key, int x, int y, Glow::Modifiers modifiers)
The standard GlowRadioGroupWidget does not handle keyboard events. Override this method if a subclass needs to receive keyboard events.virtual void OnWidgetMove(int x, int y)
virtual void OnWidgetReshape(int width, int height)
virtual void OnWidgetInvisible(void)
virtual void OnWidgetVisible(void)
virtual void OnWidgetDeactivate(void)
virtual void OnWidgetActivate(void)
virtual void OnGotKeyboardFocus(void)
virtual void OnLostKeyboardFocus(void)
virtual GlowWidget::AutoPackError OnAutoPack(int hSize, int vSize, GlowWidget::AutoPackOptions hOption, GlowWidget::AutoPackOptions vOption, int& leftMargin, int& rightMargin, int& topMargin, int& bottomMargin)
GlowQuickRadioGroup implements this method to pack radio buttons into a radio group. Override it if a subclass requires different packing.Inherited methods
These methods are inherited from GlowComponent, but are used by GlowWidget and should not be overridden again.virtual void OnActivate(void)
virtual void OnDeactivate(void)
virtual void OnBeginPaint(void)
virtual void OnEndPaint(void)
|
Back to Table of contents |
The GLOW Toolkit