pub struct SubMenu<D: Directional> { /* private fields */ }
Expand description

A sub-menu

Implementations

Construct a sub-menu

Construct a sub-menu, opening to the right

Construct a sub-menu, opening downwards

Construct a sub-menu

The sub-menu is opened in the direction given (contents are always vertical).

Trait Implementations

Get size rules for the given axis Read more

Set size and position Read more

Translate a coordinate to a WidgetId Read more

Draw a widget and its children Read more

Formats the value using the given formatter. Read more

Get text by reference

Get text as a String

Translate a coordinate to a WidgetId Read more

Draw a widget and its children Read more

Get size rules for the given axis Read more

Set size and position Read more

Access row items for aligned layout Read more

Report whether a submenu (if any) is open Read more

Open or close a sub-menu, including parents Read more

Pre-configuration Read more

Is this widget navigable via Tab key? Read more

Navigation in spatial order Read more

Handle an event sent to this widget Read more

Handler for messages from children/descendants Read more

Handler for scrolling Read more

Configure widget Read more

Get translation of children relative to this widget Read more

Potentially steal an event before it reaches a child Read more

Handle an event sent to child index but left unhandled Read more

Get the number of child widgets Read more

Get a reference to a child widget by index, or None if the index is out of bounds. Read more

Mutable variant of get Read more

Find the child which is an ancestor of this id, if any Read more

Make an identifier for a child Read more

Get the widget’s identifier Read more

Get the widget’s region, relative to its parent.

Get the name of the widget struct

Erase type

Erase type

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Cast from Self to T Read more

Try converting from Self to T Read more

Try approximate conversion from Self to T Read more

Cast approximately from Self to T Read more

Cast to integer, truncating Read more

Cast to the nearest integer Read more

Cast the floor to an integer Read more

Cast the ceiling to an integer Read more

Try converting to integer with truncation Read more

Try converting to the nearest integer Read more

Try converting the floor to an integer Read more

Try convert the ceiling to an integer Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Get the widget’s identifier Read more

Test widget identifier for equality Read more

Display as “StructName#WidgetId”

Check whether id is self or a descendant Read more

Check whether id is not self and is a descendant Read more

Find the descendant with this id, if any

Find the descendant with this id, if any