Class HasPseudoClass
Related to:SoyWar.UIToolkit.PseudoClasses
/
Inherits from:objectPseudoClassSelectorPseudoClass<VisualElement>
/
Implemented in:SoyWar.UIToolkit.dll
Implements interfaces:ICloneable
Description
The functional:has()pseudo-class represents an element if any of the relative selectors that are passed as an argument match at least one element when anchored against this element. This pseudo-class presents a way of selecting a parent element or a previous sibling element with respect to a reference element by taking a relative selector list as an argument.
Syntax
public class HasPseudoClass : SelectorPseudoClass<VisualElement>, ICloneable
Implements
Inherited Members
Properties
Name | Description |
---|---|
ReverseEvent | Reverse of event detection in the pseudo-class selector. |
Type | Restrict the type of selector which can be use. |
Host | Specifies whether the pseudo class should be called for hosts. |
Value | Value associated with the pseudo-class |
Methods
Name | Description |
---|---|
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> |