Fluent-Qt

API reference

Elevation

Public types, functions, and constants declared in this header.

Elevation::ShadowParams

Raw shadow metrics consumed by component paint code.

Fields

int offsetX

Horizontal offset in pixels.

int offsetY

Vertical offset in pixels.

int blurRadius

Blur radius in pixels.

int spreadRadius

Spread radius in pixels.

QColor color

Base shadow color before opacity is applied.

double opacity

Final opacity multiplier.

Elevation

Methods

inline const ShadowParams& getShadow(Level level, bool isDark = false)

Returns the shadow token for a semantic level and theme.

Enumerations

enum Level : int

Semantic elevation levels.

  • None = 0
  • Low = 1
  • Medium = 2
  • High = 3
  • VeryHigh = 4

Constants

const ShadowParams NoShadow = { 0, 0, 0, 0, QColor(0,0,0,0), 0.0 }

No elevation is shared by both themes and paints no visible shadow.

Elevation::Light

Constants

Elevation::Dark

Constants