![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Real Spinner control. More...
#include <FXRealSpinner.h>
Public Types | |
| enum | { ID_INCREMENT = FXPacker::ID_LAST, ID_DECREMENT, ID_ENTRY, ID_LAST } |
Public Member Functions | |
| long | onUpdIncrement (FXObject *, FXSelector, void *) |
| long | onCmdIncrement (FXObject *, FXSelector, void *) |
| long | onUpdDecrement (FXObject *, FXSelector, void *) |
| long | onCmdDecrement (FXObject *, FXSelector, void *) |
| long | onUpdEntry (FXObject *, FXSelector, void *) |
| long | onChgEntry (FXObject *, FXSelector, void *) |
| long | onCmdEntry (FXObject *, FXSelector, void *) |
| long | onWheelEntry (FXObject *, FXSelector, void *) |
| long | onKeyPress (FXObject *, FXSelector, void *) |
| long | onKeyRelease (FXObject *, FXSelector, void *) |
| long | onCmdSetValue (FXObject *, FXSelector, void *) |
| long | onCmdSetIntValue (FXObject *, FXSelector, void *) |
| long | onCmdGetIntValue (FXObject *, FXSelector, void *) |
| long | onCmdSetLongValue (FXObject *, FXSelector, void *) |
| long | onCmdGetLongValue (FXObject *, FXSelector, void *) |
| long | onCmdSetIntRange (FXObject *, FXSelector, void *) |
| long | onCmdGetIntRange (FXObject *, FXSelector, void *) |
| long | onCmdSetRealValue (FXObject *, FXSelector, void *) |
| long | onCmdGetRealValue (FXObject *, FXSelector, void *) |
| long | onCmdSetRealRange (FXObject *, FXSelector, void *) |
| long | onCmdGetRealRange (FXObject *, FXSelector, void *) |
| long | onFocusSelf (FXObject *, FXSelector, void *) |
| FXRealSpinner (FXComposite *p, FXint cols, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=REALSPIN_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 a spinner. | |
| virtual void | layout () |
| Perform layout. | |
| virtual void | disable () |
| Disable spinner. | |
| virtual void | enable () |
| Enable spinner. | |
| virtual FXint | getDefaultWidth () |
| Return default width. | |
| virtual FXint | getDefaultHeight () |
| Return default height. | |
| void | increment (FXbool notify=false) |
| Increment spinner. | |
| void | incrementByAmount (FXdouble amount, FXbool notify=false) |
| Increment spinner by certain amount. | |
| void | decrement (FXbool notify=false) |
| Decrement spinner. | |
| void | decrementByAmount (FXdouble amount, FXbool notify=false) |
| Decrement spinner by certain amount. | |
| FXbool | isCyclic () const |
| Return true if in cyclic mode. | |
| void | setCyclic (FXbool cyclic) |
| Set to cyclic mode, i.e. wrap around at maximum/minimum. | |
| FXbool | isTextVisible () const |
| Return true if text is visible. | |
| void | setTextVisible (FXbool flag) |
| Set text visible flag. | |
| virtual void | setValue (FXdouble value, FXbool notify=false) |
| Change current value. | |
| FXdouble | getValue () const |
| Return current value. | |
| void | setRange (FXdouble lo, FXdouble hi, FXbool notify=false) |
| Change the spinner's range. | |
| void | getRange (FXdouble &lo, FXdouble &hi) const |
| Get the spinner's current range. | |
| void | setIncrement (FXdouble increment) |
| Change spinner increment. | |
| FXdouble | getIncrement () const |
| Return spinner increment. | |
| void | setGranularity (FXdouble gr) |
| Change spinner granularity. | |
| FXdouble | getGranularity () const |
| Return spinner granularity. | |
| void | setFont (FXFont *fnt) |
| Set the text font. | |
| FXFont * | getFont () const |
| Get the text font. | |
| void | setHelpText (const FXString &text) |
| Set the status line help text for this spinner. | |
| const FXString & | getHelpText () const |
| Get the status line help text for this spinner. | |
| void | setTipText (const FXString &text) |
| Set the tool tip message for this spinner. | |
| const FXString & | getTipText () const |
| Get the tool tip message for this spinner. | |
| void | setSpinnerStyle (FXuint style) |
| Change spinner style. | |
| FXuint | getSpinnerStyle () const |
| Return current spinner style. | |
| void | setEditable (FXbool edit=true) |
| Allow editing of the text field. | |
| FXbool | isEditable () const |
| Return true if text field is editable. | |
| void | setUpArrowColor (FXColor clr) |
| Change color of the up arrow. | |
| FXColor | getUpArrowColor () const |
| Return color of the up arrow. | |
| void | setDownArrowColor (FXColor clr) |
| Change color of the down arrow. | |
| FXColor | getDownArrowColor () const |
| Return color of the the down arrow. | |
| void | setTextColor (FXColor clr) |
| Change text color. | |
| FXColor | getTextColor () const |
| Return text color. | |
| void | setSelBackColor (FXColor clr) |
| Change selected background color. | |
| FXColor | getSelBackColor () const |
| Return selected background color. | |
| void | setSelTextColor (FXColor clr) |
| Change selected text color. | |
| FXColor | getSelTextColor () const |
| Return selected text color. | |
| void | setCursorColor (FXColor clr) |
| Changes the cursor color. | |
| FXColor | getCursorColor () const |
| Return the cursor color. | |
| void | setNumColumns (FXint cols) |
| Change width of text field in terms of number of columns * `m'. | |
| FXint | getNumColumns () const |
| Return number of columns. | |
| virtual void | save (FXStream &store) const |
| Save spinner to a stream. | |
| virtual void | load (FXStream &store) |
| Load spinner from a stream. | |
| virtual | ~FXRealSpinner () |
| Destructor. | |
Protected Attributes | |
| FXTextField * | textField |
| FXArrowButton * | upButton |
| FXArrowButton * | downButton |
| FXdouble | range [2] |
| FXdouble | incr |
| FXdouble | gran |
| FXdouble | pos |
Real Spinner control.
|
|