pub struct GridSpec {
pub cols: u32,
pub rows: u32,
pub cell_w: u32,
pub cell_h: u32,
pub origin_x: u32,
pub origin_y: u32,
pub font_px: f64,
}Expand description
Cell grid geometry for one output size.
Fields§
§cols: u32§rows: u32§cell_w: u32§cell_h: u32§origin_x: u32Pixel offset of the grid, centring it in the image.
origin_y: u32§font_px: f64Font size in pixels used to rasterize the glyph atlas.
Trait Implementations§
impl Copy for GridSpec
impl StructuralPartialEq for GridSpec
Auto Trait Implementations§
impl Forget for GridSpec
impl Freeze for GridSpec
impl Move for GridSpec
impl RefUnwindSafe for GridSpec
impl Send for GridSpec
impl Sync for GridSpec
impl Unpin for GridSpec
impl UnsafeUnpin for GridSpec
impl UnwindSafe for GridSpec
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