Trait cosmic::iced_core::widget::operation::focusable::Focusable

source ·
pub trait Focusable {
    // Required methods
    fn is_focused(&self) -> bool;
    fn focus(&mut self);
    fn unfocus(&mut self);
}
Expand description

The internal state of a widget that can be focused.

Required Methods§

source

fn is_focused(&self) -> bool

Returns whether the widget is focused or not.

source

fn focus(&mut self)

Focuses the widget.

source

fn unfocus(&mut self)

Unfocuses the widget.

Implementors§

source§

impl Focusable for cosmic::widget::text_input::State

source§

impl<Highlighter> Focusable for cosmic::iced_widget::text_editor::State<Highlighter>
where Highlighter: Highlighter,

source§

impl<P> Focusable for cosmic::iced_widget::text_input::State<P>
where P: Paragraph,