[][src]Struct orbtk::widgets::Entry

pub struct Entry {
    pub rect: Cell<Rect>,
    // some fields omitted
}

An entry in a list Each entry stores widgets within.

Fields

rect: Cell<Rect>

Methods

impl Entry[src]

pub fn new(h: u32) -> Arc<Self>[src]

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

Adds a widget to the entry

Trait Implementations

impl Click for Entry[src]

impl Widget for Entry[src]

fn draw(&self, _renderer: &mut dyn Renderer, _focused: bool, _theme: &Theme)[src]

Used to draw the widget by render code.

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 event(
    &self,
    _event: Event,
    _focused: bool,
    _redraw: &mut bool,
    _caught: &mut bool
) -> bool
[src]

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

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

Add a child to the widget.

fn arrange(&self)[src]

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

Auto Trait Implementations

impl !Send for Entry

impl !Sync for Entry

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<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.