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
ファイルを表示 Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
maxHeight Value
maxWidth Value
minHeight Value
minWidth Value
prefHeight Value
prefWidth Value
zero Fixed

Public Methods

Method 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 method

context May be null
abstract public get ( Element context ) : float
context Element Context.
return float

percentHeight() static public method

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

percentHeight() static public method

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
return Value

percentWidth() static public method

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

percentWidth() static public method

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
return Value

Property Details

maxHeight static_oe public_oe property

static public Value,Nez.UI maxHeight
return Value

maxWidth static_oe public_oe property

static public Value,Nez.UI maxWidth
return Value

minHeight static_oe public_oe property

static public Value,Nez.UI minHeight
return Value

minWidth static_oe public_oe property

static public Value,Nez.UI minWidth
return Value

prefHeight static_oe public_oe property

static public Value,Nez.UI prefHeight
return Value

prefWidth static_oe public_oe property

static public Value,Nez.UI prefWidth
return Value

zero static_oe public_oe property

A value that is always zero.
static public Fixed zero
return Fixed