osgText.TextBase¶
- class osgText.TextBase¶
- Represents
c++ class
- Wraps
osgText::TextBase
- Bases
Methods:
- :setFont(osgText.Font font)¶
-
- Параметры
font (
osgText.Font
) –
- :setFontFile(std.string fontfile)¶
-
- Параметры
fontfile (
std.string
) –
- :setFontResolution(unsigned width, unsigned height)¶
-
- Параметры
width (
unsigned
) –height (
unsigned
) –
- :getFontWidth()¶
-
- Тип результата
unsigned
- :getFontHeight()¶
-
- Тип результата
unsigned
- :setText(std.string text)¶
-
- Параметры
text (
std.string
) –
- :setText(std.string text, osgText.String.Encoding encoding)
-
- Параметры
text (
std.string
) –encoding (
osgText.String.Encoding
) –
- :update()¶
- :setCharacterSize(double height, double ratio)¶
-
- Параметры
height (
double
) –ratio (
double
) –
- :getCharacterHeight()¶
-
- Тип результата
double
- :getCharacterAspectRatio()¶
-
- Тип результата
double
- :setCharacterSizeMode(osgText.TextBase.CharacterSizeMode mode)¶
-
- Параметры
mode (
osgText.TextBase.CharacterSizeMode
) –
- :getCharacterSizeMode()¶
-
- Тип результата
- :setMaximumWidth(double width)¶
-
- Параметры
width (
double
) –
- :getMaximumWidth()¶
-
- Тип результата
double
- :setMaximumHeight(double height)¶
-
- Параметры
height (
double
) –
- :getMaximumHeight()¶
-
- Тип результата
double
- :setLineSpacing(double lineSpacing)¶
-
- Параметры
lineSpacing (
double
) –
- :getLineSpacing()¶
-
- Тип результата
double
- :setAlignment(osgText.TextBase.AlignmentType alignment)¶
-
- Параметры
alignment (
osgText.TextBase.AlignmentType
) –
- :getAlignment()¶
-
- Тип результата
- :setAxisAlignment(osgText.TextBase.AxisAlignment alignment)¶
-
- Параметры
alignment (
osgText.TextBase.AxisAlignment
) –
- :getAxisAlignment()¶
-
- Тип результата
- :setAutoRotateToScreen(bool autoRotateToScreen)¶
-
- Параметры
autoRotateToScreen (
bool
) –
- :getAutoRotateToScreen()¶
-
- Тип результата
bool
- :setLayout(osgText.TextBase.Layout layout)¶
-
- Параметры
layout (
osgText.TextBase.Layout
) –
- :getLayout()¶
-
- Тип результата
- :setDrawMode(unsigned mask)¶
-
- Параметры
mask (
unsigned
) –
- :getDrawMode()¶
-
- Тип результата
unsigned
- :setBoundingBoxMargin(double margin)¶
-
- Параметры
margin (
double
) –
- :getBoundingBoxMargin()¶
-
- Тип результата
double
- :setKerningType(osgText.KerningType type)¶
-
- Параметры
type (
osgText.KerningType
) –
- :getKerningType()¶
-
- Тип результата
- :getLineCount()¶
-
- Тип результата
unsigned