Set window state for Raylib, make Frame occupy full size of parent UIElement or window.

This commit is contained in:
2025-06-24 22:11:38 +02:00
parent 78b46cb38e
commit 58efd449a8
5 changed files with 46 additions and 4 deletions

View File

@@ -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;