Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
konkitoman committed Nov 6, 2023
1 parent 39f13b4 commit c29727f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/egui/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2570,8 +2570,8 @@ impl Context {
///
/// If this is no more called that viewport will be destroyed.
///
/// If you use a [`egui::CentralPanel`] you need to check if the viewport is a new window like:
/// `ctx.viewport_id() != ctx.parent_viewport_id` if false you should create a [`egui::Window`].
/// If you use a [`crate::CentralPanel`] you need to check if the viewport is a new window like:
/// `ctx.viewport_id() != ctx.parent_viewport_id` if false you should create a [`crate::Window`].
pub fn create_viewport_async(
&self,
viewport_builder: ViewportBuilder,
Expand Down Expand Up @@ -2610,7 +2610,7 @@ impl Context {
/// The given ui function will be called immediately.
/// This can only be called from the main thread.
///
/// If [`force_embedding`] is true, or if the current egui
/// If [`Context::force_embedding`] is true, or if the current egui
/// backend does not support sync viewports, the given callback
/// will be called immediately and the function will return.
///
Expand All @@ -2624,7 +2624,7 @@ impl Context {
/// If this is no more called that viewport will be destroyed.
///
/// If you use a `egui::CentralPanel` you need to check if the viewport is a new window like:
/// `ctx.viewport_id() != ctx.parent_viewport_id` if false you should create a [`egui::Window`].
/// `ctx.viewport_id() != ctx.parent_viewport_id` if false you should create a [`crate::Window`].
pub fn create_viewport_sync<T>(
&self,
viewport_builder: ViewportBuilder,
Expand Down

0 comments on commit c29727f

Please sign in to comment.