[][src]Trait kas::class::SetAccel

pub trait SetAccel {
    pub fn set_accel_string(&mut self, accel: AccelString) -> TkAction;

    pub fn set_accel<T: Into<AccelString>>(&mut self, accel: T) -> TkAction
    where
        Self: Sized
, { ... } }

Set a control label

Control labels do not support rich-text formatting but do support accelerator keys, identified via a & prefix (e.g. &File).

Required methods

pub fn set_accel_string(&mut self, accel: AccelString) -> TkAction[src]

Set accel string

Loading content...

Provided methods

pub fn set_accel<T: Into<AccelString>>(&mut self, accel: T) -> TkAction where
    Self: Sized
[src]

Set text

This method supports AccelString, String and &str as input. The latter are parsed for accel keys identified by & prefix.

Loading content...

Implementors

impl SetAccel for AccelLabel[src]

impl<D: Directional, W: Menu> SetAccel for SubMenu<D, W>[src]

impl<M: Clone + Debug + 'static> SetAccel for MenuEntry<M>[src]

impl<M: Clone + Debug + 'static> SetAccel for TextButton<M>[src]

impl<W: SetAccel + Widget> SetAccel for Frame<W>[src]

impl<W: SetAccel + Widget> SetAccel for MenuFrame<W>[src]

Loading content...