pub struct TextDrawPayload {
pub config: TextConfig,
pub style: TextStyle,
/* private fields */
}Expand description
Text fragment attached to a RenderCommandOutputElement.
Holds a byte range into shared source text plus the TextConfig and TextStyle used
when the pipe emits a draw call. The range must lie on UTF-8 character boundaries.
With the serialization feature enabled, the source is stored as an owned String
instead of Arc<str> so the payload can be serialized.
Fields§
§config: TextConfigTypography settings from cotis-defaults (font, size, wrap mode, alignment).
style: TextStyleColor and other draw-time style.
Implementations§
Trait Implementations§
Source§impl Clone for TextDrawPayload
impl Clone for TextDrawPayload
Source§fn clone(&self) -> TextDrawPayload
fn clone(&self) -> TextDrawPayload
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TextDrawPayload
impl RefUnwindSafe for TextDrawPayload
impl Send for TextDrawPayload
impl Sync for TextDrawPayload
impl Unpin for TextDrawPayload
impl UnsafeUnpin for TextDrawPayload
impl UnwindSafe for TextDrawPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
impl<H, TailTarget, Source, Idx> Embed<RenderTList<H, TailTarget>, There<Idx>> for Sourcewhere
TailTarget: IsRenderList,
Source: Embed<TailTarget, Idx>,
Source§fn embed(self) -> RenderTList<H, TailTarget>
fn embed(self) -> RenderTList<H, TailTarget>
Converts
self into Target.