An implementation of
Description
Notes
Example
| Example | |
![]() | |
{import * from CURL.GUI.SHAPES}
{let shape:RegionShape =
{RegionShape
{Region.from-vertices
{Distance2d 0cm, -1cm},
{Distance2d 1cm, -1cm},
{Distance2d 1cm, -.8cm},
{Distance2d .2cm, -.8cm},
{Distance2d .2cm, -.6cm},
{Distance2d .7cm, -.6cm},
{Distance2d .7cm, -.4cm},
{Distance2d .2cm, -.4cm},
{Distance2d .2cm, -.2cm},
{Distance2d 1cm, -.2cm},
{Distance2d 1cm, 0cm},
{Distance2d 0cm, 0cm}
},
border-width = 0m,
color = FillPattern.silver,
border-color = FillPattern.navy,
translation = {Distance2d 1cm, 1.5cm}
}
}
{HBox
"border-width (in pixels): ",
{TextField
width = .5in,
value = "0",
{on ValueFinished at field:TextField do
let p-s:Distance = {shape.get-display-context}.pixel-size
set shape.border-width = {field.value.to-double} * p-s
}
}
}
{Canvas
width = 3cm,
height = 2cm,
shape
}
|
| Construct a new RegionShape. |
| The region that defines this RegionShape. |
| The "element" or "type" of this |
| Calculate the rectangular rendering bounds of this Shape, in its local coordinate system. |
| Calculate the rectangular rendering bounds of this shape in the coordinate system of its shape root ancestor. |
| Calculate the rectangular layout bounds of this Shape, in its local coordinate system. |
| Determine whether or not a point lies within this Shape. |
| Notification that |
Construct a new RegionShape.
The region that defines this RegionShape.
The "element" or "type" of this
Description
Overriding
Calculate the rectangular rendering bounds of this Shape, in its local coordinate system.
Returns
Description
Notes
Overriding
Calculate the rectangular rendering bounds of this shape in the coordinate system of its shape root ancestor.
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
Notification that
Overriding