pub struct TextEditOutput {
pub response: WidgetAtomResponse,
pub galley: Arc<Galley>,
pub galley_pos: Pos2,
pub text_clip_rect: Rect,
pub state: TextEditState,
pub cursor_range: Option<CCursorRange>,
}Available on crate feature
egui only.Expand description
The output from a TextEdit.
Fields§
§response: WidgetAtomResponseThe 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 Forget for TextEditOutput
impl Freeze for TextEditOutputwhere
*const ArcInner<RwLock<ContextImpl>> is !null: Freeze,
PhantomData<ArcInner<RwLock<ContextImpl>>>: Freeze,
NonZero<u64>: Freeze,
*const (IdSalt, Rect) is !null: Freeze,
PhantomData<(IdSalt, Rect)>: Freeze,
*const ArcInner<Galley> is !null: Freeze,
PhantomData<ArcInner<Galley>>: Freeze,
*const ArcInner<Mutex<Undoer<(CCursorRange, String)>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Undoer<(CCursorRange, String)>>>>: Freeze,
impl Move for TextEditOutput
impl Send for TextEditOutput
impl Sync for TextEditOutput
impl Unpin for TextEditOutput
impl UnsafeUnpin for TextEditOutputwhere
*const ArcInner<RwLock<ContextImpl>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<ContextImpl>>>: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
*const (IdSalt, Rect) is !null: UnsafeUnpin,
PhantomData<(IdSalt, Rect)>: UnsafeUnpin,
*const ArcInner<Galley> is !null: UnsafeUnpin,
PhantomData<ArcInner<Galley>>: UnsafeUnpin,
*const ArcInner<Mutex<Undoer<(CCursorRange, String)>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Undoer<(CCursorRange, String)>>>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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