Exemple #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;
        }
Exemple #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);
        }
Exemple #3
0
 public override int GetHashCode()
 {
     return(LGuiHash.Combine(FontName.GetHashCode(), FontSize.GetHashCode(), Bold.GetHashCode()));
 }
Exemple #4
0
 public override int GetHashCode()
 {
     return(LGuiHash.Combine(R.GetHashCode(), G.GetHashCode(), B.GetHashCode(), A.GetHashCode()));
 }
Exemple #5
0
 public override int GetHashCode()
 {
     return(LGuiHash.Combine(Pos.GetHashCode(), Size.GetHashCode()));
 }
Exemple #6
0
 public override int GetHashCode()
 {
     return(LGuiHash.Combine(X.GetHashCode(), Y.GetHashCode()));
 }