Class EnabledPseudoClass
Related to:SoyWar.UIToolkit.PseudoClasses
/
Inherits from:objectPseudoClassEventPseudoClass<RemoveClassNameEvent,AddClassNameEvent>
/
Implemented in:SoyWar.UIToolkit.dll
Implements interfaces:ICloneable
Description
The:enabledpseudo-class represents any enabled element. An element is enabled if it can be activated (selected, clicked on, typed into, etc.) or accept focus. The element also has adisabled state, in which it can't be activated or accept focus.
Syntax
public class EnabledPseudoClass : EventPseudoClass<RemoveClassNameEvent, AddClassNameEvent>, ICloneable
Implements
Inherited Members
Properties
Name | Description |
---|---|
TrickleDown | |
Host | Specifies whether the pseudo class should be called for hosts. |
Value | Value associated with the pseudo-class |
Methods
Name | Description |
---|---|
CheckOffEvent(PseudoClassManipulator, TOffEventType) | Invoke when the assigned Off event is called. |
CheckOnEvent(PseudoClassManipulator, TOnEventType) | Invoke when the assigned On event is called. |
AddManipulatorCallback(PseudoClassManipulator) | Add events callback to thePseudoClassManipulator |
Add<T>(string) | Add a new usable pseudo class |
Check(PseudoClassManipulator) | Checks if thePseudoClassManipulatoris valid according to the rules of the current pseudo-class. |
Check(ICollection<VisualElement>, VisualElement, TypeSearch) | Checks if theVisualElementis valid according to the rules of the current pseudo-class. |
Clone() | Creates a new object that is a copy of the current instance. |
CreateManipulator(ICollection<VisualElement>, VisualElement, TypeSearch, bool, Action<bool>) | Creates aPseudoClassManipulatorto handle various events. |
GetValueString() | Retrieves the value to be displayed as a string inSoyWar.UIToolkit.PseudoClasses.PseudoClass.ToString(). |
PointerInside(VisualElement, int) | Checks if a pointer is inside the VisualElement. |
PointerInside(VisualElement, Vector2) | Checks if the specified position is inside theVisualElement. |
Validate() | Checks if the pseudo-class is valid. |
Validate(out int, out int) | Checks if the pseudo class value is <even | odd | An+B> |