Trait kas_core::class::SetAccel

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

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

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§

Set accel string

Provided Methods§

Set text

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

Implementors§