pub struct UvRect {
pub offset: Vec2,
pub size: Vec2,
pub min: [u16; 2],
pub max: [u16; 2],
}
Fields§
§offset: Vec2
X/Y offset for nice rendering (unit: points).
size: Vec2
Screen size (in points) of this glyph. Note that the height is different from the font height.
min: [u16; 2]
Top left corner UV in texture.
max: [u16; 2]
Bottom right corner (exclusive).
Implementations§
Trait Implementations§
impl Copy for UvRect
impl Eq for UvRect
impl StructuralPartialEq for UvRect
Auto Trait Implementations§
impl Freeze for UvRect
impl RefUnwindSafe for UvRect
impl Send for UvRect
impl Sync for UvRect
impl Unpin for UvRect
impl UnwindSafe for UvRect
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)