Stores the current text margin. More...
#include <Inventor/elements/SoTextMarginElement.h>
Public Member Functions | |
virtual void | print (FILE *fp) const |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static int | getClassStackIndex () |
static void | set (SoState *state, float margin) |
static void | set (SoState *state, SoNode *, float margin) |
static float | get (SoState *state) |
static float | getDefault () |
This element stores the current text margin value. The margin value is a factor of current font size.
static float SoTextMarginElement::get | ( | SoState * | state | ) | [inline, static] |
Returns current margin from the state.
static int SoTextMarginElement::getClassStackIndex | ( | ) | [static] |
Returns the stack id for this element.
Reimplemented from SoFloatElement.
static SoType SoTextMarginElement::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from SoFloatElement.
static float SoTextMarginElement::getDefault | ( | ) | [static] |
Returns the default margin.
virtual void SoTextMarginElement::print | ( | FILE * | fp | ) | const [virtual] |
Prints element (for debugging).
Reimplemented from SoFloatElement.
Sets the current horizontal text margin in the state.
static void SoTextMarginElement::set | ( | SoState * | state, | |
float | margin | |||
) | [static] |
Sets the current horizontal text margin in the state.