pub enum Action {
Load {
bytes: Cow<'static, [u8]>,
channel: Sender<Result<(), Error>>,
},
List {
channel: Sender<Result<Vec<Family>, Error>>,
},
SetDefaults {
font: Font,
text_size: Pixels,
},
}Expand description
A font action.
Variants§
Load
Load a font from its bytes.
Fields
List
Lists all system font families.
SetDefaults
Sets the new font defaults for the running application.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Action
impl !RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl !UnwindSafe for Action
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