|
My Project v1
Project
|


Public 成员函数 | |
| ListPanelWidget () | |
| void | AddItem (object item) |
| void | AddItems (IEnumerable< object > items) |
| void | RemoveItem (object item) |
| void | RemoveItemAt (int index) |
| void | ClearItems () |
| override float | CalculateScrollAreaLength () |
| void | ScrollToItem (object item) |
| override void | MeasureOverride (Vector2 parentAvailableSize) |
| override void | ArrangeOverride () |
| override void | Update () |
| override void | Draw (DrawContext dc) |
| int | PositionToItemIndex (Vector2 position) |
| void | CreateListWidgets (float size) |
Public 成员函数 继承自 Game.ScrollPanelWidget | |
| ScrollPanelWidget () | |
| void | StartInitialScroll () |
| override void | MeasureOverride (Vector2 parentAvailableSize) |
| override void | ArrangeOverride () |
| override void | Update () |
| override void | Draw (DrawContext dc) |
| bool | HitTestPanel (Vector2 position) |
Public 成员函数 继承自 Game.ContainerWidget | |
| ContainerWidget () | |
| override void | UpdateCeases () |
| void | AddChildren (Widget widget) |
| void | RemoveChildren (Widget widget) |
| void | ClearChildren () |
| virtual void | WidgetAdded (Widget widget) |
| virtual void | WidgetRemoved (Widget widget) |
| override void | Dispose () |
Public 成员函数 继承自 Game.Widget | |
| Widget () | |
| void | LoadContents (object eventsTarget, XElement node) |
| void | LoadProperties (object eventsTarget, XElement node) |
| void | LoadChildren (object eventsTarget, XElement node) |
| bool | IsChildWidgetOf (ContainerWidget containerWidget) |
| virtual void | ChangeParent (ContainerWidget parentWidget) |
| void | Measure (Vector2 parentAvailableSize) |
| void | Arrange (Vector2 position, Vector2 parentActualSize) |
| virtual void | Overdraw (DrawContext dc) |
| virtual bool | HitTest (Vector2 point) |
| Widget | HitTestGlobal (Vector2 point, Func< Widget, bool > predicate=null) |
| Vector2 | ScreenToWidget (Vector2 p) |
| Vector2 | WidgetToScreen (Vector2 p) |
| BoundingRectangle | TransformBoundsToParent (Vector2 size) |
| BoundingRectangle | TransformBoundsToGlobal (Vector2 size) |
属性 | |
| Func< object, Widget > | ItemWidgetFactory [get, set] |
| override LayoutDirection | Direction [get, set] |
| override float | ScrollPosition [get, set] |
| float | ItemSize [get, set] |
| int? | SelectedIndex [get, set] |
| object | SelectedItem [get, set] |
| ReadOnlyList< object > | Items [get] |
| Color | SelectionColor [get, set] |
| virtual Action< object > | ItemClicked [get, set] |
| virtual Action | SelectionChanged [get, set] |
属性 继承自 Game.ScrollPanelWidget | |
| virtual LayoutDirection | Direction [get, set] |
| virtual float | ScrollPosition [get, set] |
| virtual float | ScrollSpeed [get, set] |
属性 继承自 Game.ContainerWidget | |
| IEnumerable< Widget > | AllChildren [get] |
属性 继承自 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] |
| 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 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.ContainerWidget | |
| static void | ArrangeChildWidgetInCell (Vector2 c1, Vector2 c2, Widget widget) |
静态 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< DrawContext > | m_drawContextsCache = new() |
| static int | LayersLimit = -1 |
| static bool | DrawWidgetBounds = false |
| Game.ListPanelWidget.ListPanelWidget | ( | ) |
| void Game.ListPanelWidget.AddItem | ( | object | item | ) |

| void Game.ListPanelWidget.AddItems | ( | IEnumerable< object > | items | ) |

|
virtual |
|
virtual |
| void Game.ListPanelWidget.ClearItems | ( | ) |

| void Game.ListPanelWidget.CreateListWidgets | ( | float | size | ) |


|
virtual |
重载 Game.Widget .
|
virtual |
| int Game.ListPanelWidget.PositionToItemIndex | ( | Vector2 | position | ) |


| void Game.ListPanelWidget.RemoveItem | ( | object | item | ) |

| void Game.ListPanelWidget.RemoveItemAt | ( | int | index | ) |

| void Game.ListPanelWidget.ScrollToItem | ( | object | item | ) |

|
virtual |
| Vector2 Game.ListPanelWidget.lastActualSize = new(-1f) |
| bool Game.ListPanelWidget.m_clickAllowed |
| int Game.ListPanelWidget.m_firstVisibleIndex |
| List<object> Game.ListPanelWidget.m_items = [] |
| float Game.ListPanelWidget.m_itemSize |
| int Game.ListPanelWidget.m_lastVisibleIndex |
| int? Game.ListPanelWidget.m_selectedItemIndex |
| Dictionary<int, Widget> Game.ListPanelWidget.m_widgetsByIndex = [] |
| bool Game.ListPanelWidget.m_widgetsDirty |
| bool Game.ListPanelWidget.PlayClickSound = true |
|
getset |
|
getset |
|
get |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |