pub struct HaRichTextBuilder { /* private fields */ }Implementations§
source§impl HaRichTextBuilder
impl HaRichTextBuilder
pub fn with_capacity(depth: usize, count: usize) -> Self
pub fn build(self) -> HaTextContent
pub fn size<F>(self, value: Scalar, f: F) -> Selfwhere F: FnOnce(Self) -> Self,
pub fn color<F>(self, value: Rgba, f: F) -> Selfwhere F: FnOnce(Self) -> Self,
pub fn outline<F>(self, value: Rgba, f: F) -> Selfwhere F: FnOnce(Self) -> Self,
pub fn thickness<F>(self, value: Scalar, f: F) -> Selfwhere F: FnOnce(Self) -> Self,
pub fn cursive<F>(self, value: Scalar, f: F) -> Selfwhere F: FnOnce(Self) -> Self,
pub fn wrapping<F>(self, value: HaTextWrapping, f: F) -> Selfwhere F: FnOnce(Self) -> Self,
pub fn new_line(self) -> Self
pub fn text(self, value: impl ToString) -> Self
Trait Implementations§
source§impl Clone for HaRichTextBuilder
impl Clone for HaRichTextBuilder
source§fn clone(&self) -> HaRichTextBuilder
fn clone(&self) -> HaRichTextBuilder
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 Debug for HaRichTextBuilder
impl Debug for HaRichTextBuilder
source§impl Default for HaRichTextBuilder
impl Default for HaRichTextBuilder
source§fn default() -> HaRichTextBuilder
fn default() -> HaRichTextBuilder
Returns the “default value” for a type. Read more
source§impl From<HaRichTextBuilder> for HaTextContent
impl From<HaRichTextBuilder> for HaTextContent
source§fn from(other: HaRichTextBuilder) -> Self
fn from(other: HaRichTextBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for HaRichTextBuilder
impl Send for HaRichTextBuilder
impl Sync for HaRichTextBuilder
impl Unpin for HaRichTextBuilder
impl UnwindSafe for HaRichTextBuilder
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
§impl<T> Initialize for Twhere
T: Default,
impl<T> Initialize for Twhere T: Default,
fn initialize(&mut self)
§unsafe fn initialize_raw(data: *mut ())
unsafe fn initialize_raw(data: *mut ())
Safety Read more