pub struct IFrnWindowEvents { /* private fields */ }Implementations§
Source§impl IFrnWindowEvents
impl IFrnWindowEvents
Sourcepub fn from_impl<T: IFrnWindowEventsImpl + 'static>(
value: T,
) -> ComPtr<IFrnWindowEvents>
pub fn from_impl<T: IFrnWindowEventsImpl + 'static>( value: T, ) -> ComPtr<IFrnWindowEvents>
Wraps a Rust implementation into a COM object native code can call.
Sourcepub fn window_state_changed(&self, state: FrnWindowState)
pub fn window_state_changed(&self, state: FrnWindowState)
IFrnWindowEvents::WindowStateChanged
Sourcepub fn got_input_when_disabled(&self)
pub fn got_input_when_disabled(&self)
IFrnWindowEvents::GotInputWhenDisabled
Methods from Deref<Target = IFrnWindowBaseEvents>§
Sourcepub fn deactivated(&self)
pub fn deactivated(&self)
IFrnWindowBaseEvents::Deactivated
Sourcepub fn position_changed(&self, position: FrnPoint)
pub fn position_changed(&self, position: FrnPoint)
IFrnWindowBaseEvents::PositionChanged
Methods from Deref<Target = IFrnTopLevelEvents>§
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 IFrnWindowEvents
impl Deref for IFrnWindowEvents
Source§type Target = IFrnWindowBaseEvents
type Target = IFrnWindowBaseEvents
The resulting type after dereferencing.
Source§fn deref(&self) -> &IFrnWindowBaseEvents
fn deref(&self) -> &IFrnWindowBaseEvents
Dereferences the value.
Source§impl<T: IFrnWindowEventsImpl> ImplementedBy<T> for IFrnWindowEvents
impl<T: IFrnWindowEventsImpl> ImplementedBy<T> for IFrnWindowEvents
const VTBL: &'static IFrnWindowEventsVtbl
Source§impl Interface for IFrnWindowEvents
impl Interface for IFrnWindowEvents
type Vtbl = IFrnWindowEventsVtbl
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 IFrnWindowEvents
impl !Sync for IFrnWindowEvents
impl Freeze for IFrnWindowEvents
impl RefUnwindSafe for IFrnWindowEvents
impl Unpin for IFrnWindowEvents
impl UnsafeUnpin for IFrnWindowEvents
impl UnwindSafe for IFrnWindowEvents
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