pub struct FerroNativePlatform { /* private fields */ }Expand description
The macOS windowing platform.
Implementations§
Source§impl FerroNativePlatform
impl FerroNativePlatform
Sourcepub fn keyboard_device() -> Rc<KeyboardDevice>
pub fn keyboard_device() -> Rc<KeyboardDevice>
The keyboard device of the platform.
Sourcepub fn compositor() -> Rc<Compositor>
pub fn compositor() -> Rc<Compositor>
Sourcepub fn initialize_with_factory(
factory: ComPtr<IFerroNativeFactory>,
options: FerroNativePlatformOptions,
) -> Rc<FerroNativePlatform>
pub fn initialize_with_factory( factory: ComPtr<IFerroNativeFactory>, options: FerroNativePlatformOptions, ) -> Rc<FerroNativePlatform>
Initializes the platform over an existing native factory.
Sourcepub fn initialize(
options: FerroNativePlatformOptions,
) -> Rc<FerroNativePlatform>
pub fn initialize( options: FerroNativePlatformOptions, ) -> Rc<FerroNativePlatform>
Initializes the platform: creates the native factory (from the library named by the options, or the one linked into the application) and registers the platform services in the service locator. Must be called on the main thread.
§Panics
Panics when the native library named by the options cannot be loaded or has no factory export, and when the factory cannot be created.
Exports the application menu: the menu attached to the application or, without one, a default menu; the standard items (Services, Hide, Quit, …) are appended unless the options disable them.
Exports the dock menu attached to the application, now and whenever it changes.
Sourcepub fn setup_application_name(&self)
pub fn setup_application_name(&self)
Sets the application title shown by the system (menu bar, dock) to the name of the current application, unless it is empty or white space.
§Panics
Panics when there is no current application.
Sourcepub fn setup_application_name_with(&self, name: Option<&str>)
pub fn setup_application_name_with(&self, name: Option<&str>)
setup_application_name for a host
without an application object.
Trait Implementations§
Source§impl IWindowingPlatform for FerroNativePlatform
impl IWindowingPlatform for FerroNativePlatform
Source§fn create_window(&self) -> Rc<dyn IWindowImpl>
fn create_window(&self) -> Rc<dyn IWindowImpl>
Source§fn create_embeddable_top_level(&self) -> Rc<dyn ITopLevelImpl>
fn create_embeddable_top_level(&self) -> Rc<dyn ITopLevelImpl>
Source§fn create_embeddable_window(&self) -> Rc<dyn IWindowImpl>
fn create_embeddable_window(&self) -> Rc<dyn IWindowImpl>
Source§fn create_tray_icon(&self) -> Option<Rc<dyn ITrayIconImpl>>
fn create_tray_icon(&self) -> Option<Rc<dyn ITrayIconImpl>>
Source§fn get_windows_z_order(
&self,
windows: &[Rc<dyn IWindowImpl>],
z_order: &mut [i64],
)
fn get_windows_z_order( &self, windows: &[Rc<dyn IWindowImpl>], z_order: &mut [i64], )
z_order with the z-order of each of windows; a window with
a higher value is above a window with a lower one. Read moreAuto Trait Implementations§
impl !Freeze for FerroNativePlatform
impl !RefUnwindSafe for FerroNativePlatform
impl !Send for FerroNativePlatform
impl !Sync for FerroNativePlatform
impl !UnwindSafe for FerroNativePlatform
impl Unpin for FerroNativePlatform
impl UnsafeUnpin for FerroNativePlatform
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