Enum SkinElementState
- Namespace
- VisioForge.Core.UI.Skins
- Assembly
- VisioForge.Core.dll
Defines the visual states that a skinned UI element can be in, determining which image or style variation to display.
public enum SkinElementStateFields
Base = 0-
The default state when the element is not being interacted with and is enabled.
Hover = 1-
The state when the mouse cursor is hovering over the element but not clicking.
Pressed = 2-
The state when the element is being actively pressed or clicked by the user.
Disabled = 3-
The state when the element is disabled and cannot be interacted with by the user.
Remarks
These states represent the standard interaction states for UI controls and provide visual feedback to users. State transitions occur automatically based on user interaction:
- VisioForge.Core.UI.Skins.SkinElementState.Base → VisioForge.Core.UI.Skins.SkinElementState.Hover when cursor enters the element
- VisioForge.Core.UI.Skins.SkinElementState.Hover → VisioForge.Core.UI.Skins.SkinElementState.Pressed when mouse button is pressed down
- VisioForge.Core.UI.Skins.SkinElementState.Pressed → VisioForge.Core.UI.Skins.SkinElementState.Hover when mouse button is released
- Any state → VisioForge.Core.UI.Skins.SkinElementState.Disabled when element becomes unavailable