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