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

class  DrawContext
class  DrawItem
 绘制任务,有多种类型,绘制任务会按照 Layer 进行排序。 更多...

Public 成员函数

 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 MeasureOverride (Vector2 parentAvailableSize)
virtual void Arrange (Vector2 position, Vector2 parentActualSize)
virtual void ArrangeOverride ()
virtual void UpdateCeases ()
virtual void Update ()
virtual void Draw (DrawContext dc)
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 成员函数

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 属性

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

静态 Public 属性

static Queue< DrawContextm_drawContextsCache = new()
static int LayersLimit = -1
static bool DrawWidgetBounds = false

属性

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]

详细描述

在文件 Widget.cs10 行定义.

构造及析构函数说明

◆ Widget()

Game.Widget.Widget ( )

在文件 Widget.cs479 行定义.

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

成员函数说明

◆ Arrange()

virtual void Game.Widget.Arrange ( Vector2 position,
Vector2 parentActualSize )
virtual

在文件 Widget.cs650 行定义.

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

◆ ArrangeOverride()

◆ ChangeParent()

virtual void Game.Widget.ChangeParent ( ContainerWidget parentWidget)
virtual

Game.ViewWidget 重载.

在文件 Widget.cs619 行定义.

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

◆ Dispose()

virtual void Game.Widget.Dispose ( )
virtual

Game.ContainerWidget , 以及 Game.ViewWidget 重载.

在文件 Widget.cs702 行定义.

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

◆ Draw()

◆ DrawWidgetsHierarchy()

void Game.Widget.DrawWidgetsHierarchy ( Widget rootWidget)
static

在文件 Widget.cs754 行定义.

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

◆ FindTypeFromXmlName()

Type Game.Widget.FindTypeFromXmlName ( string name,
string namespaceName )
static

在文件 Widget.cs796 行定义.

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

◆ HitTest()

virtual bool Game.Widget.HitTest ( Vector2 point)
virtual

在文件 Widget.cs686 行定义.

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

◆ HitTestGlobal() [1/2]

virtual Widget Game.Widget.HitTestGlobal ( Vector2 point,
Func< Widget, bool > predicate = null )
virtual

在文件 Widget.cs696 行定义.

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

◆ HitTestGlobal() [2/2]

Widget Game.Widget.HitTestGlobal ( Widget widget,
Vector2 point,
Func< Widget, bool > predicate )
static

在文件 Widget.cs807 行定义.

函数调用图:

◆ IsChildWidgetOf()

virtual bool Game.Widget.IsChildWidgetOf ( ContainerWidget containerWidget)
virtual

在文件 Widget.cs609 行定义.

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

◆ IsNodeIncludedOnCurrentPlatform()

bool Game.Widget.IsNodeIncludedOnCurrentPlatform ( XElement node)
static

在文件 Widget.cs720 行定义.

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

◆ LayoutWidgetsHierarchy()

void Game.Widget.LayoutWidgetsHierarchy ( Widget rootWidget,
Vector2 availableSize )
static

在文件 Widget.cs749 行定义.

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

◆ LoadChildren()

virtual void Game.Widget.LoadChildren ( object eventsTarget,
XElement node )
virtual

在文件 Widget.cs586 行定义.

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

◆ LoadContents()

virtual void Game.Widget.LoadContents ( object eventsTarget,
XElement node )
virtual

在文件 Widget.cs507 行定义.

函数调用图:

◆ LoadProperties()

virtual void Game.Widget.LoadProperties ( object eventsTarget,
XElement node )
virtual

在文件 Widget.cs519 行定义.

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

◆ LoadWidget()

Widget Game.Widget.LoadWidget ( object eventsTarget,
XElement node,
ContainerWidget parentWidget )
static

在文件 Widget.cs486 行定义.

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

◆ Measure()

virtual void Game.Widget.Measure ( Vector2 parentAvailableSize)
virtual

在文件 Widget.cs628 行定义.

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

◆ MeasureOverride()

◆ Overdraw()

virtual void Game.Widget.Overdraw ( DrawContext dc)
virtual

Game.GamesWidget , 以及 Game.TextBoxWidget 重载.

在文件 Widget.cs684 行定义.

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

◆ ScreenToWidget()

virtual Vector2 Game.Widget.ScreenToWidget ( Vector2 p)
virtual

在文件 Widget.cs698 行定义.

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

◆ TestOverlap()

bool Game.Widget.TestOverlap ( Widget w1,
Widget w2 )
static

在文件 Widget.cs704 行定义.

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

◆ TransformBoundsToGlobal()

virtual BoundingRectangle Game.Widget.TransformBoundsToGlobal ( Vector2 size)
virtual

在文件 Widget.cs778 行定义.

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

◆ TransformBoundsToParent()

virtual BoundingRectangle Game.Widget.TransformBoundsToParent ( Vector2 size)
virtual

在文件 Widget.cs764 行定义.

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

◆ Update()

virtual void Game.Widget.Update ( )
virtual

Game.BestiaryDescriptionScreen, Game.BestiaryScreen, Game.BowWidget, Game.BuildFurnitureDialog, Game.BulletinDialog, Game.BusyDialog, Game.CameraManageScreen, Game.CancellableBusyDialog, Game.CheckboxWidget, Game.ChestWidget, Game.ClickableWidget, Game.ClickTextWidget, Game.ClothingWidget, Game.CommunityContentScreen, Game.ContentScreen, Game.CraftingTableWidget, Game.CreativeInventoryPanel, Game.CreativeInventoryWidget, Game.CrossbowWidget, Game.DispenserWidget, Game.DownloadContentFromLinkDialog, Game.DragHostWidget, Game.EditAdjustableDelayGateDialog, Game.EditColorDialog, Game.EditCommunityServerInfoDialog, Game.EditMemoryBankDialog, Game.EditMemoryBankDialogAPI, Game.EditPaletteDialog, Game.EditPistonDialog, Game.EditSignDialog, Game.EditTruthTableDialog, Game.EditVoltageLevelDialog, Game.EditWorldSeedDialog, Game.ExternalContentLinkDialog, Game.ExternalContentScreen, Game.FireWidget, Game.FurnaceWidget, Game.FurnitureDesignWidget, Game.FurnitureInventoryPanel, Game.GameLoadingScreen, Game.GameMenuDialog, Game.GamepadHelpDialog, Game.GamepadMappingScreen, Game.GameScreen, Game.HelpScreen, Game.HelpTopicScreen, Game.InventorySlotWidget, Game.KeyboardHelpDialog, Game.KeyboardMappingScreen, Game.LegacyTextBoxWidget, Game.LevelFactorDialog, Game.LinkWidget, Game.ListPanelWidget, Game.ListSelectionDialog, Game.LoadingFailedScreen, Game.LoadingScreen, Game.LoginDialog, Game.MainMenuScreen, Game.ManageClassSubstitutesScreen.SubstituteWidget, Game.ManageClassSubstitutesScreen, Game.MessageDialog, Game.MessageWidget, Game.ModDetailsDialog, Game.ModifyWorldScreen, Game.MoreCommunityLinkDialog, Game.MotdWidget, Game.MoveRoseWidget, Game.MusketWidget, Game.NagScreen, Game.NewWorldScreen, Game.OriginalCommunityContentScreen, Game.PlayerModelWidget, Game.PlayerScreen.InputDeviceWidget, Game.PlayerScreen, Game.PlayersScreen, Game.PlayerWidget, Game.PlayScreen, Game.PublishCommunityLinkDialog, Game.RateCommunityContentDialog, Game.RecipaediaDescriptionScreen, Game.RecipaediaRecipesScreen, Game.RecipaediaScreen, Game.ReleasesScreen, Game.RemoteControlDialog, Game.ReportCommunityContentDialog, Game.RunJsDialog, Game.ScrollPanelWidget, Game.SelectClassSubstituteDialog, Game.SelectCommunityServerDialog, Game.SettingsAudioScreen, Game.SettingsCompatibilityScreen, Game.SettingsControlsScreen, Game.SettingsGraphicsScreen, Game.SettingsPerformanceScreen, Game.SettingsScreen, Game.SettingsUiScreen, Game.SliderWidget, Game.StarRatingWidget, Game.TextBoxDialog, Game.TextBoxWidget, Game.TouchInputWidget, Game.TreeViewNodeContentItem, Game.TrialEndedScreen, Game.ViewGameLogDialog, Game.VitalStatsWidget, Game.WorldOptionsScreen, GameWidget, ManageContentScreen , 以及 ModsManageContentScreen 重载.

在文件 Widget.cs680 行定义.

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

◆ UpdateCeases()

virtual void Game.Widget.UpdateCeases ( )
virtual

Game.ClickableWidget, Game.ContainerWidget, Game.FurnitureInventoryPanel, Game.PlayerModelWidget , 以及 Game.TextBoxWidget 重载.

在文件 Widget.cs678 行定义.

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

◆ UpdateWidgetsHierarchy() [1/2]

void Game.Widget.UpdateWidgetsHierarchy ( Widget rootWidget)
static

在文件 Widget.cs741 行定义.

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

◆ UpdateWidgetsHierarchy() [2/2]

void Game.Widget.UpdateWidgetsHierarchy ( Widget widget,
ref bool isMouseCursorVisible )
static

在文件 Widget.cs829 行定义.

函数调用图:

◆ WidgetToScreen()

virtual Vector2 Game.Widget.WidgetToScreen ( Vector2 p)
virtual

在文件 Widget.cs700 行定义.

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

类成员变量说明

◆ DrawWidgetBounds

bool Game.Widget.DrawWidgetBounds = false
static

在文件 Widget.cs276 行定义.

◆ LayersLimit

int Game.Widget.LayersLimit = -1
static

在文件 Widget.cs274 行定义.

◆ m_actualSize

Vector2 Game.Widget.m_actualSize

在文件 Widget.cs242 行定义.

◆ m_colorTransform

Color Game.Widget.m_colorTransform = Color.White

在文件 Widget.cs266 行定义.

◆ m_desiredSize

Vector2 Game.Widget.m_desiredSize

在文件 Widget.cs244 行定义.

◆ m_drawContextsCache

Queue<DrawContext> Game.Widget.m_drawContextsCache = new()
static

在文件 Widget.cs272 行定义.

◆ m_globalBounds

BoundingRectangle Game.Widget.m_globalBounds

在文件 Widget.cs248 行定义.

◆ m_globalColorTransform

Color Game.Widget.m_globalColorTransform

在文件 Widget.cs268 行定义.

◆ m_globalScale

float? Game.Widget.m_globalScale

在文件 Widget.cs264 行定义.

◆ m_globalTransform

Matrix Game.Widget.m_globalTransform = Matrix.Identity

在文件 Widget.cs260 行定义.

◆ m_invertedGlobalTransform

Matrix? Game.Widget.m_invertedGlobalTransform

在文件 Widget.cs262 行定义.

◆ m_isEnabled

bool Game.Widget.m_isEnabled

在文件 Widget.cs240 行定义.

◆ m_isLayoutTransformIdentity

bool Game.Widget.m_isLayoutTransformIdentity = true

在文件 Widget.cs252 行定义.

◆ m_isRenderTransformIdentity

bool Game.Widget.m_isRenderTransformIdentity = true

在文件 Widget.cs254 行定义.

◆ m_isVisible

bool Game.Widget.m_isVisible

在文件 Widget.cs238 行定义.

◆ m_layoutTransform

Matrix Game.Widget.m_layoutTransform = Matrix.Identity

在文件 Widget.cs256 行定义.

◆ m_parentDesiredSize

Vector2 Game.Widget.m_parentDesiredSize

在文件 Widget.cs246 行定义.

◆ m_parentOffset

Vector2 Game.Widget.m_parentOffset

在文件 Widget.cs250 行定义.

◆ m_renderTransform

Matrix Game.Widget.m_renderTransform = Matrix.Identity

在文件 Widget.cs258 行定义.

◆ m_widgetsHierarchyInput

WidgetInput Game.Widget.m_widgetsHierarchyInput

在文件 Widget.cs270 行定义.

◆ MeasureOverride1

Action<Vector2> Game.Widget.MeasureOverride1

在文件 Widget.cs205 行定义.

◆ Update1

Action Game.Widget.Update1

在文件 Widget.cs207 行定义.

属性说明

◆ ActualSize

Vector2 Game.Widget.ActualSize
get

在文件 Widget.cs447 行定义.

◆ ClampToBounds

bool Game.Widget.ClampToBounds
getset

在文件 Widget.cs406 行定义.

◆ ColorTransform

Color Game.Widget.ColorTransform
getset

在文件 Widget.cs344 行定义.

◆ DesiredSize

Vector2 Game.Widget.DesiredSize
getset

在文件 Widget.cs449 行定义.

◆ ExtraData

object Game.Widget.ExtraData
getset

在文件 Widget.cs354 行定义.

◆ GlobalBounds

BoundingRectangle Game.Widget.GlobalBounds
get

在文件 Widget.cs342 行定义.

◆ GlobalColorTransform

Color Game.Widget.GlobalColorTransform
get

在文件 Widget.cs349 行定义.

◆ GlobalScale

float Game.Widget.GlobalScale
get

在文件 Widget.cs328 行定义.

◆ GlobalTransform

Matrix Game.Widget.GlobalTransform
get

在文件 Widget.cs326 行定义.

◆ HorizontalAlignment

virtual WidgetAlignment Game.Widget.HorizontalAlignment
getset

在文件 Widget.cs443 行定义.

◆ Input

WidgetInput Game.Widget.Input
get

在文件 Widget.cs296 行定义.

◆ InvertedGlobalTransform

Matrix Game.Widget.InvertedGlobalTransform
get

在文件 Widget.cs335 行定义.

◆ IsDrawEnabled

bool Game.Widget.IsDrawEnabled = true
getset

在文件 Widget.cs458 行定义.

◆ IsDrawRequired

bool Game.Widget.IsDrawRequired
getset

在文件 Widget.cs460 行定义.

◆ IsEnabled

virtual bool Game.Widget.IsEnabled
getset

在文件 Widget.cs368 行定义.

◆ IsEnabledGlobal

bool Game.Widget.IsEnabledGlobal
get

在文件 Widget.cs394 行定义.

◆ IsHitTestVisible

virtual bool Game.Widget.IsHitTestVisible
getset

在文件 Widget.cs380 行定义.

◆ IsOverdrawRequired

bool Game.Widget.IsOverdrawRequired
getset

在文件 Widget.cs462 行定义.

◆ IsUpdateEnabled

bool Game.Widget.IsUpdateEnabled = true
getset

在文件 Widget.cs456 行定义.

◆ IsVisible

virtual bool Game.Widget.IsVisible
getset

在文件 Widget.cs356 行定义.

◆ IsVisibleGlobal

bool Game.Widget.IsVisibleGlobal
get

在文件 Widget.cs382 行定义.

◆ LayoutTransform

Matrix Game.Widget.LayoutTransform
getset

在文件 Widget.cs310 行定义.

◆ Margin

virtual Vector2 Game.Widget.Margin
getset

在文件 Widget.cs408 行定义.

◆ Margin4

virtual Vector4 Game.Widget.Margin4
getset

在文件 Widget.cs427 行定义.

◆ MarginBottom

virtual float Game.Widget.MarginBottom
getset

在文件 Widget.cs425 行定义.

◆ MarginHorizontalSum

virtual float Game.Widget.MarginHorizontalSum
get

在文件 Widget.cs437 行定义.

◆ MarginHorizontalSumAndVerticalSum

virtual Vector2 Game.Widget.MarginHorizontalSumAndVerticalSum
get

在文件 Widget.cs441 行定义.

◆ MarginLeft

virtual float Game.Widget.MarginLeft
getset

在文件 Widget.cs419 行定义.

◆ MarginRight

virtual float Game.Widget.MarginRight
getset

在文件 Widget.cs421 行定义.

◆ MarginTop

virtual float Game.Widget.MarginTop
getset

在文件 Widget.cs423 行定义.

◆ MarginVerticalSum

virtual float Game.Widget.MarginVerticalSum
get

在文件 Widget.cs439 行定义.

◆ Name

virtual string Game.Widget.Name
getset

在文件 Widget.cs351 行定义.

◆ ParentDesiredSize

Vector2 Game.Widget.ParentDesiredSize
get

在文件 Widget.cs454 行定义.

◆ ParentWidget

ContainerWidget Game.Widget.ParentWidget
getset

在文件 Widget.cs468 行定义.

◆ RenderTransform

Matrix Game.Widget.RenderTransform
getset

在文件 Widget.cs318 行定义.

◆ RootWidget

Widget Game.Widget.RootWidget
get

在文件 Widget.cs470 行定义.

◆ Style

XElement Game.Widget.Style
set

在文件 Widget.cs464 行定义.

◆ Tag

object Game.Widget.Tag
getset

在文件 Widget.cs353 行定义.

◆ VerticalAlignment

virtual WidgetAlignment Game.Widget.VerticalAlignment
getset

在文件 Widget.cs445 行定义.

◆ WidgetsHierarchyInput

WidgetInput Game.Widget.WidgetsHierarchyInput
getset

在文件 Widget.cs278 行定义.


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