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

Represents a key-value pair entry for window frame data storage, designed for serialization compatibility. More...

Public Attributes

string Key
 Gets or sets the unique identifier key for the window frame data entry.
WindowFrameData Value
 Gets or sets the window frame data associated with this entry.

Detailed Description

This class serves as a wrapper for dictionary entries to enable JSON serialization of window frame data collections. Unity's JsonUtility doesn't support direct dictionary serialization, so this entry class provides a serializable alternative while maintaining the key-value relationship structure.

// Create a window frame data entry
var entry = new WindowFrameDataEntry
{
Key = "MainWindow",
{
windowId = "MainWindow",
title = "Main Application Window"
}
};
Represents a key-value pair entry for window frame data storage, designed for serialization compatibi...
Definition WindowFrameworkData.cs:332
string Key
Gets or sets the unique identifier key for the window frame data entry.
Definition WindowFrameworkData.cs:344
WindowFrameData Value
Gets or sets the window frame data associated with this entry.
Definition WindowFrameworkData.cs:357
Represents the serializable data structure for storing and loading window frame configuration and sta...
Definition WindowFrameData.cs:63

Member Data Documentation

◆ Key

string GWG.WindowFramework.WindowFrameDataEntry.Key

A string that serves as the unique identifier for the associated window frame data. This key is used for lookups and should correspond to the window's unique identifier.

The key serves as the primary identifier for window frame data entries and should be unique within the collection and remain consistent across application sessions.

◆ Value

WindowFrameData GWG.WindowFramework.WindowFrameDataEntry.Value

A WindowFrameData object containing all configuration and state information for the window identified by the Key property.

This property contains the complete window configuration including position, size, visibility, and other window-specific settings.