![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXRadioButton.h>
Public Member Functions | |
FXRadioButton (FXComposite *p, const FXString &text, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=RADIOBUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD) | |
virtual bool | canFocus () const |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
void | setCheck (FXbool s=TRUE, FXbool notify=FALSE) |
FXbool | getCheck () const |
void | setRadioButtonStyle (FXuint style) |
FXuint | getRadioButtonStyle () const |
FXColor | getRadioColor () const |
void | setRadioColor (FXColor clr) |
FXColor | getDiskColor () const |
void | setDiskColor (FXColor clr) |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
![]() | |
FXLabel (FXComposite *p, const FXString &text, FXIcon *ic=0, FXuint opts=LABEL_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD) | |
virtual void | create () |
virtual void | detach () |
virtual void | enable () |
virtual void | disable () |
void | setText (const FXString &text) |
FXString | getText () const |
void | setIcon (FXIcon *ic) |
FXIcon * | getIcon () const |
void | setFont (FXFont *fnt) |
FXFont * | getFont () const |
FXColor | getTextColor () const |
void | setTextColor (FXColor clr) |
void | setJustify (FXuint mode) |
FXuint | getJustify () const |
void | setIconPosition (FXuint mode) |
FXuint | getIconPosition () const |
void | setHelpText (const FXString &text) |
const FXString & | getHelpText () const |
void | setTipText (const FXString &text) |
const FXString & | getTipText () const |
virtual | ~FXLabel () |
![]() | |
FXFrame (FXComposite *p, FXuint opts=FRAME_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD) | |
void | setFrameStyle (FXuint style) |
FXuint | getFrameStyle () const |
FXint | getBorderWidth () const |
void | setPadTop (FXint pt) |
FXint | getPadTop () const |
void | setPadBottom (FXint pb) |
FXint | getPadBottom () const |
void | setPadLeft (FXint pl) |
FXint | getPadLeft () const |
void | setPadRight (FXint pr) |
FXint | getPadRight () const |
void | setHiliteColor (FXColor clr) |
FXColor | getHiliteColor () const |
void | setShadowColor (FXColor clr) |
FXColor | getShadowColor () const |
void | setBorderColor (FXColor clr) |
FXColor | getBorderColor () const |
void | setBaseColor (FXColor clr) |
FXColor | getBaseColor () const |
![]() | |
FXWindow (FXComposite *p, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
FXWindow * | getParent () const |
FXWindow * | getOwner () const |
FXWindow * | getShell () const |
FXWindow * | getRoot () const |
FXWindow * | getNext () const |
FXWindow * | getPrev () const |
FXWindow * | getFirst () const |
FXWindow * | getLast () const |
FXWindow * | getFocus () const |
void | setKey (FXuint k) |
FXuint | getKey () const |
void | setTarget (FXObject *t) |
FXObject * | getTarget () const |
void | setSelector (FXSelector sel) |
FXSelector | getSelector () const |
FXint | getX () const |
FXint | getY () const |
virtual FXint | getWidthForHeight (FXint givenheight) |
virtual FXint | getHeightForWidth (FXint givenwidth) |
void | setX (FXint x) |
void | setY (FXint y) |
void | setWidth (FXint w) |
void | setHeight (FXint h) |
void | setLayoutHints (FXuint lout) |
FXuint | getLayoutHints () const |
FXAccelTable * | getAccelTable () const |
void | setAccelTable (FXAccelTable *acceltable) |
void | addHotKey (FXHotKey code) |
void | remHotKey (FXHotKey code) |
void | setHelpTag (const FXString &text) |
const FXString & | getHelpTag () const |
bool | isShell () const |
bool | isOwnerOf (const FXWindow *window) const |
bool | isChildOf (const FXWindow *window) const |
bool | containsChild (const FXWindow *child) const |
FXWindow * | getChildAt (FXint x, FXint y) const |
FXint | numChildren () const |
FXint | indexOfChild (const FXWindow *window) const |
FXWindow * | childAtIndex (FXint index) const |
FXComposeContext * | getComposeContext () const |
void | createComposeContext () |
void | destroyComposeContext () |
void | setDefaultCursor (FXCursor *cur) |
FXCursor * | getDefaultCursor () const |
void | setDragCursor (FXCursor *cur) |
FXCursor * | getDragCursor () const |
FXint | getCursorPosition (FXint &x, FXint &y, FXuint &buttons) const |
FXint | setCursorPosition (FXint x, FXint y) |
bool | isEnabled () const |
bool | isActive () const |
bool | hasFocus () const |
bool | inFocusChain () const |
virtual void | setFocus () |
virtual void | killFocus () |
virtual void | changeFocus (FXWindow *child) |
virtual void | setDefault (FXbool enable=TRUE) |
bool | isDefault () const |
void | setInitial (bool enable=true) |
bool | isInitial () const |
virtual void | attach (FXID w) |
virtual void | destroy () |
virtual void | setShape (const FXRegion ®ion) |
virtual void | setShape (FXBitmap *bitmap) |
virtual void | setShape (FXIcon *icon) |
virtual void | clearShape () |
virtual void | raise () |
virtual void | lower () |
virtual void | move (FXint x, FXint y) |
virtual void | resize (FXint w, FXint h) |
virtual void | position (FXint x, FXint y, FXint w, FXint h) |
virtual void | recalc () |
virtual void | layout () |
void | forceRefresh () |
virtual void | reparent (FXWindow *father, FXWindow *other=NULL) |
void | scroll (FXint x, FXint y, FXint w, FXint h, FXint dx, FXint dy) const |
void | update (FXint x, FXint y, FXint w, FXint h) const |
void | update () const |
void | repaint (FXint x, FXint y, FXint w, FXint h) const |
void | repaint () const |
void | grab () |
void | ungrab () |
bool | grabbed () const |
void | grabKeyboard () |
void | ungrabKeyboard () |
bool | grabbedKeyboard () const |
virtual void | show () |
virtual void | hide () |
bool | shown () const |
virtual bool | isComposite () const |
bool | underCursor () const |
bool | hasSelection () const |
bool | acquireSelection (const FXDragType *types, FXuint numtypes) |
bool | releaseSelection () |
bool | hasClipboard () const |
bool | acquireClipboard (const FXDragType *types, FXuint numtypes) |
bool | releaseClipboard () |
virtual void | dropEnable () |
virtual void | dropDisable () |
bool | isDropEnabled () const |
bool | isDragging () const |
bool | beginDrag (const FXDragType *types, FXuint numtypes) |
bool | handleDrag (FXint x, FXint y, FXDragAction action=DRAG_COPY) |
FXDragAction | endDrag (bool drop=true) |
bool | isDropTarget () const |
void | setDragRectangle (FXint x, FXint y, FXint w, FXint h, bool wantupdates=true) const |
void | clearDragRectangle () const |
void | acceptDrop (FXDragAction action=DRAG_ACCEPT) const |
FXDragAction | didAccept () const |
void | dropFinished (FXDragAction action=DRAG_REJECT) const |
bool | inquireDNDTypes (FXDNDOrigin origin, FXDragType *&types, FXuint &numtypes) const |
bool | offeredDNDType (FXDNDOrigin origin, FXDragType type) const |
FXDragAction | inquireDNDAction () const |
bool | setDNDData (FXDNDOrigin origin, FXDragType type, FXuchar *data, FXuint size) const |
bool | setDNDData (FXDNDOrigin origin, FXDragType type, const FXString &string) const |
bool | getDNDData (FXDNDOrigin origin, FXDragType type, FXuchar *&data, FXuint &size) const |
bool | getDNDData (FXDNDOrigin origin, FXDragType type, FXString &string) const |
virtual bool | contains (FXint parentx, FXint parenty) const |
void | translateCoordinatesFrom (FXint &tox, FXint &toy, const FXWindow *fromwindow, FXint fromx, FXint fromy) const |
void | translateCoordinatesTo (FXint &tox, FXint &toy, const FXWindow *towindow, FXint fromx, FXint fromy) const |
virtual void | setBackColor (FXColor clr) |
FXColor | getBackColor () const |
virtual bool | doesSaveUnder () const |
virtual const FXchar * | tr (const FXchar *message, const FXchar *hint=NULL) const |
virtual | ~FXWindow () |
![]() | |
FXint | getWidth () const |
FXint | getHeight () const |
FXVisual * | getVisual () const |
void | setVisual (FXVisual *vis) |
virtual | ~FXDrawable () |
![]() | |
FXApp * | getApp () const |
FXID | id () const |
void | setUserData (void *ptr) |
void * | getUserData () const |
virtual | ~FXId () |
![]() | |
virtual long | onDefault (FXObject *, FXSelector, void *) |
const FXchar * | getClassName () const |
bool | isMemberOf (const FXMetaClass *metaclass) const |
virtual long | tryHandle (FXObject *sender, FXSelector sel, void *ptr) |
virtual | ~FXObject () |
A radio button is a tri-state button.
Normally, it is either TRUE or FALSE; a third state MAYBE may be set to indicate that no selection has been made yet by the user, or that the state is ambiguous. When pressed, the radio button sets its state to TRUE and sends a SEL_COMMAND to its target, and the message data set to the state of the radio button, of the type FXbool. A group of radio buttons can be made mutually exclusive by linking them to a common data target. Alternatively, an application can implement a common SEL_UPDATED handler to check and uncheck radio buttons as appropriate.
See also:
FX::FXRadioButton::FXRadioButton | ( | FXComposite * | p, |
const FXString & | text, | ||
FXObject * | tgt = NULL , |
||
FXSelector | sel = 0 , |
||
FXuint | opts = RADIOBUTTON_NORMAL , |
||
FXint | x = 0 , |
||
FXint | y = 0 , |
||
FXint | w = 0 , |
||
FXint | h = 0 , |
||
FXint | pl = DEFAULT_PAD , |
||
FXint | pr = DEFAULT_PAD , |
||
FXint | pt = DEFAULT_PAD , |
||
FXint | pb = DEFAULT_PAD |
||
) |
Construct new radio button.
|
virtual |
Returns true because a radio button can receive focus.
Reimplemented from FX::FXWindow.
|
virtual |
Get default width.
Reimplemented from FX::FXLabel.
|
virtual |
Get default height.
Reimplemented from FX::FXLabel.
Set radio button state (TRUE, FALSE or MAYBE)
|
inline |
Get radio button state (TRUE, FALSE or MAYBE)
void FX::FXRadioButton::setRadioButtonStyle | ( | FXuint | style | ) |
Change radio button style.
FXuint FX::FXRadioButton::getRadioButtonStyle | ( | ) | const |
Return current radio button style.
|
inline |
Get the radio ball color.
void FX::FXRadioButton::setRadioColor | ( | FXColor | clr | ) |
Set the radio ball color.
|
inline |
Get the radio disk color.
void FX::FXRadioButton::setDiskColor | ( | FXColor | clr | ) |
Set the radio disk color.
|
virtual |
Save radio button to a stream.
Reimplemented from FX::FXLabel.
|
virtual |
Load radio button from a stream.
Reimplemented from FX::FXLabel.
![]() |