/ HALion Developer Resource / HALion Macro Page / Controls /
Decor (Control)
(Since HALion 6.4.20)
Description
This control allows you to add rectangular shapes as graphical elements to create background frames, group frames, etc. The rectangular shape can be drawn as an outline, filled, or both. The fill style can either be a solid color, a linear gradient, or a radial gradient. Furthermore, the rectangle can have rounded corners with an adjustable radius.
Properties
Poperty | Description |
---|---|
Name | The name of the element. This name will be displayed in the GUI Tree. |
Position/Size | Position X, Position Y, Width, Height: Position and size of the element in pixels. Position X/Y defines the position of the upper left corner. |
Attach | Defines how an element behaves when its parent element is resized. You can set the following parameters:
|
Tooltip | Text that appears as a tooltip when the mouse hovers over the element. |
Fill Style | Decors can be filled. You can choose from the following fill styles:
|
Radius | Specifies the roundness of the rectangle corners. |
Line Width | Specifies the width of the outline. |
Angle | Specifies the angle of the Linear Gradient fill style in degrees. |
Stretch | Allows you to compress (values < 1.0) or expand (values > 1.0) the Linear Gradient or Radial Gradient. |
Center X/Y | Specifies the center of the Radial Gradient. Negative values move the center to the left and top, postive values to the right and bottom. |
Line Color | Defines the color of the outline. |
Color | Specifies the fill color for the Solid fill style. |
Start Color | Specifies the top fill color for the Linear Gradient fill style. |
End Color | Specifies the bottom fill color for the Linear Gradient fill style. |
Inner Color | Specifies the inner fill color for the Radial Gradient fill style. |
Outer Color | Specifies the outer fill color for the Radial Gradient fill style. |