Struct tuig_ui::attachments::TextboxData
source · pub struct TextboxData {
pub lines: usize,
pub height: usize,
pub scroll: usize,
}
Expand description
Ancillary data which might be useful
Fields§
§lines: usize
How many total lines there were, after word wrapping.
height: usize
How many lines on the screen the textbox occupied, accounting for the requested height, the
scroll: usize
How far down from the top the displayed text started.
Trait Implementations§
source§impl Clone for TextboxData
impl Clone for TextboxData
source§fn clone(&self) -> TextboxData
fn clone(&self) -> TextboxData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl PartialEq for TextboxData
impl PartialEq for TextboxData
source§fn eq(&self, other: &TextboxData) -> bool
fn eq(&self, other: &TextboxData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TextboxData
impl StructuralEq for TextboxData
impl StructuralPartialEq for TextboxData
Auto Trait Implementations§
impl RefUnwindSafe for TextboxData
impl Send for TextboxData
impl Sync for TextboxData
impl Unpin for TextboxData
impl UnwindSafe for TextboxData
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