summaryrefslogtreecommitdiffstats
path: root/native/src/widget/checkbox.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-11 05:53:22 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-04-11 05:53:22 +0200
commit57265ff211e8d040dce2a13e71409bdd6482204c (patch)
tree265a41fa4d6ab6aea961ed076be46f8afe1156ed /native/src/widget/checkbox.rs
parent870b2fe513bd5b3fbcf3ba369afb14d68324aaa2 (diff)
downloadiced-57265ff211e8d040dce2a13e71409bdd6482204c.tar.gz
iced-57265ff211e8d040dce2a13e71409bdd6482204c.tar.bz2
iced-57265ff211e8d040dce2a13e71409bdd6482204c.zip
Move `Icon` definitions after `Widget` implementation
Diffstat (limited to 'native/src/widget/checkbox.rs')
-rw-r--r--native/src/widget/checkbox.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs
index 9b69e574..ad05a8e7 100644
--- a/native/src/widget/checkbox.rs
+++ b/native/src/widget/checkbox.rs
@@ -14,17 +14,6 @@ use crate::{
pub use iced_style::checkbox::{Appearance, StyleSheet};
-/// The icon in a [`Checkbox`].
-#[derive(Debug, Clone, PartialEq)]
-pub struct Icon<Font> {
- /// Font that will be used to display the `code_point`,
- pub font: Font,
- /// The unicode code point that will be used as the icon.
- pub code_point: char,
- /// Font size of the content.
- pub size: Option<f32>,
-}
-
/// A box that can be checked.
///
/// # Example
@@ -319,3 +308,14 @@ where
Element::new(checkbox)
}
}
+
+/// The icon in a [`Checkbox`].
+#[derive(Debug, Clone, PartialEq)]
+pub struct Icon<Font> {
+ /// Font that will be used to display the `code_point`,
+ pub font: Font,
+ /// The unicode code point that will be used as the icon.
+ pub code_point: char,
+ /// Font size of the content.
+ pub size: Option<f32>,
+}