Пример #1
0
 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;
 }
Пример #2
0
 public static void BeginLayout(LGuiLayoutMode LayoutMode)
 {
     LGuiLayout.BeginLayout(LayoutMode, true);
 }
Пример #3
0
 internal static void BeginLayout(LGuiLayoutMode LayoutMode, LGuiVec2 CursorPos, bool AutoMerge)
 {
     LayoutContextStack.Push(new LGuiLayoutContext(LayoutMode, CursorPos, AutoMerge));
 }
Пример #4
0
 internal static void BeginLayout(LGuiLayoutMode LayoutMode, bool AutoMerge)
 {
     BeginLayout(LayoutMode, GetCurrentLayoutContext().CursorPos, AutoMerge);
 }