Add StackLayout and GridLayout classes for window UI element layouts

This commit is contained in:
Stone_Red
2026-06-16 18:20:20 +02:00
parent 99c98e74a2
commit e3ece1fb4a
4 changed files with 205 additions and 11 deletions
+16
View File
@@ -0,0 +1,16 @@
using RemSox.UI.GUI.Windows;
namespace RemSox.UI.GUI.Layout;
public static class LayoutExtensions
{
public static StackLayout CreateStackLayout(this Window window, int x, int y, int spacing = 0, StackOrientation orientation = StackOrientation.Vertical)
{
return new StackLayout(window, x, y, spacing, orientation);
}
public static GridLayout CreateGridLayout(this Window window, int x, int y, int[] colWidths, int[] rowHeights, int spacing = 0)
{
return new GridLayout(window, x, y, colWidths, rowHeights, spacing);
}
}