pub struct IFerroNativeFactory { /* private fields */ }Implementations§
Source§impl IFerroNativeFactory
impl IFerroNativeFactory
Sourcepub fn from_impl<T: IFerroNativeFactoryImpl + 'static>(
value: T,
) -> ComPtr<IFerroNativeFactory>
pub fn from_impl<T: IFerroNativeFactoryImpl + 'static>( value: T, ) -> ComPtr<IFerroNativeFactory>
Wraps a Rust implementation into a COM object native code can call.
Sourcepub fn initialize(
&self,
deallocator: Option<&IFrnGCHandleDeallocatorCallback>,
app_cb: Option<&IFrnApplicationEvents>,
dispatcher: Option<&IFrnDispatcher>,
) -> Result<(), HResult>
pub fn initialize( &self, deallocator: Option<&IFrnGCHandleDeallocatorCallback>, app_cb: Option<&IFrnApplicationEvents>, dispatcher: Option<&IFrnDispatcher>, ) -> Result<(), HResult>
IFerroNativeFactory::Initialize
Sourcepub fn get_mac_options(&self) -> Option<ComPtr<IFrnMacOptions>>
pub fn get_mac_options(&self) -> Option<ComPtr<IFrnMacOptions>>
IFerroNativeFactory::GetMacOptions
Sourcepub fn create_top_level(
&self,
cb: Option<&IFrnTopLevelEvents>,
) -> Result<Option<ComPtr<IFrnTopLevel>>, HResult>
pub fn create_top_level( &self, cb: Option<&IFrnTopLevelEvents>, ) -> Result<Option<ComPtr<IFrnTopLevel>>, HResult>
IFerroNativeFactory::CreateTopLevel
Sourcepub fn create_window(
&self,
cb: Option<&IFrnWindowEvents>,
) -> Result<Option<ComPtr<IFrnWindow>>, HResult>
pub fn create_window( &self, cb: Option<&IFrnWindowEvents>, ) -> Result<Option<ComPtr<IFrnWindow>>, HResult>
IFerroNativeFactory::CreateWindow
Sourcepub fn create_popup(
&self,
cb: Option<&IFrnWindowEvents>,
) -> Result<Option<ComPtr<IFrnPopup>>, HResult>
pub fn create_popup( &self, cb: Option<&IFrnWindowEvents>, ) -> Result<Option<ComPtr<IFrnPopup>>, HResult>
IFerroNativeFactory::CreatePopup
Sourcepub fn create_platform_threading_interface(
&self,
) -> Result<Option<ComPtr<IFrnPlatformThreadingInterface>>, HResult>
pub fn create_platform_threading_interface( &self, ) -> Result<Option<ComPtr<IFrnPlatformThreadingInterface>>, HResult>
IFerroNativeFactory::CreatePlatformThreadingInterface
Sourcepub fn create_storage_provider(
&self,
) -> Result<Option<ComPtr<IFrnStorageProvider>>, HResult>
pub fn create_storage_provider( &self, ) -> Result<Option<ComPtr<IFrnStorageProvider>>, HResult>
IFerroNativeFactory::CreateStorageProvider
Sourcepub fn create_screens(
&self,
cb: Option<&IFrnScreenEvents>,
) -> Result<Option<ComPtr<IFrnScreens>>, HResult>
pub fn create_screens( &self, cb: Option<&IFrnScreenEvents>, ) -> Result<Option<ComPtr<IFrnScreens>>, HResult>
IFerroNativeFactory::CreateScreens
Sourcepub fn create_clipboard(&self) -> Result<Option<ComPtr<IFrnClipboard>>, HResult>
pub fn create_clipboard(&self) -> Result<Option<ComPtr<IFrnClipboard>>, HResult>
IFerroNativeFactory::CreateClipboard
Sourcepub fn create_cursor_factory(
&self,
) -> Result<Option<ComPtr<IFrnCursorFactory>>, HResult>
pub fn create_cursor_factory( &self, ) -> Result<Option<ComPtr<IFrnCursorFactory>>, HResult>
IFerroNativeFactory::CreateCursorFactory
Sourcepub fn obtain_gl_display(
&self,
) -> Result<Option<ComPtr<IFrnGlDisplay>>, HResult>
pub fn obtain_gl_display( &self, ) -> Result<Option<ComPtr<IFrnGlDisplay>>, HResult>
IFerroNativeFactory::ObtainGlDisplay
Sourcepub fn obtain_metal_display(
&self,
) -> Result<Option<ComPtr<IFrnMetalDisplay>>, HResult>
pub fn obtain_metal_display( &self, ) -> Result<Option<ComPtr<IFrnMetalDisplay>>, HResult>
IFerroNativeFactory::ObtainMetalDisplay
IFerroNativeFactory::SetAppMenu
IFerroNativeFactory::SetServicesMenu
IFerroNativeFactory::CreateMenu
IFerroNativeFactory::CreateMenuItem
IFerroNativeFactory::CreateMenuItemSeparator
Sourcepub fn create_tray_icon(&self) -> Result<Option<ComPtr<IFrnTrayIcon>>, HResult>
pub fn create_tray_icon(&self) -> Result<Option<ComPtr<IFrnTrayIcon>>, HResult>
IFerroNativeFactory::CreateTrayIcon
Sourcepub fn create_application_commands(
&self,
) -> Result<Option<ComPtr<IFrnApplicationCommands>>, HResult>
pub fn create_application_commands( &self, ) -> Result<Option<ComPtr<IFrnApplicationCommands>>, HResult>
IFerroNativeFactory::CreateApplicationCommands
Sourcepub fn create_platform_settings(
&self,
) -> Result<Option<ComPtr<IFrnPlatformSettings>>, HResult>
pub fn create_platform_settings( &self, ) -> Result<Option<ComPtr<IFrnPlatformSettings>>, HResult>
IFerroNativeFactory::CreatePlatformSettings
Sourcepub fn create_platform_behavior_inhibition(
&self,
) -> Result<Option<ComPtr<IFrnPlatformBehaviorInhibition>>, HResult>
pub fn create_platform_behavior_inhibition( &self, ) -> Result<Option<ComPtr<IFrnPlatformBehaviorInhibition>>, HResult>
IFerroNativeFactory::CreatePlatformBehaviorInhibition
Sourcepub fn create_platform_render_timer(
&self,
) -> Result<Option<ComPtr<IFrnPlatformRenderTimer>>, HResult>
pub fn create_platform_render_timer( &self, ) -> Result<Option<ComPtr<IFrnPlatformRenderTimer>>, HResult>
IFerroNativeFactory::CreatePlatformRenderTimer
IFerroNativeFactory::ImportMTLSharedEvent
§Safety
Raw pointer arguments must satisfy the native method’s contract.
Sourcepub fn create_memory_management_helper(
&self,
) -> Result<Option<ComPtr<IFrnNativeObjectsMemoryManagement>>, HResult>
pub fn create_memory_management_helper( &self, ) -> Result<Option<ComPtr<IFrnNativeObjectsMemoryManagement>>, HResult>
IFerroNativeFactory::CreateMemoryManagementHelper
IFerroNativeFactory::SetDockMenu
Methods from Deref<Target = IUnknown>§
Trait Implementations§
Source§impl Deref for IFerroNativeFactory
impl Deref for IFerroNativeFactory
Source§impl<T: IFerroNativeFactoryImpl> ImplementedBy<T> for IFerroNativeFactory
impl<T: IFerroNativeFactoryImpl> ImplementedBy<T> for IFerroNativeFactory
const VTBL: &'static IFerroNativeFactoryVtbl
Source§impl Interface for IFerroNativeFactory
impl Interface for IFerroNativeFactory
type Vtbl = IFerroNativeFactoryVtbl
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 IFerroNativeFactory
impl !Sync for IFerroNativeFactory
impl Freeze for IFerroNativeFactory
impl RefUnwindSafe for IFerroNativeFactory
impl Unpin for IFerroNativeFactory
impl UnsafeUnpin for IFerroNativeFactory
impl UnwindSafe for IFerroNativeFactory
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more