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

FX::FXArrowButton Class Reference

#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

Get default width.

Reimplemented from FX::FXFrame.

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.

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.

Set the arrow style flags.

Get the arrow style flags.

Set the default arrow size.

Get the default arrow size.

Set the current justification mode.

Get the current justification mode.

Get the fill color for the arrow.

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