Skip to content

Commit

Permalink
Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcur committed Dec 11, 2024
1 parent cf76ee5 commit 254d1ef
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions masonry/src/contexts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,12 @@ impl_context_method!(

/// Set the IME cursor area.
///
/// The reported IME area can be used by the platform to, for example, place a candidate
/// box near that area, while ensuring the area is not obscured.
/// When this widget is [focused] and [accepts text input], the reported IME area is sent
/// to the platform. The area can be used by the platform to, for example, place a
/// candidate box near that area, while ensuring the area is not obscured.
///
/// [focused]: EventCtx::request_focus
/// [accepts text input]: Widget::accepts_text_input
pub fn set_ime_area(&mut self, ime_area: Rect) {
self.widget_state.ime_area = Some(ime_area);
}
Expand Down

0 comments on commit 254d1ef

Please sign in to comment.