2using System.Reflection;
3using System.Runtime.CompilerServices;
4using System.Collections.Generic;
5using System.Collections.Immutable;
10using Microsoft.Xna.Framework;
11using Microsoft.Xna.Framework.Graphics;
17 public partial class PropTest : FillMethods
30 FitContent =
new CUIBool2(
false,
true),
31 Anchor =
new Vector2(0.5f, 0.5f),
32 BackgroundColor = Color.Blue,
37 BackgroundColor = Color.Lime,
40 Anchor =
new Vector2(0.5f, 0.5f),
57 BackgroundColor = Color.Blue,
63 BackgroundColor = Color.Lime,
64 FitContent =
new CUIBool2(
false,
true),
71 BackgroundColor = Color.Red,
72 Anchor =
new Vector2(0.5f, 0.5f),
92 FitContent =
new CUIBool2(
true,
true),
93 Anchor =
new Vector2(0.0f, 0.5f),
94 BackgroundColor = Color.Blue,
99 BackgroundColor =
new Color(255, 0, 0, 100),
105 FitContent =
new CUIBool2(
true,
true),
106 Anchor =
new Vector2(1.0f, 0.5f),
107 BackgroundColor = Color.Blue,
112 BackgroundColor =
new Color(255, 0, 0, 100),
Base class for all components.
virtual CUIComponent Append(CUIComponent child, string name=null, [CallerMemberName] string memberName="")
Adds children to the end of the list.
Draggable and resizable container for other components.
Resizing components to it's Height and placing them sequentially.
Resizing components to it's Width and placing them sequentially.
static void ResizeToContent2(CUIComponent Main)
FitContent in list.
static void ResizeToContent3(CUIComponent Main)
FitContent of List itself.
static void ResizeToContent(CUIComponent Main)
FitContent in simple layout.