An implementation of
Description
Notes
Example
| Example | |
![]() | |
{import * from CURL.GUI.SHAPES}
{let shape:RectangleShape =
{RectangleShape
{GRect 0cm, 2cm, 0cm, 1cm},
border-width = 0m,
color = FillPattern.silver,
border-color = FillPattern.navy,
translation = {Distance2d 1cm, .5cm}
}
}
{HBox
"border-width (in pixels): ",
{TextField
width = .5in,
value = "0",
{on ValueFinished at field:TextField do
set shape.border-width = {field.value.to-double} * 1px
}
}
}
{Canvas
width = 4cm,
height = 2cm,
shape
}
|
| Construct a new RectangleShape. |
| The color of any borders or outlines present in this (or child) shapes. |
| The style in which this Shape's border will be rendered. |
| The thickness of the border around this RectangleShape. |
| The color of this shape and its children. |
| The |
| The bounds of the rectangle. |
| The "element" or "type" of this |
| Draw this object's visual representation. |
| Calculate the rectangular rendering bounds of this Shape, in its local coordinate system. |
| Calculate the rectangular layout bounds of this Shape, in its local coordinate system. |
| Determine whether or not a point lies within this Shape. |
| Determine whether a polygon intersects this Shape. |
| Notification that |
Construct a new RectangleShape.
Notes
The color of any borders or outlines present in this (or child) shapes.
Notes
The style in which this Shape's border will be rendered.
Description
The thickness of the border around this RectangleShape.
Description
The color of this shape and its children.
Description
Notes
The
Programming Notes
The bounds of the rectangle.
Description
Notes
The "element" or "type" of this
Description
Overriding
Draw this object's visual representation.
Overriding
Calculate the rectangular rendering bounds of this Shape, in its local coordinate system.
Returns
Description
Notes
Overriding
Calculate the rectangular layout bounds of this Shape, in its local coordinate system.
Returns
Description
Notes
Overriding
Determine whether or not a point lies within this Shape.
Returns
Description
Overriding
Determine whether a polygon intersects this Shape.
Description
Overriding
Notification that
Overriding