pub struct TextEditOutput {
pub response: AtomLayoutResponse,
pub galley: Arc<Galley>,
pub galley_pos: Pos2,
pub text_clip_rect: Rect,
pub state: TextEditState,
pub cursor_range: Option<CCursorRange>,
}Expand description
The output from a TextEdit.
Fields§
§response: AtomLayoutResponseThe interaction response.
galley: Arc<Galley>How the text was displayed.
galley_pos: Pos2Where the text in Self::galley ended up on the screen.
text_clip_rect: RectThe text was clipped to this rectangle when painted.
state: TextEditStateThe state we stored after the run.
cursor_range: Option<CCursorRange>Where the text cursor is.
Auto Trait Implementations§
impl !RefUnwindSafe for TextEditOutput
impl !UnwindSafe for TextEditOutput
impl Freeze for TextEditOutput
impl Send for TextEditOutput
impl Sync for TextEditOutput
impl Unpin for TextEditOutput
impl UnsafeUnpin 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more