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

FX::FXArrowButton Class Reference

Button with an arrow; the arrow can point in any direction. More...

#include <FXArrowButton.h>

Inheritance diagram for FX::FXArrowButton:

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

Public Member Functions

 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)
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
virtual void enable ()
virtual void disable ()
virtual bool canFocus () const
void setState (FXbool s)
FXbool getState () const
void setHelpText (const FXString &text)
const FXStringgetHelpText () const
void setTipText (const FXString &text)
const FXStringgetTipText () const
void setArrowStyle (FXuint style)
FXuint getArrowStyle () const
void setArrowSize (FXint size)
FXint getArrowSize () const
void setJustify (FXuint mode)
FXuint getJustify () const
FXColor getArrowColor () const
void setArrowColor (FXColor clr)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXArrowButton ()

Detailed Description

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.

See also:


Constructor & Destructor Documentation

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

Destructor.


Member Function Documentation

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

Get default width.

Reimplemented from FX::FXFrame.

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

Get default height.

Reimplemented from FX::FXFrame.

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

Enable the button.

Reimplemented from FX::FXWindow.

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

Disable the button.

Reimplemented from FX::FXWindow.

virtual bool FX::FXArrowButton::canFocus  )  const [virtual]
 

Returns true because a button can receive focus.

Reimplemented from FX::FXWindow.

void FX::FXArrowButton::setState FXbool  s  ) 
 

Set the button state (where TRUE means the button is down).

FXbool FX::FXArrowButton::getState  )  const [inline]
 

Get the button state (where TRUE means the button is down).

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

Set status line help text for this arrow button.

const FXString& FX::FXArrowButton::getHelpText  )  const [inline]
 

Get status line help text for this arrow button.

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

Set tool tip message for this arrow button.

const FXString& FX::FXArrowButton::getTipText  )  const [inline]
 

Get tool tip message for this arrow button.

void FX::FXArrowButton::setArrowStyle FXuint  style  ) 
 

Set the arrow style flags.

FXuint FX::FXArrowButton::getArrowStyle  )  const
 

Get the arrow style flags.

void FX::FXArrowButton::setArrowSize FXint  size  ) 
 

Set the default arrow size.

FXint FX::FXArrowButton::getArrowSize  )  const [inline]
 

Get the default arrow size.

void FX::FXArrowButton::setJustify FXuint  mode  ) 
 

Set the current justification mode.

FXuint FX::FXArrowButton::getJustify  )  const
 

Get the current justification mode.

FXColor FX::FXArrowButton::getArrowColor  )  const [inline]
 

Get the fill color for the arrow.

void FX::FXArrowButton::setArrowColor FXColor  clr  ) 
 

Set the fill color for the arrow.

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

Save label to a stream.

Reimplemented from FX::FXFrame.

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

Load label from a stream.

Reimplemented from FX::FXFrame.

Copyright © 1997-2005 Jeroen van der Zijp