SoTextMarginElement Class Reference
[Elements]

VSG extension Stores the current text margin. More...

#include <Inventor/elements/SoTextMarginElement.h>

Inheritance diagram for SoTextMarginElement:
SoFloatElement SoElement SoTypedObject

List of all members.

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 ()

Detailed Description

VSG extension Stores the current text margin.

This element stores the current text margin value. The margin value is a factor of current font size.

SEE ALSO

SoTextProperty


Member Function Documentation

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.

static void SoTextMarginElement::set ( SoState state,
SoNode ,
float  margin 
) [inline, static]

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.


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

Open Inventor Toolkit reference manual, generated on 15 Mar 2023
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/