PCanvasPainter class abstract
PCanvas painter base class.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLoadingResources → bool
-
Returns
true
if this painter is loading resources. See loadResourcesno setter - loadingFont ↔ PFont
-
The loading font of the default paintLoading implementation.
getter/setter pair
- loadingStyle ↔ PStyle
-
The loading style of the default paintLoading implementation.
getter/setter pair
- loadingText ↔ String
-
The loading text of the default paintLoading implementation.
getter/setter pair
- pCanvas → PCanvas?
-
The PCanvas of this painter.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- zIndex → int
-
Returns the
z-index
of the painter layer. Default: 0no setter
Methods
-
callLoadResources(
PCanvas pCanvas) → FutureOr< bool> - Calls loadResources.
-
clear(
PCanvas pCanvas) → void - Clears the canvas.
-
dispatchOnClick(
PCanvasClickEvent event) → void -
Processes
event
and calls onClick. -
dispatchOnClickDown(
PCanvasClickEvent event) → void -
Processes
event
and calls onClickDown. -
dispatchOnClickMove(
PCanvasClickEvent event) → void -
Processes
event
and calls onClickMove. -
dispatchOnClickUp(
PCanvasClickEvent event) → void -
Processes
event
and calls onClickUp. -
dispatchOnKey(
PCanvasKeyEvent event) → void -
Processes
event
and calls onKey. -
dispatchOnKeyDown(
PCanvasKeyEvent event) → void -
Processes
event
and calls onKeyDown. -
dispatchOnKeyUp(
PCanvasKeyEvent event) → void -
Processes
event
and calls onKeyUp. -
loadResources(
PCanvas pCanvas) → FutureOr< bool> - The load resource implementation.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onClick(
PCanvasClickEvent event) → void -
Canvas
onClick
handler. -
onClickDown(
PCanvasClickEvent event) → void -
Canvas
onClickDown
handler. -
onClickMove(
PCanvasClickEvent event) → void -
Canvas
onClickMove
handler. -
onClickUp(
PCanvasClickEvent event) → void -
Canvas
onClickUp
handler. -
onKey(
PCanvasKeyEvent event) → void -
Canvas
onKey
handler. -
onKeyDown(
PCanvasKeyEvent event) → void -
Canvas
onKeyDown
handler. -
onKeyUp(
PCanvasKeyEvent event) → void -
Canvas
onKeyUp
handler. -
paint(
PCanvas pCanvas) → FutureOr< bool> - The paint operations.
-
paintElements(
PCanvas pCanvas, List< PCanvasElement> elements, bool posPaint) → FutureOr<bool> -
Paint the
elements
. -
paintLoading(
PCanvas pCanvas) → FutureOr< bool> - The paint operations while the canvas is loading. See isLoadingResources.
-
refresh(
) → void - Refreshes the canvas of this painter.
-
setup(
PCanvas pCanvas) → void -
toString(
) → String -
A string representation of this object.
inherited
-
waitLoading(
) → FutureOr< bool> - Waits the loadResources.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited