pub struct ResolvedSprite {
pub name: String,
pub size: Option<[u32; 2]>,
pub grid: Vec<String>,
pub palette: HashMap<String, String>,
pub warnings: Vec<SpriteWarning>,
pub nine_slice: Option<NineSlice>,
}Expand description
A resolved sprite ready for rendering.
This can be either a direct sprite or a variant expanded to sprite form.
Fields§
§name: StringThe effective name (sprite name or variant name)
size: Option<[u32; 2]>The size from the base sprite (if any)
grid: Vec<String>The grid data (from base sprite for variants)
palette: HashMap<String, String>The merged palette for rendering (base palette + variant overrides)
warnings: Vec<SpriteWarning>Any warnings generated during resolution
nine_slice: Option<NineSlice>Nine-slice region definition (from base sprite)
Trait Implementations§
Source§impl Clone for ResolvedSprite
impl Clone for ResolvedSprite
Source§fn clone(&self) -> ResolvedSprite
fn clone(&self) -> ResolvedSprite
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedSprite
impl RefUnwindSafe for ResolvedSprite
impl Send for ResolvedSprite
impl Sync for ResolvedSprite
impl Unpin for ResolvedSprite
impl UnsafeUnpin for ResolvedSprite
impl UnwindSafe for ResolvedSprite
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more