1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
// Take a look at the license at the top of the repository in the LICENSE file.
use crate::Label;
use glib::translate::*;
impl Label {
/// Return the mnemonic accelerator.
///
/// If the label has been set so that it has a mnemonic key this function
/// returns the keyval used for the mnemonic accelerator. If there is no
/// mnemonic set up it returns `GDK_KEY_VoidSymbol`.
///
/// # Returns
///
/// GDK keyval usable for accelerators, or `GDK_KEY_VoidSymbol`
#[doc(alias = "gtk_label_get_mnemonic_keyval")]
#[doc(alias = "get_mnemonic_keyval")]
pub fn mnemonic_keyval(&self) -> gdk::Key {
unsafe { from_glib(ffi::gtk_label_get_mnemonic_keyval(self.to_glib_none().0)) }
}
}