pub struct FontPropertyBuilder { /* private fields */ }
Expand description
Builder for FontProperty
Implementations§
Source§impl FontPropertyBuilder
impl FontPropertyBuilder
pub fn new() -> FontPropertyBuilder
pub fn italic(self) -> FontPropertyBuilder
pub fn oblique(self) -> FontPropertyBuilder
pub fn bold(self) -> FontPropertyBuilder
pub fn monospace(self) -> FontPropertyBuilder
pub fn family(self, name: &str) -> FontPropertyBuilder
pub fn build(self) -> FontProperty
Auto Trait Implementations§
impl Freeze for FontPropertyBuilder
impl RefUnwindSafe for FontPropertyBuilder
impl Send for FontPropertyBuilder
impl Sync for FontPropertyBuilder
impl Unpin for FontPropertyBuilder
impl UnwindSafe for FontPropertyBuilder
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