Searched refs:self_ref (Results 1 – 8 of 8) sorted by relevance
/StarryEngine/starry_applications/src/asset_manager/code/ |
H A D | asset_item_grid.rs | 25 self_ref: RefCell<Weak<AssetItemGrid>>, field 44 self_ref: RefCell::new(Weak::default()), in new() 56 (*item.self_ref.borrow_mut()) = Arc::downgrade(&item); in new() 88 fn self_ref(&self) -> Arc<dyn Widget> { in self_ref() method 89 self.self_ref.borrow().upgrade().unwrap() in self_ref() 130 let bg_image = children[0].self_ref(); in draw()
|
H A D | asset_item_list.rs | 20 self_ref: RefCell<Weak<AssetItemList>>, field 38 self_ref: RefCell::new(Weak::default()), in new() 49 (*item.self_ref.borrow_mut()) = Arc::downgrade(&item); in new() 83 fn self_ref(&self) -> Arc<dyn Widget> { in self_ref() method 84 self.self_ref.borrow().upgrade().unwrap() in self_ref()
|
/StarryEngine/starry_toolkit/src/widgets/ |
H A D | image.rs | 19 self_ref: RefCell<Weak<Image>>, field 45 self_ref: RefCell::new(Weak::default()), in new_from_image() 55 (*image.self_ref.borrow_mut()) = Arc::downgrade(&image); in new_from_image() 86 fn self_ref(&self) -> Arc<dyn Widget> { in self_ref() method 87 self.self_ref.borrow().upgrade().unwrap() in self_ref()
|
H A D | label.rs | 31 self_ref: RefCell<Weak<Label>>, field 65 self_ref: RefCell::new(Weak::new()), in new() 68 (*label.self_ref.borrow_mut()) = Arc::downgrade(&label); in new() 126 fn self_ref(&self) -> Arc<dyn Widget> { in self_ref() method 127 self.self_ref.borrow().upgrade().unwrap() as Arc<dyn Widget> in self_ref()
|
H A D | mod.rs | 46 fn self_ref(&self) -> Arc<dyn Widget>; in self_ref() method 77 (*widget.parent().borrow_mut()) = Some(self.self_ref()); in add_child()
|
/StarryEngine/starry_toolkit/src/layout/ |
H A D | list.rs | 32 self_ref: RefCell<Weak<List>>, field 53 self_ref: RefCell::new(Weak::default()), in new() 69 (*list.self_ref.borrow_mut()) = Arc::downgrade(&list); in new() 85 self.add_child(element.self_ref()); in add_element() 172 fn self_ref(&self) -> Arc<dyn Widget> { in self_ref() method 173 self.self_ref.borrow().upgrade().unwrap() in self_ref()
|
H A D | grid.rs | 27 self_ref: RefCell<Weak<Grid>>, field 63 self_ref: RefCell::new(Weak::default()), in new() 84 (*grid.self_ref.borrow_mut()) = Arc::downgrade(&grid); in new() 101 self.add_child(element.self_ref()); in add_element() 148 self.add_child(element.self_ref()); in insert() 243 fn self_ref(&self) -> Arc<dyn Widget> { in self_ref() method 244 self.self_ref.borrow().upgrade().unwrap() in self_ref()
|
/StarryEngine/starry_toolkit/src/base/ |
H A D | panel.rs | 81 self_ref: RefCell<Weak<Panel>>, field 112 self_ref: RefCell::new(Weak::default()), in from_window() 126 (*panel.self_ref.borrow_mut()) = Arc::downgrade(&panel); in from_window() 202 &widget.self_ref(), in add_child() 203 &self.self_ref.borrow().upgrade().unwrap(), in add_child()
|