mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 15:13:12 -04:00
Fix typos
This commit is contained in:
@@ -1169,7 +1169,7 @@ mod glow_integration {
|
||||
builder,
|
||||
viewport_ui_cb,
|
||||
commands,
|
||||
repaint_delay: _, // ignored - we listend to the repaint callback instead
|
||||
repaint_delay: _, // ignored - we listened to the repaint callback instead
|
||||
},
|
||||
) in viewport_output
|
||||
{
|
||||
@@ -2679,7 +2679,7 @@ mod wgpu_integration {
|
||||
builder,
|
||||
viewport_ui_cb,
|
||||
commands,
|
||||
repaint_delay: _, // ignored - we listend to the repaint callback instead
|
||||
repaint_delay: _, // ignored - we listened to the repaint callback instead
|
||||
},
|
||||
) in viewport_output
|
||||
{
|
||||
|
||||
@@ -2509,13 +2509,13 @@ impl Context {
|
||||
/// For integrations: Set this to render a sync viewport.
|
||||
///
|
||||
/// This will only be set the callback for the current thread,
|
||||
/// which mosty likely should be the main thread.
|
||||
/// which most likely should be the main thread.
|
||||
///
|
||||
/// When an immediate viewport is created with [`Self::show_viewport_immediate`] it will be rendered by this function.
|
||||
///
|
||||
/// When called, the integration need to:
|
||||
/// * Check if there already is a window for this viewport id, and if not open one
|
||||
/// * Set the window attributes (postion, size, …) based on [`ImmediateViewport::builder`].
|
||||
/// * Set the window attributes (position, size, …) based on [`ImmediateViewport::builder`].
|
||||
/// * Call [`Context::run`] with [`ImmediateViewport::viewport_ui_cb`].
|
||||
/// * Handle the output from [`Context::run`], including rendering
|
||||
#[allow(clippy::unused_self)]
|
||||
|
||||
@@ -27,7 +27,7 @@ struct MyApp {
|
||||
/// if either needs repainting, they are both repainted.
|
||||
show_immediate_viewport: bool,
|
||||
|
||||
/// Deferred viewports run independant of the parent viewport, which can save
|
||||
/// Deferred viewports run independent of the parent viewport, which can save
|
||||
/// CPU if only some of the viewports require repainting.
|
||||
/// However, this requires passing state with `Arc` and locks.
|
||||
show_deferred_viewport: Arc<AtomicBool>,
|
||||
|
||||
Reference in New Issue
Block a user