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

FX::FXRuler Class Reference

#include <FXRuler.h>

Inheritance diagram for FX::FXRuler:

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

Public Methods

 FXRuler (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=RULER_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 label with given text and icon.

virtual void create ()
 Create server-side resources.

virtual void detach ()
 Detach server-side resources.

virtual FXint getDefaultWidth ()
 Return default width.

virtual FXint getDefaultHeight ()
 Return default height.

void setFont (FXFont *fnt)
 Set the text font.

FXFontgetFont () const
 Get the text font.

void setValue (FXint value)
 Change slider value.

FXint getValue () const
 Return slider value.

void setRulerStyle (FXuint style)
 Set ruler style.

FXuint getRulerStyle () const
 Get ruler style.

FXColor getTextColor () const
 Get the current text color.

void setTextColor (FXColor clr)
 Set the current text color.

void setHelpText (const FXString &text)
 Set the status line help text for this label.

const FXStringgetHelpText () const
 Get the status line help text for this label.

void setTipText (const FXString &text)
 Set the tool tip message for this label.

const FXStringgetTipText () const
 Get the tool tip message for this label.

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

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

virtual ~FXRuler ()
 Destructor.


Detailed Description

The Ruler widget is placed alongside a document to measure position and size of entities within the document.

See also: