Iced ~ How would I draw up my own custom widgets?

Hey guys I wanted to design my own custom widgets using the GUI library iced:


I wanted to specifically draw a custom circle which serves as a button, but I am not too sure how or where would I get started to create my own widgets, any ideas?

I went here:

But now what do I do if I import Widget?

    impl<'a, Message> NumericInput<'a, Message> {
        pub fn new(
            state: &'a mut State,
            value: Option<u32>,
            on_change: impl Fn(Option<u32>) -> Message + 'static,
        ) -> Self {
            Self {
                on_change: Box::new(on_change),

I believe I have to use this or something but I am not sure how any of this works?

Check out this example:

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.