PainterControllerHelper extension

Adds extra getters and setters in PainterController to make it easier to use.

This was made as an extension to not clutter up the PainterController class even more.

on

Properties

background BackgroundDrawable?
The current background drawable directly from value.
getter/setter pair
drawables List<Drawable>
The unmodifiable list of drawables directly from value.
no setter
drawShapeOnce bool
Whether to draw shapes once or continuously from value.settings.shape directly.
getter/setter pair
enlargeObjectControlsResolver ObjectEnlargeControlsResolver
The function used to decide whether to enlarge the object controls or not from value.settings.object directly.
getter/setter pair
freeStyleColor Color
The color used for free-style drawing from value.settings.freeStyle directly.
getter/setter pair
freeStyleMode FreeStyleMode
The free-style painting mode from value.settings.freeStyle directly.
getter/setter pair
freeStyleSettings FreeStyleSettings
The free-style settings directly from the painter settings.
getter/setter pair
freeStyleStrokeWidth double
The stroke width used for free-style drawing from value.settings.freeStyle directly.
getter/setter pair
maxScale double
The maximum scale that the user can "zoom in" to from value.settings.scale directly.
getter/setter pair
minScale double
The minimum scale that the user can "zoom out" to from value.settings.scale directly.
getter/setter pair
objectLayoutAssist ObjectLayoutAssistSettings
The layout-assist settings of the selected object drawable from value.settings.object directly.
getter/setter pair
objectSettings ObjectSettings
The object settings directly from the painter settings.
getter/setter pair
scaleSettings ScaleSettings
The scale settings directly from the painter settings.
getter/setter pair
scalingEnabled bool
Whether scaling is enabled or not from value.settings.scale directly.
getter/setter pair
settings PainterSettings
The current painter settings directly from value.
getter/setter pair
shapeFactory ShapeFactory<ShapeDrawable>?
The factory for the shape to be drawn from value.settings.shape directly.
getter/setter pair
shapePaint Paint?
The paint used to draw shapes from value.settings.shape directly.
getter/setter pair
shapeSettings ShapeSettings
The shape settings directly from the painter settings.
getter/setter pair
showObjectScaleRotationControlsResolver ObjectShowScaleRotationControlsResolver
The function used to decide whether to show scale and rotation object controls or not from value.settings.object directly.
getter/setter pair
textFocusNode FocusNode?
The focus node used to edit text drawables text from value.settings.text directly.
getter/setter pair
textSettings TextSettings
The text settings directly from the painter settings.
getter/setter pair
textStyle TextStyle
The text style to be used for text drawables from value.settings.text directly.
getter/setter pair