Class FocusPseudoClass
Related to:SoyWar.UIToolkit.PseudoClasses
/
Inherits from:objectPseudoClassEventPseudoClass<FocusInEvent,FocusOutEvent>
/
Implemented in:SoyWar.UIToolkit.dll
Implements interfaces:ICloneable
Description
The:focuspseudo-class represents an element (such asTextField) that has received focus. It is generally triggered when the user clicks or taps on an element or selects it with the keyboard's Tab key. The element also has ablur state, in which it loses the focus.
Syntax
public class FocusPseudoClass : EventPseudoClass<FocusInEvent, FocusOutEvent>, 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> |