UsoUIElements 0.1.0
Data Centric implimentation of Unity's UI Elements (UI Toolkit)
Loading...
Searching...
No Matches
GWG.UsoUIElements.CustomElements.UsoWindow Class Reference
Inheritance diagram for GWG.UsoUIElements.CustomElements.UsoWindow:

Public Member Functions

 UsoWindow ()
Public Member Functions inherited from GWG.UsoUIElements.UsoVisualElement
 UsoVisualElement ()
 Initializes a new instance of the UsoVisualElement class with default settings. Creates a visual element container with USO framework integration enabled and field status functionality disabled by default.
 UsoVisualElement (string fieldName)
 Initializes a new instance of the UsoVisualElement class with the specified field name. Creates a visual element container with custom identification for binding and reference purposes.
 UsoVisualElement (string fieldName, out UsoVisualElement newField)
 Initializes a new instance of the UsoVisualElement class with field name and returns a reference. Creates a visual element container with custom identification and provides an out parameter for immediate access.
void ApplyBinding (string fieldBindingProp, string fieldBindingPath, BindingMode fieldBindingMode)
 Applies data binding to the specified property of this control using Unity's data binding system. Configures the binding with the provided path and mode for automatic data synchronization.
UsoLineItem GetParentLineItem ()
 Retrieves the first ancestor UsoLineItem control in the visual tree hierarchy. This is useful for accessing parent container functionality and maintaining proper UI structure.
void InitElement (string fieldName=null)
 Initializes the USO UI element with the specified field name and applies necessary styling classes. This method sets up the basic USO framework integration for the control.
void SetFieldStatus (FieldStatusTypes fieldStatus)
 Updates the field's status type, which affects its visual appearance and validation state. The status change is automatically reflected in the UI through the FieldStatus property.
void ShowFieldStatus (bool status)
 Controls the visibility and functionality of the field status/validation system. When disabled, removes validation-related styling from the control.
Public Member Functions inherited from GWG.UsoUIElements.IUsoUiElement
void AddToClassList (string className)
 Adds the specified CSS class name to this element's class list. This method is inherited from Unity's VisualElement and enables dynamic styling modifications.
void ClearBindings ()
 Removes all data binding configurations from this element. This method is inherited from Unity's VisualElement and provides cleanup functionality for data bindings.
void RemoveFromClassList (string className)
 Removes the specified CSS class name from this element's class list. This method is inherited from Unity's VisualElement and provides dynamic styling capabilities.

Public Attributes

VisualElement Footer
VisualElement Header

Properties

override VisualElement contentContainer [get]
Properties inherited from GWG.UsoUIElements.UsoVisualElement
FieldStatusTypes FieldStatus [get, private set]
 Gets the current field status type, which determines the visual state and validation feedback. This property is automatically reflected in the UI through CSS class modifications.
bool FieldStatusEnabled [get, private set]
 Gets or sets whether field status/validation functionality is enabled for this control. When enabled, adds validation CSS class for styling. When disabled, removes validation styling.

Private Attributes

VisualElement _content

Constructor & Destructor Documentation

◆ UsoWindow()

GWG.UsoUIElements.CustomElements.UsoWindow.UsoWindow ( )

Member Data Documentation

◆ _content

VisualElement GWG.UsoUIElements.CustomElements.UsoWindow._content
private

◆ Footer

VisualElement GWG.UsoUIElements.CustomElements.UsoWindow.Footer

◆ Header

VisualElement GWG.UsoUIElements.CustomElements.UsoWindow.Header

Property Documentation

◆ contentContainer

override VisualElement GWG.UsoUIElements.CustomElements.UsoWindow.contentContainer
get