Skip to main content

BuiltInExpressionFfi

Struct BuiltInExpressionFfi 

Source
pub struct BuiltInExpressionFfi { /* private fields */ }
Expand description

Built-in functions for Foreign Function Interface available from composition animation expressions

The functions are those of the WinUI composition expression reference (ExpressionAnimation, “Expression Functions per Type”), with the overloads the reference does not list but the WinUI expression engine accepts (the scalar Length, Distance and Scale, the vector Mod), a few System.Numerics overloads of the matrix factories, and the functions of the upstream framework (SmoothStep, the relative point and scalar constructors). Function names are case-insensitive, as in WinUI.

Implementations§

Source§

impl BuiltInExpressionFfi

Source

pub fn instance() -> &'static BuiltInExpressionFfi

The shared instance.

Trait Implementations§

Source§

impl IExpressionForeignFunctionInterface for BuiltInExpressionFfi

Source§

fn call( &self, name: &str, arguments: &[ExpressionVariant], ) -> Option<ExpressionVariant>

Calls the function with the given name and arguments. Returns None when there is no function with that name accepting the arguments.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

fn static_constructor()

The static constructor of a type: work done once per thread, after the properties of the type are registered and before its first instance exists (class handlers, affects_render, metadata overrides). Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.