Struct hiero_pack::atlas::HieroBitmapInfo
source · [−]pub struct HieroBitmapInfo {
pub x: i32,
pub y: i32,
pub width: i32,
pub height: i32,
pub xoffset: i32,
pub yoffset: i32,
pub xadvance: i32,
pub page: i32,
pub channel: i32,
}
Expand description
This struct is pretty much just a header, for a sub-image inside the page
To get actual pixel data for the bitmap, just look up the page and read the sub-image at top left (x,y) , borrown-right:(x+width,y+height)
Fields
x: i32
y: i32
width: i32
height: i32
xoffset: i32
yoffset: i32
xadvance: i32
page: i32
channel: i32
Trait Implementations
sourceimpl Clone for HieroBitmapInfo
impl Clone for HieroBitmapInfo
sourcefn clone(&self) -> HieroBitmapInfo
fn clone(&self) -> HieroBitmapInfo
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for HieroBitmapInfo
impl Default for HieroBitmapInfo
sourcefn default() -> HieroBitmapInfo
fn default() -> HieroBitmapInfo
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for HieroBitmapInfo
impl<'de> Deserialize<'de> for HieroBitmapInfo
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Display for HieroBitmapInfo
impl Display for HieroBitmapInfo
sourceimpl Serialize for HieroBitmapInfo
impl Serialize for HieroBitmapInfo
impl Copy for HieroBitmapInfo
Auto Trait Implementations
impl RefUnwindSafe for HieroBitmapInfo
impl Send for HieroBitmapInfo
impl Sync for HieroBitmapInfo
impl Unpin for HieroBitmapInfo
impl UnwindSafe for HieroBitmapInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more