Beispiel #1
0
        internal void BeginGroup(string Title, float CursorX)
        {
            var LayoutContext = LGuiLayout.GetCurrentLayoutContext();

            GroupStack.Push(new LGuiGroupContext(Title, LayoutContext.CursorPos.X, LayoutContext.BeginCursorPos.X));
            LGuiContext.PushID(LGuiHash.CalculateID(Title));

            LayoutContext.BeginCursorPos.X = CursorX;
            LayoutContext.CursorPos.X      = CursorX;
        }
Beispiel #2
0
        internal static void BeginFrame(LGuiFrameContext Context, bool IsChild)
        {
            PushID(LGuiHash.CalculateID(Context.Title));
            var ClipRect = FrameContextStack.Count > 0 && IsChild
                ? LGuiMisc.CombineRect(ref GetCurrentFrame().Rect, ref Context.Rect)
                : Context.Rect;

            FrameContextStack.Push(Context);
            LGuiGraphics.SetClipRect(ClipRect);
        }
Beispiel #3
0
 public override int GetHashCode()
 {
     return(LGuiHash.Combine(FontName.GetHashCode(), FontSize.GetHashCode(), Bold.GetHashCode()));
 }
Beispiel #4
0
 public override int GetHashCode()
 {
     return(LGuiHash.Combine(R.GetHashCode(), G.GetHashCode(), B.GetHashCode(), A.GetHashCode()));
 }
Beispiel #5
0
 public override int GetHashCode()
 {
     return(LGuiHash.Combine(Pos.GetHashCode(), Size.GetHashCode()));
 }
Beispiel #6
0
 public override int GetHashCode()
 {
     return(LGuiHash.Combine(X.GetHashCode(), Y.GetHashCode()));
 }