mirror of
https://github.com/emilk/egui.git
synced 2026-09-02 06:40:06 -04:00
Fix docs
This commit is contained in:
@@ -2570,8 +2570,8 @@ impl Context {
|
|||||||
///
|
///
|
||||||
/// If this is no more called that viewport will be destroyed.
|
/// 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:
|
/// 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 [`egui::Window`].
|
/// `ctx.viewport_id() != ctx.parent_viewport_id` if false you should create a [`crate::Window`].
|
||||||
pub fn create_viewport_async(
|
pub fn create_viewport_async(
|
||||||
&self,
|
&self,
|
||||||
viewport_builder: ViewportBuilder,
|
viewport_builder: ViewportBuilder,
|
||||||
@@ -2610,7 +2610,7 @@ impl Context {
|
|||||||
/// The given ui function will be called immediately.
|
/// The given ui function will be called immediately.
|
||||||
/// This can only be called from the main thread.
|
/// 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
|
/// backend does not support sync viewports, the given callback
|
||||||
/// will be called immediately and the function will return.
|
/// will be called immediately and the function will return.
|
||||||
///
|
///
|
||||||
@@ -2624,7 +2624,7 @@ impl Context {
|
|||||||
/// If this is no more called that viewport will be destroyed.
|
/// 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:
|
/// 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>(
|
pub fn create_viewport_sync<T>(
|
||||||
&self,
|
&self,
|
||||||
viewport_builder: ViewportBuilder,
|
viewport_builder: ViewportBuilder,
|
||||||
|
|||||||
Reference in New Issue
Block a user