mirror of
https://github.com/emilk/egui.git
synced 2026-09-03 15:20:05 -04:00
Typos and doc improvements
This commit is contained in:
@@ -1191,11 +1191,13 @@ impl Context {
|
||||
/// If this is called at least once in a frame, then there will be another frame right after this.
|
||||
/// Call as many times as you wish, only one repaint will be issued.
|
||||
///
|
||||
/// To request repaint with a delay, use [`Self::request_repaint_after`].
|
||||
///
|
||||
/// If called from outside the UI thread, the UI thread will wake up and run,
|
||||
/// provided the egui integration has set that up via [`Self::set_request_repaint_callback`]
|
||||
/// (this will work on `eframe`).
|
||||
///
|
||||
/// This will repaint the current viewport
|
||||
/// This will repaint the current viewport.
|
||||
pub fn request_repaint(&self) {
|
||||
self.request_repaint_of(self.viewport_id());
|
||||
}
|
||||
@@ -1205,11 +1207,13 @@ impl Context {
|
||||
/// If this is called at least once in a frame, then there will be another frame right after this.
|
||||
/// Call as many times as you wish, only one repaint will be issued.
|
||||
///
|
||||
/// To request repaint with a delay, use [`Self::request_repaint_after_for`].
|
||||
///
|
||||
/// If called from outside the UI thread, the UI thread will wake up and run,
|
||||
/// provided the egui integration has set that up via [`Self::set_request_repaint_callback`]
|
||||
/// (this will work on `eframe`).
|
||||
///
|
||||
/// This will repaint the specified viewport
|
||||
/// This will repaint the specified viewport.
|
||||
pub fn request_repaint_of(&self, id: ViewportId) {
|
||||
self.write(|ctx| ctx.request_repaint(id));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user