Fluid 1.3.0
Material Design for QtQuick and Qml
Loading...
Searching...
No Matches
Fluid::Menu Struct Reference

Material Design 3 tokens for menus and menu items. More...

#include <menu.h>

Public Member Functions

constexpr qreal containerElevation () const
 Elevation of the temporary menu surface.
 
constexpr ShapeValue containerShape () const
 Corner radius of the menu surface.
 
constexpr qreal topPadding () const
 Space above the first menu item.
 
constexpr qreal bottomPadding () const
 Space below the last menu item.
 
constexpr qreal viewportMargin () const
 Minimum distance maintained between a menu and a viewport edge.
 
constexpr qreal minimumWidth () const
 Preferred minimum menu width.
 
constexpr qreal maximumWidth () const
 Preferred maximum menu width.
 
constexpr qreal itemHeight () const
 Height of a one-line menu item.
 
constexpr qreal itemHorizontalPadding () const
 Logical leading and trailing padding of a menu item.
 
constexpr qreal iconSize () const
 Size of leading, selection, and cascading-menu icons.
 
constexpr qreal iconLabelGap () const
 Space between adjacent menu-item content elements.
 
constexpr qreal hoverStateLayerOpacity () const
 Opacity of the hover state layer.
 
constexpr qreal focusStateLayerOpacity () const
 Opacity of the keyboard-focus state layer.
 
constexpr qreal pressedStateLayerOpacity () const
 Opacity of the pressed state layer.
 
constexpr qreal disabledContentOpacity () const
 Opacity of disabled menu-item content.
 
constexpr ShapeValue verticalContainerShape () const
 Shape of an Expressive vertical menu surface.
 
constexpr ShapeValue verticalGroupShape () const
 Shape of a group within an Expressive vertical menu.
 
constexpr ShapeValue verticalFirstGroupShape () const
 Shape of the first surface in a grouped Expressive vertical menu.
 
constexpr ShapeValue verticalMiddleGroupShape () const
 Shape of a middle surface in a grouped Expressive vertical menu.
 
constexpr ShapeValue verticalLastGroupShape () const
 Shape of the last surface in a grouped Expressive vertical menu.
 
constexpr ShapeValue verticalOnlyGroupShape () const
 Shape of the only surface in an Expressive vertical menu.
 
constexpr ShapeValue verticalItemShape () const
 Base shape of an Expressive vertical menu item.
 
constexpr ShapeValue verticalOnlyItemShape () const
 Shape of an item that is the only member of a group.
 
constexpr ShapeValue verticalFirstItemShape () const
 Shape of the first item in a group.
 
constexpr ShapeValue verticalMiddleItemShape () const
 Shape of a middle item in a group.
 
constexpr ShapeValue verticalLastItemShape () const
 Shape of the last item in a group.
 
constexpr ShapeValue verticalSelectedItemShape () const
 Shape of a selected Expressive menu item.
 
constexpr ShapeValue verticalInactiveItemShape () const
 Shape used for an inactive Expressive menu item group.
 
constexpr qreal verticalItemHeight () const
 Height of an Expressive vertical menu item.
 
constexpr qreal verticalGroupPadding () const
 Padding between an Expressive menu surface and its item groups.
 
constexpr qreal verticalGroupContentPadding () const
 Vertical content padding inside an Expressive menu group surface.
 
constexpr qreal verticalSegmentedGap () const
 Gap between adjacent surfaces in an Expressive grouped menu.
 
constexpr qreal verticalDividerInset () const
 Horizontal inset of a divider within an Expressive menu group.
 
constexpr qreal verticalSectionLabelHeight () const
 Minimum height of an Expressive menu section label.
 
constexpr qreal verticalSectionLabelLeadingSpace () const
 Logical leading padding of an Expressive menu section label.
 
constexpr qreal verticalSectionLabelTrailingSpace () const
 Logical trailing padding of an Expressive menu section label.
 
constexpr qreal verticalItemTopPadding () const
 Top content padding of an Expressive menu item.
 
constexpr qreal verticalItemBottomPadding () const
 Bottom content padding of an Expressive menu item.
 
constexpr qreal verticalItemLeadingSpace () const
 Logical leading content space of an Expressive menu item.
 
constexpr qreal verticalItemTrailingSpace () const
 Logical trailing content space of an Expressive menu item.
 
constexpr qreal verticalItemBetweenSpace () const
 Space between content elements in an Expressive menu item.
 
constexpr qreal verticalIconSize () const
 Size of icons in an Expressive menu item.
 
constexpr qreal closedScale () const
 Scale at which an Expressive menu starts and ends its motion.
 
constexpr qreal horizontalViewportMargin () const
 Minimum horizontal distance from a menu to the viewport edge.
 
constexpr qreal verticalViewportMargin () const
 Minimum vertical distance from a menu to the viewport edge.
 

Properties

QML_ANONYMOUSqreal containerElevation
 
Fluid::ShapeValue containerShape
 
qreal topPadding
 
qreal bottomPadding
 
qreal viewportMargin
 
qreal minimumWidth
 
qreal maximumWidth
 
qreal itemHeight
 
qreal itemHorizontalPadding
 
qreal iconSize
 
qreal iconLabelGap
 
qreal hoverStateLayerOpacity
 
qreal focusStateLayerOpacity
 
qreal pressedStateLayerOpacity
 
qreal disabledContentOpacity
 
Fluid::ShapeValue verticalContainerShape
 
Fluid::ShapeValue verticalGroupShape
 
Fluid::ShapeValue verticalFirstGroupShape
 
Fluid::ShapeValue verticalMiddleGroupShape
 
Fluid::ShapeValue verticalLastGroupShape
 
Fluid::ShapeValue verticalOnlyGroupShape
 
Fluid::ShapeValue verticalItemShape
 
Fluid::ShapeValue verticalOnlyItemShape
 
Fluid::ShapeValue verticalFirstItemShape
 
Fluid::ShapeValue verticalMiddleItemShape
 
Fluid::ShapeValue verticalLastItemShape
 
Fluid::ShapeValue verticalSelectedItemShape
 
Fluid::ShapeValue verticalInactiveItemShape
 
qreal verticalItemHeight
 
qreal verticalGroupPadding
 
qreal verticalGroupContentPadding
 
qreal verticalSegmentedGap
 
qreal verticalDividerInset
 
qreal verticalSectionLabelHeight
 
qreal verticalSectionLabelLeadingSpace
 
qreal verticalSectionLabelTrailingSpace
 
qreal verticalItemTopPadding
 
qreal verticalItemBottomPadding
 
qreal verticalItemLeadingSpace
 
qreal verticalItemTrailingSpace
 
qreal verticalItemBetweenSpace
 
qreal verticalIconSize
 
qreal closedScale
 
qreal horizontalViewportMargin
 
qreal verticalViewportMargin
 

Detailed Description

Material Design 3 tokens for menus and menu items.

The values follow the Material 3 Expressive menu specification. They are exposed through Tokens.menu for use by the public QML Menu control.

Definition at line 25 of file menu.h.

Member Function Documentation

◆ bottomPadding()

constexpr qreal Fluid::Menu::bottomPadding ( ) const
inlineconstexpr

Space below the last menu item.

Definition at line 101 of file menu.h.

◆ closedScale()

constexpr qreal Fluid::Menu::closedScale ( ) const
inlineconstexpr

Scale at which an Expressive menu starts and ends its motion.

Definition at line 339 of file menu.h.

◆ containerElevation()

constexpr qreal Fluid::Menu::containerElevation ( ) const
inlineconstexpr

Elevation of the temporary menu surface.

Definition at line 83 of file menu.h.

◆ containerShape()

constexpr ShapeValue Fluid::Menu::containerShape ( ) const
inlineconstexpr

Corner radius of the menu surface.

Definition at line 89 of file menu.h.

◆ disabledContentOpacity()

constexpr qreal Fluid::Menu::disabledContentOpacity ( ) const
inlineconstexpr

Opacity of disabled menu-item content.

Definition at line 167 of file menu.h.

◆ focusStateLayerOpacity()

constexpr qreal Fluid::Menu::focusStateLayerOpacity ( ) const
inlineconstexpr

Opacity of the keyboard-focus state layer.

Definition at line 155 of file menu.h.

◆ horizontalViewportMargin()

constexpr qreal Fluid::Menu::horizontalViewportMargin ( ) const
inlineconstexpr

Minimum horizontal distance from a menu to the viewport edge.

Definition at line 345 of file menu.h.

◆ hoverStateLayerOpacity()

constexpr qreal Fluid::Menu::hoverStateLayerOpacity ( ) const
inlineconstexpr

Opacity of the hover state layer.

Definition at line 149 of file menu.h.

◆ iconLabelGap()

constexpr qreal Fluid::Menu::iconLabelGap ( ) const
inlineconstexpr

Space between adjacent menu-item content elements.

Definition at line 143 of file menu.h.

◆ iconSize()

constexpr qreal Fluid::Menu::iconSize ( ) const
inlineconstexpr

Size of leading, selection, and cascading-menu icons.

Definition at line 137 of file menu.h.

◆ itemHeight()

constexpr qreal Fluid::Menu::itemHeight ( ) const
inlineconstexpr

Height of a one-line menu item.

Definition at line 125 of file menu.h.

◆ itemHorizontalPadding()

constexpr qreal Fluid::Menu::itemHorizontalPadding ( ) const
inlineconstexpr

Logical leading and trailing padding of a menu item.

Definition at line 131 of file menu.h.

◆ maximumWidth()

constexpr qreal Fluid::Menu::maximumWidth ( ) const
inlineconstexpr

Preferred maximum menu width.

Definition at line 119 of file menu.h.

◆ minimumWidth()

constexpr qreal Fluid::Menu::minimumWidth ( ) const
inlineconstexpr

Preferred minimum menu width.

Definition at line 113 of file menu.h.

◆ pressedStateLayerOpacity()

constexpr qreal Fluid::Menu::pressedStateLayerOpacity ( ) const
inlineconstexpr

Opacity of the pressed state layer.

Definition at line 161 of file menu.h.

◆ topPadding()

constexpr qreal Fluid::Menu::topPadding ( ) const
inlineconstexpr

Space above the first menu item.

Definition at line 95 of file menu.h.

◆ verticalContainerShape()

constexpr ShapeValue Fluid::Menu::verticalContainerShape ( ) const
inlineconstexpr

Shape of an Expressive vertical menu surface.

Definition at line 173 of file menu.h.

◆ verticalDividerInset()

constexpr qreal Fluid::Menu::verticalDividerInset ( ) const
inlineconstexpr

Horizontal inset of a divider within an Expressive menu group.

Definition at line 279 of file menu.h.

◆ verticalFirstGroupShape()

constexpr ShapeValue Fluid::Menu::verticalFirstGroupShape ( ) const
inlineconstexpr

Shape of the first surface in a grouped Expressive vertical menu.

Definition at line 185 of file menu.h.

◆ verticalFirstItemShape()

constexpr ShapeValue Fluid::Menu::verticalFirstItemShape ( ) const
inlineconstexpr

Shape of the first item in a group.

Definition at line 223 of file menu.h.

◆ verticalGroupContentPadding()

constexpr qreal Fluid::Menu::verticalGroupContentPadding ( ) const
inlineconstexpr

Vertical content padding inside an Expressive menu group surface.

Definition at line 267 of file menu.h.

◆ verticalGroupPadding()

constexpr qreal Fluid::Menu::verticalGroupPadding ( ) const
inlineconstexpr

Padding between an Expressive menu surface and its item groups.

Definition at line 261 of file menu.h.

◆ verticalGroupShape()

constexpr ShapeValue Fluid::Menu::verticalGroupShape ( ) const
inlineconstexpr

Shape of a group within an Expressive vertical menu.

Definition at line 179 of file menu.h.

◆ verticalIconSize()

constexpr qreal Fluid::Menu::verticalIconSize ( ) const
inlineconstexpr

Size of icons in an Expressive menu item.

Definition at line 333 of file menu.h.

◆ verticalInactiveItemShape()

constexpr ShapeValue Fluid::Menu::verticalInactiveItemShape ( ) const
inlineconstexpr

Shape used for an inactive Expressive menu item group.

Definition at line 249 of file menu.h.

◆ verticalItemBetweenSpace()

constexpr qreal Fluid::Menu::verticalItemBetweenSpace ( ) const
inlineconstexpr

Space between content elements in an Expressive menu item.

Definition at line 327 of file menu.h.

◆ verticalItemBottomPadding()

constexpr qreal Fluid::Menu::verticalItemBottomPadding ( ) const
inlineconstexpr

Bottom content padding of an Expressive menu item.

Definition at line 309 of file menu.h.

◆ verticalItemHeight()

constexpr qreal Fluid::Menu::verticalItemHeight ( ) const
inlineconstexpr

Height of an Expressive vertical menu item.

Definition at line 255 of file menu.h.

◆ verticalItemLeadingSpace()

constexpr qreal Fluid::Menu::verticalItemLeadingSpace ( ) const
inlineconstexpr

Logical leading content space of an Expressive menu item.

Definition at line 315 of file menu.h.

◆ verticalItemShape()

constexpr ShapeValue Fluid::Menu::verticalItemShape ( ) const
inlineconstexpr

Base shape of an Expressive vertical menu item.

Definition at line 211 of file menu.h.

◆ verticalItemTopPadding()

constexpr qreal Fluid::Menu::verticalItemTopPadding ( ) const
inlineconstexpr

Top content padding of an Expressive menu item.

Definition at line 303 of file menu.h.

◆ verticalItemTrailingSpace()

constexpr qreal Fluid::Menu::verticalItemTrailingSpace ( ) const
inlineconstexpr

Logical trailing content space of an Expressive menu item.

Definition at line 321 of file menu.h.

◆ verticalLastGroupShape()

constexpr ShapeValue Fluid::Menu::verticalLastGroupShape ( ) const
inlineconstexpr

Shape of the last surface in a grouped Expressive vertical menu.

Definition at line 198 of file menu.h.

◆ verticalLastItemShape()

constexpr ShapeValue Fluid::Menu::verticalLastItemShape ( ) const
inlineconstexpr

Shape of the last item in a group.

Definition at line 236 of file menu.h.

◆ verticalMiddleGroupShape()

constexpr ShapeValue Fluid::Menu::verticalMiddleGroupShape ( ) const
inlineconstexpr

Shape of a middle surface in a grouped Expressive vertical menu.

Definition at line 192 of file menu.h.

◆ verticalMiddleItemShape()

constexpr ShapeValue Fluid::Menu::verticalMiddleItemShape ( ) const
inlineconstexpr

Shape of a middle item in a group.

Definition at line 230 of file menu.h.

◆ verticalOnlyGroupShape()

constexpr ShapeValue Fluid::Menu::verticalOnlyGroupShape ( ) const
inlineconstexpr

Shape of the only surface in an Expressive vertical menu.

Definition at line 205 of file menu.h.

◆ verticalOnlyItemShape()

constexpr ShapeValue Fluid::Menu::verticalOnlyItemShape ( ) const
inlineconstexpr

Shape of an item that is the only member of a group.

Definition at line 217 of file menu.h.

◆ verticalSectionLabelHeight()

constexpr qreal Fluid::Menu::verticalSectionLabelHeight ( ) const
inlineconstexpr

Minimum height of an Expressive menu section label.

Definition at line 285 of file menu.h.

◆ verticalSectionLabelLeadingSpace()

constexpr qreal Fluid::Menu::verticalSectionLabelLeadingSpace ( ) const
inlineconstexpr

Logical leading padding of an Expressive menu section label.

Definition at line 291 of file menu.h.

◆ verticalSectionLabelTrailingSpace()

constexpr qreal Fluid::Menu::verticalSectionLabelTrailingSpace ( ) const
inlineconstexpr

Logical trailing padding of an Expressive menu section label.

Definition at line 297 of file menu.h.

◆ verticalSegmentedGap()

constexpr qreal Fluid::Menu::verticalSegmentedGap ( ) const
inlineconstexpr

Gap between adjacent surfaces in an Expressive grouped menu.

Definition at line 273 of file menu.h.

◆ verticalSelectedItemShape()

constexpr ShapeValue Fluid::Menu::verticalSelectedItemShape ( ) const
inlineconstexpr

Shape of a selected Expressive menu item.

Definition at line 243 of file menu.h.

◆ verticalViewportMargin()

constexpr qreal Fluid::Menu::verticalViewportMargin ( ) const
inlineconstexpr

Minimum vertical distance from a menu to the viewport edge.

Definition at line 351 of file menu.h.

◆ viewportMargin()

constexpr qreal Fluid::Menu::viewportMargin ( ) const
inlineconstexpr

Minimum distance maintained between a menu and a viewport edge.

Definition at line 107 of file menu.h.

Property Documentation

◆ bottomPadding

qreal Fluid::Menu::bottomPadding
read

Definition at line 33 of file menu.h.

◆ closedScale

qreal Fluid::Menu::closedScale
read

Definition at line 77 of file menu.h.

◆ containerElevation

QML_ANONYMOUSqreal Fluid::Menu::containerElevation
read

Definition at line 30 of file menu.h.

◆ containerShape

Fluid::ShapeValue Fluid::Menu::containerShape
read

Definition at line 31 of file menu.h.

◆ disabledContentOpacity

qreal Fluid::Menu::disabledContentOpacity
read

Definition at line 44 of file menu.h.

◆ focusStateLayerOpacity

qreal Fluid::Menu::focusStateLayerOpacity
read

Definition at line 42 of file menu.h.

◆ horizontalViewportMargin

qreal Fluid::Menu::horizontalViewportMargin
read

Definition at line 78 of file menu.h.

◆ hoverStateLayerOpacity

qreal Fluid::Menu::hoverStateLayerOpacity
read

Definition at line 41 of file menu.h.

◆ iconLabelGap

qreal Fluid::Menu::iconLabelGap
read

Definition at line 40 of file menu.h.

◆ iconSize

qreal Fluid::Menu::iconSize
read

Definition at line 39 of file menu.h.

◆ itemHeight

qreal Fluid::Menu::itemHeight
read

Definition at line 37 of file menu.h.

◆ itemHorizontalPadding

qreal Fluid::Menu::itemHorizontalPadding
read

Definition at line 38 of file menu.h.

◆ maximumWidth

qreal Fluid::Menu::maximumWidth
read

Definition at line 36 of file menu.h.

◆ minimumWidth

qreal Fluid::Menu::minimumWidth
read

Definition at line 35 of file menu.h.

◆ pressedStateLayerOpacity

qreal Fluid::Menu::pressedStateLayerOpacity
read

Definition at line 43 of file menu.h.

◆ topPadding

qreal Fluid::Menu::topPadding
read

Definition at line 32 of file menu.h.

◆ verticalContainerShape

Fluid::ShapeValue Fluid::Menu::verticalContainerShape
read

Definition at line 45 of file menu.h.

◆ verticalDividerInset

qreal Fluid::Menu::verticalDividerInset
read

Definition at line 65 of file menu.h.

◆ verticalFirstGroupShape

Fluid::ShapeValue Fluid::Menu::verticalFirstGroupShape
read

Definition at line 47 of file menu.h.

◆ verticalFirstItemShape

Fluid::ShapeValue Fluid::Menu::verticalFirstItemShape
read

Definition at line 53 of file menu.h.

◆ verticalGroupContentPadding

qreal Fluid::Menu::verticalGroupContentPadding
read

Definition at line 63 of file menu.h.

◆ verticalGroupPadding

qreal Fluid::Menu::verticalGroupPadding
read

Definition at line 62 of file menu.h.

◆ verticalGroupShape

Fluid::ShapeValue Fluid::Menu::verticalGroupShape
read

Definition at line 46 of file menu.h.

◆ verticalIconSize

qreal Fluid::Menu::verticalIconSize
read

Definition at line 76 of file menu.h.

◆ verticalInactiveItemShape

Fluid::ShapeValue Fluid::Menu::verticalInactiveItemShape
read

Definition at line 59 of file menu.h.

◆ verticalItemBetweenSpace

qreal Fluid::Menu::verticalItemBetweenSpace
read

Definition at line 75 of file menu.h.

◆ verticalItemBottomPadding

qreal Fluid::Menu::verticalItemBottomPadding
read

Definition at line 72 of file menu.h.

◆ verticalItemHeight

qreal Fluid::Menu::verticalItemHeight
read

Definition at line 61 of file menu.h.

◆ verticalItemLeadingSpace

qreal Fluid::Menu::verticalItemLeadingSpace
read

Definition at line 73 of file menu.h.

◆ verticalItemShape

Fluid::ShapeValue Fluid::Menu::verticalItemShape
read

Definition at line 51 of file menu.h.

◆ verticalItemTopPadding

qreal Fluid::Menu::verticalItemTopPadding
read

Definition at line 71 of file menu.h.

◆ verticalItemTrailingSpace

qreal Fluid::Menu::verticalItemTrailingSpace
read

Definition at line 74 of file menu.h.

◆ verticalLastGroupShape

Fluid::ShapeValue Fluid::Menu::verticalLastGroupShape
read

Definition at line 49 of file menu.h.

◆ verticalLastItemShape

Fluid::ShapeValue Fluid::Menu::verticalLastItemShape
read

Definition at line 56 of file menu.h.

◆ verticalMiddleGroupShape

Fluid::ShapeValue Fluid::Menu::verticalMiddleGroupShape
read

Definition at line 48 of file menu.h.

◆ verticalMiddleItemShape

Fluid::ShapeValue Fluid::Menu::verticalMiddleItemShape
read

Definition at line 54 of file menu.h.

◆ verticalOnlyGroupShape

Fluid::ShapeValue Fluid::Menu::verticalOnlyGroupShape
read

Definition at line 50 of file menu.h.

◆ verticalOnlyItemShape

Fluid::ShapeValue Fluid::Menu::verticalOnlyItemShape
read

Definition at line 52 of file menu.h.

◆ verticalSectionLabelHeight

qreal Fluid::Menu::verticalSectionLabelHeight
read

Definition at line 66 of file menu.h.

◆ verticalSectionLabelLeadingSpace

qreal Fluid::Menu::verticalSectionLabelLeadingSpace
read

Definition at line 67 of file menu.h.

◆ verticalSectionLabelTrailingSpace

qreal Fluid::Menu::verticalSectionLabelTrailingSpace
read

Definition at line 69 of file menu.h.

◆ verticalSegmentedGap

qreal Fluid::Menu::verticalSegmentedGap
read

Definition at line 64 of file menu.h.

◆ verticalSelectedItemShape

Fluid::ShapeValue Fluid::Menu::verticalSelectedItemShape
read

Definition at line 57 of file menu.h.

◆ verticalViewportMargin

qreal Fluid::Menu::verticalViewportMargin
read

Definition at line 79 of file menu.h.

◆ viewportMargin

qreal Fluid::Menu::viewportMargin
read

Definition at line 34 of file menu.h.


The documentation for this struct was generated from the following file: