diff options
author | 2023-04-11 06:18:52 +0200 | |
---|---|---|
committer | 2023-04-11 06:18:52 +0200 | |
commit | ff24f9040c822fa7706087091e92ebee1e5211c5 (patch) | |
tree | 18e5a9053b092cb9d0d9f0b95f35b1bdeb6aaa7f /native/src/widget/checkbox.rs | |
parent | 931b30dc5ac17b65b1fb996cb4b87fc946c410e3 (diff) | |
parent | 927c3a8caaefc241c48d6200266d286e20dc2076 (diff) | |
download | iced-ff24f9040c822fa7706087091e92ebee1e5211c5.tar.gz iced-ff24f9040c822fa7706087091e92ebee1e5211c5.tar.bz2 iced-ff24f9040c822fa7706087091e92ebee1e5211c5.zip |
Merge pull request #1702 from casperstorm/feat/text_input_handle
Added `Icon` to `text_input`
Diffstat (limited to 'native/src/widget/checkbox.rs')
-rw-r--r-- | native/src/widget/checkbox.rs | 22 |
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>, +} |