[−][src]Struct kas::text::AccelString
An accelerator key string
This is a label which supports highlighting of accelerator keys.
Markup: &&
translates to &
; &x
for any x
translates to x
and
identifies x
as an "accelerator key"; this may be drawn underlined and
may support keyboard access via e.g. Alt+X
.
Implementations
impl AccelString
[src]
pub fn keys(&self) -> &[VK]
[src]
Get the key bindings
pub fn take_keys(self) -> VirtualKeyCodes
[src]
Take the key bindings, destroying self
pub fn text(&self) -> &str
[src]
Get the text
Trait Implementations
impl Clone for AccelString
[src]
pub fn clone(&self) -> AccelString
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for AccelString
[src]
impl Default for AccelString
[src]
pub fn default() -> AccelString
[src]
impl FormattableText for AccelString
[src]
pub fn as_str(&self) -> &str
[src]
pub fn font_tokens(&self, _: f32, _: f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>
impl<T> Iterator for OwningVecIter<T> where
T: Clone, type Item = T;
[src]
Notable traits for OwningVecIter<T>
impl<T> Iterator for OwningVecIter<T> where
T: Clone, type Item = T;
pub fn effect_tokens(&self) -> &[Effect<()>]
[src]
pub fn str_len(&self) -> usize
[src]
impl From<&'static str> for AccelString
[src]
impl From<String> for AccelString
[src]
impl PartialEq<AccelString> for AccelString
[src]
pub fn eq(&self, other: &AccelString) -> bool
[src]
pub fn ne(&self, other: &AccelString) -> bool
[src]
impl StructuralPartialEq for AccelString
[src]
Auto Trait Implementations
impl RefUnwindSafe for AccelString
impl Send for AccelString
impl Sync for AccelString
impl Unpin for AccelString
impl UnwindSafe for AccelString
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<F> FormattableTextDyn for F where
F: 'static + FormattableText + Clone,
[src]
F: 'static + FormattableText + Clone,
pub fn clone_boxed(&self) -> Box<dyn FormattableTextDyn + 'static, Global>
[src]
pub fn str_len(&self) -> usize
[src]
pub fn as_str(&self) -> &str
[src]
pub fn font_tokens(&self, dpp: f32, pt_size: f32) -> OwningVecIter<FontToken>ⓘNotable traits for OwningVecIter<T>
impl<T> Iterator for OwningVecIter<T> where
T: Clone, type Item = T;
[src]
Notable traits for OwningVecIter<T>
impl<T> Iterator for OwningVecIter<T> where
T: Clone, type Item = T;
pub fn effect_tokens(&self) -> &[Effect<()>]
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,