Beispiel #1
0
        internal static void RenderFrameBorder(Vector2 Min, Vector2 Max, float rounding)
        {
            FlowContext.Window w = GlobalContext.CurrentWindow;

            float border_size = CurrentStyle.FrameBorderSize;

            if (border_size > 0.0f)
            {
                w.DrawList.AddRect(Min + Vector2.One, Max + Vector2.One, CurrentStyle.BorderShadow, rounding, border_size);
                w.DrawList.AddRect(Min, Max, CurrentStyle.Border, rounding, border_size);
            }
        }
Beispiel #2
0
        private static void AddWindowToDrawData(FlowContext.Window Window, DrawData Data)
        {
            //TODO: Metrics

            AddDrawListToDrawData(Window.DrawList, Data);
        }