#[non_exhaustive]pub struct WindowIcon {
pub small: &'static [u8],
pub medium: &'static [u8],
pub big: &'static [u8],
}Expand description
A window’s icon: PNG files of 16, 32 and 64 pixels square, which
shuyi app-info downscales from the game’s one icon (ADR-0061). Build
it with WindowIcon::new.
ⓘ
let icon = shuyi_platform::WindowIcon {
small: b"",
medium: b"",
big: b"",
};Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.small: &'static [u8]The 16 × 16 picture.
medium: &'static [u8]The 32 × 32 picture.
big: &'static [u8]The 64 × 64 picture.
Implementations§
Trait Implementations§
Source§impl Clone for WindowIcon
impl Clone for WindowIcon
Source§fn clone(&self) -> WindowIcon
fn clone(&self) -> WindowIcon
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 moreimpl Copy for WindowIcon
Source§impl Debug for WindowIcon
impl Debug for WindowIcon
impl Eq for WindowIcon
Source§impl PartialEq for WindowIcon
impl PartialEq for WindowIcon
impl StructuralPartialEq for WindowIcon
Auto Trait Implementations§
impl Freeze for WindowIcon
impl RefUnwindSafe for WindowIcon
impl Send for WindowIcon
impl Sync for WindowIcon
impl Unpin for WindowIcon
impl UnsafeUnpin for WindowIcon
impl UnwindSafe for WindowIcon
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