[][src]Struct orbtk::widgets::ComboBox

pub struct ComboBox {
    pub rect: Cell<Rect>,
    pub selector: CloneCell<Selector>,
    pub offset: Cell<Point>,
    // some fields omitted
}

Fields

rect: Cell<Rect>selector: CloneCell<Selector>offset: Cell<Point>

Methods

impl ComboBox[src]

pub fn new() -> Arc<ComboBox>[src]

pub fn selected(&self) -> i32[src]

pub fn push(&self, text: &str)[src]

pub fn pop(&self) -> String[src]

pub fn change_selection(&self, i: u32)[src]

pub fn text_offset(&self, x: i32, y: i32) -> &Self[src]

Trait Implementations

impl Place for ComboBox[src]

fn position(&self, x: i32, y: i32) -> &Self[src]

fn size(&self, width: u32, height: u32) -> &Self[src]

fn placement(
    &self,
    vertical_placement: VerticalPlacement,
    horizontal_placement: HorizontalPlacement
) -> &Self
[src]

impl Style for ComboBox[src]

fn with_class<S: Into<String>>(&self, class: S) -> &Self[src]

fn without_class<S: Into<String>>(&self, class: S) -> &Self[src]

fn with_pseudo_class<S: Into<String>>(&self, pseudo_class: S) -> &Self[src]

fn without_pseudo_class<S: Into<String>>(&self, pseudo_class: S) -> &Self[src]

impl Widget for ComboBox[src]

fn preview_event(
    &self,
    _event: Event,
    _focused: bool,
    _redraw: &mut bool,
    _handled: bool
) -> bool
[src]

Handle the incoming events by tunneling from parent to child. Must have overwritten to create a custom tunneling event handling. Read more

fn add(&self, widget: Arc<dyn Widget>)[src]

Add a child to the widget.

fn update(&self)[src]

Used to update the state of the widget. Could be used to update the selector.

fn arrange(&self)[src]

Arrange the children of the widget. Could be override to create a custom layout.

Auto Trait Implementations

impl !Send for ComboBox

impl !Sync for ComboBox

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.