PCanvasElement class abstract

A base class for PCanvas elements.

Inheritance
Mixed-in types
Implementers
Available extensions

Properties

boundingBox PRectangle
The bounding box of this element.
no setteroverride
className String
no setterinherited
dimension PDimension
The dimension this element.
no setter
hashCode int
The hash code for this object.
no setterinherited
id String?
The ID of this element.
getter/setter pair
parent PCanvasElementContainer<PCanvasElement>?
The parent of this element.
getter/setter pair
parentElement PCanvasElement?
no setter
pCanvas PCanvas?
Returns the root PCanvas if this element is attached.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
typeName String
no setter
zIndex int?
The Z index of this element.
no setter

Methods

dispatchOnClick(PCanvasClickEvent event) PCanvasClickEvent
Processes event and calls onClick
dispatchOnClickDown(PCanvasClickEvent event) PCanvasClickEvent
Processes event and calls onClickDown
dispatchOnClickMove(PCanvasClickEvent event) PCanvasClickEvent
Processes event and calls onClickMove
dispatchOnClickUp(PCanvasClickEvent event) PCanvasClickEvent
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
getPaintBoundingBox(PCanvas pCanvas) PRectangle
The bounding box of the painted area of this element.
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) → void
The paint operation of this element.
toInnerClickEvent(PCanvasClickEvent event, {PCanvasElement? targetElement, PCanvas? pCanvas}) PCanvasClickEvent
Returns an event translated to the internal coordinates of this element.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

from(Object? o) PCanvasElement?
fromList(List l) List<PCanvasElement?>
resolveWithElement(Object o, PCanvasElement element) → void