cosmic::widget::button

Type Alias ImageButton

source
pub type ImageButton<'a, Message> = Builder<'a, Message, Image<'a, Handle, Message>>;

Aliased Type§

struct ImageButton<'a, Message> { /* private fields */ }

Implementations§

source§

impl<'a, Message> Button<'a, Message>

source

pub fn new(variant: Image<'a, Handle, Message>) -> Self

source

pub fn on_remove(self, message: Message) -> Self

source

pub fn on_remove_maybe(self, message: Option<Message>) -> Self

source

pub fn selected(self, selected: bool) -> Self