![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Button with an arrow; the arrow can point in any direction. More...
#include <FXArrowButton.h>
Public Types | |
| enum | { ID_REPEAT = FXFrame::ID_LAST, ID_AUTO, ID_LAST } |
Public Member Functions | |
| long | onPaint (FXObject *, FXSelector, void *) |
| long | onUpdate (FXObject *, FXSelector, void *) |
| long | onEnter (FXObject *, FXSelector, void *) |
| long | onLeave (FXObject *, FXSelector, void *) |
| long | onLeftBtnPress (FXObject *, FXSelector, void *) |
| long | onLeftBtnRelease (FXObject *, FXSelector, void *) |
| long | onUngrabbed (FXObject *, FXSelector, void *) |
| long | onRepeat (FXObject *, FXSelector, void *) |
| long | onAuto (FXObject *, FXSelector, void *) |
| long | onKeyPress (FXObject *, FXSelector, void *) |
| long | onKeyRelease (FXObject *, FXSelector, void *) |
| long | onHotKeyPress (FXObject *, FXSelector, void *) |
| long | onHotKeyRelease (FXObject *, FXSelector, void *) |
| long | onCmdSetHelp (FXObject *, FXSelector, void *) |
| long | onCmdGetHelp (FXObject *, FXSelector, void *) |
| long | onCmdSetTip (FXObject *, FXSelector, void *) |
| long | onCmdGetTip (FXObject *, FXSelector, void *) |
| long | onQueryHelp (FXObject *, FXSelector, void *) |
| long | onQueryTip (FXObject *, FXSelector, void *) |
| FXArrowButton (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=ARROW_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 arrow button. | |
| virtual FXint | getDefaultWidth () |
| Get default width. | |
| virtual FXint | getDefaultHeight () |
| Get default height. | |
| virtual void | enable () |
| Enable the button. | |
| virtual void | disable () |
| Disable the button. | |
| virtual FXbool | canFocus () const |
| Returns true because a button can receive focus. | |
| void | setState (FXbool s) |
| Set the button state (where true means the button is down) | |
| FXbool | getState () const |
| Get the button state (where true means the button is down) | |
| void | setHelpText (const FXString &text) |
| Set status line help text for this arrow button. | |
| const FXString & | getHelpText () const |
| Get status line help text for this arrow button. | |
| void | setTipText (const FXString &text) |
| Set tool tip message for this arrow button. | |
| const FXString & | getTipText () const |
| Get tool tip message for this arrow button. | |
| void | setArrowStyle (FXuint style) |
| Set the arrow style flags. | |
| FXuint | getArrowStyle () const |
| Get the arrow style flags. | |
| void | setArrowSize (FXint size) |
| Set the default arrow size. | |
| FXint | getArrowSize () const |
| Get the default arrow size. | |
| void | setJustify (FXuint mode) |
| Set the current justification mode. | |
| FXuint | getJustify () const |
| Get the current justification mode. | |
| FXColor | getArrowColor () const |
| Get the fill color for the arrow. | |
| void | setArrowColor (FXColor clr) |
| Set the fill color for the arrow. | |
| virtual void | save (FXStream &store) const |
| Save label to a stream. | |
| virtual void | load (FXStream &store) |
| Load label from a stream. | |
| virtual | ~FXArrowButton () |
| Destructor. | |
Protected Attributes | |
| FXColor | arrowColor |
| FXint | arrowSize |
| FXString | tip |
| FXString | help |
| FXbool | state |
| FXbool | fired |
Button with an arrow; the arrow can point in any direction.
When clicked, the arrow button sends a SEL_COMMAND to its target. When ARROW_REPEAT is passed, the arrow button sends a SEL_COMMAND repeatedly while the button is pressed. The option ARROW_AUTO together with ARROW_REPEAT makes the arrow button work in repeat mode simply by hovering the cursor over it.
|
|