Set window state for Raylib, make Frame occupy full size of parent UIElement or window.
This commit is contained in:
@@ -10,6 +10,11 @@ public abstract class UIElement : IElement, IRenderableElement, IResizeableEleme
|
||||
public Vector2 LocalPosition { get; set; } = Vector2.Zero;
|
||||
public Vector2 GlobalPosition => _parent?.GlobalPosition + LocalPosition ?? LocalPosition;
|
||||
|
||||
/// <summary>
|
||||
/// Parent <see cref="UIElement"/> of this element.
|
||||
/// </summary>
|
||||
public UIElement? Parent => _parent;
|
||||
|
||||
public Rect Size
|
||||
{
|
||||
get => _size;
|
||||
|
||||
Reference in New Issue
Block a user