[][src]Trait gtk::PopoverMenuExt

pub trait PopoverMenuExt: 'static {
    fn open_submenu(&self, name: &str);
fn get_property_visible_submenu(&self) -> Option<GString>;
fn set_property_visible_submenu(&self, visible_submenu: Option<&str>);
fn get_child_position<T: IsA<Widget>>(&self, item: &T) -> i32;
fn set_child_position<T: IsA<Widget>>(&self, item: &T, position: i32);
fn get_child_submenu<T: IsA<Widget>>(&self, item: &T) -> Option<GString>;
fn set_child_submenu<T: IsA<Widget>>(&self, item: &T, submenu: Option<&str>);
fn connect_property_visible_submenu_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all PopoverMenu methods.

Feature: v3_16

Implementors

PopoverMenu

Required methods

fn open_submenu(&self, name: &str)

Opens a submenu of the self. The name must be one of the names given to the submenus of self with PopoverMenu:submenu, or "main" to switch back to the main menu.

ModelButton will open submenus automatically when the ModelButton:menu-name property is set, so this function is only needed when you are using other kinds of widgets to initiate menu changes.

Feature: v3_16

name

the name of the menu to switch to

fn get_property_visible_submenu(&self) -> Option<GString>

fn set_property_visible_submenu(&self, visible_submenu: Option<&str>)

fn get_child_position<T: IsA<Widget>>(&self, item: &T) -> i32

fn set_child_position<T: IsA<Widget>>(&self, item: &T, position: i32)

fn get_child_submenu<T: IsA<Widget>>(&self, item: &T) -> Option<GString>

fn set_child_submenu<T: IsA<Widget>>(&self, item: &T, submenu: Option<&str>)

fn connect_property_visible_submenu_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<PopoverMenu>> PopoverMenuExt for O[src]

Loading content...