pub struct ListBox(_);Available on crate feature
gui only.Expand description
Implementations§
source§impl ListBox
impl ListBox
sourcepub fn new(parent: &impl GuiParent, opts: ListBoxOpts) -> ListBox
pub fn new(parent: &impl GuiParent, opts: ListBoxOpts) -> ListBox
Instantiates a new ListBox object, to be created on the parent window
with
HWND::CreateWindowEx.
Panics
Panics if the parent window was already created – that is, you cannot
dynamically create a ListBox in an event closure.
sourcepub fn new_dlg(
parent: &impl GuiParent,
ctrl_id: u16,
resize_behavior: (Horz, Vert)
) -> ListBox
pub fn new_dlg(
parent: &impl GuiParent,
ctrl_id: u16,
resize_behavior: (Horz, Vert)
) -> ListBox
Instantiates a new ListBox object, to be loaded from a dialog resource
with HWND::GetDlgItem.
Panics
Panics if the parent dialog was already created – that is, you cannot
dynamically create a ListBox in an event closure.
sourcepub const fn items(&self) -> ListBoxItems<'_>
pub const fn items(&self) -> ListBoxItems<'_>
Item methods.
Trait Implementations§
source§impl GuiChildFocus for ListBox
impl GuiChildFocus for ListBox
source§fn focus(&self)
fn focus(&self)
In a raw, ordinary window, simply calls
HWND:SetFocus. Read moresource§impl GuiNativeControl for ListBox
impl GuiNativeControl for ListBox
source§fn on_subclass(&self) -> &WindowEvents
fn on_subclass(&self) -> &WindowEvents
Exposes the subclass events. If at least one event exists, the control
will be
subclassed. Read more
source§impl GuiNativeControlEvents<ListBoxEvents> for ListBox
impl GuiNativeControlEvents<ListBoxEvents> for ListBox
source§fn on(&self) -> &ListBoxEvents
fn on(&self) -> &ListBoxEvents
Exposes the specific control events. Read more