internal LGuiLayoutContext(LGuiLayoutMode LayoutMode, LGuiVec2 CursorPos, bool AutoMerge) { this.LayoutMode = LayoutMode; this.BeginCursorPos = CursorPos; this.CursorPos = CursorPos; this.ChildSize = LGuiVec2.Zero; this.PreviousPos = CursorPos; this.AutoMerge = AutoMerge; }
public static void BeginLayout(LGuiLayoutMode LayoutMode) { LGuiLayout.BeginLayout(LayoutMode, true); }
internal static void BeginLayout(LGuiLayoutMode LayoutMode, LGuiVec2 CursorPos, bool AutoMerge) { LayoutContextStack.Push(new LGuiLayoutContext(LayoutMode, CursorPos, AutoMerge)); }
internal static void BeginLayout(LGuiLayoutMode LayoutMode, bool AutoMerge) { BeginLayout(LayoutMode, GetCurrentLayoutContext().CursorPos, AutoMerge); }