Interface CustomPainter
Namespace: Unity.UIWidgets.widgets
Syntax
public interface CustomPainter : Listenable
Methods
hitTest(Offset)
Declaration
bool? hitTest(Offset position)
Parameters
| Type | Name | Description |
|---|---|---|
| Offset | position |
Returns
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
paint(Canvas, Size)
Declaration
void paint(Canvas canvas, Size size)
Parameters
| Type | Name | Description |
|---|---|---|
| Canvas | canvas | |
| Size | size |
shouldRepaint(CustomPainter)
Declaration
bool shouldRepaint(CustomPainter oldDelegate)
Parameters
| Type | Name | Description |
|---|---|---|
| CustomPainter | oldDelegate |
Returns
| Type | Description |
|---|---|
| System.Boolean |