TINMAN 3D / REALTIME TERRAIN
Software Development Kit - User Manual

class StyleProperty in Tinman.AddOns.GUI.Styles

A stylesheet property for a GUI component.

sealed class StyleProperty with <T>  
  implements IStyleProperty

Public / Attributes

Name

The machine-friendly name of this style property.

public property Name { get }
type string
value [not-null] The property name.
implements IStyleProperty.Name

Public / Constructors

StyleProperty

Creates a new instance of StyleProperty.

public constructor StyleProperty (string name, T defaultValue)
params name [not-empty] The machine-friendly style property name.
  defaultValue The default value of the style property.

Public / Methods

Get

Returns the value of this style property.

[Pure]
public method Get (Component component)
type T
params component [not-null] The component.
returns The style property value.

Returns the value of this style property.

[Pure]
public method Get (Component component, T defaultValue)
type T
params component [not-null] The component.
  defaultValue Custom default value to use.
returns The style property value.

Set

Sets the value of this style property.

public method Set (Component component, T value)
params component [not-null] The component.
  value The style property value.

Sets the value of this style property.

public method Set (Component component, StyleClass styleClass, T value)
params component [not-null] The component.
  styleClass The style class.
  value The style property value.

Sets the value of this style property.

public method Set (Component component, StyleClass styleClass, string variant, T value)
params component [not-null] The component.
  styleClass The style class.
  variant [not-empty] The style class variant.
  value The style property value.