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
impl BuiltInExpressionFfi
Sourcepub fn instance() -> &'static BuiltInExpressionFfi
pub fn instance() -> &'static BuiltInExpressionFfi
The shared instance.
Trait Implementations§
Source§impl IExpressionForeignFunctionInterface for BuiltInExpressionFfi
impl IExpressionForeignFunctionInterface for BuiltInExpressionFfi
Source§fn call(
&self,
name: &str,
arguments: &[ExpressionVariant],
) -> Option<ExpressionVariant>
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§
impl !RefUnwindSafe for BuiltInExpressionFfi
impl !UnwindSafe for BuiltInExpressionFfi
impl Freeze for BuiltInExpressionFfi
impl Send for BuiltInExpressionFfi
impl Sync for BuiltInExpressionFfi
impl Unpin for BuiltInExpressionFfi
impl UnsafeUnpin for BuiltInExpressionFfi
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
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