Home
last modified time | relevance | path

Searched refs:focused_widget (Results 1 – 4 of 4) sorted by relevance

/StarryEngine/starry_toolkit/src/layout/
H A Dlist.rs44 focused_widget: RefCell<Option<Arc<dyn Widget>>>, field
64 focused_widget: RefCell::new(None), in new()
227 fn focused_widget(&self) -> RefCell<Option<Arc<dyn Widget>>> { in focused_widget() method
228 self.focused_widget.clone() in focused_widget()
231 fn focus(&self, focused_widget: &Arc<dyn Widget>) { in focus()
234 if Arc::ptr_eq(widget, focused_widget) { in focus()
236 (*self.focused_widget.borrow_mut()) = Some(focused_widget.clone()); in focus()
H A Dgrid.rs53 pub focused_widget: RefCell<Option<Arc<dyn Widget>>>, field
79 focused_widget: RefCell::new(None), in new()
164 (*self.focused_widget.borrow_mut()) = Some(widget.clone()); in focus_by_id()
309 fn focused_widget(&self) -> RefCell<Option<Arc<dyn Widget>>> { in focused_widget() method
310 self.focused_widget.clone() in focused_widget()
313 fn focus(&self, focused_widget: &Arc<dyn Widget>) { in focus()
316 if Arc::ptr_eq(widget, focused_widget) { in focus()
318 (*self.focused_widget.borrow_mut()) = Some(focused_widget.clone()); in focus()
/StarryEngine/starry_toolkit/src/traits/
H A Dfocus.rs7 fn focused_widget(&self) -> RefCell<Option<Arc<dyn Widget>>>; in focused_widget() method
14 if let Some(ref focused_widget) = *self.focused_widget().borrow_mut() { in is_focused()
15 if Arc::ptr_eq(&widget, &focused_widget) { in is_focused()
/StarryEngine/starry_toolkit/src/base/
H A Dpanel.rs91 focused_widget: RefCell<Option<Arc<dyn Widget>>>, field
117 focused_widget: RefCell::new(None), in from_window()
333 fn focused_widget(&self) -> RefCell<Option<Arc<dyn Widget>>> { in focused_widget() method
334 self.focused_widget.clone() in focused_widget()
338 (*self.focused_widget.borrow_mut()) = Some(widget.clone()); in focus()