pub struct IFrnTopLevel { /* private fields */ }Implementations§
Source§impl IFrnTopLevel
impl IFrnTopLevel
Sourcepub fn from_impl<T: IFrnTopLevelImpl + 'static>(
value: T,
) -> ComPtr<IFrnTopLevel>
pub fn from_impl<T: IFrnTopLevelImpl + 'static>( value: T, ) -> ComPtr<IFrnTopLevel>
Wraps a Rust implementation into a COM object native code can call.
Sourcepub fn get_client_size(&self) -> Result<FrnSize, HResult>
pub fn get_client_size(&self) -> Result<FrnSize, HResult>
IFrnTopLevel::GetClientSize
Sourcepub fn get_scaling(&self) -> Result<f64, HResult>
pub fn get_scaling(&self) -> Result<f64, HResult>
IFrnTopLevel::GetScaling
Sourcepub fn invalidate(&self) -> Result<(), HResult>
pub fn invalidate(&self) -> Result<(), HResult>
IFrnTopLevel::Invalidate
Sourcepub fn point_to_client(&self, point: FrnPoint) -> Result<FrnPoint, HResult>
pub fn point_to_client(&self, point: FrnPoint) -> Result<FrnPoint, HResult>
IFrnTopLevel::PointToClient
Sourcepub fn point_to_screen(&self, point: FrnPoint) -> Result<FrnPoint, HResult>
pub fn point_to_screen(&self, point: FrnPoint) -> Result<FrnPoint, HResult>
IFrnTopLevel::PointToScreen
Sourcepub fn set_cursor(&self, cursor: Option<&IFrnCursor>) -> Result<(), HResult>
pub fn set_cursor(&self, cursor: Option<&IFrnCursor>) -> Result<(), HResult>
IFrnTopLevel::SetCursor
Sourcepub fn create_gl_render_target(
&self,
context: Option<&IFrnGlContext>,
) -> Result<Option<ComPtr<IFrnGlSurfaceRenderTarget>>, HResult>
pub fn create_gl_render_target( &self, context: Option<&IFrnGlContext>, ) -> Result<Option<ComPtr<IFrnGlSurfaceRenderTarget>>, HResult>
IFrnTopLevel::CreateGlRenderTarget
Sourcepub fn create_software_render_target(
&self,
) -> Result<Option<ComPtr<IFrnSoftwareRenderTarget>>, HResult>
pub fn create_software_render_target( &self, ) -> Result<Option<ComPtr<IFrnSoftwareRenderTarget>>, HResult>
IFrnTopLevel::CreateSoftwareRenderTarget
Sourcepub fn create_metal_render_target(
&self,
device: Option<&IFrnMetalDevice>,
) -> Result<Option<ComPtr<IFrnMetalRenderTarget>>, HResult>
pub fn create_metal_render_target( &self, device: Option<&IFrnMetalDevice>, ) -> Result<Option<ComPtr<IFrnMetalRenderTarget>>, HResult>
IFrnTopLevel::CreateMetalRenderTarget
Sourcepub fn obtain_ns_view_handle(&self) -> Result<*mut c_void, HResult>
pub fn obtain_ns_view_handle(&self) -> Result<*mut c_void, HResult>
IFrnTopLevel::ObtainNSViewHandle
Sourcepub fn obtain_ns_view_handle_retained(&self) -> Result<*mut c_void, HResult>
pub fn obtain_ns_view_handle_retained(&self) -> Result<*mut c_void, HResult>
IFrnTopLevel::ObtainNSViewHandleRetained
Sourcepub fn create_native_control_host(
&self,
) -> Result<Option<ComPtr<IFrnNativeControlHost>>, HResult>
pub fn create_native_control_host( &self, ) -> Result<Option<ComPtr<IFrnNativeControlHost>>, HResult>
IFrnTopLevel::CreateNativeControlHost
Sourcepub fn get_input_method(
&self,
) -> Result<Option<ComPtr<IFrnTextInputMethod>>, HResult>
pub fn get_input_method( &self, ) -> Result<Option<ComPtr<IFrnTextInputMethod>>, HResult>
IFrnTopLevel::GetInputMethod
Sourcepub fn set_transparency_mode(
&self,
mode: FrnWindowTransparencyMode,
) -> Result<(), HResult>
pub fn set_transparency_mode( &self, mode: FrnWindowTransparencyMode, ) -> Result<(), HResult>
IFrnTopLevel::SetTransparencyMode
Sourcepub fn get_current_display_id(&self) -> Result<u32, HResult>
pub fn get_current_display_id(&self) -> Result<u32, HResult>
IFrnTopLevel::GetCurrentDisplayId
Sourcepub unsafe fn begin_drag_and_drop_operation(
&self,
effects: FrnDragDropEffects,
point: FrnPoint,
source: Option<&IFrnClipboardDataSource>,
callback: Option<&IFrnDndResultCallback>,
source_handle: *mut c_void,
) -> Result<(), HResult>
pub unsafe fn begin_drag_and_drop_operation( &self, effects: FrnDragDropEffects, point: FrnPoint, source: Option<&IFrnClipboardDataSource>, callback: Option<&IFrnDndResultCallback>, source_handle: *mut c_void, ) -> Result<(), HResult>
IFrnTopLevel::BeginDragAndDropOperation
§Safety
Raw pointer arguments must satisfy the native method’s contract.
Methods from Deref<Target = IUnknown>§
Trait Implementations§
Source§impl Deref for IFrnTopLevel
impl Deref for IFrnTopLevel
Source§impl<T: IFrnTopLevelImpl> ImplementedBy<T> for IFrnTopLevel
impl<T: IFrnTopLevelImpl> ImplementedBy<T> for IFrnTopLevel
const VTBL: &'static IFrnTopLevelVtbl
Source§impl Interface for IFrnTopLevel
impl Interface for IFrnTopLevel
type Vtbl = IFrnTopLevelVtbl
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 IFrnTopLevel
impl !Sync for IFrnTopLevel
impl Freeze for IFrnTopLevel
impl RefUnwindSafe for IFrnTopLevel
impl Unpin for IFrnTopLevel
impl UnsafeUnpin for IFrnTopLevel
impl UnwindSafe for IFrnTopLevel
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