Skip to content

Commit

Permalink
Typos and doc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Dec 22, 2023
1 parent 0561fca commit ffcc3f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crates/ecolor/src/color32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl Color32 {
/// i.e. often taken to mean "no color".
pub const PLACEHOLDER: Color32 = Color32::from_rgba_premultiplied(64, 254, 0, 128);

#[deprecated = "Renmaed to PLACEHOLDER"]
#[deprecated = "Renamed to PLACEHOLDER"]
pub const TEMPORARY_COLOR: Color32 = Self::PLACEHOLDER;

#[inline]
Expand Down
2 changes: 1 addition & 1 deletion crates/eframe/src/epi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ impl std::str::FromStr for Renderer {
/// Represents the surroundings of your app.
///
/// It provides methods to inspect the surroundings (are we on the web?),
/// allocate textures, and change settings (e.g. window size).
/// access to persistent storage, and access to the rendering backend.
pub struct Frame {
/// Information about the integration.
pub(crate) info: IntegrationInfo,
Expand Down
8 changes: 6 additions & 2 deletions crates/egui/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
Expand All @@ -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));
}
Expand Down

0 comments on commit ffcc3f0

Please sign in to comment.