gpui: Fix documentation of window methods (#43315)
Closes #43313 Release Notes: - N/A Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
This commit is contained in:
@@ -2434,7 +2434,7 @@ impl Window {
|
||||
}
|
||||
|
||||
/// Updates the cursor style at the platform level. This method should only be called
|
||||
/// during the prepaint phase of element drawing.
|
||||
/// during the paint phase of element drawing.
|
||||
pub fn set_cursor_style(&mut self, style: CursorStyle, hitbox: &Hitbox) {
|
||||
self.invalidator.debug_assert_paint();
|
||||
self.next_frame.cursor_styles.push(CursorStyleRequest {
|
||||
@@ -2445,7 +2445,7 @@ impl Window {
|
||||
|
||||
/// Updates the cursor style for the entire window at the platform level. A cursor
|
||||
/// style using this method will have precedence over any cursor style set using
|
||||
/// `set_cursor_style`. This method should only be called during the prepaint
|
||||
/// `set_cursor_style`. This method should only be called during the paint
|
||||
/// phase of element drawing.
|
||||
pub fn set_window_cursor_style(&mut self, style: CursorStyle) {
|
||||
self.invalidator.debug_assert_paint();
|
||||
|
||||
Reference in New Issue
Block a user