Struct keyset_drawing::Options
source · pub struct Options<'a> { /* private fields */ }Implementations§
source§impl<'a> Options<'a>
impl<'a> Options<'a>
pub fn new() -> Self
pub const fn profile(self, profile: &'a Profile) -> Self
pub const fn font(self, font: &'a Font) -> Self
pub const fn scale(self, scale: f64) -> Self
pub const fn outline_width(self, outline_width: f64) -> Self
pub const fn show_keys(self, show_keys: bool) -> Self
pub const fn show_margin(self, show_margin: bool) -> Self
pub fn draw(&self, keys: &[Key]) -> Drawing
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Options<'a>
impl<'a> Send for Options<'a>
impl<'a> Sync for Options<'a>
impl<'a> Unpin for Options<'a>
impl<'a> !UnwindSafe for Options<'a>
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