pub struct InputChoiceElement { /* private fields */ }

Methods from Deref<Target = InputChoice>§

source

pub fn set_down_frame(&mut self, f: FrameType)

Set the down_box of the widget

source

pub fn down_frame(&self) -> FrameType

Get the down frame type of the widget

source

pub fn add(&mut self, s: &str)

Add an element to the input choice

source

pub fn clear(&mut self)

Clear the input choice widget

source

pub fn value(&self) -> Option<String>

Get the value of the current choice

source

pub fn set_value(&mut self, val: &str)

Set the value to a string

source

pub fn set_value_index(&mut self, idx: i32)

Set the value of the input choice to the element at idx

source

pub fn input(&self) -> Input

Get the associated input widget

source

pub fn menu_button(&self) -> MenuButton

Get the associated menu button

source

pub fn text_font(&self) -> Font

Gets the text font

source

pub fn set_text_font(&mut self, f: Font)

Sets the text font

source

pub fn text_size(&self) -> i32

Gets the text size

source

pub fn set_text_size(&mut self, s: i32)

Sets the text size

source

pub fn text_color(&self) -> Color

Gets the text’s color

source

pub fn set_text_color(&mut self, color: Color)

Sets the text’s color

Trait Implementations§

source§

impl Deref for InputChoiceElement

§

type Target = InputChoice

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for InputChoiceElement

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl LayoutElement for InputChoiceElement

source§

fn min_size(&self) -> Size

source§

fn layout(&self, x: i32, y: i32, width: i32, height: i32)

source§

impl LayoutWidgetWrapper<InputChoice> for InputChoiceElement

source§

fn wrap(widget: InputChoice) -> Self

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.