Constructs a new instance of the RoundedRectangleVisual class.
Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_Protected_ProtectedinitializedProtectedmanagedProtectedneedsReadonlyonReadonlyonReadonlyonReadonlyonProtectedprevProtectedvisualGets the duration of the animation.
The duration of the animation in milliseconds.
Sets the duration of the animation.
The duration of the animation in milliseconds.
Gets the toggled default color for the visual element.
A vec4 representing the current toggled default color.
Sets the toggled default color for the visual element.
A vec4 representing the RGBA color to be used as the toggled default color.
Gets the toggled hovered color for the visual element.
A vec4 representing the current toggled hovered color.
Sets the toggled hovered color for the visual element.
A vec4 representing the RGBA color to be used as the toggled hovered color.
Gets the toggled triggered color for the visual element.
A vec4 representing the current toggled triggered color.
Sets the toggled triggered color for the visual element.
A vec4 representing the RGBA color to be used as the toggled triggered color.
Gets the default gradient parameters for the border of the rounded rectangle.
The default border gradient parameters.
Sets the gradient parameters for the default state of the border and initializes the visual states.
The gradient parameters to be set for the default state of the border.
Gets the hovered color for the border of the rounded rectangle.
The hovered border color as a vec4 value.
Sets the hovered color for the border of the rounded rectangle and initializes the visual states.
The hovered color to be set for the border.
Gets the gradient parameters for the hovered state of the border.
The hovered border gradient parameters.
Sets the gradient parameters for the hovered state of the border and initializes the visual states.
The gradient parameters to be set for the hovered state of the border.
Gets the gradient parameters for the inactive state of the border.
The inactive border gradient parameters.
Sets the gradient parameters for the inactive state of the border and initializes the visual states.
The gradient parameters to be set for the inactive state of the border.
Gets the size of the border for the rounded rectangle.
The border size as a number.
Gets the toggled default color for the border of the rounded rectangle.
The toggled default border color as a vec4 value.
Sets the toggled default color for the border of the rounded rectangle and initializes the visual states.
The toggled default color to be set for the border.
Gets the gradient parameters for the toggled default state of the border.
Sets the gradient parameters for the toggled default state of the border
Gets the toggled hovered color for the border of the rounded rectangle.
The toggled hovered border color as a vec4 value.
Sets the toggled hovered color for the border of the rounded rectangle and initializes the visual states.
The toggled hovered color to be set for the border.
Gets the gradient parameters for the toggled hovered state of the border.
Sets the gradient parameters for the toggled hovered state of the border and initializes the visual states.
Gets the toggled triggered color for the border of the rounded rectangle.
The toggled triggered border color as a vec4 value.
Sets the toggled triggered color for the border of the rounded rectangle and initializes the visual states.
The toggled triggered color to be set for the border.
Gets the gradient parameters for the toggled triggered state of the border.
Sets the gradient parameters for the toggled triggered state of the border and initializes the visual states.
Gets the triggered color for the border of the rounded rectangle.
The triggered border color as a vec4 value.
Sets the triggered color for the border of the rounded rectangle and initializes the visual states.
The triggered color to be set for the border.
Gets the gradient parameters for the triggered state of the border.
The triggered border gradient parameters.
Sets the gradient parameters for the triggered state of the border and initializes the visual states.
The gradient parameters to be set for the triggered state of the border.
Gets the corner radius of the rounded rectangle.
The current corner radius of the rounded rectangle in pixels.
Sets the corner radius of the rounded rectangle.
The radius of the corners in pixels.
Sets the base type for the default state and initializes the visual states.
The base type to be set for the default state.
Gets the border size for the default state.
The border size for the default state.
Sets the border size for the default state and initializes the visual states.
The border size to be set for the default state.
Gets the border type for the default state.
The border type for the default state.
Sets the border type for the default state and initializes the visual states.
The border type to be set for the default state.
Gets the default gradient parameters for the visual.
The default gradient parameters.
Sets the default gradient parameters for the visual and initializes the visual states.
The gradient parameters to be set as the default.
Gets whether the default state has a border.
true if the default state has a border; otherwise, false.
Sets whether the default state has a border and initializes the visual states.
A boolean indicating whether the default state should have a border.
Gets whether the default state should apply position changes.
true if the default state should apply position changes; otherwise, false.
Sets whether the default state should apply position changes and initializes the visual states.
A boolean indicating whether the default state should apply position changes.
Gets whether the default state should apply scale changes.
true if the default state should apply scale changes; otherwise, false.
Sets whether the default state should apply scale changes and initializes the visual states.
A boolean indicating whether the default state should apply scale changes.
Gets the position of the visual element when it is in an error state.
A vec3 representing the current error position.
Sets the position of the visual element when it is in an error state.
A vec3 object representing the new position for the error state.
Gets the scale applied when the visual is in an error state.
A vec3 representing the current error scale.
Sets the scale for the error visualization and initializes its visual states.
A vec3 object representing the scale to be applied to the error visualization.
Indicates whether the rounded rectangle visual has a border.
true if the visual has a border; otherwise, false.
Sets the base type for the hovered state and initializes the visual states.
The base type to be set for the hovered state.
Gets the border size for the hovered state.
The border size for the hovered state.
Sets the border size for the hovered state and initializes the visual states.
The border size to be set for the hovered state.
Gets the border type for the hovered state.
The border type for the hovered state.
Sets the border type for the hovered state and initializes the visual states.
The border type to be set for the hovered state.
Gets the hovered gradient parameters for the visual.
The hovered gradient parameters.
Sets the hovered gradient parameters for the visual and initializes the visual states.
The gradient parameters to be set for the hovered state.
Gets whether the hovered state has a border.
true if the hovered state has a border; otherwise, false.
Sets whether the hovered state has a border and initializes the visual states.
A boolean indicating whether the hovered state should have a border.
Gets whether the hover state should apply position changes.
true if the hovered state should apply position changes; otherwise, false.
Sets whether the hovered state should apply position changes and initializes the visual states.
A boolean indicating whether the hovered state should apply position changes.
Gets whether the hovered state should apply scale changes.
true if the hovered state should apply scale changes; otherwise, false.
Sets whether the hovered state should apply scale changes and initializes the visual states.
A boolean indicating whether the hovered state should apply scale changes.
Sets the base type for the inactive state and initializes the visual states.
The base type to be set for the inactive state.
Gets the border size for the inactive state.
The border size for the inactive state.
Sets the border size for the inactive state and initializes the visual states.
The border size to be set for the inactive state.
Gets the border type for the inactive state.
The border type for the inactive state.
Sets the border type for the inactive state and initializes the visual states.
The border type to be set for the inactive state.
Gets the inactive gradient parameters for the visual.
The inactive gradient parameters.
Sets the inactive gradient parameters for the visual and initializes the visual states.
The gradient parameters to be set for the inactive state.
Gets whether the inactive state has a border.
true if the inactive state has a border; otherwise, false.
Sets whether the inactive state has a border and initializes the visual states.
A boolean indicating whether the inactive state should have a border.
Gets the position of the visual element when it is in a inactive state.
A vec3 representing the current inactive position.
Sets the position of the visual element when it is in a inactive state.
A vec3 object representing the new position for the inactive state.
Gets the scale applied when the visual is in a inactive state.
A vec3 representing the current inactive scale.
Sets the scale to be applied when the visual is in a inactive state and initializes its visual states.
A vec3 object representing the scale to apply in the inactive state.
Gets whether the inactive state should apply position changes.
true if the inactive state should apply position changes; otherwise, false.
Sets whether the inactive state should apply position changes and initializes the visual states.
A boolean indicating whether the inactive state should apply position changes.
Gets whether the inactive state should apply scale changes.
true if the inactive state should apply scale changes; otherwise, false.
Sets whether the inactive state should apply scale changes and initializes the visual states.
A boolean indicating whether the inactive state should apply scale changes.
Gets the type of border for the rounded rectangle.
The type of border, which can be either "Color" or "Gradient".
Sets whether the rounded rectangle uses a gradient for its border.
A boolean indicating whether to use a gradient (true) or a solid color (false) for the border.
Gets the RenderMeshVisual associated with the rounded rectangle.
The visual representation of the rounded rectangle's mesh.
Gets the associated SceneObject instance.
The SceneObject associated with this visual.
Determines whether the color should change when transition to a new state.
A boolean value indicating if the color change is enabled.
Sets whether to enable the color changing behavior for the visual.
A boolean indicating whether the color change is enabled (true) or disabled (false).
Determines whether the visual element should scale when transitioning to a new state
true if the visual element should scale, otherwise false.
Indicates whether the visual element should be translated when transitioning to a new state.
true if the visual element should be translated; otherwise, false.
Gets the size of the RoundedRectangleVisual.
A vec3 representing the dimensions of the RoundedRectangleVisual.
Sets the size of the RoundedRectangleVisual.
Updates both the internal _size property.
A vec3 object representing the dimensions of the RoundedRectangleVisual.
Gets the border size for the toggled default state.
The border size for the toggled default state.
Sets the border size for the toggled default state and initializes the visual states.
The border size to be set for the toggled default state.
Gets the border type for the toggled default state.
The border type for the toggled default state.
Sets the border type for the toggled default state and initializes the visual states.
The border type to be set for the toggled default state.
Gets the toggled default gradient parameters for the visual.
The toggled default gradient parameters.
Sets the toggled default gradient parameters for the visual and initializes the visual states.
The gradient parameters to be set for the toggled default state.
Gets whether the toggled default state has a border.
true if the toggled default state has a border; otherwise, false.
Sets whether the toggled default state has a border and initializes the visual states.
A boolean indicating whether the toggled default state should have a border.
Gets whether the toggled default state should apply position changes.
true if the toggled default state should apply position changes; otherwise, false.
Sets whether the toggled default state should apply position changes and initializes the visual states.
A boolean indicating whether the toggled default state should apply position changes.
Gets whether the toggled default state should apply scale changes.
true if the toggled default state should apply scale changes; otherwise, false.
Sets whether the toggled default state should apply scale changes and initializes the visual states.
A boolean indicating whether the toggled default state should apply scale changes.
Gets the base type for the toggled hovered state.
The base type for the toggled hovered state.
Sets the base type for the toggled hovered state and initializes the visual states.
The base type to be set for the toggled hovered state.
Gets the border size for the toggled hovered state.
The border size for the toggled hovered state.
Sets the border size for the toggled hovered state and initializes the visual states.
The border size to be set for the toggled hovered state.
Gets the border type for the toggled hovered state.
The border type for the toggled hovered state.
Sets the border type for the toggled hovered state and initializes the visual states.
The border type to be set for the toggled hovered state.
Gets the toggled hovered gradient parameters for the visual.
The toggled hovered gradient parameters.
Sets the toggled hovered gradient parameters for the visual and initializes the visual states.
The gradient parameters to be set for the toggled hovered state.
Gets whether the toggled hovered state has a border.
true if the toggled hovered state has a border; otherwise, false.
Sets whether the toggled hovered state has a border and initializes the visual states.
A boolean indicating whether the toggled hovered state should have a border.
Gets the toggled hovered scale of the visual element.
A vec3 representing the current toggled hovered scale.
Sets the scale to be applied when the visual is toggled and hovered.
A vec3 representing the new scale to apply when toggled and hovered.
Gets whether the toggled hovered state should apply position changes.
true if the toggled hovered state should apply position changes; otherwise, false.
Sets whether the toggled hovered state should apply position changes and initializes the visual states.
A boolean indicating whether the toggled hovered state should apply position changes.
Gets whether the toggled hovered state should apply scale changes.
true if the toggled hovered state should apply scale changes; otherwise, false.
Sets whether the toggled hovered state should apply scale changes and initializes the visual states.
A boolean indicating whether the toggled hovered state should apply scale changes.
Gets the border size for the toggled triggered state.
The border size for the toggled triggered state.
Sets the border size for the toggled triggered state and initializes the visual states.
The border size to be set for the toggled triggered state.
Gets the border type for the toggled triggered state.
The border type for the toggled triggered state.
Sets the border type for the toggled triggered state and initializes the visual states.
The border type to be set for the toggled triggered state.
Gets the toggled triggered gradient parameters for the visual.
The toggled triggered gradient parameters.
Sets the toggled triggered gradient parameters for the visual and initializes the visual states.
The gradient parameters to be set for the toggled triggered state.
Gets whether the toggled triggered state has a border.
true if the toggled triggered state has a border; otherwise, false.
Sets whether the toggled triggered state has a border and initializes the visual states.
A boolean indicating whether the toggled triggered state should have a border.
Gets whether the toggled triggered state should apply position changes.
true if the toggled triggered state should apply position changes; otherwise, false.
Sets whether the toggled triggered state should apply position changes and initializes the visual states.
A boolean indicating whether the toggled triggered state should apply position changes.
Gets whether the toggled triggered state should apply scale changes.
true if the toggled triggered state should apply scale changes; otherwise, false.
Sets whether the toggled triggered state should apply scale changes and initializes the visual states.
A boolean indicating whether the toggled triggered state should apply scale changes.
Gets the transform associated with this visual.
The current transform of the visual.
Sets the base type for the triggered state and initializes the visual states.
The base type to be set for the triggered state.
Gets the border size for the triggered state.
The border size for the triggered state.
Sets the border size for the triggered state and initializes the visual states.
The border size to be set for the triggered state.
Gets the border type for the triggered state.
The border type for the triggered state.
Sets the border type for the triggered state and initializes the visual states.
The border type to be set for the triggered state.
Gets the triggered gradient parameters for the visual.
The triggered gradient parameters.
Sets the triggered gradient parameters for the visual and initializes the visual states.
The gradient parameters to be set for the triggered state.
Gets whether the triggered state has a border.
true if the triggered state has a border; otherwise, false.
Sets whether the triggered state has a border and initializes the visual states.
A boolean indicating whether the triggered state should have a border.
Gets whether the triggered state should apply position changes.
true if the triggered state should apply position changes; otherwise, false.
Sets whether the triggered state should apply position changes and initializes the visual states.
A boolean indicating whether the triggered state should apply position changes.
Gets whether the triggered state should apply scale changes.
true if the triggered state should apply scale changes; otherwise, false.
Sets whether the triggered state should apply scale changes and initializes the visual states.
A boolean indicating whether the triggered state should apply scale changes.
ProtectedvisualProtectedapplyProtectedapplyDestroys the current instance.
Initializes the visual component by setting up its initial scale and position, and preparing its visual states. This method is typically called during the setup phase to ensure the visual component is ready for use.
Prints the configuration of the rounded rectangle visual to the console.
Updates the visual state of the RoundedRectangleVisual component.
This method overrides the base setState method to apply visual updates
specific to the RoundedRectangleVisual, such as gradients and border colors.
The new state to apply, represented as a stateName object.
ProtectedupdateProtectedupdateProtectedupdateProtectedupdateProtectedupdateProtectedupdateProtectedupdateProtectedupdateProtectedupdateProtectedupdate
The
RoundedRectangleVisualclass represents a visual component that renders a rounded rectangle with customizable properties such as border, gradients, and colors. It extends the baseVisualclass and provides additional functionality specific to rounded rectangles.