pub struct DropDownRef(/* private fields */);Implementations§
Source§impl DropDownRef
impl DropDownRef
pub fn has_widget(&self, widget: &WidgetRef) -> DropDownRef
pub fn borrow(&self) -> Option<Ref<'_, DropDown>>
pub fn borrow_mut(&self) -> Option<RefMut<'_, DropDown>>
Source§impl DropDownRef
impl DropDownRef
pub fn set_labels(&self, labels: Vec<String>)
pub fn set_labels_and_redraw(&self, cx: &mut Cx, labels: Vec<String>)
pub fn selected(&self, actions: &WidgetActions) -> Option<usize>
pub fn set_selected_item(&self, item: usize)
pub fn set_selected_item_and_redraw(&self, cx: &mut Cx, item: usize)
pub fn selected_item(&self) -> usize
pub fn selected_label(&self) -> String
pub fn set_selected_by_label(&self, label: &str)
pub fn set_selected_by_label_and_redraw(&self, label: &str, cx: &mut Cx)
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 Clone for DropDownRef
impl Clone for DropDownRef
Source§fn clone(&self) -> DropDownRef
fn clone(&self) -> DropDownRef
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Deref for DropDownRef
impl Deref for DropDownRef
Source§impl DerefMut for DropDownRef
impl DerefMut for DropDownRef
Source§impl PartialEq for DropDownRef
impl PartialEq for DropDownRef
impl StructuralPartialEq for DropDownRef
Auto Trait Implementations§
impl Freeze for DropDownRef
impl !RefUnwindSafe for DropDownRef
impl !Send for DropDownRef
impl !Sync for DropDownRef
impl Unpin for DropDownRef
impl !UnwindSafe for DropDownRef
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