pub struct TextEditOutput {
pub response: Response,
pub galley: Arc<Galley>,
pub galley_pos: Pos2,
pub text_clip_rect: Rect,
pub state: TextEditState,
pub cursor_range: Option<CursorRange>,
}
Expand description
The output from a TextEdit
.
Fields§
§response: Response
The interaction response.
galley: Arc<Galley>
How the text was displayed.
galley_pos: Pos2
Where the text in Self::galley
ended up on the screen.
text_clip_rect: Rect
The text was clipped to this rectangle when painted.
state: TextEditState
The state we stored after the run.
cursor_range: Option<CursorRange>
Where the text cursor is.
Implementations§
source§impl TextEditOutput
impl TextEditOutput
pub fn text_draw_pos(&self) -> Pos2
👎Deprecated: Renamed
self.galley_pos
Auto Trait Implementations§
impl Freeze for TextEditOutput
impl !RefUnwindSafe for TextEditOutput
impl Send for TextEditOutput
impl Sync for TextEditOutput
impl Unpin for TextEditOutput
impl !UnwindSafe for TextEditOutput
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more