IArlecchinoWidget interface
Namespace: Arlecchino.Widgets · Assembly: Arlecchino
A reusable piece of a screen: it draws into the region it is handed and holds no coordinates of its own. A widget that also takes keys or the mouse implements IArlecchinoInteractiveWidget instead.
public interface IArlecchinoWidget
Implemented by Form, IArlecchinoInteractiveWidget, ListBox, ScrollPane, Table, Tabs, Tree, Picture, AreaChart, BarChart, Gauge, ProgressBar, Sparkline, Spinner, StatusBar, TextView
Methods
| Member | Summary |
|---|---|
Draw(SurfaceRegion) | Draws the widget and answers what is left of the region underneath it, so the caller can stack the next thing. A widget that fills whatever it is given answers with an empty region. |
Methods in detail
Draw(SurfaceRegion)
public SurfaceRegion Draw(SurfaceRegion region);
Draws the widget and answers what is left of the region underneath it, so the caller can stack the next thing. A widget that fills whatever it is given answers with an empty region.
Parameters
| Name | Type | Description |
|---|---|---|
region | SurfaceRegion | Where to draw, in its own coordinates. |
Returns SurfaceRegion — The part of region the widget did not paint, empty when none is.