Struct pixel_game_lib::gui::button::ButtonAssetPaths
source · pub struct ButtonAssetPaths {
pub normal: AssetOrPath<Sprite>,
pub hover: AssetOrPath<Sprite>,
pub down: AssetOrPath<Sprite>,
pub font: AssetOrPath<Font>,
}
Expand description
Asset paths for the sprites used for drawing a button.
Fields§
§normal: AssetOrPath<Sprite>
Normal background, when not hovering or pressing.
hover: AssetOrPath<Sprite>
Hover background, when the mouse is over the button but not pressing it.
down: AssetOrPath<Sprite>
Down background, when the mouse is pressing on the button.
font: AssetOrPath<Font>
Font asset path.
Trait Implementations§
source§impl Debug for ButtonAssetPaths
impl Debug for ButtonAssetPaths
Auto Trait Implementations§
impl RefUnwindSafe for ButtonAssetPaths
impl Send for ButtonAssetPaths
impl Sync for ButtonAssetPaths
impl Unpin for ButtonAssetPaths
impl UnwindSafe for ButtonAssetPaths
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
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian()
.