pub struct FrameText {
pub text: TextRun,
pub colors: FrameSlice<Color>,
pub offset: LogicalPoint,
pub options: TextOptions,
}Expand description
resolved text with span colors stored in the frame
Fields§
§text: TextRun§colors: FrameSlice<Color>§offset: LogicalPoint§options: TextOptionsImplementations§
Source§impl FrameText
impl FrameText
Sourcepub fn text(self, value: TextRun) -> Self
pub fn text(self, value: TextRun) -> Self
sets Self::text
Sourcepub fn colors(self, value: FrameSlice<Color>) -> Self
pub fn colors(self, value: FrameSlice<Color>) -> Self
sets Self::colors
Sourcepub fn offset(self, value: LogicalPoint) -> Self
pub fn offset(self, value: LogicalPoint) -> Self
sets Self::offset
Sourcepub fn options(self, value: TextOptions) -> Self
pub fn options(self, value: TextOptions) -> Self
sets Self::options
Source§impl FrameText
impl FrameText
Sourcepub fn request(&self) -> TextRequest
pub fn request(&self) -> TextRequest
placement used for text system queries
Sourcepub fn span_color(&self, list: &DisplayList, span: usize) -> Color
pub fn span_color(&self, list: &DisplayList, span: usize) -> Color
missing spans repeat the last color
Trait Implementations§
Source§impl Compare for FrameText
impl Compare for FrameText
fn equal(a: &Self, left: &DisplayList, b: &Self, right: &DisplayList) -> bool
fn hash(value: &Self, list: &DisplayList, state: &mut impl Hasher)
impl Copy for FrameText
impl StructuralPartialEq for FrameText
Auto Trait Implementations§
impl Forget for FrameText
impl Freeze for FrameText
impl Move for FrameText
impl RefUnwindSafe for FrameText
impl Send for FrameText
impl Sync for FrameText
impl Unpin for FrameText
impl UnsafeUnpin for FrameText
impl UnwindSafe for FrameText
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