GBaseFilter class

This is the base filter class for all filters in the GraphX library. A filter is a graphical effect that modifies the appearance of a display object.

Implementers

Constructors

GBaseFilter()

Properties

currentObject GDisplayObject?
The currentObject property holds a reference to the display object that the filter is applied to. OutlineFilter uses this to adjust the filter size to the current object scale.
getter/setter pair
dirty bool
The dirty property is used to determine if the filter needs to be rebuilt.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isValid bool
The isValid property determines if the filter is valid and can be applied.
no setter
layerBounds GRect?
The layerBounds property holds the bounds of the display object.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildFilter() → void
The buildFilter method is called to rebuild the filter.
expandBounds(GRect layerBounds, GRect outputBounds) → void
The expandBounds method is used to expand the bounds of the display object. The layerBounds parameter is the current bounds of the display object, and the outputBounds parameter is the bounds that should be expanded to.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolvePaint(Paint paint) → void
This method is called to apply the filter's settings to the given paint object. The paint parameter is the paint object that is used to draw the display object.
toString() String
A string representation of this object.
inherited
update() → void
The update method is called to check if the filter needs to be rebuilt. If the dirty property is true and the isValid property is also true, then the buildFilter method is called to rebuild the filter.

Operators

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