MenuFlyout
struct · ferroui-controls · v0.5.0
struct MenuFlyout
A flyout that displays a menu.
Members
TYPEto_refitems_source_propertyitem_template_propertyitem_container_theme_propertyflyout_presenter_theme_propertyconstructnewflyout_presenter_classesitemsitems_sourceset_items_sourceitem_templateset_item_templateitem_container_themeset_item_container_themeflyout_presenter_themeset_flyout_presenter_theme
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<MenuFlyout>
Returns a strong reference to this object.
items_source_property
fn items_source_property() -> &'static StyledProperty<Option<ItemsSource>>
Defines the ItemsSource property.
item_template_property
fn item_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the ItemTemplate property.
item_container_theme_property
fn item_container_theme_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
Defines the ItemContainerTheme property.
flyout_presenter_theme_property
fn flyout_presenter_theme_property() -> &'static StyledProperty<Option<Ref<ControlTheme>>>
Defines the FlyoutPresenterTheme property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
Creates a menu flyout.
flyout_presenter_classes
fn flyout_presenter_classes(self: &Self) -> Classes
The classes collection to apply to the flyout presenter this flyout is hosting.
items
fn items(self: &Self) -> ItemCollection
The items of the menu flyout.
items_source
fn items_source(self: &Self) -> Option<ItemsSource>
Gets or sets the items of the menu flyout.
set_items_source
fn set_items_source(self: &Self, value: Option<ItemsSource>)
item_template
fn item_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
Gets or sets the template used for the items.
set_item_template
fn set_item_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
item_container_theme
fn item_container_theme(self: &Self) -> Option<Ref<ControlTheme>>
Gets or sets the control theme that is applied to the container element generated for each item.
set_item_container_theme
fn set_item_container_theme(self: &Self, value: impl Into<Nullable<ControlTheme>>)
flyout_presenter_theme
fn flyout_presenter_theme(self: &Self) -> Option<Ref<ControlTheme>>
Gets or sets the control theme that is applied to the container element generated for the flyout presenter.
set_flyout_presenter_theme
fn set_flyout_presenter_theme(self: &Self, value: impl Into<Nullable<ControlTheme>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeFlyoutBaseImplExtPopupFlyoutBaseImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyFerroObjectImplExtClassDefaultsErasedDestructorIntoEitherDerefUpcast<T>Upcast<MenuFlyout>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFlyoutBaseImplFerroObjectImplPopupFlyoutBaseImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.