pub fn end_frame(&mut self, window: Option<&winit::window::Window>) -> egui::FullOutput {
        // otherwise the below line gets flagged by clippy if both clipboard and webbrowser features are disabled
        #[allow(clippy::let_and_return)]
        let output = self.context.end_frame();

        if let Some(window) = window {
            if let Some(cursor_icon) = egui_to_winit_cursor_icon(output.platform_output.cursor_icon)
            {
                window.set_cursor_visible(true);
                // if the pointer is located inside the window, set cursor icon
                if self.pointer_pos.is_some() {
                    window.set_cursor_icon(cursor_icon);
                }
            } else {
                window.set_cursor_visible(false);
            }
        }

        #[cfg(feature = "clipboard")]
        handle_clipboard(&output.platform_output, self.clipboard.as_mut());

        #[cfg(feature = "webbrowser")]
        handle_links(&output.platform_output);

        output
    }
/// Ends the frame. Returns what has happened as `Output` and gives you the draw instructions
/// as `PaintJobs`. If the optional `window` is set, it will set the cursor key based on
/// egui's instructions.
Ends the frame. Returns what has happened as `Output` and gives you the draw instructions
as `PaintJobs`. If the optional `window` is set, it will set the cursor key based on
egui's instructions.
Ends the frame . Returns what has happened as ` Output ` and gives you the draw instructions as ` PaintJobs ` . If the optional ` window ` is set it will set the cursor key based on egui ' s instructions .
pub fn end_frame(&mut self, window: Option<&winit::window::Window>) -> egui::FullOutput {
        // otherwise the below line gets flagged by clippy if both clipboard and webbrowser features are disabled
        #[allow(clippy::let_and_return)]
        let output = self.context.end_frame();
        if let Some(window) = window {
            if let Some(cursor_icon) = egui_to_winit_cursor_icon(output.platform_output.cursor_icon)
            {
                window.set_cursor_visible(true);
                // if the pointer is located inside the window, set cursor icon
                if self.pointer_pos.is_some() {
                    window.set_cursor_icon(cursor_icon);
                }
            } else {
                window.set_cursor_visible(false);
            }
        }
        #[cfg(feature = "clipboard")]
        handle_clipboard(&output.platform_output, self.clipboard.as_mut());
        #[cfg(feature = "webbrowser")]
        handle_links(&output.platform_output);
        output
    }
pub fn end_frame ( & mut self , window : Option < & winit :: window :: Window > ) -> egui :: FullOutput { // otherwise the below line gets flagged by clippy if both clipboard and webbrowser features are disabled # [ allow ( clippy let_and_return ) ] let output = self . context . end_frame ( ) ; if let Some ( window ) = window { if let Some ( cursor_icon ) = egui_to_winit_cursor_icon ( output . platform_output . cursor_icon ) { window . set_cursor_visible ( true ) ; // if the pointer is located inside the window, set cursor icon if self . pointer_pos . is_some ( ) { window . set_cursor_icon ( cursor_icon ) ; } } else { window . set_cursor_visible ( false ) ; } } # [ cfg ( feature " " ) ] handle_clipboard ( & output . platform_output , self . clipboard . as_mut ( ) ) ; # [ cfg ( feature " " ) ] handle_links ( & output . platform_output ) ; output }
Ends the frame.
Ends the frame .
&mut self
window
Option<&winit::window::Window>
&mut self
window
Option<&winit::window::Window>