Struct makepad_widgets::shader::std::windows::Foundation::EventHandler
#[repr(transparent)]pub struct EventHandler<T>(pub IUnknown, _)
where
T: RuntimeType + 'static;Expand description
Required features: "Foundation"
Tuple Fields§
§0: IUnknownImplementations§
§impl<T> EventHandler<T>where
T: RuntimeType + 'static,
impl<T> EventHandler<T>where T: RuntimeType + 'static,
pub fn new<F>(invoke: F) -> EventHandler<T>where F: FnMut(Option<&IInspectable>, &<T as Type<T, <T as TypeKind>::TypeKind>>::Default) -> Result<(), Error> + Send + 'static,
pub fn Invoke<P0, P1>(&self, sender: P0, args: P1) -> Result<(), Error>where P0: IntoParam<IInspectable, <IInspectable as TypeKind>::TypeKind>, P1: IntoParam<T, <T as TypeKind>::TypeKind>,
Trait Implementations§
§impl<T> Clone for EventHandler<T>where
T: RuntimeType + 'static,
impl<T> Clone for EventHandler<T>where T: RuntimeType + 'static,
§fn clone(&self) -> EventHandler<T>
fn clone(&self) -> EventHandler<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl<T> ComInterface for EventHandler<T>where
T: RuntimeType + 'static,
impl<T> ComInterface for EventHandler<T>where T: RuntimeType + 'static,
fn as_unknown(&self) -> &IUnknown
§impl<T> Debug for EventHandler<T>where
T: RuntimeType + 'static,
impl<T> Debug for EventHandler<T>where T: RuntimeType + 'static,
§impl<T> Interface for EventHandler<T>where
T: RuntimeType + 'static,
impl<T> Interface for EventHandler<T>where T: RuntimeType + 'static,
type Vtable = EventHandler_Vtbl<T>
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§impl<T> PartialEq<EventHandler<T>> for EventHandler<T>where
T: RuntimeType + 'static,
impl<T> PartialEq<EventHandler<T>> for EventHandler<T>where T: RuntimeType + 'static,
§fn eq(&self, other: &EventHandler<T>) -> bool
fn eq(&self, other: &EventHandler<T>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<T> Eq for EventHandler<T>where T: RuntimeType + 'static,
Auto Trait Implementations§
impl<T> RefUnwindSafe for EventHandler<T>where T: RefUnwindSafe,
impl<T> !Send for EventHandler<T>
impl<T> !Sync for EventHandler<T>
impl<T> Unpin for EventHandler<T>where T: Unpin,
impl<T> UnwindSafe for EventHandler<T>where T: UnwindSafe,
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