Home
last modified time | relevance | path

Searched refs:panel (Results 1 – 12 of 12) sorted by relevance

/StarryEngine/starry_applications/src/asset_manager/code/
H A Dmod.rs9 base::{panel::Panel, rect::Rect},
26 panel: Arc<Panel>, field
41 panel: Panel::new( in new()
157 self.panel.add_child(&Image::new_from_image( in init_grid()
161 self.panel.add_child(&(self.asset_grid)); in init_grid()
172 self.panel.add_child(&Image::new_from_image( in init_list()
176 self.panel.add_child(&(self.asset_list)); in init_list()
228 self.panel.draw(); in refresh_grid()
264 self.panel.draw(); in refresh_list()
268 self.panel.exec(); in exec()
H A Dasset_item_list.rs10 base::{panel::Panel, rect::Rect, vector2::Vector2},
26 panel: RefCell<Option<Arc<Panel>>>, field
44 panel: RefCell::new(None), in new()
115 fn panel(&self) -> &RefCell<Option<Arc<Panel>>> { in panel() method
116 &self.panel in panel()
H A Dasset_item_grid.rs10 base::{panel::Panel, rect::Rect, vector2::Vector2},
31 panel: RefCell<Option<Arc<Panel>>>, field
50 panel: RefCell::new(None), in new()
120 fn panel(&self) -> &RefCell<Option<Arc<Panel>>> { in panel() method
121 &self.panel in panel()
/StarryEngine/starry_toolkit/src/widgets/
H A Dimage.rs10 base::{panel::Panel, rect::Rect, vector2::Vector2},
25 panel: RefCell<Option<Arc<Panel>>>, field
51 panel: RefCell::new(None), in new_from_image()
118 fn panel(&self) -> &RefCell<Option<Arc<Panel>>> { in panel() method
119 &self.panel in panel()
124 if self.panel().borrow().is_some() { in draw()
125 let panel_rect = self.panel.borrow().clone().unwrap().rect(); in draw()
H A Dlabel.rs11 base::{panel::Panel, rect::Rect, vector2::Vector2},
37 panel: RefCell<Option<Arc<Panel>>>, field
58 panel: RefCell::new(None), in new()
158 fn panel(&self) -> &RefCell<Option<Arc<crate::base::panel::Panel>>> { in panel() method
159 &self.panel in panel()
183 if self.panel().borrow().is_some() { in draw()
186 self.panel().borrow().clone().unwrap().rect(), in draw()
H A Dmod.rs11 base::{event::Event, panel::Panel, rect::Rect, vector2::Vector2},
61 fn panel(&self) -> &RefCell<Option<Arc<Panel>>>; in panel() method
80 if self.panel().borrow().is_some() { in add_child()
81 widget_set_panel(&widget, &self.panel().borrow().clone().unwrap()); in add_child()
154 } else if self.panel().borrow().is_some() { in arrange_self_base()
156 self.panel().borrow().clone().unwrap().rect() in arrange_self_base()
/StarryEngine/starry_toolkit/src/
H A Dmain.rs4 panel::{Panel, PanelRendererMode},
13 let panel = Panel::new( in main() localVariable
19 panel.set_renderer_mode(PanelRendererMode::WithWireframe); in main()
38 panel.add_child(&grid); in main()
39 panel.draw(); in main()
/StarryEngine/starry_toolkit/src/util/
H A Dmod.rs4 base::{panel::Panel, rect::Rect, vector2::Vector2},
83 pub fn widget_set_panel(widget: &Arc<dyn Widget>, panel: &Arc<Panel>) { in widget_set_panel()
84 (*widget.panel().borrow_mut()) = Some(panel.clone()); in widget_set_panel()
87 widget_set_panel(child, panel); in widget_set_panel()
/StarryEngine/starry_toolkit/src/layout/
H A Dlist.rs11 base::{panel::Panel, rect::Rect, vector2::Vector2},
38 panel: RefCell<Option<Arc<Panel>>>, field
59 panel: RefCell::new(None), in new()
204 fn panel(&self) -> &RefCell<Option<Arc<Panel>>> { in panel() method
205 &self.panel in panel()
H A Dgrid.rs11 base::{event::Event, panel::Panel, rect::Rect, vector2::Vector2},
33 panel: RefCell<Option<Arc<Panel>>>, field
69 panel: RefCell::new(None), in new()
275 fn panel(&self) -> &RefCell<Option<Arc<Panel>>> { in panel() method
276 &self.panel in panel()
/StarryEngine/starry_toolkit/src/base/
H A Dpanel.rs111 let panel = Arc::new(Panel { in from_window() localVariable
126 (*panel.self_ref.borrow_mut()) = Arc::downgrade(&panel); in from_window()
128 return panel; in from_window()
H A Dmod.rs2 pub mod panel; module