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