summaryrefslogtreecommitdiffstats
path: root/native/src/window/icon.rs
diff options
context:
space:
mode:
Diffstat (limited to 'native/src/window/icon.rs')
-rw-r--r--native/src/window/icon.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/native/src/window/icon.rs b/native/src/window/icon.rs
new file mode 100644
index 00000000..08a6acfd
--- /dev/null
+++ b/native/src/window/icon.rs
@@ -0,0 +1,12 @@
+//! Attach an icon to the window of your application.
+
+/// The icon of a window.
+#[derive(Debug, Clone)]
+pub struct Icon {
+ /// The __rgba__ color data of the window [`Icon`].
+ pub rgba: Vec<u8>,
+ /// The width of the window [`Icon`].
+ pub width: u32,
+ /// The height of the window [`Icon`].
+ pub height: u32,
+}