pub struct AppKitHandle { /* private fields */ }Expand description
Shared access to an AppKitBackend after it was moved into a Ui.
Implementations§
Source§impl AppKitHandle
impl AppKitHandle
pub fn command_log(&self) -> Vec<Command>
pub fn take_command_log(&self) -> Vec<Command>
Sourcepub fn node_count(&self) -> usize
pub fn node_count(&self) -> usize
Number of live native nodes.
Source§impl AppKitHandle
impl AppKitHandle
Sourcepub fn resize_window(&self, window: NodeId, size: Size)
pub fn resize_window(&self, window: NodeId, size: Size)
Resizes a window’s content like the user would, between its minimum
and maximum, as a drag goes (setContentSize: alone would go past
them); the window delegate reports it back as a WindowResized event.
Sourcepub fn show_pending_windows(&self)
pub fn show_pending_windows(&self)
Orders front windows whose first layout has been applied: a sheet on the window it belongs to, a window in the app’s modal loop, or an ordinary window.
Trait Implementations§
Source§impl Clone for AppKitHandle
impl Clone for AppKitHandle
Source§impl TestHooks for AppKitHandle
impl TestHooks for AppKitHandle
Source§fn close_window(&self, window: NodeId)
fn close_window(&self, window: NodeId)
As the close button does: the window asks its delegate.
Source§fn app_info(&self, _window: NodeId) -> NativeAppInfo
fn app_info(&self, _window: NodeId) -> NativeAppInfo
The id is the bundle’s; the name is kept, as only the menus show it; the icon is the Dock’s, in points.
Source§fn settle(&self)
fn settle(&self)
Offscreen windows get no display cycle, where tables add the rows scrolling brought into view and toolbars place their items. While a search field is shown, timers that are due fire, as in the app’s run loop: it searches once typing pauses. Not always yet: tables and tab views run timers too, which change what their tests capture.
Source§fn name(&self) -> &'static str
fn name(&self) -> &'static str
"appkit",
"gtk", "winui", "kirigami".Source§fn dragged_files(&self, node: NodeId) -> Option<Vec<PathBuf>>
fn dragged_files(&self, node: NodeId) -> Option<Vec<PathBuf>>
List or Table carries
(Prop::RowFiles), as the platform’s drag source gives them: the
selected rows’ when the row is selected, else its own. node is the
row’s host (a table’s: any of its cells’). None if it doesn’t drag.
Nothing here can start a real drag; this goes through the backend’s
own drag handling up to where the platform takes the files.Source§fn resize_window(&self, window: NodeId, size: Size)
fn resize_window(&self, window: NodeId, size: Size)
WindowResized.