pub struct ListBox {
pub label: String,
pub image: Option<Image>,
pub opt: WidgetOption,
pub bopt: WidgetBehaviourOption,
}Expand description
Persistent state for list boxes.
Fields§
§label: StringLabel displayed for the list box.
image: Option<Image>Optional image rendered alongside the label.
opt: WidgetOptionWidget options applied to the list box.
bopt: WidgetBehaviourOptionBehaviour options applied to the list box.
Implementations§
Trait Implementations§
Source§impl Widget for ListBox
impl Widget for ListBox
Source§fn widget_opt(&self) -> &WidgetOption
fn widget_opt(&self) -> &WidgetOption
Returns the widget options for this state.
Source§fn behaviour_opt(&self) -> &WidgetBehaviourOption
fn behaviour_opt(&self) -> &WidgetBehaviourOption
Returns the behaviour options for this state.
Source§fn handle(
&mut self,
ctx: &mut WidgetCtx<'_>,
control: &ControlState,
) -> ResourceState
fn handle( &mut self, ctx: &mut WidgetCtx<'_>, control: &ControlState, ) -> ResourceState
Handles widget interaction and rendering for the current frame using the provided context.
Auto Trait Implementations§
impl Freeze for ListBox
impl RefUnwindSafe for ListBox
impl Send for ListBox
impl Sync for ListBox
impl Unpin for ListBox
impl UnwindSafe for ListBox
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