Window Framework v1.2.4
Window Framework for Unity UI Toolkit
Loading...
Searching...
No Matches
GWG.WindowFramework.Editor.ThemeListView Class Reference

Represents a custom UI element for managing and displaying a list of themes in the Unity Editor. This class extends the VisualElement class and provides functionality to display and manage themes defined in WindowFrameThemeData.

Inheritance diagram for GWG.WindowFramework.Editor.ThemeListView:

Public Member Functions

 ThemeListView (WindowFrameThemeData themeData)
 Represents a custom UI element designed for managing and displaying a list of themes in the Unity Editor. Extends the VisualElement class to support integration with Unity's UIElements framework.
void RefreshThemes ()

Properties

WindowFrameThemeData Controller [get, set]
 Gets or sets the associated WindowFrameThemeData controller for the theme list view.

Private Member Functions

void AddNewTheme (BaseListView baseListView)
void BindItem (VisualElement element, int index)
void BuildUI ()
VisualElement MakeItem ()
void OnStylesResolved (CustomStyleResolvedEvent evt)
void SetActiveTheme (int index)
void SetDefaultTheme (int index)
void TriggerControllerUpdate ()
void UpdateApplyMethodState ()

Private Attributes

Button _addThemeButton
WindowFrameThemeData _controller
EnumField _themeApplyMethod
ListView _themeListView

Constructor & Destructor Documentation

◆ ThemeListView()

GWG.WindowFramework.Editor.ThemeListView.ThemeListView ( WindowFrameThemeData themeData)

Member Function Documentation

◆ AddNewTheme()

void GWG.WindowFramework.Editor.ThemeListView.AddNewTheme ( BaseListView baseListView)
private

◆ BindItem()

void GWG.WindowFramework.Editor.ThemeListView.BindItem ( VisualElement element,
int index )
private

◆ BuildUI()

void GWG.WindowFramework.Editor.ThemeListView.BuildUI ( )
private

◆ MakeItem()

VisualElement GWG.WindowFramework.Editor.ThemeListView.MakeItem ( )
private

◆ OnStylesResolved()

void GWG.WindowFramework.Editor.ThemeListView.OnStylesResolved ( CustomStyleResolvedEvent evt)
private

◆ RefreshThemes()

void GWG.WindowFramework.Editor.ThemeListView.RefreshThemes ( )

◆ SetActiveTheme()

void GWG.WindowFramework.Editor.ThemeListView.SetActiveTheme ( int index)
private

◆ SetDefaultTheme()

void GWG.WindowFramework.Editor.ThemeListView.SetDefaultTheme ( int index)
private

◆ TriggerControllerUpdate()

void GWG.WindowFramework.Editor.ThemeListView.TriggerControllerUpdate ( )
private

◆ UpdateApplyMethodState()

void GWG.WindowFramework.Editor.ThemeListView.UpdateApplyMethodState ( )
private

Member Data Documentation

◆ _addThemeButton

Button GWG.WindowFramework.Editor.ThemeListView._addThemeButton
private

◆ _controller

WindowFrameThemeData GWG.WindowFramework.Editor.ThemeListView._controller
private

◆ _themeApplyMethod

EnumField GWG.WindowFramework.Editor.ThemeListView._themeApplyMethod
private

◆ _themeListView

ListView GWG.WindowFramework.Editor.ThemeListView._themeListView
private

Property Documentation

◆ Controller

WindowFrameThemeData GWG.WindowFramework.Editor.ThemeListView.Controller
getset

Assigning a new controller updates the underlying data source for the theme list view. This triggers the list view to rebuild its items by binding to the themes contained within the specified WindowFrameThemeData instance.