|
Window Framework for UI Toolkit v2.0.x
|
Applies state-specific surface colours to framework tabs and context-menu rows. More...


Public Member Functions | |
| PlayerThemeStateBinding (VisualElement element, PlayerThemeValues values, bool tab) | |
| Binds a known stateful role, without intercepting click behaviour. | |
| void | Dispose () |
| Removes callbacks and returns owned styles to their original values. | |
| void | Refresh () |
| Reconciles active/disabled class and descendant label changes. | |
Properties | |
| bool | IsDisposed [get] |
| Gets whether callbacks and overrides have been released. | |
Private Member Functions | |
| void | CancelPress (PointerCancelEvent evt) |
| void | CaptureOut (PointerCaptureOutEvent evt) |
| void | Detach (DetachFromPanelEvent evt) |
| void | Enter (PointerEnterEvent evt) |
| void | Leave (PointerLeaveEvent evt) |
| void | Press (PointerDownEvent evt) |
| void | Release (PointerUpEvent evt) |
Private Attributes | |
| string | _backgroundToken |
| string | _borderToken |
| Label | _currentLabel |
| bool | _disposed |
| readonly VisualElement | _element |
| bool | _hover |
| string | _imageToken |
| PlayerThemeSurfaceBinding | _label |
| bool | _pressed |
| Action | _releaseFocus |
| readonly bool | _scrollbarArrow |
| readonly PlayerThemeSurfaceBinding | _scrollbarGeometry |
| readonly bool | _scrollbarThumb |
| readonly Scroller | _scroller |
| readonly PlayerThemeValues | _source |
| PlayerThemeSurfaceBinding | _surface |
| readonly bool | _tab |
| string | _textToken |
| string | _tintToken |
Applies state-specific surface colours to framework tabs and context-menu rows.
Owners call Refresh after class/enabled changes. Pointer hover is event-driven. Missing tokens leave original styles intact. Nested label colours use the same state as their row. Disposal restores original values through reversible surface bindings.
|
inline |
Binds a known stateful role, without intercepting click behaviour.
| element | Framework tab or context-menu item. |
| values | Resolved semantic values. |
| tab | True for tab selection; false for context-menu hover/disabled state. |


|
inlineprivate |


|
inlineprivate |


|
inlineprivate |


|
inline |
Removes callbacks and returns owned styles to their original values.


|
inlineprivate |


|
inlineprivate |


|
inlineprivate |


|
inline |
Reconciles active/disabled class and descendant label changes.


|
inlineprivate |


|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
get |
Gets whether callbacks and overrides have been released.