Trait gtk::prelude::MenuShellExt[][src]

pub trait MenuShellExt: 'static {
    fn activate_item<P: IsA<Widget>>(
        &self,
        menu_item: &P,
        force_deactivate: bool
    );
fn append<P: IsA<MenuItem>>(&self, child: &P);
fn bind_model<'a, 'b, P: IsA<MenuModel> + 'a, Q: Into<Option<&'a P>>, R: Into<Option<&'b str>>>(
        &self,
        model: Q,
        action_namespace: R,
        with_separators: bool
    );
fn cancel(&self);
fn deactivate(&self);
fn deselect(&self);
fn get_parent_shell(&self) -> Option<Widget>;
fn get_selected_item(&self) -> Option<Widget>;
fn get_take_focus(&self) -> bool;
fn insert<P: IsA<Widget>>(&self, child: &P, position: i32);
fn prepend<P: IsA<Widget>>(&self, child: &P);
fn select_first(&self, search_sensitive: bool);
fn select_item<P: IsA<Widget>>(&self, menu_item: &P);
fn set_take_focus(&self, take_focus: bool);
fn connect_activate_current<F: Fn(&Self, bool) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_activate_current(&self, force_hide: bool);
fn connect_cancel<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_cancel(&self);
fn connect_cycle_focus<F: Fn(&Self, DirectionType) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_cycle_focus(&self, direction: DirectionType);
fn connect_deactivate<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_insert<F: Fn(&Self, &Widget, i32) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_move_current<F: Fn(&Self, MenuDirectionType) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn emit_move_current(&self, direction: MenuDirectionType);
fn connect_move_selected<F: Fn(&Self, i32) -> Inhibit + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_selection_done<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_take_focus_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Required methods

fn activate_item<P: IsA<Widget>>(&self, menu_item: &P, force_deactivate: bool)[src]

fn append<P: IsA<MenuItem>>(&self, child: &P)[src]

fn bind_model<'a, 'b, P: IsA<MenuModel> + 'a, Q: Into<Option<&'a P>>, R: Into<Option<&'b str>>>(
    &self,
    model: Q,
    action_namespace: R,
    with_separators: bool
)
[src]

fn cancel(&self)[src]

fn deactivate(&self)[src]

fn deselect(&self)[src]

fn get_parent_shell(&self) -> Option<Widget>[src]

fn get_selected_item(&self) -> Option<Widget>[src]

fn get_take_focus(&self) -> bool[src]

fn insert<P: IsA<Widget>>(&self, child: &P, position: i32)[src]

fn prepend<P: IsA<Widget>>(&self, child: &P)[src]

fn select_first(&self, search_sensitive: bool)[src]

fn select_item<P: IsA<Widget>>(&self, menu_item: &P)[src]

fn set_take_focus(&self, take_focus: bool)[src]

fn connect_activate_current<F: Fn(&Self, bool) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn emit_activate_current(&self, force_hide: bool)[src]

fn connect_cancel<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId[src]

fn emit_cancel(&self)[src]

fn connect_cycle_focus<F: Fn(&Self, DirectionType) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn emit_cycle_focus(&self, direction: DirectionType)[src]

fn connect_deactivate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId[src]

fn connect_insert<F: Fn(&Self, &Widget, i32) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_move_current<F: Fn(&Self, MenuDirectionType) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn emit_move_current(&self, direction: MenuDirectionType)[src]

fn connect_move_selected<F: Fn(&Self, i32) -> Inhibit + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_selection_done<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

fn connect_property_take_focus_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId
[src]

Loading content...

Implementors

impl<O: IsA<MenuShell>> MenuShellExt for O[src]

Loading content...