cosmic::widget::button

Type Alias IconButton

source
pub type IconButton<'a, Message> = Builder<'a, Message, Icon>;

Aliased Type§

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

Implementations§

source§

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

source

pub fn new(icon: Icon) -> Self

source

pub fn extra_small(self) -> Self

Applies the Extra Small button size preset.

source

pub fn medium(self) -> Self

Applies the Medium button size preset.

source

pub fn large(self) -> Self

Applies the Large button size preset.

source

pub fn extra_large(self) -> Self

Applies the Extra Large button size preset.

source

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

source

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