Skip to main content

record_native_window

Function record_native_window 

Source
pub fn record_native_window(cc: &CreationContext<'_>)
Expand description

Records the main window’s native handle from eframe’s creation context: the HWND on Windows (set_native_window), the X11 id on Linux’s X11 (set_x11_window), and the window itself, which the system’s file chooser asked from it is attached to (files::set_parent_window). AppBuilder::run_native calls it; an application starting eframe itself calls it from its creation context.