Class StyleManager
API for interacting with global styles throughout the UI.
Assembly: Ritchie.Toolbox.dll
public static class StyleManager
Methods
Declaration
public static void DrawDefaultWidgetBackground(Widget widget, GeometryHelper geometry, in Widget.BackgroundStyleProperties backgroundStyle, in LayoutRect contentRect)
Parameters
Uses the current visual style to draw the given widget.
If the visual style does not support drawing the given widget
(it doesn't implement IVisualRenderer<TVisualProperties>), then
no geometry will be drawn.
Declaration
public static void DrawVisual<TWidget, TVisualProperties>(this GeometryHelper geometryHelper, TWidget widget) where TWidget : Widget, IVisual<TVisualProperties> where TVisualProperties : struct
Parameters
Type Parameters
Declaration
public static void DrawVisual<TWidget, TVisual, TVisualProperties>(this GeometryHelper geometryHelper, TWidget widget) where TWidget : Widget, TVisual where TVisual : IVisual<TVisualProperties> where TVisualProperties : struct
Parameters
Type Parameters
Name |
Description |
TWidget |
|
TVisual |
|
TVisualProperties |
|
Declaration
public static void DrawWidgetBackground<TWidget>(this GeometryHelper geometry, TWidget widget, LayoutRect contentRect) where TWidget : Widget
Parameters
Type Parameters