Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXRealSpinner Class Reference

Spinner control. More...

#include <FXRealSpinner.h>

Inheritance diagram for FX::FXRealSpinner:

FX::FXPacker FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Types

enum  {
  ID_INCREMENT = FXPacker::ID_LAST,
  ID_DECREMENT,
  ID_ENTRY,
  ID_LAST
}

Public Member Functions

 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)
virtual void layout ()
virtual void disable ()
virtual void enable ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
void increment (FXbool notify=FALSE)
void incrementByAmount (FXdouble amount, FXbool notify=FALSE)
void decrement (FXbool notify=FALSE)
void decrementByAmount (FXdouble amount, FXbool notify=FALSE)
FXbool isCyclic () const
void setCyclic (FXbool cyclic)
FXbool isTextVisible () const
void setTextVisible (FXbool shown)
virtual void setValue (FXdouble value, FXbool notify=FALSE)
FXdouble getValue () const
void setRange (FXdouble lo, FXdouble hi, FXbool notify=FALSE)
void getRange (FXdouble &lo, FXdouble &hi) const
void setIncrement (FXdouble increment)
FXdouble getIncrement () const
void setGranularity (FXdouble gr)
FXdouble getGranularity () const
void setFont (FXFont *fnt)
FXFontgetFont () const
void setHelpText (const FXString &text)
const FXStringgetHelpText () const
void setTipText (const FXString &text)
const FXStringgetTipText () const
void setSpinnerStyle (FXuint style)
FXuint getSpinnerStyle () const
void setEditable (FXbool edit=TRUE)
FXbool isEditable () const
void setUpArrowColor (FXColor clr)
FXColor getUpArrowColor () const
void setDownArrowColor (FXColor clr)
FXColor getDownArrowColor () const
void setTextColor (FXColor clr)
FXColor getTextColor () const
void setSelBackColor (FXColor clr)
FXColor getSelBackColor () const
void setSelTextColor (FXColor clr)
FXColor getSelTextColor () const
void setCursorColor (FXColor clr)
FXColor getCursorColor () const
void setNumColumns (FXint cols)
FXint getNumColumns () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXRealSpinner ()

Detailed Description

Spinner control.

See also:


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
ID_INCREMENT 
ID_DECREMENT 
ID_ENTRY 
ID_LAST 


Constructor & Destructor Documentation

FX::FXRealSpinner::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 FX::FXRealSpinner::~FXRealSpinner  )  [virtual]
 

Destructor.


Member Function Documentation

virtual void FX::FXRealSpinner::layout  )  [virtual]
 

Perform layout.

Reimplemented from FX::FXPacker.

virtual void FX::FXRealSpinner::disable  )  [virtual]
 

Disable spinner.

Reimplemented from FX::FXWindow.

virtual void FX::FXRealSpinner::enable  )  [virtual]
 

Enable spinner.

Reimplemented from FX::FXWindow.

virtual FXint FX::FXRealSpinner::getDefaultWidth  )  [virtual]
 

Return default width.

Reimplemented from FX::FXPacker.

virtual FXint FX::FXRealSpinner::getDefaultHeight  )  [virtual]
 

Return default height.

Reimplemented from FX::FXPacker.

void FX::FXRealSpinner::increment FXbool  notify = FALSE  ) 
 

Increment spinner.

void FX::FXRealSpinner::incrementByAmount FXdouble  amount,
FXbool  notify = FALSE
 

Increment spinner by certain amount.

void FX::FXRealSpinner::decrement FXbool  notify = FALSE  ) 
 

Decrement spinner.

void FX::FXRealSpinner::decrementByAmount FXdouble  amount,
FXbool  notify = FALSE
 

Decrement spinner by certain amount.

FXbool FX::FXRealSpinner::isCyclic  )  const
 

Return TRUE if in cyclic mode.

void FX::FXRealSpinner::setCyclic FXbool  cyclic  ) 
 

Set to cyclic mode, i.e. wrap around at maximum/minimum.

FXbool FX::FXRealSpinner::isTextVisible  )  const
 

Return TRUE if text is visible.

void FX::FXRealSpinner::setTextVisible FXbool  shown  ) 
 

Set text visible flag.

virtual void FX::FXRealSpinner::setValue FXdouble  value,
FXbool  notify = FALSE
[virtual]
 

Change current value.

FXdouble FX::FXRealSpinner::getValue  )  const [inline]
 

Return current value.

void FX::FXRealSpinner::setRange FXdouble  lo,
FXdouble  hi,
FXbool  notify = FALSE
 

Change the spinner's range.

void FX::FXRealSpinner::getRange FXdouble lo,
FXdouble hi
const [inline]
 

Get the spinner's current range.

void FX::FXRealSpinner::setIncrement FXdouble  increment  ) 
 

Change spinner increment.

FXdouble FX::FXRealSpinner::getIncrement  )  const [inline]
 

Return spinner increment.

void FX::FXRealSpinner::setGranularity FXdouble  gr  ) 
 

Change spinner granularity.

FXdouble FX::FXRealSpinner::getGranularity  )  const [inline]
 

Return spinner granularity.

void FX::FXRealSpinner::setFont FXFont fnt  ) 
 

Set the text font.

FXFont* FX::FXRealSpinner::getFont  )  const
 

Get the text font.

void FX::FXRealSpinner::setHelpText const FXString text  ) 
 

Set the status line help text for this spinner.

const FXString& FX::FXRealSpinner::getHelpText  )  const
 

Get the status line help text for this spinner.

void FX::FXRealSpinner::setTipText const FXString text  ) 
 

Set the tool tip message for this spinner.

const FXString& FX::FXRealSpinner::getTipText  )  const
 

Get the tool tip message for this spinner.

void FX::FXRealSpinner::setSpinnerStyle FXuint  style  ) 
 

Change spinner style.

FXuint FX::FXRealSpinner::getSpinnerStyle  )  const
 

Return current spinner style.

void FX::FXRealSpinner::setEditable FXbool  edit = TRUE  ) 
 

Allow editing of the text field.

FXbool FX::FXRealSpinner::isEditable  )  const
 

Return TRUE if text field is editable.

void FX::FXRealSpinner::setUpArrowColor FXColor  clr  ) 
 

Change color of the up arrow.

FXColor FX::FXRealSpinner::getUpArrowColor  )  const
 

Return color of the up arrow.

void FX::FXRealSpinner::setDownArrowColor FXColor  clr  ) 
 

Change color of the down arrow.

FXColor FX::FXRealSpinner::getDownArrowColor  )  const
 

Return color of the the down arrow.

void FX::FXRealSpinner::setTextColor FXColor  clr  ) 
 

Change text color.

FXColor FX::FXRealSpinner::getTextColor  )  const
 

Return text color.

void FX::FXRealSpinner::setSelBackColor FXColor  clr  ) 
 

Change selected background color.

FXColor FX::FXRealSpinner::getSelBackColor  )  const
 

Return selected background color.

void FX::FXRealSpinner::setSelTextColor FXColor  clr  ) 
 

Change selected text color.

FXColor FX::FXRealSpinner::getSelTextColor  )  const
 

Return selected text color.

void FX::FXRealSpinner::setCursorColor FXColor  clr  ) 
 

Changes the cursor color.

FXColor FX::FXRealSpinner::getCursorColor  )  const
 

Return the cursor color.

void FX::FXRealSpinner::setNumColumns FXint  cols  ) 
 

Change width of text field in terms of number of columns * `m'.

FXint FX::FXRealSpinner::getNumColumns  )  const
 

Return number of columns.

virtual void FX::FXRealSpinner::save FXStream store  )  const [virtual]
 

Save spinner to a stream.

Reimplemented from FX::FXPacker.

virtual void FX::FXRealSpinner::load FXStream store  )  [virtual]
 

Load spinner from a stream.

Reimplemented from FX::FXPacker.

Copyright © 1997-2005 Jeroen van der Zijp