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

Material Design 3 tokens for plain and rich tooltips. More...

#include <tooltip.h>

Public Member Functions

constexpr qreal minimumWidth () const
 Minimum tooltip width.
 
constexpr qreal minimumHeight () const
 Minimum tooltip height.
 
constexpr qreal plainMaximumWidth () const
 Maximum plain-tooltip width.
 
constexpr qreal richMaximumWidth () const
 Maximum rich-tooltip width.
 
constexpr qreal anchorSpacing () const
 Space between the tooltip and its anchor.
 
constexpr qreal viewportMargin () const
 Minimum distance maintained between a tooltip and a viewport edge.
 
constexpr qreal plainHorizontalPadding () const
 Horizontal padding of a plain tooltip.
 
constexpr qreal plainVerticalPadding () const
 Vertical padding of a plain tooltip.
 
constexpr qreal richHorizontalPadding () const
 Horizontal padding of a rich tooltip.
 
constexpr qreal richHeadlineFirstBaseline () const
 Distance from the rich container top to the headline's first baseline.
 
constexpr qreal richBodyFirstBaseline () const
 Distance from the body slot top to its first baseline when rich content is present.
 
constexpr qreal richBodyBottomPadding () const
 Bottom padding below the rich body when a headline or actions are present.
 
constexpr qreal richActionMinimumHeight () const
 Minimum height reserved for the rich-tooltip action area.
 
constexpr qreal richActionBottomPadding () const
 Bottom padding below rich-tooltip actions.
 
constexpr ShapeValue plainContainerShape () const
 Shape of a plain tooltip container.
 
constexpr ShapeValue richContainerShape () const
 Shape of a rich tooltip container.
 
constexpr qreal richContainerElevation () const
 Shadow elevation of a rich tooltip container.
 
constexpr qreal closedScale () const
 Scale used at the closed endpoint of tooltip transitions.
 

Properties

QML_ANONYMOUSqreal minimumWidth
 
qreal minimumHeight
 
qreal plainMaximumWidth
 
qreal richMaximumWidth
 
qreal anchorSpacing
 
qreal viewportMargin
 
qreal plainHorizontalPadding
 
qreal plainVerticalPadding
 
qreal richHorizontalPadding
 
qreal richHeadlineFirstBaseline
 
qreal richBodyFirstBaseline
 
qreal richBodyBottomPadding
 
qreal richActionMinimumHeight
 
qreal richActionBottomPadding
 
Fluid::ShapeValue plainContainerShape
 
Fluid::ShapeValue richContainerShape
 
qreal richContainerElevation
 
qreal closedScale
 

Detailed Description

Material Design 3 tokens for plain and rich tooltips.

Generated component values and AndroidX tooltip layout metrics are exposed through Tokens.toolTip for the public PlainToolTip and RichToolTip controls.

For the component behavior represented by these values, see the Material Design 3 tooltip guidelines.

Definition at line 28 of file tooltip.h.

Member Function Documentation

◆ anchorSpacing()

constexpr qreal Fluid::ToolTip::anchorSpacing ( ) const
inlineconstexpr

Space between the tooltip and its anchor.

Definition at line 78 of file tooltip.h.

◆ closedScale()

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

Scale used at the closed endpoint of tooltip transitions.

Definition at line 156 of file tooltip.h.

◆ minimumHeight()

constexpr qreal Fluid::ToolTip::minimumHeight ( ) const
inlineconstexpr

Minimum tooltip height.

Definition at line 60 of file tooltip.h.

◆ minimumWidth()

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

Minimum tooltip width.

Definition at line 54 of file tooltip.h.

◆ plainContainerShape()

constexpr ShapeValue Fluid::ToolTip::plainContainerShape ( ) const
inlineconstexpr

Shape of a plain tooltip container.

Definition at line 138 of file tooltip.h.

◆ plainHorizontalPadding()

constexpr qreal Fluid::ToolTip::plainHorizontalPadding ( ) const
inlineconstexpr

Horizontal padding of a plain tooltip.

Definition at line 90 of file tooltip.h.

◆ plainMaximumWidth()

constexpr qreal Fluid::ToolTip::plainMaximumWidth ( ) const
inlineconstexpr

Maximum plain-tooltip width.

Definition at line 66 of file tooltip.h.

◆ plainVerticalPadding()

constexpr qreal Fluid::ToolTip::plainVerticalPadding ( ) const
inlineconstexpr

Vertical padding of a plain tooltip.

Definition at line 96 of file tooltip.h.

◆ richActionBottomPadding()

constexpr qreal Fluid::ToolTip::richActionBottomPadding ( ) const
inlineconstexpr

Bottom padding below rich-tooltip actions.

Definition at line 132 of file tooltip.h.

◆ richActionMinimumHeight()

constexpr qreal Fluid::ToolTip::richActionMinimumHeight ( ) const
inlineconstexpr

Minimum height reserved for the rich-tooltip action area.

Definition at line 126 of file tooltip.h.

◆ richBodyBottomPadding()

constexpr qreal Fluid::ToolTip::richBodyBottomPadding ( ) const
inlineconstexpr

Bottom padding below the rich body when a headline or actions are present.

Definition at line 120 of file tooltip.h.

◆ richBodyFirstBaseline()

constexpr qreal Fluid::ToolTip::richBodyFirstBaseline ( ) const
inlineconstexpr

Distance from the body slot top to its first baseline when rich content is present.

Definition at line 114 of file tooltip.h.

◆ richContainerElevation()

constexpr qreal Fluid::ToolTip::richContainerElevation ( ) const
inlineconstexpr

Shadow elevation of a rich tooltip container.

Definition at line 150 of file tooltip.h.

◆ richContainerShape()

constexpr ShapeValue Fluid::ToolTip::richContainerShape ( ) const
inlineconstexpr

Shape of a rich tooltip container.

Definition at line 144 of file tooltip.h.

◆ richHeadlineFirstBaseline()

constexpr qreal Fluid::ToolTip::richHeadlineFirstBaseline ( ) const
inlineconstexpr

Distance from the rich container top to the headline's first baseline.

Definition at line 108 of file tooltip.h.

◆ richHorizontalPadding()

constexpr qreal Fluid::ToolTip::richHorizontalPadding ( ) const
inlineconstexpr

Horizontal padding of a rich tooltip.

Definition at line 102 of file tooltip.h.

◆ richMaximumWidth()

constexpr qreal Fluid::ToolTip::richMaximumWidth ( ) const
inlineconstexpr

Maximum rich-tooltip width.

Definition at line 72 of file tooltip.h.

◆ viewportMargin()

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

Minimum distance maintained between a tooltip and a viewport edge.

Definition at line 84 of file tooltip.h.

Property Documentation

◆ anchorSpacing

qreal Fluid::ToolTip::anchorSpacing
read

Definition at line 37 of file tooltip.h.

◆ closedScale

qreal Fluid::ToolTip::closedScale
read

Definition at line 50 of file tooltip.h.

◆ minimumHeight

qreal Fluid::ToolTip::minimumHeight
read

Definition at line 34 of file tooltip.h.

◆ minimumWidth

QML_ANONYMOUSqreal Fluid::ToolTip::minimumWidth
read

Definition at line 33 of file tooltip.h.

◆ plainContainerShape

Fluid::ShapeValue Fluid::ToolTip::plainContainerShape
read

Definition at line 47 of file tooltip.h.

◆ plainHorizontalPadding

qreal Fluid::ToolTip::plainHorizontalPadding
read

Definition at line 39 of file tooltip.h.

◆ plainMaximumWidth

qreal Fluid::ToolTip::plainMaximumWidth
read

Definition at line 35 of file tooltip.h.

◆ plainVerticalPadding

qreal Fluid::ToolTip::plainVerticalPadding
read

Definition at line 40 of file tooltip.h.

◆ richActionBottomPadding

qreal Fluid::ToolTip::richActionBottomPadding
read

Definition at line 46 of file tooltip.h.

◆ richActionMinimumHeight

qreal Fluid::ToolTip::richActionMinimumHeight
read

Definition at line 45 of file tooltip.h.

◆ richBodyBottomPadding

qreal Fluid::ToolTip::richBodyBottomPadding
read

Definition at line 44 of file tooltip.h.

◆ richBodyFirstBaseline

qreal Fluid::ToolTip::richBodyFirstBaseline
read

Definition at line 43 of file tooltip.h.

◆ richContainerElevation

qreal Fluid::ToolTip::richContainerElevation
read

Definition at line 49 of file tooltip.h.

◆ richContainerShape

Fluid::ShapeValue Fluid::ToolTip::richContainerShape
read

Definition at line 48 of file tooltip.h.

◆ richHeadlineFirstBaseline

qreal Fluid::ToolTip::richHeadlineFirstBaseline
read

Definition at line 42 of file tooltip.h.

◆ richHorizontalPadding

qreal Fluid::ToolTip::richHorizontalPadding
read

Definition at line 41 of file tooltip.h.

◆ richMaximumWidth

qreal Fluid::ToolTip::richMaximumWidth
read

Definition at line 36 of file tooltip.h.

◆ viewportMargin

qreal Fluid::ToolTip::viewportMargin
read

Definition at line 38 of file tooltip.h.


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