|
vdk 2.4.0
|
Providesa radio button group. More...
#include <radiobtngroup.h>
Public Member Functions | |
| VDKRadioButtonGroup (VDKForm *owner, int mode=v_box) | |
| ~VDKRadioButtonGroup () | |
| void | SetDefault (int buttonNumber) |
| void | Add (VDKObject *obj, int j=l_justify, int e=false, int f=false, int p=false) |
| void | RemoveButton (VDKRadioButton *button) |
| VDKEventBox * | GBox () |
Public Member Functions inherited from VDKObjectContainer | |
| int | BorderWidth (int w=-1) |
| void | RemoveObject (VDKObject *obj) |
| virtual void | RemoveObjectFromContainer (VDKObject *obj) |
| void | RemoveObjects () |
| VDKObject * | FindTag (int tag) |
| void | ForEachDo (void(*action)(VDKObject *)) |
Public Member Functions inherited from VDKObject | |
| VDKRgb | GetBackground (GtkStateType state=GTK_STATE_NORMAL) |
| VDKRgb | GetForeground (GtkStateType state=GTK_STATE_NORMAL) |
| VDKObject (VDKForm *owner=NULL) | |
| VDKObject (VDKForm *owner, GtkWidget *widget) | |
| virtual | ~VDKObject () |
| bool | Destroy () |
| virtual int | isA () |
| VDKForm * | Owner () |
| virtual GtkWidget * | Widget () |
| GtkWidget * | ConnectingWidget () |
| GtkWidget * | WrappedWidget () |
| virtual void | SetFont (VDKFont *f) |
| VDKFont * | GetFont () |
| void | SetVisible (bool visible) |
| bool | GetVisible () |
| void | SetCursor (VDKCursorType) |
| VDKCursorType | GetCursor () |
| virtual void | SetForeground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
| virtual void | SetBackground (VDKRgb color, GtkStateType state=GTK_STATE_NORMAL) |
| void | SetSize (int w, int h) |
| void | SetUsize (VDKPoint s) |
| virtual void | SetTip (char *) |
| ItemList & | Items () |
| void | Draw (GdkRectangle *area=NULL) |
| virtual void | Setup () |
| void | SignalEmit (int signal) |
| void | SignalEmit (char *sig) |
| void | SignalEmitParent (int signal) |
| void | SignalEmitParent (char *sig) |
| void | GrabFocus () |
| VDKObject * | Parent (VDKObject *p=NULL) |
| int | SignalConnect (VDKObject *obj, char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
| int | SignalConnect (char *signal, bool(VDKObject::*method)(VDKObject *), bool gtk=true, bool after=false) |
| bool | SignalDisconnect (int connection) |
| int | EventConnect (VDKObject *obj, char *event, bool(VDKObject::*method)(VDKObject *, GdkEvent *), bool after=false) |
| int | EventConnect (char *, bool(VDKObject::*)(VDKObject *, GdkEvent *), bool after=false) |
| bool | EventDisconnect (int connection) |
Public Attributes | |
| VDKReadWriteValueProp < VDKRadioButtonGroup, int > | Selected |
| RadioButtonList | Buttons |
| VDKReadOnlyValueProp < VDKRadioButtonGroup, RadioButtonList * > | ButtonList |
Public Attributes inherited from VDKObject | |
| VDKReadWriteValueProp < VDKObject, VDKRgb > | NormalBackground |
| VDKReadWriteValueProp < VDKObject, VDKFont * > | Font |
| SizeObjectProp | Usize |
| VDKReadWriteValueProp < VDKObject, bool > | Enabled |
| VDKReadWriteValueProp < VDKObject, VDKCursorType > | Cursor |
| VDKReadWriteValueProp < VDKObject, bool > | Visible |
Additional Inherited Members | |
Protected Attributes inherited from VDKObject | |
| VDKObjectSignal | s_clicked |
| GtkWidget * | widget |
| GtkWidget * | sigwid |
| VDKObject * | parent |
Providesa radio button group.
| VDKRadioButtonGroup::VDKRadioButtonGroup | ( | VDKForm * | owner, |
| int | mode = v_box |
||
| ) |
Constructor
| owner | |
| mode | either v_box or h_box |
|
inline |
Destructor
|
virtual |
Add an object.
Reimplemented from VDKObjectContainer.
|
inline |
Return group box
| void VDKRadioButtonGroup::RemoveButton | ( | VDKRadioButton * | button | ) |
Remove a button from radio button group
| button | which button has to be removed |
| void VDKRadioButtonGroup::SetDefault | ( | int | buttonNumber | ) |
Sets the button that will be selected by default
| buttonNumber | ordinal number of selected button (0 <= buttonNumber < Buttons.size()) |
| VDKReadOnlyValueProp<VDKRadioButtonGroup, RadioButtonList*> VDKRadioButtonGroup::ButtonList |
same as Buttons
| RadioButtonList VDKRadioButtonGroup::Buttons |
Returns a list of radio buttons contained into group. You can acces them:
<read only>="">
| VDKReadWriteValueProp<VDKRadioButtonGroup,int> VDKRadioButtonGroup::Selected |
Use this property to know wich button was toggled after a toggle_signal. Or to force a selection. Selected propery contais the ordinal number of toggled button ( 0 <= x < n) Defaults to 0
1.8.6