1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
use std::cell::RefCell; use std::rc::Rc; use typed_builder::TypedBuilder; use super::stack_panel::*; use fui_core::*; #[derive(TypedBuilder)] pub struct Horizontal {} impl Horizontal { pub fn to_view( self, _style: Option<Box<dyn Style<Self>>>, context: ViewContext, ) -> Rc<RefCell<dyn ControlObject>> { StackPanel::builder() .orientation(Orientation::Horizontal) .build() .to_view(None, context) } }