Skip to main content

IFerroNativeFactory

Struct IFerroNativeFactory 

Source
pub struct IFerroNativeFactory { /* private fields */ }

Implementations§

Source§

impl IFerroNativeFactory

Source

pub fn from_impl<T: IFerroNativeFactoryImpl + 'static>( value: T, ) -> ComPtr<IFerroNativeFactory>

Wraps a Rust implementation into a COM object native code can call.

Source

pub fn initialize( &self, deallocator: Option<&IFrnGCHandleDeallocatorCallback>, app_cb: Option<&IFrnApplicationEvents>, dispatcher: Option<&IFrnDispatcher>, ) -> Result<(), HResult>

IFerroNativeFactory::Initialize

Source

pub fn get_mac_options(&self) -> Option<ComPtr<IFrnMacOptions>>

IFerroNativeFactory::GetMacOptions

Source

pub fn create_top_level( &self, cb: Option<&IFrnTopLevelEvents>, ) -> Result<Option<ComPtr<IFrnTopLevel>>, HResult>

IFerroNativeFactory::CreateTopLevel

Source

pub fn create_window( &self, cb: Option<&IFrnWindowEvents>, ) -> Result<Option<ComPtr<IFrnWindow>>, HResult>

IFerroNativeFactory::CreateWindow

Source

pub fn create_popup( &self, cb: Option<&IFrnWindowEvents>, ) -> Result<Option<ComPtr<IFrnPopup>>, HResult>

IFerroNativeFactory::CreatePopup

Source

pub fn create_platform_threading_interface( &self, ) -> Result<Option<ComPtr<IFrnPlatformThreadingInterface>>, HResult>

IFerroNativeFactory::CreatePlatformThreadingInterface

Source

pub fn create_storage_provider( &self, ) -> Result<Option<ComPtr<IFrnStorageProvider>>, HResult>

IFerroNativeFactory::CreateStorageProvider

Source

pub fn create_screens( &self, cb: Option<&IFrnScreenEvents>, ) -> Result<Option<ComPtr<IFrnScreens>>, HResult>

IFerroNativeFactory::CreateScreens

Source

pub fn create_clipboard(&self) -> Result<Option<ComPtr<IFrnClipboard>>, HResult>

IFerroNativeFactory::CreateClipboard

Source

pub fn create_cursor_factory( &self, ) -> Result<Option<ComPtr<IFrnCursorFactory>>, HResult>

IFerroNativeFactory::CreateCursorFactory

Source

pub fn obtain_gl_display( &self, ) -> Result<Option<ComPtr<IFrnGlDisplay>>, HResult>

IFerroNativeFactory::ObtainGlDisplay

Source

pub fn obtain_metal_display( &self, ) -> Result<Option<ComPtr<IFrnMetalDisplay>>, HResult>

IFerroNativeFactory::ObtainMetalDisplay

Source

pub fn set_app_menu(&self, menu: Option<&IFrnMenu>) -> Result<(), HResult>

IFerroNativeFactory::SetAppMenu

Source

pub fn set_services_menu(&self, menu: Option<&IFrnMenu>) -> Result<(), HResult>

IFerroNativeFactory::SetServicesMenu

Source

pub fn create_menu( &self, cb: Option<&IFrnMenuEvents>, ) -> Result<Option<ComPtr<IFrnMenu>>, HResult>

IFerroNativeFactory::CreateMenu

Source

pub fn create_menu_item(&self) -> Result<Option<ComPtr<IFrnMenuItem>>, HResult>

IFerroNativeFactory::CreateMenuItem

Source

pub fn create_menu_item_separator( &self, ) -> Result<Option<ComPtr<IFrnMenuItem>>, HResult>

IFerroNativeFactory::CreateMenuItemSeparator

Source

pub fn create_tray_icon(&self) -> Result<Option<ComPtr<IFrnTrayIcon>>, HResult>

IFerroNativeFactory::CreateTrayIcon

Source

pub fn create_application_commands( &self, ) -> Result<Option<ComPtr<IFrnApplicationCommands>>, HResult>

IFerroNativeFactory::CreateApplicationCommands

Source

pub fn create_platform_settings( &self, ) -> Result<Option<ComPtr<IFrnPlatformSettings>>, HResult>

IFerroNativeFactory::CreatePlatformSettings

Source

pub fn create_platform_behavior_inhibition( &self, ) -> Result<Option<ComPtr<IFrnPlatformBehaviorInhibition>>, HResult>

IFerroNativeFactory::CreatePlatformBehaviorInhibition

Source

pub fn create_platform_render_timer( &self, ) -> Result<Option<ComPtr<IFrnPlatformRenderTimer>>, HResult>

IFerroNativeFactory::CreatePlatformRenderTimer

Source

pub unsafe fn import_mtl_shared_event( &self, id_mtl_shared_event: *mut c_void, ) -> Result<Option<ComPtr<IFrnMTLSharedEvent>>, HResult>

IFerroNativeFactory::ImportMTLSharedEvent

§Safety

Raw pointer arguments must satisfy the native method’s contract.

Source

pub fn create_memory_management_helper( &self, ) -> Result<Option<ComPtr<IFrnNativeObjectsMemoryManagement>>, HResult>

IFerroNativeFactory::CreateMemoryManagementHelper

Source

pub fn set_dock_menu(&self, menu: Option<&IFrnMenu>) -> Result<(), HResult>

IFerroNativeFactory::SetDockMenu

Methods from Deref<Target = IUnknown>§

Source

pub unsafe fn query_interface_raw( &self, riid: &Guid, ppv: *mut *mut c_void, ) -> u32

§Safety

Raw COM call; ppv must be valid for writes.

Source

pub unsafe fn add_ref(&self) -> u32

§Safety

Raw reference-count manipulation.

Source

pub unsafe fn release(&self) -> u32

§Safety

Raw reference-count manipulation; self may be dangling afterwards.

Trait Implementations§

Source§

impl Deref for IFerroNativeFactory

Source§

type Target = IUnknown

The resulting type after dereferencing.
Source§

fn deref(&self) -> &IUnknown

Dereferences the value.
Source§

impl<T: IFerroNativeFactoryImpl> ImplementedBy<T> for IFerroNativeFactory

Source§

impl Interface for IFerroNativeFactory

Source§

const IID: Guid

The interface’s IID as written in the IDL.
Source§

const NAME: &'static str = "IFerroNativeFactory"

IDL name, for diagnostics.
Source§

type Vtbl = IFerroNativeFactoryVtbl

Source§

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.
Source§

fn as_unknown(&self) -> &IUnknown

Source§

fn as_raw(&self) -> *mut Self

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> IUnknownImpl for T
where T: ?Sized,

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.