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

FX::FXSlider Class Reference

The slider widget is a valuator widget which provides simple linear value range. More...

#include <FXSlider.h>

Inheritance diagram for FX::FXSlider:

FX::FXFrame FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Types

enum  {
  ID_AUTOSLIDE = FXFrame::ID_LAST,
  ID_LAST
}

Public Member Functions

 FXSlider (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=SLIDER_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=0, FXint pr=0, FXint pt=0, FXint pb=0)
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
virtual void layout ()
virtual void enable ()
virtual void disable ()
void setValue (FXint value)
FXint getValue () const
void setRange (FXint lo, FXint hi)
void getRange (FXint &lo, FXint &hi) const
FXuint getSliderStyle () const
void setSliderStyle (FXuint style)
FXint getHeadSize () const
void setHeadSize (FXint hs)
FXint getSlotSize () const
void setSlotSize (FXint bs)
FXint getIncrement () const
void setIncrement (FXint inc)
void setTickDelta (FXint dist)
FXint getTickDelta () const
void setSlotColor (FXColor clr)
FXColor getSlotColor () const
void setHelpText (const FXString &text)
FXString getHelpText () const
void setTipText (const FXString &text)
FXString getTipText () const
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXSlider ()

Detailed Description

The slider widget is a valuator widget which provides simple linear value range.

Two visual appearances are supported:- the sunken look, which is enabled with the SLIDER_INSIDE_BAR option and the regular look. The latter may have optional arrows on the slider thumb. While being moved, the slider sends a SEL_CHANGED message to its target; at the end of the interaction, a SEL_COMMAND message is sent. The message data represents the current slider value, of type FXint.

See also:


Constructor & Destructor Documentation

FX::FXSlider::FXSlider FXComposite p,
FXObject tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = SLIDER_NORMAL,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = 0,
FXint  pr = 0,
FXint  pt = 0,
FXint  pb = 0
 

Construct a slider widget.

virtual FX::FXSlider::~FXSlider  )  [virtual]
 

Destroy the slider.


Member Function Documentation

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

Return default width.

Reimplemented from FX::FXFrame.

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

Return default height.

Reimplemented from FX::FXFrame.

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

Perform layout.

Reimplemented from FX::FXWindow.

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

Enable the slider.

Reimplemented from FX::FXWindow.

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

Disable the slider.

Reimplemented from FX::FXWindow.

void FX::FXSlider::setValue FXint  value  ) 
 

Change slider value.

FXint FX::FXSlider::getValue  )  const [inline]
 

Return slider value.

void FX::FXSlider::setRange FXint  lo,
FXint  hi
 

Change the slider's range.

void FX::FXSlider::getRange FXint &  lo,
FXint &  hi
const [inline]
 

Get the slider's current range.

FXuint FX::FXSlider::getSliderStyle  )  const
 

Change the slider style.

void FX::FXSlider::setSliderStyle FXuint  style  ) 
 

Get the current slider style.

FXint FX::FXSlider::getHeadSize  )  const [inline]
 

Get the slider's head size.

void FX::FXSlider::setHeadSize FXint  hs  ) 
 

Change the slider's head size.

FXint FX::FXSlider::getSlotSize  )  const [inline]
 

Get the slider's current slot size.

void FX::FXSlider::setSlotSize FXint  bs  ) 
 

Change the slider's slot size.

FXint FX::FXSlider::getIncrement  )  const [inline]
 

Get the slider's auto-increment/decrement value.

void FX::FXSlider::setIncrement FXint  inc  ) 
 

Change the slider's auto-increment/decrement value.

void FX::FXSlider::setTickDelta FXint  dist  ) 
 

Change the delta between ticks.

FXint FX::FXSlider::getTickDelta  )  const [inline]
 

Get delta between ticks.

void FX::FXSlider::setSlotColor FXColor  clr  ) 
 

Change the color of the slot the slider head moves in.

FXColor FX::FXSlider::getSlotColor  )  const [inline]
 

Get the current slot color.

void FX::FXSlider::setHelpText const FXString text  )  [inline]
 

Set the help text to be displayed on the status line.

FXString FX::FXSlider::getHelpText  )  const [inline]
 

Get the current help text.

void FX::FXSlider::setTipText const FXString text  )  [inline]
 

Set the tip text to be displayed in the tooltip.

FXString FX::FXSlider::getTipText  )  const [inline]
 

Get the current tooltip text value.

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

Save to stream.

Reimplemented from FX::FXFrame.

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

Load from stream.

Reimplemented from FX::FXFrame.

Copyright © 1997-2004 Jeroen van der Zijp