PCanvasElementContainer<E extends PCanvasElement> mixin
Mixin for a class that is a container for PCanvasElement.
- Implemented types
- Mixin applications
Properties
- asPCanvas → PCanvas?
-
Returns this instance casted to PCanvas if it's possible.
no setter
- asPCanvasElement → PCanvasElement?
-
Returns this instance casted to PCanvasElement if it's possible.
no setter
- boundingBox → PRectangle
-
The bounding box of this element container.
no setteroverride
-
elements
→ UnmodifiableListView<
E> -
All the PCanvasElements of this instance.
no setter
- elementsLength → int
-
Returns elements length.
no setter
- hasElements → bool
-
Returns
true
if this instances has elements.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- pCanvas → PCanvas?
-
Returns the root PCanvas.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addAllElements(
Iterable< E> elements) → void -
Adds all the entries in
elements
to this instances. -
addElement(
E element) → void -
Adds an
element
to this instances. -
clearElements(
) → void - Clears the elements of this instance.
-
dispatchOnClick(
PCanvasClickEvent event) → PCanvasClickEvent -
Processes
event
and callsonClick
on clicked elements. -
dispatchOnClickDown(
PCanvasClickEvent event) → PCanvasClickEvent -
Processes
event
and callsonClickDown
on clicked elements. -
dispatchOnClickMove(
PCanvasClickEvent event) → PCanvasClickEvent -
Processes
event
and callsonClickMove
on clicked elements. -
dispatchOnClickUp(
PCanvasClickEvent event) → PCanvasClickEvent -
Processes
event
and callsonClickUp
on clicked elements. -
dispatchOnKey(
PCanvasKeyEvent event) → PCanvasKeyEvent -
Processes
event
and callsonKey
on elements. -
dispatchOnKeyDown(
PCanvasKeyEvent event) → PCanvasKeyEvent -
Processes
event
and callsonKeyDown
on elements. -
dispatchOnKeyUp(
PCanvasKeyEvent event) → PCanvasKeyEvent -
Processes
event
and callsonKeyUp
on elements. -
getElement(
int index) → E -
Returns the element at elements
index
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeAllElements(
Iterable< E> elements) → void -
Removes all entries in
elements
from this instances. -
removeElement(
E element) → bool -
Removes
element
from this instance. -
selectElementAtPoint<
T extends PCanvasElement> (Point point, {bool recursive = false}) → List< T> -
selectElementByID<
T extends PCanvasElement> (String? id, {bool recursive = false}) → List< T> -
Returns a list of PCanvasElement of type
T
with a matchingid
. -
selectElementByType<
T extends PCanvasElement> ({bool recursive = false}) → List< T> -
Returns a list of PCanvasElement of type
T
. -
selectElementWhere<
T extends PCanvasElement> (bool selector(T elem), {bool recursive = false}) → List< T> -
Returns a list of PCanvasElement of type
T
filtered byselector
. -
toInnerClickEvent(
PCanvasClickEvent event, {PCanvasElement? targetElement, PCanvas? pCanvas}) → PCanvasClickEvent -
Returns an
event
translated to the internal coordinates of this element.inherited -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited