|
Window Framework for UI Toolkit v2.0.x
|
Applies resolved player button tokens to one explicitly owned UI Toolkit button. More...


Public Member Functions | |
| PlayerThemeButtonBinding (Button button, PlayerThemeValues values) | |
| Binds a button to supplied semantic colours. | |
| void | Dispose () |
| Unsubscribes callbacks and restores only overrides still owned by this binding. | |
| void | Refresh () |
| Reevaluates enabled and interaction states after owner-controlled changes. | |
Properties | |
| bool | IsDisposed [get] |
| Gets whether callbacks and overrides have been released. | |
Private Member Functions | |
| void | Blur (BlurEvent evt) |
| void | Cancel (PointerCancelEvent evt) |
| void | CaptureOut (PointerCaptureOutEvent evt) |
| void | Detach (DetachFromPanelEvent evt) |
| void | Down (PointerDownEvent evt) |
| void | Enter (PointerEnterEvent evt) |
| void | KeyDown (KeyDownEvent evt) |
| void | KeyUp (KeyUpEvent evt) |
| void | Leave (PointerLeaveEvent evt) |
| void | RestoreBackground () |
| void | RestoreText () |
| void | Up (PointerUpEvent evt) |
Private Attributes | |
| StyleColor | _appliedBackground |
| StyleColor | _appliedText |
| readonly Button | _button |
| bool | _disposed |
| readonly PlayerThemeSurfaceBinding | _geometry |
| bool | _hover |
| bool | _keyPressed |
| readonly StyleColor | _originalBackground |
| readonly StyleColor | _originalText |
| bool | _ownsBackground |
| bool | _ownsText |
| bool | _pointerPressed |
| readonly PlayerThemeValues | _values |
Applies resolved player button tokens to one explicitly owned UI Toolkit button.
Uses public APIs only. Tracks pointer and Space/Return press states and restores captured inline colours on disposal/detach. Owners must call Refresh after SetEnabled or replacing the supplied values; this binding does not poll, scan the visual tree, or mutate stylesheets. Mutate the supplied value model and call Refresh after externally changing enabled state. The source reference is retained for this binding's lifetime; recreate the binding to use a different value object. This adapter styles one button and never installs application click actions, selects a theme, saves settings or owns borrowed images.
|
inline |
Binds a button to supplied semantic colours.
| button | Button within the owner's intended theme scope. |
| values | Resolved values; no default palette is invented. |
| ArgumentNullException | Either argument is null. |


|
inlineprivate |


|
inlineprivate |


|
inlineprivate |


|
inlineprivate |


|
inline |
Unsubscribes callbacks and restores only overrides still owned by this binding.
Does not destroy the button or textures, or override newer caller-owned values.


|
inlineprivate |


|
inlineprivate |


|
inlineprivate |


|
inlineprivate |


|
inlineprivate |


|
inline |
Reevaluates enabled and interaction states after owner-controlled changes.
Disabled values are optional. Missing values restore original inline styles.


|
inlineprivate |

|
inlineprivate |

|
inlineprivate |


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