GraphicsClipper class abstract

Custom Clipper that uses Graphics API instead of Path. For ClipPath Widget.

Inheritance

Constructors

GraphicsClipper()

Properties

hashCode int
The hash code for this object.
no setterinherited
pivotX double
The x pivot point of the GDisplayObject.
getter/setter pair
pivotY double
The y pivot point of the GDisplayObject.
getter/setter pair
reClip bool
If true, this clipper will be re-clipped on subsequent frames.
getter/setter pair
rotation double
The rotation of the GDisplayObject in radians.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scaleX double
The horizontal scale factor of the GDisplayObject.
getter/setter pair
scaleY double
The vertical scale factor of the GDisplayObject.
getter/setter pair
skewX double
The horizontal skew angle in radians.
getter/setter pair
skewY double
The vertical skew angle in radians.
getter/setter pair
x double
The x position of the GDisplayObject.
getter/setter pair
y double
The y position of the GDisplayObject.
getter/setter pair

Methods

addListener(VoidCallback listener) → void
Register a closure to be notified when it is time to reclip.
inherited
applyTransform(Path path) Path
Applies the transform properties to the clipping path.
draw(Graphics g, Size size) → void
Subclasses must implement this method and use the Graphics draw commands to generate the output Path.
getApproximateClipRect(Size size) Rect
Returns an approximation of the clip returned by getClip, as an axis-aligned Rect. This is used by the semantics layer to determine whether widgets should be excluded.
inherited
getClip(Size size) Path
Returns a description of the clip given that the render object being clipped is of the given size.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that the object notifies when it is time to reclip.
inherited
shouldReclip(covariant CustomClipper<Path> oldClipper) bool
Called whenever a new instance of the custom clipper delegate class is provided to the clip object, or any time that a new clip object is created with a new instance of the custom clipper delegate class (which amounts to the same thing, because the latter is implemented in terms of the former).
override
toString() String
A string representation of this object.
inherited

Operators

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