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

FXArrowButton Class Reference

#include <FXArrowButton.h>

Inheritance diagram for FXArrowButton:

FXFrame FXWindow FXDrawable FXId FXObject List of all members.

Public Types

enum  {
  ID_REPEAT = FXFrame::ID_LAST,
  ID_LAST
}

Public Methods

 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 FXint getDefaultWidth ()
 Get default width.

virtual FXint getDefaultHeight ()
 Get default height.

virtual void enable ()
 Enable the button.

virtual void disable ()
 Disable the button.

virtual FXbool canFocus () const
 Returns true because a button can receive focus.

void setState (FXbool s)
 Set the button state (where TRUE means the button is down).

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

void setHelpText (const FXString &text)
 Set status line help text for this arrow button.

void setTipText (const FXString &text)
 Set tool tip message for this arrow button.

void setArrowStyle (FXuint style)
 Set the arrow style flags.

FXuint getArrowStyle () const
 Get the arrow style flags.

void setArrowSize (FXint size)
 Set the default arrow size.

FXint getArrowSize () const
 Get the default arrow size.

void setJustify (FXuint mode)
 Set the current justification mode.

FXuint getJustify () const
 Get the current justification mode.

FXColor getArrowColor () const
 Get the fill color for the arrow.

void setArrowColor (FXColor clr)
 Set the fill color for the arrow.

virtual void save (FXStream &store) const
 Save label to a stream.

virtual void load (FXStream &store)
 Load label from a stream.

virtual ~FXArrowButton ()
 Destructor.


Public Attributes

FXString getHelpText () const
 Get status line help text for this arrow button.

FXString getTipText () const
 Get tool tip message for this arrow button.


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.