My Project v1
Project
载入中...
搜索中...
未找到
Game.BevelledRectangleWidget
类 Game.BevelledRectangleWidget 继承关系图:
Game.BevelledRectangleWidget 的协作图:

Public 成员函数

 BevelledRectangleWidget ()
 
override void Draw (DrawContext dc)
 
override void MeasureOverride (Vector2 parentAvailableSize)
 
override void ArrangeOverride ()
 
- 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 UpdateCeases ()
 
virtual void Update ()
 
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)
 
virtual void Dispose ()
 
BoundingRectangle TransformBoundsToParent (Vector2 size)
 
BoundingRectangle TransformBoundsToGlobal (Vector2 size)
 

静态 Public 成员函数

static void QueueBevelledRectangle (TexturedBatch2D texturedBatch, FlatBatch2D flatBatch, Vector2 c1, Vector2 c2, float depth, float bevelSize, Color color, Color bevelColor, Color shadowColor, float ambientLight, float directionalLight, float textureScale)
 
- 静态 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 属性

Texture2D m_texture
 
bool m_textureLinearFilter
 
- Public 属性 继承自 Game.Widget
Action< Vector2 > MeasureOverride1
 
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
 
Matrix? m_invertedGlobalTransform
 
float? m_globalScale
 
Color m_colorTransform = Color.White
 
Color m_globalColorTransform
 
WidgetInput m_widgetsHierarchyInput
 

属性

Vector2 Size [get, set]
 
float RoundingRadius [get, set]
 
int RoundingCount [get, set]
 
float BevelSize [get, set]
 
float DirectionalLight [get, set]
 
float AmbientLight [get, set]
 
Texture2D Texture [get, set]
 
float TextureScale [get, set]
 
bool TextureLinearFilter [get, set]
 
Color CenterColor [get, set]
 
Color BevelColor [get, set]
 
Color ShadowColor [get, set]
 
float ShadowSize [get, set]
 
Vector2 TextureOffset [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]
 

Private 属性

float m_roundingRadius
 
int m_roundingCount
 
float m_bevelSize
 
float m_ambientLight
 
float m_directionalLight
 
Color m_centerColor
 
Color m_bevelColor
 
Color m_shadowColor
 
float m_shadowSize
 
FlatBatch2D m_flatBatch
 
TexturedBatch2D m_texturedBatch
 
BevelledShapeRenderer.Point[] m_points = new BevelledShapeRenderer.Point[4]
 
FlatBatch2D m_cachedShadowBatch = new FlatBatch2D()
 
FlatBatch2D m_cachedFlatBatch = new FlatBatch2D()
 
TexturedBatch2D m_cachedTexturedBatch = new TexturedBatch2D()
 
bool m_cachedBatchesValid
 
float m_cachedPixelsPerUnit
 
Vector2 m_cachedTextureScale
 

额外继承的成员函数

- 静态 Public 属性 继承自 Game.Widget
static Queue< DrawContextm_drawContextsCache = new()
 
static int LayersLimit = -1
 
static bool DrawWidgetBounds = false
 

构造及析构函数说明

◆ BevelledRectangleWidget()

Game.BevelledRectangleWidget.BevelledRectangleWidget ( )

成员函数说明

◆ ArrangeOverride()

override void Game.BevelledRectangleWidget.ArrangeOverride ( )
virtual

重载 Game.Widget .

◆ Draw()

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

重载 Game.Widget .

函数调用图:

◆ MeasureOverride()

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

重载 Game.Widget .

◆ QueueBevelledRectangle()

static void Game.BevelledRectangleWidget.QueueBevelledRectangle ( TexturedBatch2D texturedBatch,
FlatBatch2D flatBatch,
Vector2 c1,
Vector2 c2,
float depth,
float bevelSize,
Color color,
Color bevelColor,
Color shadowColor,
float ambientLight,
float directionalLight,
float textureScale )
static
这是这个函数的调用关系图:

类成员变量说明

◆ m_ambientLight

float Game.BevelledRectangleWidget.m_ambientLight
private

◆ m_bevelColor

Color Game.BevelledRectangleWidget.m_bevelColor
private

◆ m_bevelSize

float Game.BevelledRectangleWidget.m_bevelSize
private

◆ m_cachedBatchesValid

bool Game.BevelledRectangleWidget.m_cachedBatchesValid
private

◆ m_cachedFlatBatch

FlatBatch2D Game.BevelledRectangleWidget.m_cachedFlatBatch = new FlatBatch2D()
private

◆ m_cachedPixelsPerUnit

float Game.BevelledRectangleWidget.m_cachedPixelsPerUnit
private

◆ m_cachedShadowBatch

FlatBatch2D Game.BevelledRectangleWidget.m_cachedShadowBatch = new FlatBatch2D()
private

◆ m_cachedTexturedBatch

TexturedBatch2D Game.BevelledRectangleWidget.m_cachedTexturedBatch = new TexturedBatch2D()
private

◆ m_cachedTextureScale

Vector2 Game.BevelledRectangleWidget.m_cachedTextureScale
private

◆ m_centerColor

Color Game.BevelledRectangleWidget.m_centerColor
private

◆ m_directionalLight

float Game.BevelledRectangleWidget.m_directionalLight
private

◆ m_flatBatch

FlatBatch2D Game.BevelledRectangleWidget.m_flatBatch
private

◆ m_points

BevelledShapeRenderer.Point [] Game.BevelledRectangleWidget.m_points = new BevelledShapeRenderer.Point[4]
private

◆ m_roundingCount

int Game.BevelledRectangleWidget.m_roundingCount
private

◆ m_roundingRadius

float Game.BevelledRectangleWidget.m_roundingRadius
private

◆ m_shadowColor

Color Game.BevelledRectangleWidget.m_shadowColor
private

◆ m_shadowSize

float Game.BevelledRectangleWidget.m_shadowSize
private

◆ m_texture

Texture2D Game.BevelledRectangleWidget.m_texture

◆ m_texturedBatch

TexturedBatch2D Game.BevelledRectangleWidget.m_texturedBatch
private

◆ m_textureLinearFilter

bool Game.BevelledRectangleWidget.m_textureLinearFilter

属性说明

◆ AmbientLight

float Game.BevelledRectangleWidget.AmbientLight
getset

◆ BevelColor

Color Game.BevelledRectangleWidget.BevelColor
getset

◆ BevelSize

float Game.BevelledRectangleWidget.BevelSize
getset

◆ CenterColor

Color Game.BevelledRectangleWidget.CenterColor
getset

◆ DirectionalLight

float Game.BevelledRectangleWidget.DirectionalLight
getset

◆ RoundingCount

int Game.BevelledRectangleWidget.RoundingCount
getset

◆ RoundingRadius

float Game.BevelledRectangleWidget.RoundingRadius
getset

◆ ShadowColor

Color Game.BevelledRectangleWidget.ShadowColor
getset

◆ ShadowSize

float Game.BevelledRectangleWidget.ShadowSize
getset

◆ Size

Vector2 Game.BevelledRectangleWidget.Size
getset

◆ Texture

Texture2D Game.BevelledRectangleWidget.Texture
getset

◆ TextureLinearFilter

bool Game.BevelledRectangleWidget.TextureLinearFilter
getset

◆ TextureOffset

Vector2 Game.BevelledRectangleWidget.TextureOffset
get

◆ TextureScale

float Game.BevelledRectangleWidget.TextureScale
getset

该类的文档由以下文件生成: