Trait MenuButtonExt

Source
pub trait MenuButtonExt: 'static {
Show 18 methods // Required methods fn get_align_widget(&self) -> Option<Widget>; fn get_direction(&self) -> ArrowType; fn get_menu_model(&self) -> Option<MenuModel>; fn get_popover(&self) -> Option<Popover>; fn get_popup(&self) -> Option<Menu>; fn get_use_popover(&self) -> bool; fn set_align_widget<P: IsA<Widget>>(&self, align_widget: Option<&P>); fn set_direction(&self, direction: ArrowType); fn set_menu_model<P: IsA<MenuModel>>(&self, menu_model: Option<&P>); fn set_popover<P: IsA<Widget>>(&self, popover: Option<&P>); fn set_popup<P: IsA<Widget>>(&self, menu: Option<&P>); fn set_use_popover(&self, use_popover: bool); fn connect_property_align_widget_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_direction_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_menu_model_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_popover_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_popup_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId; fn connect_property_use_popover_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId;
}

Required Methods§

Source

fn get_align_widget(&self) -> Option<Widget>

Source

fn get_direction(&self) -> ArrowType

Source

fn get_menu_model(&self) -> Option<MenuModel>

Source

fn get_popover(&self) -> Option<Popover>

Source

fn get_popup(&self) -> Option<Menu>

Source

fn get_use_popover(&self) -> bool

Source

fn set_align_widget<P: IsA<Widget>>(&self, align_widget: Option<&P>)

Source

fn set_direction(&self, direction: ArrowType)

Source

fn set_menu_model<P: IsA<MenuModel>>(&self, menu_model: Option<&P>)

Source

fn set_popover<P: IsA<Widget>>(&self, popover: Option<&P>)

Source

fn set_popup<P: IsA<Widget>>(&self, menu: Option<&P>)

Source

fn set_use_popover(&self, use_popover: bool)

Source

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

Source

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

Source

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

Source

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

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§