x_win/common/x_win_struct/icon_info.rs
1#![deny(unused_imports)]
2
3/**
4 * Struct to store Icon information
5 */
6#[derive(Debug, Clone)]
7#[repr(C)]
8pub struct IconInfo {
9 pub data: String,
10 pub height: u32,
11 pub width: u32,
12}
13
14impl IconInfo {
15 pub fn new(data: String, height: u32, width: u32) -> Self {
16 Self {
17 data,
18 height,
19 width,
20 }
21 }
22}