// <auto-generated>
// Generated by yog from src/$NAME$.yui — do not edit: changes are lost
// on the next `yog build` / `yog check` / `yog ui gen`. Edit the .yui
// file (Yog-IDLE's designer) instead.
// </auto-generated>
/// $DOC_LINE$
#[derive(Debug, Clone, PartialEq)]
pub struct $TY$ {
$FIELDS$}
impl $TY$ {
/// The property values of an instance (defaults for what it doesn't set).
#[allow(unused_variables)]
pub fn from_props(p: &::yog_api::ui::component::Props) -> Self {
Self {
$INIT$ }
}
/// The component's widget tree for these values.
#[allow(unused_variables, clippy::needless_borrow, clippy::needless_borrows_for_generic_args)]
pub fn view(&self) -> ::yog_api::ui::Widget {
#[allow(unused_imports)]
$UI_USE$
let vm = self;
$TREE$
}
}
impl ::yog_api::ui::component::Component for $TY$ {
const NAME: &'static str = $NAME_LIT$;
const DOC: &'static str = $DOC_LIT$;
const DISPLAY_NAME: &'static str = $DISPLAY_LIT$;
const ICON: &'static str = $ICON_LIT$;
const CATEGORY: &'static str = $CATEGORY_LIT$;
const DESIGN_SIZE: (f32, f32) = ($DESIGN_W$, $DESIGN_H$);
const TOOLBOX: bool = $TOOLBOX$;
const PROPS: &'static [::yog_api::ui::component::Prop] = {
#[allow(unused_imports)]
use ::yog_api::ui::component::Prop;
&[
$DECLS$ ]
};
fn build(props: &::yog_api::ui::component::Props) -> ::yog_api::ui::Widget {
Self::from_props(props).view()
}
}
::yog_api::ui_component!($TY$);