IC8 Python API:RLPy RViewportTextStyle

From Reallusion Wiki!
Jump to: navigation, search

Description

This class stores the font, size, color, and emphasis settings used by a viewport label.

Constructor & Destructor

__init__ (self)

Initializes a new viewport text style instance.

Member Functions

GetBold (self)

Returns whether bold text is enabled.

GetColor (self)

Returns the text color used by this viewport label.

GetFontFamily (self)

Returns the font family used by this viewport label.

GetFontSize (self)

Returns the font size used by this viewport label.

GetItalic (self)

Returns whether italic text is enabled.

IsBoldSet (self)

Reports whether a bold-text setting has been specified.

IsColorSet (self)

Reports whether a text color has been specified.

IsFontFamilySet (self)

Reports whether a font family has been specified.

IsFontSizeSet (self)

Reports whether a font size has been specified.

IsItalicSet (self)

Reports whether an italic-text setting has been specified.

SetBold (self, bBold)

Sets whether bold text is enabled.

Parameters

  • bBold

SetColor (self, kColor)

Sets the text color used by this viewport label.

Parameters

  • kColor

SetFontFamily (self, strFontFamily)

Sets the font family used by this viewport label.

Parameters

  • strFontFamily

SetFontSize (self, fFontSize)

Sets the font size used by this viewport label.

Parameters

  • fFontSize

SetItalic (self, bItalic)

Sets whether italic text is enabled.

Parameters

  • bItalic

Properties

bold

Indicates whether the viewport-label text is bold.

color

Color used for the viewport-label text.

fontFamily

Font family used for the viewport-label text.

fontSize

Font size used for the viewport-label text.

italic

Indicates whether the viewport-label text is italic.

thisown

Indicates whether this SWIG proxy owns the underlying C++ object.