Trait gtk::prelude::GtkMenuExt [−][src]
pub trait GtkMenuExt: 'static {
Show 50 methods
fn attach<P: IsA<Widget>>(
&self,
child: &P,
left_attach: u32,
right_attach: u32,
top_attach: u32,
bottom_attach: u32
);
fn detach(&self);
fn accel_group(&self) -> Option<AccelGroup>;
fn accel_path(&self) -> Option<GString>;
fn active(&self) -> Option<Widget>;
fn attach_widget(&self) -> Option<Widget>;
fn monitor(&self) -> i32;
fn must_reserve_toggle_size(&self) -> bool;
fn place_on_monitor(&self, monitor: &Monitor);
fn popdown(&self);
fn popup_at_pointer(&self, trigger_event: Option<&Event>);
fn popup_at_rect(
&self,
rect_window: &Window,
rect: &Rectangle,
rect_anchor: Gravity,
menu_anchor: Gravity,
trigger_event: Option<&Event>
);
fn popup_at_widget<P: IsA<Widget>>(
&self,
widget: &P,
widget_anchor: Gravity,
menu_anchor: Gravity,
trigger_event: Option<&Event>
);
fn reorder_child<P: IsA<Widget>>(&self, child: &P, position: i32);
fn reposition(&self);
fn set_accel_group<P: IsA<AccelGroup>>(&self, accel_group: Option<&P>);
fn set_accel_path(&self, accel_path: Option<&str>);
fn set_active(&self, index: u32);
fn set_monitor(&self, monitor_num: i32);
fn set_reserve_toggle_size(&self, reserve_toggle_size: bool);
fn set_screen(&self, screen: Option<&Screen>);
fn anchor_hints(&self) -> AnchorHints;
fn set_anchor_hints(&self, anchor_hints: AnchorHints);
fn set_attach_widget<P: IsA<Widget>>(&self, attach_widget: Option<&P>);
fn menu_type_hint(&self) -> WindowTypeHint;
fn set_menu_type_hint(&self, menu_type_hint: WindowTypeHint);
fn rect_anchor_dx(&self) -> i32;
fn set_rect_anchor_dx(&self, rect_anchor_dx: i32);
fn rect_anchor_dy(&self) -> i32;
fn set_rect_anchor_dy(&self, rect_anchor_dy: i32);
fn item_bottom_attach<T: IsA<MenuItem>>(&self, item: &T) -> i32;
fn set_item_bottom_attach<T: IsA<MenuItem>>(
&self,
item: &T,
bottom_attach: i32
);
fn item_left_attach<T: IsA<MenuItem>>(&self, item: &T) -> i32;
fn set_item_left_attach<T: IsA<MenuItem>>(&self, item: &T, left_attach: i32);
fn item_right_attach<T: IsA<MenuItem>>(&self, item: &T) -> i32;
fn set_item_right_attach<T: IsA<MenuItem>>(
&self,
item: &T,
right_attach: i32
);
fn item_top_attach<T: IsA<MenuItem>>(&self, item: &T) -> i32;
fn set_item_top_attach<T: IsA<MenuItem>>(&self, item: &T, top_attach: i32);
fn connect_move_scroll<F: Fn(&Self, ScrollType) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn emit_move_scroll(&self, scroll_type: ScrollType);
fn connect_accel_group_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_accel_path_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_active_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_anchor_hints_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_attach_widget_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_menu_type_hint_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_monitor_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_rect_anchor_dx_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_rect_anchor_dy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_reserve_toggle_size_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Required methods
fn attach<P: IsA<Widget>>(
&self,
child: &P,
left_attach: u32,
right_attach: u32,
top_attach: u32,
bottom_attach: u32
)
fn accel_group(&self) -> Option<AccelGroup>
fn accel_path(&self) -> Option<GString>
fn attach_widget(&self) -> Option<Widget>
fn must_reserve_toggle_size(&self) -> bool
fn place_on_monitor(&self, monitor: &Monitor)
fn place_on_monitor(&self, monitor: &Monitor)
This is supported on crate feature
v3_22
only.fn popup_at_pointer(&self, trigger_event: Option<&Event>)
fn popup_at_pointer(&self, trigger_event: Option<&Event>)
This is supported on crate feature
v3_22
only.This is supported on crate feature
v3_22
only.This is supported on crate feature
v3_22
only.fn reposition(&self)
fn set_accel_group<P: IsA<AccelGroup>>(&self, accel_group: Option<&P>)
fn set_accel_path(&self, accel_path: Option<&str>)
fn set_active(&self, index: u32)
fn set_monitor(&self, monitor_num: i32)
fn set_reserve_toggle_size(&self, reserve_toggle_size: bool)
fn set_screen(&self, screen: Option<&Screen>)
fn anchor_hints(&self) -> AnchorHints
fn anchor_hints(&self) -> AnchorHints
This is supported on crate feature
v3_22
only.fn set_anchor_hints(&self, anchor_hints: AnchorHints)
fn set_anchor_hints(&self, anchor_hints: AnchorHints)
This is supported on crate feature
v3_22
only.This is supported on crate feature
v3_22
only.This is supported on crate feature
v3_22
only.fn rect_anchor_dx(&self) -> i32
fn rect_anchor_dx(&self) -> i32
This is supported on crate feature
v3_22
only.fn set_rect_anchor_dx(&self, rect_anchor_dx: i32)
fn set_rect_anchor_dx(&self, rect_anchor_dx: i32)
This is supported on crate feature
v3_22
only.fn rect_anchor_dy(&self) -> i32
fn rect_anchor_dy(&self) -> i32
This is supported on crate feature
v3_22
only.fn set_rect_anchor_dy(&self, rect_anchor_dy: i32)
fn set_rect_anchor_dy(&self, rect_anchor_dy: i32)
This is supported on crate feature
v3_22
only.fn connect_move_scroll<F: Fn(&Self, ScrollType) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn emit_move_scroll(&self, scroll_type: ScrollType)
fn connect_accel_group_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_accel_path_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_active_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
fn connect_anchor_hints_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_anchor_hints_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
This is supported on crate feature
v3_22
only.fn connect_attach_widget_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
This is supported on crate feature
v3_22
only.fn connect_monitor_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_rect_anchor_dx_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_rect_anchor_dx_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
This is supported on crate feature
v3_22
only.fn connect_rect_anchor_dy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
fn connect_rect_anchor_dy_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId
This is supported on crate feature
v3_22
only.