Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
Game.FontTextWidget
类 Game.FontTextWidget 继承关系图:
Game.FontTextWidget 的协作图:

Public 成员函数

 FontTextWidget ()
override void Draw (DrawContext dc)
override void MeasureOverride (Vector2 parentAvailableSize)
float CalculateLineHeight ()
virtual void UpdateLines (float availableWidth, float availableHeight)
Public 成员函数 继承自 Game.Widget
 Widget ()
virtual void LoadContents (object eventsTarget, XElement node)
virtual void LoadProperties (object eventsTarget, XElement node)
virtual void LoadChildren (object eventsTarget, XElement node)
virtual bool IsChildWidgetOf (ContainerWidget containerWidget)
virtual void ChangeParent (ContainerWidget parentWidget)
virtual void Measure (Vector2 parentAvailableSize)
virtual void Arrange (Vector2 position, Vector2 parentActualSize)
virtual void ArrangeOverride ()
virtual void UpdateCeases ()
virtual void Update ()
virtual void Overdraw (DrawContext dc)
virtual bool HitTest (Vector2 point)
virtual Widget HitTestGlobal (Vector2 point, Func< Widget, bool > predicate=null)
virtual Vector2 ScreenToWidget (Vector2 p)
virtual Vector2 WidgetToScreen (Vector2 p)
virtual void Dispose ()
virtual BoundingRectangle TransformBoundsToParent (Vector2 size)
virtual BoundingRectangle TransformBoundsToGlobal (Vector2 size)

Public 属性

string m_text = string.Empty
TextOrientation m_textOrientation
BitmapFont m_font
Vector2 m_fontSpacing
float m_fontScale
int m_maxLines = int.MaxValue
bool m_wordWrap
bool m_ellipsis
List< string > m_lines = []
Vector2m_linesSize
float? m_linesAvailableWidth
float? m_linesAvailableHeight
bool m_usedebug
Public 属性 继承自 Game.Widget
Action< Vector2MeasureOverride1
Action Update1
bool m_isVisible
bool m_isEnabled
Vector2 m_actualSize
Vector2 m_desiredSize
Vector2 m_parentDesiredSize
BoundingRectangle m_globalBounds
Vector2 m_parentOffset
bool m_isLayoutTransformIdentity = true
bool m_isRenderTransformIdentity = true
Matrix m_layoutTransform = Matrix.Identity
Matrix m_renderTransform = Matrix.Identity
Matrix m_globalTransform = Matrix.Identity
Matrixm_invertedGlobalTransform
float? m_globalScale
Color m_colorTransform = Color.White
Color m_globalColorTransform
WidgetInput m_widgetsHierarchyInput

属性

Vector2 Size [get, set]
virtual string Text [get, set]
TextAnchor TextAnchor [get, set]
TextOrientation TextOrientation [get, set]
BitmapFont Font [get, set]
float FontScale [get, set]
Vector2 FontSpacing [get, set]
bool WordWrap [get, set]
bool Ellipsis [get, set]
int MaxLines [get, set]
Color Color [get, set]
bool DropShadow [get, set]
bool TextureLinearFilter [get, set]
属性 继承自 Game.Widget
WidgetInput WidgetsHierarchyInput [get, set]
WidgetInput Input [get]
Matrix LayoutTransform [get, set]
Matrix RenderTransform [get, set]
Matrix GlobalTransform [get]
float GlobalScale [get]
Matrix InvertedGlobalTransform [get]
BoundingRectangle GlobalBounds [get]
Color ColorTransform [get, set]
Color GlobalColorTransform [get]
virtual string Name [get, set]
object Tag [get, set]
object ExtraData [get, set]
virtual bool IsVisible [get, set]
virtual bool IsEnabled [get, set]
virtual bool IsHitTestVisible [get, set]
bool IsVisibleGlobal [get]
bool IsEnabledGlobal [get]
bool ClampToBounds [get, set]
virtual Vector2 Margin [get, set]
virtual float MarginLeft [get, set]
virtual float MarginRight [get, set]
virtual float MarginTop [get, set]
virtual float MarginBottom [get, set]
virtual Vector4 Margin4 [get, set]
virtual float MarginHorizontalSum [get]
virtual float MarginVerticalSum [get]
virtual Vector2 MarginHorizontalSumAndVerticalSum [get]
virtual WidgetAlignment HorizontalAlignment [get, set]
virtual WidgetAlignment VerticalAlignment [get, set]
Vector2 ActualSize [get]
Vector2 DesiredSize [get, set]
Vector2 ParentDesiredSize [get]
bool IsUpdateEnabled = true [get, set]
bool IsDrawEnabled = true [get, set]
bool IsDrawRequired [get, set]
bool IsOverdrawRequired [get, set]
XElement Style [set]
ContainerWidget ParentWidget [get, set]
Widget RootWidget [get]

额外继承的成员函数

静态 Public 成员函数 继承自 Game.Widget
static Widget LoadWidget (object eventsTarget, XElement node, ContainerWidget parentWidget)
static bool TestOverlap (Widget w1, Widget w2)
static bool IsNodeIncludedOnCurrentPlatform (XElement node)
static void UpdateWidgetsHierarchy (Widget rootWidget)
static void LayoutWidgetsHierarchy (Widget rootWidget, Vector2 availableSize)
static void DrawWidgetsHierarchy (Widget rootWidget)
static Type FindTypeFromXmlName (string name, string namespaceName)
static Widget HitTestGlobal (Widget widget, Vector2 point, Func< Widget, bool > predicate)
static void UpdateWidgetsHierarchy (Widget widget, ref bool isMouseCursorVisible)
静态 Public 属性 继承自 Game.Widget
static Queue< DrawContextm_drawContextsCache = new()
static int LayersLimit = -1
static bool DrawWidgetBounds = false

详细描述

在文件 FontTextWidget.cs6 行定义.

构造及析构函数说明

◆ FontTextWidget()

Game.FontTextWidget.FontTextWidget ( )

在文件 FontTextWidget.cs123 行定义.

成员函数说明

◆ CalculateLineHeight()

float Game.FontTextWidget.CalculateLineHeight ( )

在文件 FontTextWidget.cs222 行定义.

这是这个函数的调用关系图:

◆ Draw()

override void Game.FontTextWidget.Draw ( DrawContext dc)
virtual

重载 Game.Widget .

在文件 FontTextWidget.cs131 行定义.

函数调用图:

◆ MeasureOverride()

override void Game.FontTextWidget.MeasureOverride ( Vector2 parentAvailableSize)
virtual

重载 Game.Widget .

在文件 FontTextWidget.cs204 行定义.

函数调用图:

◆ UpdateLines()

virtual void Game.FontTextWidget.UpdateLines ( float availableWidth,
float availableHeight )
virtual

在文件 FontTextWidget.cs224 行定义.

函数调用图:
这是这个函数的调用关系图:

类成员变量说明

◆ m_ellipsis

bool Game.FontTextWidget.m_ellipsis

在文件 FontTextWidget.cs21 行定义.

◆ m_font

BitmapFont Game.FontTextWidget.m_font

在文件 FontTextWidget.cs11 行定义.

◆ m_fontScale

float Game.FontTextWidget.m_fontScale

在文件 FontTextWidget.cs15 行定义.

◆ m_fontSpacing

Vector2 Game.FontTextWidget.m_fontSpacing

在文件 FontTextWidget.cs13 行定义.

◆ m_lines

List<string> Game.FontTextWidget.m_lines = []

在文件 FontTextWidget.cs23 行定义.

◆ m_linesAvailableHeight

float? Game.FontTextWidget.m_linesAvailableHeight

在文件 FontTextWidget.cs29 行定义.

◆ m_linesAvailableWidth

float? Game.FontTextWidget.m_linesAvailableWidth

在文件 FontTextWidget.cs27 行定义.

◆ m_linesSize

Vector2? Game.FontTextWidget.m_linesSize

在文件 FontTextWidget.cs25 行定义.

◆ m_maxLines

int Game.FontTextWidget.m_maxLines = int.MaxValue

在文件 FontTextWidget.cs17 行定义.

◆ m_text

string Game.FontTextWidget.m_text = string.Empty

在文件 FontTextWidget.cs7 行定义.

◆ m_textOrientation

TextOrientation Game.FontTextWidget.m_textOrientation

在文件 FontTextWidget.cs9 行定义.

◆ m_usedebug

bool Game.FontTextWidget.m_usedebug

在文件 FontTextWidget.cs121 行定义.

◆ m_wordWrap

bool Game.FontTextWidget.m_wordWrap

在文件 FontTextWidget.cs19 行定义.

属性说明

◆ Color

Color Game.FontTextWidget.Color
getset

在文件 FontTextWidget.cs116 行定义.

◆ DropShadow

bool Game.FontTextWidget.DropShadow
getset

在文件 FontTextWidget.cs118 行定义.

◆ Ellipsis

bool Game.FontTextWidget.Ellipsis
getset

在文件 FontTextWidget.cs96 行定义.

◆ Font

BitmapFont Game.FontTextWidget.Font
getset

在文件 FontTextWidget.cs56 行定义.

◆ FontScale

float Game.FontTextWidget.FontScale
getset

在文件 FontTextWidget.cs66 行定义.

◆ FontSpacing

Vector2 Game.FontTextWidget.FontSpacing
getset

在文件 FontTextWidget.cs76 行定义.

◆ MaxLines

int Game.FontTextWidget.MaxLines
getset

在文件 FontTextWidget.cs106 行定义.

◆ Size

Vector2 Game.FontTextWidget.Size
getset

在文件 FontTextWidget.cs31 行定义.

◆ Text

virtual string Game.FontTextWidget.Text
getset

在文件 FontTextWidget.cs33 行定义.

◆ TextAnchor

TextAnchor Game.FontTextWidget.TextAnchor
getset

在文件 FontTextWidget.cs44 行定义.

◆ TextOrientation

TextOrientation Game.FontTextWidget.TextOrientation
getset

在文件 FontTextWidget.cs46 行定义.

◆ TextureLinearFilter

bool Game.FontTextWidget.TextureLinearFilter
getset

在文件 FontTextWidget.cs120 行定义.

◆ WordWrap

bool Game.FontTextWidget.WordWrap
getset

在文件 FontTextWidget.cs86 行定义.


该类的文档由以下文件生成:
  • E:/sc/doxygen/SurvivalcraftApi 1.8.2.3/Survivalcraft.Windows/Widget/FontTextWidget.cs