pub struct IFrnTopLevelEvents { /* private fields */ }Implementations§
Source§impl IFrnTopLevelEvents
impl IFrnTopLevelEvents
Sourcepub fn from_impl<T: IFrnTopLevelEventsImpl + 'static>(
value: T,
) -> ComPtr<IFrnTopLevelEvents>
pub fn from_impl<T: IFrnTopLevelEventsImpl + 'static>( value: T, ) -> ComPtr<IFrnTopLevelEvents>
Wraps a Rust implementation into a COM object native code can call.
Sourcepub fn resized(&self, size: &FrnSize, reason: FrnPlatformResizeReason)
pub fn resized(&self, size: &FrnSize, reason: FrnPlatformResizeReason)
IFrnTopLevelEvents::Resized
Sourcepub fn raw_mouse_event(
&self,
type_: FrnRawMouseEventType,
device_type: FrnPointerDeviceType,
time_stamp: u64,
modifiers: FrnInputModifiers,
point: FrnPoint,
delta: FrnVector,
pressure: f32,
x_tilt: f32,
y_tilt: f32,
)
pub fn raw_mouse_event( &self, type_: FrnRawMouseEventType, device_type: FrnPointerDeviceType, time_stamp: u64, modifiers: FrnInputModifiers, point: FrnPoint, delta: FrnVector, pressure: f32, x_tilt: f32, y_tilt: f32, )
IFrnTopLevelEvents::RawMouseEvent
Sourcepub fn raw_key_event(
&self,
type_: FrnRawKeyEventType,
time_stamp: u64,
modifiers: FrnInputModifiers,
key: FrnKey,
physical_key: FrnPhysicalKey,
key_symbol: Option<&CStr>,
) -> bool
pub fn raw_key_event( &self, type_: FrnRawKeyEventType, time_stamp: u64, modifiers: FrnInputModifiers, key: FrnKey, physical_key: FrnPhysicalKey, key_symbol: Option<&CStr>, ) -> bool
IFrnTopLevelEvents::RawKeyEvent
Sourcepub fn raw_text_input_event(&self, time_stamp: u64, text: Option<&CStr>) -> bool
pub fn raw_text_input_event(&self, time_stamp: u64, text: Option<&CStr>) -> bool
IFrnTopLevelEvents::RawTextInputEvent
Sourcepub fn scaling_changed(&self, scaling: f64)
pub fn scaling_changed(&self, scaling: f64)
IFrnTopLevelEvents::ScalingChanged
Sourcepub fn run_render_priority_jobs(&self)
pub fn run_render_priority_jobs(&self)
IFrnTopLevelEvents::RunRenderPriorityJobs
Sourcepub fn lost_focus(&self)
pub fn lost_focus(&self)
IFrnTopLevelEvents::LostFocus
Sourcepub fn get_automation_peer(&self) -> Option<ComPtr<IFrnAutomationPeer>>
pub fn get_automation_peer(&self) -> Option<ComPtr<IFrnAutomationPeer>>
IFrnTopLevelEvents::GetAutomationPeer
Sourcepub unsafe fn drag_event(
&self,
type_: FrnDragEventType,
position: FrnPoint,
modifiers: FrnInputModifiers,
effects: FrnDragDropEffects,
clipboard: Option<&IFrnClipboard>,
data_transfer_handle: *mut c_void,
) -> FrnDragDropEffects
pub unsafe fn drag_event( &self, type_: FrnDragEventType, position: FrnPoint, modifiers: FrnInputModifiers, effects: FrnDragDropEffects, clipboard: Option<&IFrnClipboard>, data_transfer_handle: *mut c_void, ) -> FrnDragDropEffects
IFrnTopLevelEvents::DragEvent
§Safety
Raw pointer arguments must satisfy the native method’s contract.
Methods from Deref<Target = IUnknown>§
Trait Implementations§
Source§impl Deref for IFrnTopLevelEvents
impl Deref for IFrnTopLevelEvents
Source§impl<T: IFrnTopLevelEventsImpl> ImplementedBy<T> for IFrnTopLevelEvents
impl<T: IFrnTopLevelEventsImpl> ImplementedBy<T> for IFrnTopLevelEvents
const VTBL: &'static IFrnTopLevelEventsVtbl
Source§impl Interface for IFrnTopLevelEvents
impl Interface for IFrnTopLevelEvents
type Vtbl = IFrnTopLevelEventsVtbl
Source§fn matches_iid(iid: &Guid) -> bool
fn matches_iid(iid: &Guid) -> bool
true if iid names this interface or one of its bases (including
IUnknown). Both the IDL value and the value materialized by com.h
(see Guid::as_com_h_materialized) are accepted.fn as_unknown(&self) -> &IUnknown
fn as_raw(&self) -> *mut Self
Auto Trait Implementations§
impl !Send for IFrnTopLevelEvents
impl !Sync for IFrnTopLevelEvents
impl Freeze for IFrnTopLevelEvents
impl RefUnwindSafe for IFrnTopLevelEvents
impl Unpin for IFrnTopLevelEvents
impl UnsafeUnpin for IFrnTopLevelEvents
impl UnwindSafe for IFrnTopLevelEvents
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