📄 textbase.cpp
字号:
Properties::NON_VIRTUAL, __void__setLineSpacing__float, "Set the line spacing of the text box, given as a percentage of the character height. ", "The default value is 0 for backward compatibility. For longer paragraphs of text, a value of at least 25% (i.e. set line spacing to 0.25) is recommended. "); I_Method0(float, getLineSpacing, Properties::NON_VIRTUAL, __float__getLineSpacing, "Get the line spacing of the text box. ", ""); I_Method1(void, setPosition, IN, const osg::Vec3 &, pos, Properties::NON_VIRTUAL, __void__setPosition__C5_osg_Vec3_R1, "Set the position of text. ", ""); I_Method0(const osg::Vec3 &, getPosition, Properties::NON_VIRTUAL, __C5_osg_Vec3_R1__getPosition, "Get the position of text. ", ""); I_Method1(void, setAlignment, IN, osgText::TextBase::AlignmentType, alignment, Properties::NON_VIRTUAL, __void__setAlignment__AlignmentType, "", ""); I_Method0(osgText::TextBase::AlignmentType, getAlignment, Properties::NON_VIRTUAL, __AlignmentType__getAlignment, "", ""); I_Method1(void, setAxisAlignment, IN, osgText::TextBase::AxisAlignment, axis, Properties::NON_VIRTUAL, __void__setAxisAlignment__AxisAlignment, "", ""); I_Method0(osgText::TextBase::AxisAlignment, getAxisAlignment, Properties::NON_VIRTUAL, __AxisAlignment__getAxisAlignment, "", ""); I_Method1(void, setRotation, IN, const osg::Quat &, quat, Properties::NON_VIRTUAL, __void__setRotation__C5_osg_Quat_R1, "", ""); I_Method0(const osg::Quat &, getRotation, Properties::NON_VIRTUAL, __C5_osg_Quat_R1__getRotation, "", ""); I_Method1(void, setAutoRotateToScreen, IN, bool, autoRotateToScreen, Properties::NON_VIRTUAL, __void__setAutoRotateToScreen__bool, "", ""); I_Method0(bool, getAutoRotateToScreen, Properties::NON_VIRTUAL, __bool__getAutoRotateToScreen, "", ""); I_Method1(void, setLayout, IN, osgText::TextBase::Layout, layout, Properties::NON_VIRTUAL, __void__setLayout__Layout, "", ""); I_Method0(osgText::TextBase::Layout, getLayout, Properties::NON_VIRTUAL, __Layout__getLayout, "", ""); I_Method1(void, setDrawMode, IN, unsigned int, mode, Properties::NON_VIRTUAL, __void__setDrawMode__unsigned_int, "", ""); I_Method0(unsigned int, getDrawMode, Properties::NON_VIRTUAL, __unsigned_int__getDrawMode, "", ""); I_Method1(void, setKerningType, IN, osgText::KerningType, kerningType, Properties::NON_VIRTUAL, __void__setKerningType__KerningType, "", ""); I_Method0(osgText::KerningType, getKerningType, Properties::NON_VIRTUAL, __KerningType__getKerningType, "", ""); I_Method0(unsigned int, getLineCount, Properties::NON_VIRTUAL, __unsigned_int__getLineCount, "Get the number of wrapped lines - only valid after computeGlyphRepresentation() has been called, returns 0 otherwise. ", ""); I_Method1(void, setThreadSafeRefUnref, IN, bool, threadSafe, Properties::VIRTUAL, __void__setThreadSafeRefUnref__bool, "Set whether to use a mutex to ensure ref() and unref() are thread safe. ", ""); I_Method1(void, resizeGLObjectBuffers, IN, unsigned int, maxSize, Properties::VIRTUAL, __void__resizeGLObjectBuffers__unsigned_int, "Resize any per context GLObject buffers to specified size. ", ""); I_MethodWithDefaults1(void, releaseGLObjects, IN, osg::State *, state, 0, Properties::VIRTUAL, __void__releaseGLObjects__osg_State_P1, "If State is non-zero, this function releases OpenGL objects for the specified graphics context. ", "Otherwise, releases OpenGL objexts for all graphics contexts. "); I_Method0(osg::BoundingBox, computeBound, Properties::VIRTUAL, __osg_BoundingBox__computeBound, "Compute the bounding box around Drawables's geometry. ", ""); I_ProtectedMethod3(void, positionCursor, IN, const osg::Vec2 &, endOfLine_coords, IN, osg::Vec2 &, cursor, IN, unsigned int, linelength, Properties::NON_VIRTUAL, Properties::NON_CONST, __void__positionCursor__C5_osg_Vec2_R1__osg_Vec2_R1__unsigned_int, "", ""); I_ProtectedMethod0(void, computePositions, Properties::NON_VIRTUAL, Properties::NON_CONST, __void__computePositions, "", ""); I_ProtectedMethod3(osgText::String::iterator, computeLastCharacterOnLine, IN, osg::Vec2 &, cursor, IN, osgText::String::iterator, first, IN, osgText::String::iterator, last, Properties::NON_VIRTUAL, Properties::NON_CONST, __String_iterator__computeLastCharacterOnLine__osg_Vec2_R1__String_iterator__String_iterator, "", ""); I_ProtectedMethod1(void, computePositions, IN, unsigned int, contextID, Properties::PURE_VIRTUAL, Properties::CONST, __void__computePositions__unsigned_int, "", ""); I_ProtectedMethod0(void, computeGlyphRepresentation, Properties::PURE_VIRTUAL, Properties::NON_CONST, __void__computeGlyphRepresentation, "", ""); I_SimpleProperty(osgText::TextBase::AlignmentType, Alignment, __AlignmentType__getAlignment, __void__setAlignment__AlignmentType); I_SimpleProperty(bool, AutoRotateToScreen, __bool__getAutoRotateToScreen, __void__setAutoRotateToScreen__bool); I_SimpleProperty(osgText::TextBase::AxisAlignment, AxisAlignment, __AxisAlignment__getAxisAlignment, __void__setAxisAlignment__AxisAlignment); I_SimpleProperty(float, CharacterAspectRatio, __float__getCharacterAspectRatio, 0); I_SimpleProperty(float, CharacterHeight, __float__getCharacterHeight, 0); I_SimpleProperty(osgText::TextBase::CharacterSizeMode, CharacterSizeMode, __CharacterSizeMode__getCharacterSizeMode, __void__setCharacterSizeMode__CharacterSizeMode); I_SimpleProperty(unsigned int, DrawMode, __unsigned_int__getDrawMode, __void__setDrawMode__unsigned_int); I_SimpleProperty(unsigned int, FontHeight, __unsigned_int__getFontHeight, 0); I_SimpleProperty(unsigned int, FontWidth, __unsigned_int__getFontWidth, 0); I_SimpleProperty(osgText::KerningType, KerningType, __KerningType__getKerningType, __void__setKerningType__KerningType); I_SimpleProperty(osgText::TextBase::Layout, Layout, __Layout__getLayout, __void__setLayout__Layout); I_SimpleProperty(unsigned int, LineCount, __unsigned_int__getLineCount, 0); I_SimpleProperty(float, LineSpacing, __float__getLineSpacing, __void__setLineSpacing__float); I_SimpleProperty(float, MaximumHeight, __float__getMaximumHeight, __void__setMaximumHeight__float); I_SimpleProperty(float, MaximumWidth, __float__getMaximumWidth, __void__setMaximumWidth__float); I_SimpleProperty(const osg::Vec3 &, Position, __C5_osg_Vec3_R1__getPosition, __void__setPosition__C5_osg_Vec3_R1); I_SimpleProperty(const osg::Quat &, Rotation, __C5_osg_Quat_R1__getRotation, __void__setRotation__C5_osg_Quat_R1); I_SimpleProperty(const osgText::String &, Text, __C5_String_R1__getText, __void__setText__C5_String_R1); I_SimpleProperty(bool, ThreadSafeRefUnref, 0, __void__setThreadSafeRefUnref__bool);END_REFLECTOR
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -