Fluent-Qt

API 参考

WindowBackdropMaterial

绘制确定性且最终不透明的 Fluent 窗口材质回退效果。

fluent::windowing::WindowBackdropMaterialOptions

Fluent 窗口应用侧绘制背景所使用的参数。

方法

字段

qreal devicePixelRatio = 0.0

缓存颗粒纹理使用的设备像素比;小于等于零时从绘制目标自动解析。

fluent::windowing::WindowBackdropMaterial

方法

static void paint(QPainter& painter, const QRectF& rect, const WindowBackdropMaterialOptions& options)

在 rect 内绘制所选的 Normal、Mica 或 Acrylic 回退材质。

static QColor opaqueBaseColor(const WindowBackdropMaterialOptions& options)

返回所选材质保证不透明的基础颜色。