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

FX::FXRuler Class Reference

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

#include <FXRuler.h>

Inheritance diagram for FX::FXRuler:

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

Public Member Functions

 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)
virtual void create ()
virtual void detach ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
void setFont (FXFont *fnt)
FXFont * getFont () const
void setValue (FXint value)
FXint getValue () const
void setRulerStyle (FXuint style)
FXuint getRulerStyle () const
FXColor getTextColor () const
void setTextColor (FXColor clr)
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 ~FXRuler ()

Detailed Description

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

See also:


Constructor & Destructor Documentation

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

Destructor.


Member Function Documentation

virtual void FX::FXRuler::create (   )  [virtual]
 

Create server-side resources.

Reimplemented from FX::FXWindow.

virtual void FX::FXRuler::detach (   )  [virtual]
 

Detach server-side resources.

Reimplemented from FX::FXWindow.

virtual FXint FX::FXRuler::getDefaultWidth (   )  [virtual]
 

Return default width.

Reimplemented from FX::FXFrame.

virtual FXint FX::FXRuler::getDefaultHeight (   )  [virtual]
 

Return default height.

Reimplemented from FX::FXFrame.

void FX::FXRuler::setFont (  FXFont *  fnt  ) 
 

Set the text font.

FXFont* FX::FXRuler::getFont (   )  const [inline]
 

Get the text font.

void FX::FXRuler::setValue (  FXint  value  ) 
 

Change slider value.

FXint FX::FXRuler::getValue (   )  const [inline]
 

Return slider value.

void FX::FXRuler::setRulerStyle (  FXuint  style  ) 
 

Set ruler style.

FXuint FX::FXRuler::getRulerStyle (   )  const
 

Get ruler style.

FXColor FX::FXRuler::getTextColor (   )  const [inline]
 

Get the current text color.

void FX::FXRuler::setTextColor (  FXColor  clr  ) 
 

Set the current text color.

void FX::FXRuler::setHelpText (  const FXString &  text  ) 
 

Set the status line help text for this label.

FXString FX::FXRuler::getHelpText (   )  const [inline]
 

Get the status line help text for this label.

void FX::FXRuler::setTipText (  const FXString &  text  ) 
 

Set the tool tip message for this label.

FXString FX::FXRuler::getTipText (   )  const [inline]
 

Get the tool tip message for this label.

virtual void FX::FXRuler::save (  FXStream &  store  )  const [virtual]
 

Save label to a stream.

Reimplemented from FX::FXFrame.

virtual void FX::FXRuler::load (  FXStream &  store  )  [virtual]
 

Load label from a stream.

Reimplemented from FX::FXFrame.

Copyright © 1997-2004 Jeroen van der Zijp