[−][src]Trait gtk::MenuToolButtonExt
Required methods
fn get_menu(&self) -> Option<Widget>
fn set_arrow_tooltip_markup(&self, markup: &str)
Sets the tooltip markup text to be used as tooltip for the arrow button
which pops up the menu. See ToolItem::set_tooltip_text
for setting
a tooltip on the whole MenuToolButton
.
markup
markup text to be used as tooltip text for button’s arrow button
fn set_arrow_tooltip_text(&self, text: &str)
Sets the tooltip text to be used as tooltip for the arrow button which
pops up the menu. See ToolItem::set_tooltip_text
for setting a tooltip
on the whole MenuToolButton
.
text
text to be used as tooltip text for button’s arrow button
fn set_menu<P: IsA<Widget>>(&self, menu: &P)
Sets the Menu
that is popped up when the user clicks on the arrow.
If menu
is NULL, the arrow button becomes insensitive.
menu
the Menu
associated with MenuToolButton
fn connect_show_menu<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
The ::show-menu signal is emitted before the menu is shown.
It can be used to populate the menu on demand, using
MenuToolButtonExt::set_menu
.
Note that even if you populate the menu dynamically in this way,
you must set an empty menu on the MenuToolButton
beforehand,
since the arrow is made insensitive if the menu is not set.
fn connect_property_menu_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
&self,
f: F
) -> SignalHandlerId
Implementors
impl<O: IsA<MenuToolButton>> MenuToolButtonExt for O
[src]
fn get_menu(&self) -> Option<Widget>
[src]
fn set_arrow_tooltip_markup(&self, markup: &str)
[src]
fn set_arrow_tooltip_text(&self, text: &str)
[src]
fn set_menu<P: IsA<Widget>>(&self, menu: &P)
[src]
fn connect_show_menu<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
[src]
fn connect_property_menu_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
[src]
&self,
f: F
) -> SignalHandlerId