- Added initial color support
- Added
MenuBuilder::add_section_title
- Style a menu by using a
Theme
object
- Replaced the
Invert
selection indicator withRectangle
- Renamed
SelectValue::name
tomarker
- Renamed
MenuItem
trait toMenuListItem
- Moved
MenuListItem
andMarker
toitems
- Renamed
Select
toMenuItem
MenuListItem::draw_styled
andMenuListItem::set_style
now only takes a font style instead of the whole menu style- Renamed
MenuBuilder::add_item(s)
toadd_menu_item(s)
- Renamed
Menu::new
tobuild
SelectValue::marker
can now return values with non-'static
lifetimesSelectValue
now requiresClone
instead ofCopy
SelectValue::next
now takes&mut self
and returns nothing
- Removed the concept of menu item descriptions. This change removes the following APIs:
MenuItemCollection::details_of
MenuItem::details
NavigationItem::with_detail_text
Select::with_detail_text
MenuStyle::with_details_delay
Select
andNavigationItem
now have one fewer type parameters
- Removed
MenuItem::title
- Removed
MenuItem::value
- Removed
MenuItemCollection::title_of
- Removed
derive(Menu)
- Removed the
R
type parameter fromSectionTitle
- Removed
IndicatorStyle::Color
,IndicatorStyle::color
,IndicatorStyle::draw
is now generic over the theme - Removed
NavigationItem
- Removed
SectionTitle
- New: allow
Menu
to return the selected item's value without interacting with it.
- New:
SectionTitle
menu item type.
- Internal improvements
- Internal improvements
- Updated embedded-layout dependency to 0.4.0
- Internal improvements
- Fix incorrect selection indicator positioning when restoring menu state
- Internal improvements
- Fixed menu item details not showing up
View
is now a supertrait ofMenuItem
- Fixed issues with displaying a slice of menuitems
- Added
MenuState
,MenuBuilder::build_with_state
andMenu::state
Menu
,Select
andNavigationItem
are now generic over their string parametersMenu::add_items
now accepts owning collections (e.g.Vec
)- Replaced
StyledDrawable
wtihMenuItem::draw_styled
andMenuItemCollection::draw_styled
- Empty menu titles are no longer displayed
- Reworked input handling.
InteractionController
has been replaced byInputAdapter
- Added more options for
InteractionType
- Added
selection_indicator::invert::Invert
- Renamed
MenuStyle::with_interaction_controller
towith_input_adapter
- Added the
simulator
feature and theinteraction::simulator::Simulator
input adapter
- The ˙collection
and
styled` modules are now public.
- Add
MenuBuilder::add_items
that takes a slice of menu items. - breaking: Renamed
MenuExt
toMenuItemCollection
- breaking: Changed associate type on
MenuItem
into a generic parameter. - Removed
SingleTouch::new
. - Fields of
SingleTouch
are now public. - breaking: Removed
MenuLine
from the menu type signature. - breaking:
MenuLine
is no longer generic. - Added
MenuItem::set_style
which is used internally to set up a menu item.
- Removed unused
display-interface
dependency. - Single touch menu items now fire contiuously while held.
- Single touch interaction now ignores initial held input.
- Single touch interaction no longer selects next item after selecting a menu item.
- breaking:
InteractionController::update
now takes&mut self
.
- Initial release