Struct gpui2::WrappedLineLayout
source · pub struct WrappedLineLayout {
pub unwrapped_layout: Arc<LineLayout>,
pub wrap_boundaries: SmallVec<[WrapBoundary; 1]>,
pub wrap_width: Option<Pixels>,
}
Fields§
§unwrapped_layout: Arc<LineLayout>
§wrap_boundaries: SmallVec<[WrapBoundary; 1]>
§wrap_width: Option<Pixels>
Implementations§
source§impl WrappedLineLayout
impl WrappedLineLayout
pub fn len(&self) -> usize
pub fn width(&self) -> Pixels
pub fn size(&self, line_height: Pixels) -> Size<Pixels>
pub fn ascent(&self) -> Pixels
pub fn descent(&self) -> Pixels
pub fn wrap_boundaries(&self) -> &[WrapBoundary]
pub fn font_size(&self) -> Pixels
pub fn runs(&self) -> &[ShapedRun]
Trait Implementations§
source§impl Debug for WrappedLineLayout
impl Debug for WrappedLineLayout
source§impl Default for WrappedLineLayout
impl Default for WrappedLineLayout
source§fn default() -> WrappedLineLayout
fn default() -> WrappedLineLayout
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for WrappedLineLayout
impl Send for WrappedLineLayout
impl Sync for WrappedLineLayout
impl Unpin for WrappedLineLayout
impl UnwindSafe for WrappedLineLayout
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