Shape
super: UIView (on iOS)
Base class for LineShape, RectShape, OvalShape and PolyShape shapes.
Events
-
Load() This event is called when the object becames available in the current runtime system.
-
TouchesBegan(touches: Object): Bool This event is called when one or more new touches occurred in this view and the userInteractionEnabled property is enabled. Return "true" if you want to consume the event and not forward it to the next responder, return "no" to forward any events that you do not handle yourself.
-
TouchesMoved(touches: Object, touchInside: Bool): Bool This event is called when the location or force of a touch changes and the userInteractionEnabled property is enabled. Return "true" if you want to consume the event and not forward it to the next responder, return "no" to forward any events that you do not handle yourself.
-
TouchesEnded(touches: Object, touchInside: Bool): Bool This event is called when one or more fingers are raised and the userInteractionEnabled property is enabled. Return "true" if you want to consume the event and not forward it to the next responder, return "no" to forward any events that you do not handle yourself.
-
TouchesCancelled(touches: Object): Bool This event is called when the sysyem receives a system interruption (such as a system alert) requiring cancellation of the touch sequence and the userInteractionEnabled property is enabled. Return "true" if you want to consume the event and not forward it to the next responder, return "no" to forward any events that you do not handle yourself.
-
Unload() This event is called when the object has been removed from the current runtime system (but not yet deallocated).
Properties
-
var fillColor: Color Color used to fill the shape.
-
var fillGradient: Gradient Gradient used to fill the shape.
-
var strokeColor: Color Color used to stoke shape border.
-
var strokeThickness: Float Border thickness.
-
var regularShape: Bool If true then shape is forced to have same width and height.
-
var objectName: String The name of the object.