pub struct DrawingFontBuilder { /* private fields */ }Available on crate feature
winio only.Expand description
Builder of DrawingFont.
Implementations§
Source§impl DrawingFontBuilder
impl DrawingFontBuilder
Sourcepub fn new() -> DrawingFontBuilder
pub fn new() -> DrawingFontBuilder
Create a builder for DrawingFont.
Sourcepub fn family(&mut self, s: impl AsRef<str>) -> &mut DrawingFontBuilder
pub fn family(&mut self, s: impl AsRef<str>) -> &mut DrawingFontBuilder
Font name.
Sourcepub fn size(&mut self, s: f64) -> &mut DrawingFontBuilder
pub fn size(&mut self, s: f64) -> &mut DrawingFontBuilder
Font size.
Sourcepub fn italic(&mut self, v: bool) -> &mut DrawingFontBuilder
pub fn italic(&mut self, v: bool) -> &mut DrawingFontBuilder
Italic.
Sourcepub fn bold(&mut self, v: bool) -> &mut DrawingFontBuilder
pub fn bold(&mut self, v: bool) -> &mut DrawingFontBuilder
Bold.
Sourcepub fn halign(&mut self, v: HAlign) -> &mut DrawingFontBuilder
pub fn halign(&mut self, v: HAlign) -> &mut DrawingFontBuilder
Horizontal alignment.
Sourcepub fn valign(&mut self, v: VAlign) -> &mut DrawingFontBuilder
pub fn valign(&mut self, v: VAlign) -> &mut DrawingFontBuilder
Vertical alignment.
Sourcepub fn build(&self) -> DrawingFont
pub fn build(&self) -> DrawingFont
Build DrawingFont.
Trait Implementations§
Source§impl Default for DrawingFontBuilder
impl Default for DrawingFontBuilder
Source§fn default() -> DrawingFontBuilder
fn default() -> DrawingFontBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DrawingFontBuilder
impl RefUnwindSafe for DrawingFontBuilder
impl Send for DrawingFontBuilder
impl Sync for DrawingFontBuilder
impl Unpin for DrawingFontBuilder
impl UnsafeUnpin for DrawingFontBuilder
impl UnwindSafe for DrawingFontBuilder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more