Struct makepad_widgets::dock::DockRef
source · pub struct DockRef(/* private fields */);
Implementations§
source§impl DockRef
impl DockRef
pub fn item(&self, entry_id: LiveId) -> WidgetRef
pub fn item_or_create( &self, cx: &mut Cx, entry_id: LiveId, template: LiveId ) -> Option<WidgetRef>
pub fn close_tab(&self, cx: &mut Cx, tab_id: LiveId)
pub fn clicked_tab_close(&self, actions: &WidgetActions) -> Option<LiveId>
pub fn should_tab_start_drag(&self, actions: &WidgetActions) -> Option<LiveId>
pub fn should_accept_drag( &self, actions: &WidgetActions ) -> Option<DragHitEvent>
pub fn has_drop(&self, actions: &WidgetActions) -> Option<DropHitEvent>
pub fn accept_drag(&self, cx: &mut Cx, dh: DragHitEvent, dr: DragResponse)
pub fn drawing_item_id(&self) -> Option<LiveId>
pub fn drop_clone( &self, cx: &mut Cx, abs: DVec2, old_item: LiveId, new_item: LiveId )
pub fn drop_move(&self, cx: &mut Cx, abs: DVec2, item: LiveId)
pub fn drop_create( &self, cx: &mut Cx, abs: DVec2, item: LiveId, kind: LiveId, name: String, closable: TabClosable )
pub fn create_and_select_tab( &self, cx: &mut Cx, parent: LiveId, item: LiveId, kind: LiveId, name: String, closable: TabClosable )
pub fn create_tab( &self, cx: &mut Cx, parent: LiveId, item: LiveId, kind: LiveId, name: String, closable: TabClosable )
pub fn find_tab_bar_of_tab(&self, tab_id: LiveId) -> Option<LiveId>
pub fn select_tab(&self, cx: &mut Cx, item: LiveId)
pub fn redraw_tab(&self, cx: &mut Cx, tab_id: LiveId)
pub fn tab_start_drag(&self, cx: &mut Cx, _tab_id: LiveId, item: DragItem)
Methods from Deref<Target = WidgetRef>§
pub fn is_empty(&self) -> bool
pub fn handle_widget_event_with( &self, cx: &mut Cx, event: &Event, dispatch_action: &mut dyn FnMut(&mut Cx, WidgetActionItem) )
pub fn handle_widget_event( &self, cx: &mut Cx, event: &Event ) -> Vec<WidgetActionItem>
pub fn widget_uid(&self) -> WidgetUid
pub fn widget_to_data( &self, cx: &mut Cx, actions: &WidgetActions, nodes: &mut LiveNodeVec, path: &[LiveId] ) -> bool
pub fn data_to_widget(&self, cx: &mut Cx, nodes: &[LiveNode], path: &[LiveId])
pub fn find_widgets( &mut self, path: &[LiveId], cached: WidgetCache, results: &mut WidgetSet )
pub fn widget(&self, path: &[LiveId]) -> WidgetRef
pub fn widgets(&self, paths: &[&[LiveId]]) -> WidgetSet
pub fn draw_walk_widget(&self, cx: &mut Cx2d<'_>, walk: Walk) -> WidgetDraw
pub fn walk(&self, cx: &mut Cx) -> Walk
pub fn redraw(&self, cx: &mut Cx)
pub fn is_visible(&self) -> bool
pub fn draw_widget_all(&self, cx: &mut Cx2d<'_>)
pub fn draw_widget(&self, cx: &mut Cx2d<'_>) -> WidgetDraw
pub fn text(&self) -> String
pub fn set_text(&self, v: &str)
pub fn set_text_and_redraw(&self, cx: &mut Cx, v: &str)
pub fn borrow_mut<T: 'static + Widget>(&self) -> Option<RefMut<'_, T>>
pub fn borrow<T: 'static + Widget>(&self) -> Option<Ref<'_, T>>
pub fn apply_over(&self, cx: &mut Cx, nodes: &[LiveNode])
pub fn apply_over_and_redraw(&self, cx: &mut Cx, nodes: &[LiveNode])
Trait Implementations§
source§impl PartialEq<DockRef> for DockRef
impl PartialEq<DockRef> for DockRef
impl StructuralPartialEq for DockRef
Auto Trait Implementations§
impl !RefUnwindSafe for DockRef
impl !Send for DockRef
impl !Sync for DockRef
impl Unpin for DockRef
impl !UnwindSafe for DockRef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more