/StarryEngine/starry_toolkit/src/layout/ |
H A D | list.rs | 13 widgets::{PivotType, Widget}, 36 children: RefCell<Vec<Arc<dyn Widget>>>, 37 parent: RefCell<Option<Arc<dyn Widget>>>, 42 elements: RefCell<BTreeMap<usize, Arc<dyn Widget>>>, 44 focused_widget: RefCell<Option<Arc<dyn Widget>>>, 84 pub fn add_element<T: Widget>(&self, element: &Arc<T>) -> usize { in add_element() 171 impl Widget for List { 172 fn self_ref(&self) -> Arc<dyn Widget> { in self_ref() argument 196 fn parent(&self) -> &RefCell<Option<Arc<dyn Widget>>> { in parent() argument 200 fn children(&self) -> &RefCell<Vec<Arc<dyn Widget>>> { in children() argument [all …]
|
H A D | grid.rs | 13 widgets::{PivotType, Widget}, 31 children: RefCell<Vec<Arc<dyn Widget>>>, 32 parent: RefCell<Option<Arc<dyn Widget>>>, 49 pub elements: RefCell<BTreeMap<(usize, usize), Arc<dyn Widget>>>, 53 pub focused_widget: RefCell<Option<Arc<dyn Widget>>>, 100 pub fn add_element<T: Widget>(&self, element: &Arc<T>) -> (usize, usize) { in add_element() 143 pub fn insert<T: Widget>(&self, column: usize, row: usize, element: &Arc<T>) { in insert() 242 impl Widget for Grid { 243 fn self_ref(&self) -> Arc<dyn Widget> { in self_ref() argument 267 fn parent(&self) -> &RefCell<Option<Arc<dyn Widget>>> { in parent() argument [all …]
|
/StarryEngine/starry_toolkit/src/widgets/ |
H A D | image.rs | 14 use super::{PivotType, Widget}; 23 children: RefCell<Vec<Arc<dyn Widget>>>, 24 parent: RefCell<Option<Arc<dyn Widget>>>, 85 impl Widget for Image { 86 fn self_ref(&self) -> Arc<dyn Widget> { in self_ref() argument 110 fn children(&self) -> &RefCell<Vec<Arc<dyn Widget>>> { in children() argument 114 fn parent(&self) -> &RefCell<Option<Arc<dyn Widget>>> { in parent() argument
|
H A D | label.rs | 16 use super::{PivotType, Widget}; 35 children: RefCell<Vec<Arc<dyn Widget>>>, 36 parent: RefCell<Option<Arc<dyn Widget>>>, 125 impl Widget for Label { 126 fn self_ref(&self) -> Arc<dyn Widget> { in self_ref() argument 127 self.self_ref.borrow().upgrade().unwrap() as Arc<dyn Widget> in self_ref() 150 fn parent(&self) -> &RefCell<Option<Arc<dyn Widget>>> { in parent() argument 154 fn children(&self) -> &RefCell<Vec<Arc<dyn Widget>>> { in children() argument
|
H A D | mod.rs | 44 pub trait Widget: Any { interface 46 fn self_ref(&self) -> Arc<dyn Widget>; in self_ref() argument 67 fn children(&self) -> &RefCell<Vec<Arc<dyn Widget>>>; in children() argument 70 fn parent(&self) -> &RefCell<Option<Arc<dyn Widget>>>; in parent() argument 73 fn add_child(&self, widget: Arc<dyn Widget>) { in add_child() argument
|
/StarryEngine/starry_applications/src/asset_manager/code/ |
H A D | asset_item_list.rs | 15 PivotType, Widget, 24 parent: RefCell<Option<Arc<dyn Widget>>>, 25 children: RefCell<Vec<Arc<dyn Widget>>>, 82 impl Widget for AssetItemList { 83 fn self_ref(&self) -> Arc<dyn Widget> { in self_ref() argument 107 fn parent(&self) -> &RefCell<Option<Arc<dyn Widget>>> { in parent() argument 111 fn children(&self) -> &RefCell<Vec<Arc<dyn Widget>>> { in children() argument
|
H A D | asset_item_grid.rs | 15 PivotType, Widget, 29 parent: RefCell<Option<Arc<dyn Widget>>>, 30 children: RefCell<Vec<Arc<dyn Widget>>>, 87 impl Widget for AssetItemGrid { 88 fn self_ref(&self) -> Arc<dyn Widget> { in self_ref() argument 112 fn parent(&self) -> &RefCell<Option<Arc<dyn Widget>>> { in parent() argument 116 fn children(&self) -> &RefCell<Vec<Arc<dyn Widget>>> { in children() argument
|
/StarryEngine/starry_toolkit/src/traits/ |
H A D | focus.rs | 3 use crate::widgets::Widget; 7 fn focused_widget(&self) -> RefCell<Option<Arc<dyn Widget>>>; in focused_widget() argument 10 fn focus(&self, widget: &Arc<dyn Widget>); in focus() argument 13 fn is_focused(&self, widget: &Arc<dyn Widget>) -> bool { in is_focused()
|
/StarryEngine/starry_toolkit/src/base/ |
H A D | panel.rs | 17 use crate::{traits::focus::Focus, util::widget_set_panel, widgets::Widget}; 87 widgets: RefCell<Vec<Arc<dyn Widget>>>, 91 focused_widget: RefCell<Option<Arc<dyn Widget>>>, 200 pub fn add_child<T: Widget>(&self, widget: &Arc<T>) -> usize { in add_child() 226 pub fn draw_widget(&self, renderer: &mut dyn Renderer, widget: &Arc<dyn Widget>) { in draw_widget() argument 333 fn focused_widget(&self) -> RefCell<Option<Arc<dyn Widget>>> { in focused_widget() argument 337 fn focus(&self, widget: &Arc<dyn Widget>) { in focus() argument
|
/StarryEngine/starry_toolkit/src/util/ |
H A D | mod.rs | 5 widgets::{PivotType, Widget}, 83 pub fn widget_set_panel(widget: &Arc<dyn Widget>, panel: &Arc<Panel>) { in widget_set_panel() argument
|