Skip to content

uwidgets.core.models.widgetlayout

GitHub Action edited this page Oct 3, 2024 · 5 revisions

WidgetLayout

Namespace: uWidgets.Core.Models

Layout of a single widget, stored in layout.json.

public class WidgetLayout : System.IEquatable`1[[uWidgets.Core.Models.WidgetLayout, uWidgets.Core, Version=0.5.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectWidgetLayout
Implements IEquatable<WidgetLayout>
Attributes NullableContextAttribute, NullableAttribute

Properties

EqualityContract

protected Type EqualityContract { get; }

Property Value

Type

Type

Assembly name of the widget.

public string Type { get; set; }

Property Value

String

SubType

UserControl name of the widget.

public string SubType { get; set; }

Property Value

String

X

X coordinate of the widget's top-left corner.

public int X { get; set; }

Property Value

Int32

Y

Y coordinate of the widget's top-left corner.

public int Y { get; set; }

Property Value

Int32

Width

Width of the widget.

public int Width { get; set; }

Property Value

Int32

Height

Height of the widget.

public int Height { get; set; }

Property Value

Int32

Settings

Widget's model as

public Nullable<JsonElement> Settings { get; set; }

Property Value

Nullable<JsonElement>

Constructors

WidgetLayout(String, String, Int32, Int32, Int32, Int32, Nullable<JsonElement>)

Layout of a single widget, stored in layout.json.

public WidgetLayout(string Type, string SubType, int X, int Y, int Width, int Height, Nullable<JsonElement> Settings)

Parameters

Type String
Assembly name of the widget.

SubType String
UserControl name of the widget.

X Int32
X coordinate of the widget's top-left corner.

Y Int32
Y coordinate of the widget's top-left corner.

Width Int32
Width of the widget.

Height Int32
Height of the widget.

Settings Nullable<JsonElement>
Widget's model as

WidgetLayout(WidgetLayout)

protected WidgetLayout(WidgetLayout original)

Parameters

original WidgetLayout

Methods

GetModel<T>()

Get the widget's model.

public T GetModel<T>()

Type Parameters

T
Type of the widget's model.

Returns

T
Widget's model.

GetModel(Type)

Get the widget's model.

public object GetModel(Type type)

Parameters

type Type
Type of the widget's model.

Returns

Object
Widget's model.

ToString()

public string ToString()

Returns

String

PrintMembers(StringBuilder)

protected bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

Boolean

GetHashCode()

public int GetHashCode()

Returns

Int32

Equals(Object)

public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(WidgetLayout)

public bool Equals(WidgetLayout other)

Parameters

other WidgetLayout

Returns

Boolean

<Clone>$()

public WidgetLayout <Clone>$()

Returns

WidgetLayout

Deconstruct(String&, String&, Int32&, Int32&, Int32&, Int32&, Nullable`1&)

public void Deconstruct(String& Type, String& SubType, Int32& X, Int32& Y, Int32& Width, Int32& Height, Nullable`1& Settings)

Parameters

Type String&

SubType String&

X Int32&

Y Int32&

Width Int32&

Height Int32&

Settings Nullable`1&

Clone this wiki locally