[−][src]Struct orbtk::widgets::Entry
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]
fn emit_click(&self, point: Point)
[src]
fn on_click<T: Fn(&Self, Point) + 'static>(&self, func: T) -> &Self
[src]
impl Widget for Entry
[src]
fn name(&self) -> &str
[src]
fn rect(&self) -> &Cell<Rect>
[src]
fn vertical_placement(&self) -> &Cell<VerticalPlacement>
[src]
fn horizontal_placement(&self) -> &Cell<HorizontalPlacement>
[src]
fn margin(&self) -> &Cell<Thickness>
[src]
fn local_position(&self) -> &Cell<Point>
[src]
fn children(&self) -> &RefCell<Vec<Arc<dyn Widget>>>
[src]
fn update(&self)
[src]
fn draw(&self, _renderer: &mut dyn Renderer, _focused: bool, _theme: &Theme)
[src]
fn preview_event(
&self,
_event: Event,
_focused: bool,
_redraw: &mut bool,
_handled: bool
) -> bool
[src]
&self,
_event: Event,
_focused: bool,
_redraw: &mut bool,
_handled: bool
) -> bool
fn event(
&self,
_event: Event,
_focused: bool,
_redraw: &mut bool,
_caught: &mut bool
) -> bool
[src]
&self,
_event: Event,
_focused: bool,
_redraw: &mut bool,
_caught: &mut bool
) -> bool
fn add(&self, widget: Arc<dyn Widget>)
[src]
fn arrange(&self)
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Entry
impl !Send for Entry
impl !Sync for Entry
impl Unpin for Entry
impl !UnwindSafe for Entry
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,