Type Alias cosmic::widget::button::TextButton

source ·
pub type TextButton<'a, Message> = Builder<'a, Message, Text>;

Aliased Type§

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

Implementations§

source§

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

source

pub fn new(text: Text) -> Self

source

pub fn leading_icon(self, icon: impl Into<Handle>) -> Self

source

pub fn trailing_icon(self, icon: impl Into<Handle>) -> Self