Struct tty_interface::layout::LineLayout
source · [−]pub struct LineLayout { /* private fields */ }Expand description
A rendered line’s layout once arranged on the screen.
Implementations
sourceimpl LineLayout
impl LineLayout
sourcepub fn segments(&self) -> &Vec<SegmentLayout>
pub fn segments(&self) -> &Vec<SegmentLayout>
This layout’s constituent text segments.
sourcepub fn get_segment(&self, segment_id: SegmentId) -> Option<&SegmentLayout>
pub fn get_segment(&self, segment_id: SegmentId) -> Option<&SegmentLayout>
Get the specified segment’s layout.
sourcepub fn get_segment_before(&self, segment_id: SegmentId) -> Option<&SegmentLayout>
pub fn get_segment_before(&self, segment_id: SegmentId) -> Option<&SegmentLayout>
Get the segment’s layout preceding the specified segment.
sourcepub fn wrapped_line_count(&self) -> u16
pub fn wrapped_line_count(&self) -> u16
The total number of rendered terminal lines in this layout, after wrapping.
sourcepub fn end_position(&self) -> Option<AbsolutePosition>
pub fn end_position(&self) -> Option<AbsolutePosition>
The exclusive position on screen where this line ends.
Trait Implementations
sourceimpl Clone for LineLayout
impl Clone for LineLayout
sourcefn clone(&self) -> LineLayout
fn clone(&self) -> LineLayout
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for LineLayout
impl Debug for LineLayout
sourceimpl Default for LineLayout
impl Default for LineLayout
Auto Trait Implementations
impl RefUnwindSafe for LineLayout
impl Send for LineLayout
impl Sync for LineLayout
impl Unpin for LineLayout
impl UnwindSafe for LineLayout
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more