Interface IVisualRenderer<TVisualProperties>
When implemented by a visual style, any Widget implementing IVisual<TVisualProperties> to be rendered with the visual style via DrawVisual<TWidget, TVisualProperties>(GeometryHelper, TWidget) where TWidget is a Widget implementing IVisual<TVisualProperties>
Namespace: Ritchie.Toolbox.VisualStyles
Assembly: Ritchie.Toolbox.dll
Syntax
public interface IVisualRenderer<in TVisualProperties> where TVisualProperties : struct
Type Parameters
Name | Description |
---|---|
TVisualProperties | The type of visual properties needed to render widgets of the given type. |
Methods
Draw(Widget, GeometryHelper, in LayoutRect, TVisualProperties)
Draws a widget using the specified visual properties.
Declaration
void Draw(Widget widget, GeometryHelper geometry, in LayoutRect contentRect, TVisualProperties properties)
Parameters
Type | Name | Description |
---|---|---|
Widget | widget | The widget to draw |
GeometryHelper | geometry | The destination to which the widget should be drawn |
LayoutRect | contentRect | The widget's calculated content bounds |
TVisualProperties | properties | The visual properties associated with the widget |