pub struct ComboEntry { /* private fields */ }Available on crate feature
winio only.Expand description
A combo box with editable text box.
Implementations§
Source§impl ComboEntry
impl ComboEntry
Sourcepub fn set_selection(&mut self, i: Option<usize>)
pub fn set_selection(&mut self, i: Option<usize>)
Set or cancel the selection.
Trait Implementations§
Source§impl AsRawWidget for ComboEntry
impl AsRawWidget for ComboEntry
Source§fn as_raw_widget(&self) -> RawWidget
fn as_raw_widget(&self) -> RawWidget
Get the raw window handle.
Source§impl AsWidget for ComboEntry
impl AsWidget for ComboEntry
Source§fn as_widget(&self) -> BorrowedWidget<'_>
fn as_widget(&self) -> BorrowedWidget<'_>
Get the window handle.
Source§impl Component for ComboEntry
impl Component for ComboEntry
Source§type Event = ComboEntryEvent
type Event = ComboEntryEvent
The output event type to the parent.
Source§type Init<'a> = BorrowedWindow<'a>
type Init<'a> = BorrowedWindow<'a>
Initial parameter type.
Source§type Message = ComboBoxMessage
type Message = ComboBoxMessage
The input message type to update.
Source§fn init(
init: <ComboEntry as Component>::Init<'_>,
_sender: &ComponentSender<ComboEntry>,
) -> ComboEntry
fn init( init: <ComboEntry as Component>::Init<'_>, _sender: &ComponentSender<ComboEntry>, ) -> ComboEntry
Create the initial component.
Source§async fn start(&mut self, sender: &ComponentSender<ComboEntry>) -> !
async fn start(&mut self, sender: &ComponentSender<ComboEntry>) -> !
Start the event listening.
Source§async fn update(
&mut self,
message: <ComboEntry as Component>::Message,
_sender: &ComponentSender<ComboEntry>,
) -> bool
async fn update( &mut self, message: <ComboEntry as Component>::Message, _sender: &ComponentSender<ComboEntry>, ) -> bool
Respond to the message.
Source§fn render(&mut self, _sender: &ComponentSender<ComboEntry>)
fn render(&mut self, _sender: &ComponentSender<ComboEntry>)
Render the widgets.
Source§impl Debug for ComboEntry
impl Debug for ComboEntry
Source§impl Enable for ComboEntry
impl Enable for ComboEntry
Source§impl Layoutable for ComboEntry
impl Layoutable for ComboEntry
Source§fn preferred_size(&self) -> Size2D<f64, LogicalSpace>
fn preferred_size(&self) -> Size2D<f64, LogicalSpace>
The preferred size.
Auto Trait Implementations§
impl Freeze for ComboEntry
impl RefUnwindSafe for ComboEntry
impl !Send for ComboEntry
impl !Sync for ComboEntry
impl Unpin for ComboEntry
impl UnwindSafe for ComboEntry
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more