pub fn handle_platform_output(
        &mut self,
        window: &tao::window::Window,
        egui_ctx: &egui::Context,
        platform_output: egui::PlatformOutput,
    ) {
        if egui_ctx.options().screen_reader {
            self.screen_reader
                .speak(&platform_output.events_description());
        }

        let egui::PlatformOutput {
            cursor_icon,
            open_url,
            copied_text,
            events: _,                    // handled above
            mutable_text_under_cursor: _, // only used in egui_web
            text_cursor_pos,
        } = platform_output;

        self.current_pixels_per_point = egui_ctx.pixels_per_point(); // someone can have changed it to scale the UI

        self.set_cursor_icon(window, cursor_icon);

        if let Some(open_url) = open_url {
            open_url_in_browser(&open_url.url);
        }

        if !copied_text.is_empty() {
            self.clipboard.set(copied_text);
        }

        if let Some(egui::Pos2 { x, y }) = text_cursor_pos {
            window.set_ime_position(tao::dpi::LogicalPosition { x, y });
        }
    }
/// Call with the output given by `egui`.
///
/// This will, if needed:
/// * update the cursor
/// * copy text to the clipboard
/// * open any clicked urls
/// * update the IME
/// *
Call with the output given by `egui`.
This will, if needed:
update the cursor
copy text to the clipboard
open any clicked urls
update the IME
Call with the output given by ` egui ` . This will if needed : update the cursor copy text to the clipboard open any clicked urls update the IME
pub fn handle_platform_output(
        &mut self,
        window: &tao::window::Window,
        egui_ctx: &egui::Context,
        platform_output: egui::PlatformOutput,
    ) {
        if egui_ctx.options().screen_reader {
            self.screen_reader
                .speak(&platform_output.events_description());
        }
        let egui::PlatformOutput {
            cursor_icon,
            open_url,
            copied_text,
            events: _,                    // handled above
            mutable_text_under_cursor: _, // only used in egui_web
            text_cursor_pos,
        } = platform_output;
        self.current_pixels_per_point = egui_ctx.pixels_per_point(); // someone can have changed it to scale the UI
        self.set_cursor_icon(window, cursor_icon);
        if let Some(open_url) = open_url {
            open_url_in_browser(&open_url.url);
        }
        if !copied_text.is_empty() {
            self.clipboard.set(copied_text);
        }
        if let Some(egui::Pos2 { x, y }) = text_cursor_pos {
            window.set_ime_position(tao::dpi::LogicalPosition { x, y });
        }
    }
pub fn handle_platform_output ( & mut self , window : & tao :: window :: Window , egui_ctx : & egui :: Context , platform_output : egui :: PlatformOutput , ) { if egui_ctx . options ( ) . screen_reader { self . screen_reader . speak ( & platform_output . events_description ( ) ) ; } let egui :: PlatformOutput { cursor_icon , open_url , copied_text , events : _ , // handled above mutable_text_under_cursor : _ , // only used in egui_web text_cursor_pos , } = platform_output ; self . current_pixels_per_point = egui_ctx . pixels_per_point ( ) ; // someone can have changed it to scale the UI self . set_cursor_icon ( window , cursor_icon ) ; if let Some ( open_url ) = open_url { open_url_in_browser ( & open_url . url ) ; } if ! copied_text . is_empty ( ) { self . clipboard . set ( copied_text ) ; } if let Some ( egui :: Pos2 { x , y } ) = text_cursor_pos { window . set_ime_position ( tao :: dpi :: LogicalPosition { x , y } ) ; } }
Call with the output given by `egui`.
Call with the output given by ` egui ` .
&mut self
window
&tao::window::Window
egui_ctx
&egui::Context
platform_output
egui::PlatformOutput
&mut self
window
&tao::window::Window
egui_ctx
&egui::Context
platform_output
egui::PlatformOutput