Object <- Viewable <- Shape <- Line |
|
|
CalcBoundsBox CalcInsidePart CalcOpaqueBox Draw PositionForTool StretchTrack TapPressCriteria |
|
CanContain CanDrawIn HasErasablePiece |
| Field | Type | |
|---|---|---|
| Viewable: | superview: | Viewable |
| relativeOrigin: | Dot | |
| contentSize: | Dot | |
| viewFlags: | Flags | |
| labelStyle: | TextStyle | |
| color: | Unsigned | |
| altColor: | Unsigned | |
| shadow: | Shadow | |
| sound: | Playable | |
| HasLineStyleAttribute: | lineStyle: | LineStyle |
| Shape: | shapeType: | ShapeType |
| orientation: | UnsignedByte | |
| rounding: | UnsignedByte | |
| canDrawIn: | Boolean | |
| Line: | constrainedLine: | Boolean |
| altSlope: | Boolean |
instance Line tag; relativeOrigin: <0.0,0.0>; contentSize: <0.0,0.0>; viewFlags: 0x00000000; labelStyle: nilObject; color: 0; altColor: 0; shadow: nilObject; sound: nilObject; lineStyle: nilObject; shapeType: nilObject; orientation: 0; rounding: 0; canDrawIn: false; constrainedLine: false; altSlope: false; end instance;
Define Class Line; inherits from Shape; field constrainedLine: Boolean; field altSlope: Boolean; overrides CalcBoundsBox, CalcInsidePart, CalcOpaqueBox, CanContain, CanDrawIn; overrides Draw; overrides HasErasablePiece; // overridden to return true if self is deletable, moveable, and visible; overrides PositionForTool; overrides StretchTrack; overrides TapPressCriteria; // returns press with small movement end class;