Show Uno properties and methods

Namespaces

UX Classes

Acos ux

The invserse trigonometric cosine of the input

Alternate ux

Alternate between true/false values for ranges of integers.

Asin ux

The invserse trigonometric sine of the input

Atan ux

The invserse trigonometric tangent of the input

Atan2 ux

The invserse trigonometric tangent of the input components

atan2(y, x)
AtanVector ux

The inverse trigonometric tangent of the input components. Like atan2 but uses the input vector for the X and Y values.

atanVector( v ) == atan2( v.Y, v.X )
Case ux

Specifies a constant and an associated visual tree that will be used with Match.

Clamp ux

Restricts the range of a value to between two numbers.

clamp( value, min, max)

Returns

  • min when value < min
  • max when value > max
  • value otherwise
Closure ux

Captures the named UX objects and dependencies in the scope and sends them to a script event when ready.

Cos ux

The trigonometric cosine of the input angle (in radians)

DataBinding ux

Data bindings allow you to bind properties on UX markup objects to values coming from a JavaScript or other data context.

DataToResource ux

Binds to a resource with the key provided in a context variable. This allows selecting resources from JavaScript by key name.

Each ux

Displays a collection of objects using the given template(s) for each item.

Even ux

True if the rounded value is even, false otherwise

EventBinding ux

Event bindings allows binding events to to JavaScript functions.

Instance ux

Creates and inserts an instance of the given template(s). The templates are only created when the node is rooted.

IsNull ux

Returns false if the value exists and is non-null, true otherwise.

JavaScript ux

The JavaScript tag is used to run JavaScript and assigns its module.exports as data context for the parent visual.

Lerp ux

Calculates the linear interpolation between two values.

lerp( from, to, step )

When step==0 the result is from, when step==1 the result is to. Partial values are linearly interpolated. Step values <0 and >1 are also supported.

Let ux

Binds an expression or value to a name in the data context. This simplifies repeated calculations and allows introduction of new variables.

LetBool ux

A LetType that specifies a bool value.

LetFloat ux

A LetType that specifies a float value.

LetFloat2 ux

A LetType that specifies a float2 value.

LetFloat3 ux

A LetType that specifies a float3 value.

LetFloat4 ux

A LetType that specifies a float4 value.

LetSize ux

A LetType that specifies a Size value.

LetSize2 ux

A LetType that specifies a Size2 value.

LetString ux

A LetType that specifies a string value.

LookUp ux

Represents a reactive look-up operation, with a computed index (number) or key (string).

Match ux

Compares a value with a set of constants, and activates/deactivates visual trees associated with those constants.

Member ux

Represents a reactive object-member look-up operation.

Object ux

Creates an IObject from an arbitrary number of NameValuePairs.

Odd ux

True if the rounded value is odd, false otherwise

Parameter ux

Returns the parameter of the given page (visual), parsed from a JSON string.

Sin ux

The trigonometric sine of the input angle (in radians)

Snapshot ux

Returns the first value to propagate from the source expression, and then stops listening.

Tan ux

The trigonometric tangent of the input angle (in radians)

ToFloat ux

Forces a conversion to floating point. This supports any 1-4 component float vector.

ToSize ux

Forces conversion to a Size or Size2 depending on input size.

ToString ux

Forces conversion to a string value.

Trunc ux

Rounds to the next whole integer closer to zero

Vector ux

Creates an IArray from an arbitrary number of arguments. An IArray can be automatically marshalled to any Uno vector type (e.g. float4)

VectorW ux

Returns the W value of a float4 value.

VectorZ ux

Returns the Z value of a float3 or float4 value.

WhileCount ux

Active when the number of items in a collection fulfills some criteria.

WhileEmpty ux

Active when the number of items in a collection is 0.

WhileNotEmpty ux

Active when the number of items in a collection is greater than 0.

WindowFunction ux

Provides details about the device and view needed for layout.

With ux

Represents a scope in which the current data context is narrowed down.

Classes

BinaryOperator uno

Base class for reactive functions/operators that take two arguments/operands.

ComputeExpression uno

Base class for UX expression functions that take arguments and compute a value from them.

ExpressionListener uno

A base class for common expression subscriptions. This handles the basic bookkeeping. Derived classes should implement OnArguments (coming from the base class). The members ClearData and SetData should be called to set the output state.

ExpressionSubscriber uno

Subscribes to many argument expressions used in higher level functions. This collects common behaviour and means to simplify higher-level code.

InnerListener uno

Using this class directly is unusual. ComputeExpression is the preferred option for functions, and ExpressionListener for when that doesn't apply.

Instantiator uno

Base class for behaviors that can instantiate templates from a source.

LetBase uno

Provides an implementation for Let and the various LetType forms. hide

LetType<T> uno

Provides a bindable value for use in UX. This assists in combining animations and transitions in the UX without needing to use JavaScript intermediates. It is not meant to store application state, being intended only for UI level changes and effects.

QuaternaryOperator uno

Base class for reactive functions/operators that take four arguments/operands.

SimpleVarArgFunction uno

For VarArg functions that do not need a custom subscription and can work directly with the values of the arguments.

TernaryOperator uno

Base class for reactive functions/operators that take three arguments/operands.

UnaryOperator uno

Optimized base class for reactive functions/operators that take a single argument/operand.

VarArgFunction uno

Base class for UX functions that accept a variable number of arguments.

Delegates

Enums

InstanceDefer uno

Allows for the deferred creation of items to avoid processing bottlenecks.

Interfaces

IWriteable uno

Represents a subscription that might support write-back.