Skip to content

Hex1bTheme ​

Namespace: Hex1b.Theming

Assembly: Hex1b.dll

A theme containing values for various UI elements.

csharp
public class Hex1bTheme

Inheritance ​

Object → Hex1bTheme

Constructors ​

Hex1bTheme(string) ​

Parameters:

csharp
public Hex1bTheme(string name)

Properties ​

IsLocked ​

Gets whether this theme is locked and cannot be modified.

Returns: Boolean

csharp
public bool IsLocked { get; }

Name ​

Returns: String

csharp
public string Name { get; }

Methods ​

Clone(string?) ​

Creates a copy of this theme that can be modified.

Parameters:

Returns: Hex1bTheme

csharp
public Hex1bTheme Clone(string? newName = null)

Get<T>(Hex1bThemeElement<T>) ​

Gets the value for a theme element, or its default if not set.

Parameters:

  • element (Hex1bThemeElement<<T>>):

Returns: <T>

csharp
public T Get<T>(Hex1bThemeElement<T> element)

Lock() ​

Locks this theme, preventing any further modifications.

Returns: Hex1bTheme

csharp
public Hex1bTheme Lock()

Set<T>(Hex1bThemeElement<T>, T) ​

Sets a value for a theme element.

Parameters:

  • element (Hex1bThemeElement<<T>>):
  • value (<T>):

Returns: Hex1bTheme

csharp
public Hex1bTheme Set<T>(Hex1bThemeElement<T> element, T value)

Released under the MIT License.