Struct GritRec

Source
#[repr(C)]
pub struct GritRec {
Show 51 fields pub srcPath: *mut c_char, pub srcDib: *mut CLDIB, pub dstPath: *mut c_char, pub symName: *mut c_char, pub fileType: u8_, pub bHeader: bool, pub bAppend: bool, pub bExport: bool, pub bRiff: bool, pub areaLeft: c_int, pub areaTop: c_int, pub areaRight: c_int, pub areaBottom: c_int, pub gfxProcMode: echar, pub gfxDataType: echar, pub gfxCompression: echar, pub gfxMode: echar, pub texModeEnabled: bool, pub gfxBpp: u8_, pub gfxTexMode: u8_, pub gfxHasAlpha: bool, pub gfxAlphaColor: RGBQUAD, pub gfxOffset: u32_, pub gfxIsShared: bool, pub mapProcMode: echar, pub mapDataType: echar, pub mapCompression: echar, pub mapRedux: echar, pub mapLayout: echar, pub msFormat: MapselFormat, pub tileWidth: u8_, pub tileHeight: u8_, pub metaWidth: u8_, pub metaHeight: u8_, pub bColMajor: bool, pub palProcMode: echar, pub palDataType: echar, pub palCompression: echar, pub palHasAlpha: bool, pub palAlphaId: u32_, pub palStart: c_int, pub palEnd: c_int, pub palEndSet: bool, pub palIsShared: bool, pub shared: *mut GritShared, pub _dib: *mut CLDIB, pub _origDib: *mut CLDIB, pub _gfxRec: RECORD, pub _mapRec: RECORD, pub _metaRec: RECORD, pub _palRec: RECORD,
}
Expand description

! Basic grit struct

Fields§

§srcPath: *mut c_char

!< Path to source bitmap.

§srcDib: *mut CLDIB

!< Source bitmap.

§dstPath: *mut c_char

!< Output path directory (-o {name} ).

§symName: *mut c_char

!< Output symbol name (-s {name} ).

§fileType: u8_

!< Output file type (-ft{type} ).

§bHeader: bool

!< Create header file (-fh! ).

§bAppend: bool

!< Append to existing file (-fa).

§bExport: bool

!< Global export toggle (?).

§bRiff: bool

!< RIFFed data.

§areaLeft: c_int

!< Export rect, left (-al {number} ).

§areaTop: c_int

!< Export rect, top (-at {number} ).

§areaRight: c_int

!< Export rect, right (-ar {number} ).

§areaBottom: c_int

!< Export rect, bottom (-ab {number} ).

§gfxProcMode: echar

!< Graphics process mode.

§gfxDataType: echar

!< Graphics data type (-gu{num} ).

§gfxCompression: echar

!< Graphics compression type

§gfxMode: echar

!< Graphics mode (tile, bmp, bmpA).

§texModeEnabled: bool

!< texture operations enabled

§gfxBpp: u8_

!< Output bitdepth (-gB{num} ).

§gfxTexMode: u8_

!< Output texmode, if it is a special texture mode

§gfxHasAlpha: bool

!< Input image has transparent color.

§gfxAlphaColor: RGBQUAD

!< Transparent color (-gT {num} ).

§gfxOffset: u32_

!< Pixel value offset (-ga {num}).

§gfxIsShared: bool

!< Graphics are shared (-gS).

§mapProcMode: echar

!< Map process mode (-m).

§mapDataType: echar

!< Map data type (-mu {num} ).

§mapCompression: echar

!< Map compression type (-mz{char} ).

§mapRedux: echar

!< Map tile-reduction mode (-mR[tpf,48a] ).

§mapLayout: echar

!< Map layout mode (-mL{char} ).

§msFormat: MapselFormat

!< Format describing packed mapsels (GBA Text entries).

§tileWidth: u8_

!< Tile width (in pixels) (-tw{num} ).

§tileHeight: u8_

!< Tile height (in pixels) (-th{num} ).

§metaWidth: u8_

!< Meta-tile/object width (in tiles) (-Mw{num} ).

§metaHeight: u8_

!< Meta-tile/object height (in tiles) (-Mh{num} ).

§bColMajor: bool

!< Tiles are arranged in column-major order (-tc).

§palProcMode: echar

!< Palette process mode (-p).

§palDataType: echar

!< Palette data type.

§palCompression: echar

!< Palette compression type.

§palHasAlpha: bool

!< Has special transparency index.

§palAlphaId: u32_

!< Transparent palette entry

§palStart: c_int

!< First palette entry to export.

§palEnd: c_int

!< Final palette entry to export (exclusive)

§palEndSet: bool

!< Whether the user set the palette end

§palIsShared: bool

!< Shared palette (-pS),

§shared: *mut GritShared§_dib: *mut CLDIB

!< Internal work bitmap

§_origDib: *mut CLDIB

!< unmodified bitmap, for preserving alpha channel

§_gfxRec: RECORD

!< Output graphics data

§_mapRec: RECORD

!< Output tilemap data

§_metaRec: RECORD

!< Output metatile data

§_palRec: RECORD

!< Output palette data

Trait Implementations§

Source§

impl Clone for GritRec

Source§

fn clone(&self) -> GritRec

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for GritRec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for GritRec

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.