C# Class Nez.UI.Value

Value placeholder, allowing the value to be computed on request. Values are provided an element for context which reduces the number of value instances that need to be created and reduces verbosity in code that specifies values
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Свойство Type Description
maxHeight Value
maxWidth Value
minHeight Value
minWidth Value
prefHeight Value
prefWidth Value
zero Fixed

Méthodes publiques

Méthode Description
get ( Element context ) : float

context May be null

percentHeight ( float percent ) : Value

Returns a value that is a percentage of the element's height.

percentHeight ( float percent, Element delegateElement ) : Value

Returns a value that is a percentage of the specified elements's height. The context element is ignored.

percentWidth ( float percent ) : Value

Value that is the maxHeight of the element in the cell.

percentWidth ( float percent, Element delegateElement ) : Value

Returns a value that is a percentage of the specified elements's width. The context element is ignored.

Method Details

get() abstract public méthode

context May be null
abstract public get ( Element context ) : float
context Element Context.
Résultat float

percentHeight() static public méthode

Returns a value that is a percentage of the element's height.
static public percentHeight ( float percent ) : Value
percent float
Résultat Value

percentHeight() static public méthode

Returns a value that is a percentage of the specified elements's height. The context element is ignored.
static public percentHeight ( float percent, Element delegateElement ) : Value
percent float
delegateElement Element
Résultat Value

percentWidth() static public méthode

Value that is the maxHeight of the element in the cell.
static public percentWidth ( float percent ) : Value
percent float
Résultat Value

percentWidth() static public méthode

Returns a value that is a percentage of the specified elements's width. The context element is ignored.
static public percentWidth ( float percent, Element delegateElement ) : Value
percent float
delegateElement Element
Résultat Value

Property Details

maxHeight static_oe public_oe property

static public Value,Nez.UI maxHeight
Résultat Value

maxWidth static_oe public_oe property

static public Value,Nez.UI maxWidth
Résultat Value

minHeight static_oe public_oe property

static public Value,Nez.UI minHeight
Résultat Value

minWidth static_oe public_oe property

static public Value,Nez.UI minWidth
Résultat Value

prefHeight static_oe public_oe property

static public Value,Nez.UI prefHeight
Résultat Value

prefWidth static_oe public_oe property

static public Value,Nez.UI prefWidth
Résultat Value

zero static_oe public_oe property

A value that is always zero.
static public Fixed zero
Résultat Fixed