pub struct HostBindings { /* private fields */ }Implementations§
Source§impl HostBindings
impl HostBindings
pub fn new() -> Self
pub fn prop_str(self, name: impl Into<String>, sig: Signal<String>) -> Self
pub fn prop_bool(self, name: impl Into<String>, sig: Signal<bool>) -> Self
pub fn prop_int(self, name: impl Into<String>, sig: Signal<i64>) -> Self
pub fn prop_float(self, name: impl Into<String>, sig: Signal<f64>) -> Self
pub fn tick_angle(self, name: impl Into<String>, angle: Rc<Cell<f32>>) -> Self
pub fn memo_str(self, name: impl Into<String>, memo: Memo<String>) -> Self
pub fn memo_bool(self, name: impl Into<String>, memo: Memo<bool>) -> Self
pub fn memo_int(self, name: impl Into<String>, memo: Memo<i64>) -> Self
pub fn memo_float(self, name: impl Into<String>, memo: Memo<f64>) -> Self
pub fn env_str(self, name: impl Into<String>, sig: Signal<String>) -> Self
pub fn env_bool(self, name: impl Into<String>, sig: Signal<bool>) -> Self
pub fn env_int(self, name: impl Into<String>, sig: Signal<i64>) -> Self
pub fn env_float(self, name: impl Into<String>, sig: Signal<f64>) -> Self
pub fn i18n(self, i18n: I18n) -> Self
pub fn resource(self, name: impl Into<String>, res: Resource<String>) -> Self
pub fn on(self, name: impl Into<String>, f: impl Fn() + 'static) -> Self
pub fn on_int(self, name: impl Into<String>, f: impl Fn(i64) + 'static) -> Self
pub fn on_float( self, name: impl Into<String>, f: impl Fn(f64) + 'static, ) -> Self
pub fn on_str( self, name: impl Into<String>, f: impl Fn(String) + 'static, ) -> Self
pub fn on_bool( self, name: impl Into<String>, f: impl Fn(bool) + 'static, ) -> Self
pub fn on_point( self, name: impl Into<String>, f: impl Fn(f64, f64) + 'static, ) -> Self
pub fn on_point_named( self, name: impl Into<String>, f: impl Fn(f64, f64, String) + 'static, ) -> Self
pub fn rows<R>(self, name: impl Into<String>, sig: Signal<Vec<R>>) -> Self
pub fn on_wheel( self, name: impl Into<String>, f: impl Fn(f64, f64, f64) + 'static, ) -> Self
pub fn on_pinch( self, name: impl Into<String>, f: impl Fn(f64, f64, f64) + 'static, ) -> Self
Trait Implementations§
Source§impl Clone for HostBindings
impl Clone for HostBindings
Auto Trait Implementations§
impl !RefUnwindSafe for HostBindings
impl !Send for HostBindings
impl !Sync for HostBindings
impl !UnwindSafe for HostBindings
impl Freeze for HostBindings
impl Unpin for HostBindings
impl UnsafeUnpin for HostBindings
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