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§
sourcefn set_accel_string(&mut self, accel: AccelString) -> TkAction
fn set_accel_string(&mut self, accel: AccelString) -> TkAction
Set accel string
Provided Methods§
sourcefn set_accel<T: Into<AccelString>>(&mut self, accel: T) -> TkActionwhere
Self: Sized,
fn set_accel<T: Into<AccelString>>(&mut self, accel: T) -> TkActionwhere
Self: Sized,
Set text
This method supports AccelString
, String
and &str
as input.
The latter are parsed for accel keys identified by &
prefix.