diff --git a/src/widgets/widget_definitions.rs b/src/widgets/widget_definitions.rs index 71f79ff..edbae45 100644 --- a/src/widgets/widget_definitions.rs +++ b/src/widgets/widget_definitions.rs @@ -30,7 +30,8 @@ pub(super) fn widget_to_gtk_widget(bargs: &mut BuilderArgs) -> Result Result { }); Ok(gtk_widget) } -/// @widget expander widget +/// @widget expander extends container +/// @desc a widget that can expand and collapse, showing / hiding it's children. fn build_gtk_expander(bargs: &mut BuilderArgs) -> Result { let gtk_widget = gtk::Expander::new(None); resolve_block!(bargs, gtk_widget, { @@ -182,6 +184,7 @@ fn build_gtk_expander(bargs: &mut BuilderArgs) -> Result { }); Ok(gtk_widget) } + /// @widget color-button fn build_gtk_color_button(bargs: &mut BuilderArgs) -> Result { let gtk_widget = gtk::ColorButtonBuilder::new().build(); @@ -345,7 +348,7 @@ fn build_gtk_literal(bargs: &mut BuilderArgs) -> Result { let window_name = bargs.window_name.clone(); let widget_definitions = bargs.widget_definitions.clone(); resolve_block!(bargs, gtk_widget, { - // @prop - inline Eww XML that will be rendered as a widget. + // @prop content - inline Eww XML that will be rendered as a widget. prop(content: as_string) { gtk_widget.get_children().iter().for_each(|w| gtk_widget.remove(w)); if !content.is_empty() {