bool IsControlHovered { get; set; }

book_4_sparkGenerated
code_blocksInput

Description

The IsControlHovered property is a boolean value that indicates whether the control widget is currently being hovered over by the user's cursor. This property is useful for determining if the user is interacting with the control in a way that might require a visual or functional response, such as highlighting the control or displaying additional information.

Usage

To use the IsControlHovered property, you can access it directly from an instance of the ControlWidget class. This property is read-only and provides a simple way to check the hover state of the control.

Example

// Example of checking if a control widget is hovered
Editor.ControlWidget myControlWidget = new Editor.ControlWidget();

// Check if the control is hovered
if (myControlWidget.IsControlHovered)
{
    // Perform actions when the control is hovered
    // For example, change the appearance of the control
    myControlWidget.Tint = Color.Red;
}