diff options
author | 2023-04-17 23:46:18 +0200 | |
---|---|---|
committer | 2023-04-17 23:46:18 +0200 | |
commit | 619ba9294d5e0f7913f82838d78018fc6714d26a (patch) | |
tree | b0631aa66875e0e9f486665227c306832ac19a5b /widget/src/checkbox.rs | |
parent | d206b82ebb7617337cd378bd19542a7abf8a4529 (diff) | |
parent | e3730106e9d4f75de199e1b83cf285b8ff031968 (diff) | |
download | iced-619ba9294d5e0f7913f82838d78018fc6714d26a.tar.gz iced-619ba9294d5e0f7913f82838d78018fc6714d26a.tar.bz2 iced-619ba9294d5e0f7913f82838d78018fc6714d26a.zip |
Merge branch 'advanced-text' into incremental-rendering
Diffstat (limited to 'widget/src/checkbox.rs')
-rw-r--r-- | widget/src/checkbox.rs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/widget/src/checkbox.rs b/widget/src/checkbox.rs index d1f886c6..6505cfdd 100644 --- a/widget/src/checkbox.rs +++ b/widget/src/checkbox.rs @@ -15,17 +15,6 @@ use crate::{Row, Text}; 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 @@ -321,3 +310,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>, +} |