pub struct Signature { /* private fields */ }Expand description
A signature laid out for images of one size.
Implementations§
Source§impl Signature
impl Signature
Sourcepub fn new(width: u32, height: u32, text: &str) -> Option<Signature>
pub fn new(width: u32, height: u32, text: &str) -> Option<Signature>
text in the bottom-right corner, one cell in from the edges, at
the scene’s own cell size; None when the image is too narrow to
hold it in under half its width.
Sourcepub fn apply(&self, img: &mut IndexedImage)
pub fn apply(&self, img: &mut IndexedImage)
Writes it into an image of the size it was laid out for (others are left alone).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Signature
impl Freeze for Signature
impl Move for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
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