CARMA C++
carma::ui::rtd::RtSpacer Class Reference

A static component that provides spacing inside of boxes (with BoxLayout). More...

#include <carma/ui/rtd/common/RtDisplay.h>

Inheritance diagram for carma::ui::rtd::RtSpacer:
carma::ui::rtd::RtStatic carma::ui::rtd::RtObject

Public Member Functions

 RtSpacer (int minWidth, int prefWidth, double weight)
 Constructor. More...
 
 RtSpacer (int minWidth, int prefWidth)
 Constructor. More...
 
 RtSpacer (int minWidth, double weight)
 Constructor. More...
 
 RtSpacer (int minWidth)
 Constructor. More...
 
virtual void serialize (bool initialize, int fontSize,::rtdproto::RtObject *rtobj)
 Describe this component to stdout. More...
 
- Public Member Functions inherited from carma::ui::rtd::RtStatic
virtual void update ()
 A null update routine. More...
 
- Public Member Functions inherited from carma::ui::rtd::RtObject
void appendToolTipText (const std::string &text)
 Append more text to the existing tool tip text. More...
 
Layout getLayout () const
 Get the layout for this object. More...
 
std::string getToolTipText ()
 
void setFontSize (int fontSize)
 Set the absolute font size for this object. More...
 
void setLayout (Layout layout)
 Set the layout for this object. More...
 
void setToolTipText (const std::string &text)
 Set the tool tip text for this RtObject. More...
 
virtual ~RtObject ()
 Destructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from carma::ui::rtd::RtStatic
 RtStatic ()
 Constructor. More...
 
- Protected Member Functions inherited from carma::ui::rtd::RtObject
int getFontSize (int parentFontSize) const
 Get the absolute font size for this object. More...
 
int getFontSize () const
 Get the absolute font size for this object. More...
 
 RtObject ()
 Constructor. More...
 

Detailed Description

A static component that provides spacing inside of boxes (with BoxLayout).

See Also
RtBox

Definition at line 2157 of file RtDisplay.h.

Constructor & Destructor Documentation

carma::ui::rtd::RtSpacer::RtSpacer ( int  minWidth,
int  prefWidth,
double  weight 
)

Constructor.

Parameters
minWidthminimum width for the spacer, in pixels
prefWidthpreferred width for the spacer, in pixels
weightweight to use when splitting space with other spacers
carma::ui::rtd::RtSpacer::RtSpacer ( int  minWidth,
int  prefWidth 
)

Constructor.

Weight defaults to unity.

Parameters
minWidthminimum width for the spacer, in pixels
prefWidthpreferred width for the spacer, in pixels
carma::ui::rtd::RtSpacer::RtSpacer ( int  minWidth,
double  weight 
)

Constructor.

Preferred width defaults to minimum width.

Parameters
minWidthminimum width for the spacer, in pixels
weightweight to use when splitting space with other spacers
carma::ui::rtd::RtSpacer::RtSpacer ( int  minWidth)

Constructor.

Preferred width defaults to minimum width and weight defaults to 1.

Member Function Documentation

virtual void carma::ui::rtd::RtSpacer::serialize ( bool  initialize,
int  fontSize,
::rtdproto::RtObject *  rtobj 
)
virtual

Describe this component to stdout.

Implements carma::ui::rtd::RtStatic.


The documentation for this class was generated from the following file: