API リファレンス
WindowBackdropMaterial
不透明な Normal、Mica、および Acrylic のウィンドウ背景グラデーション用ソフトウェアレンダラー。
一致する API メンバーはありません。
fluent::windowing::WindowBackdropMaterialOptions
ソフトウェア描画による Fluent ウィンドウ背景エフェクトのオプション。常に不透明なベースレイヤーを最初に描画します。
フィールド
qreal devicePixelRatio = 0.0キャッシュされたグレインタイルのデバイスピクセル比。0 以下の値ではペインターターゲットの DPR が使用されます。
メソッド
static WindowBackdropMaterialOptions forTheme(bool dark, const QColor& normalColor, const QColor& accentColor = QColor())組み込みの Mica および Acrylic トークンで初期化されたオプションを作成します。
fluent::windowing::WindowBackdropMaterial
メソッド
static void paint(QPainter& painter, const QRectF& rect, const WindowBackdropMaterialOptions& options)rect 内に Normal、Mica、または Acrylic の背景グラデーションを描画します。
static void paintNormal(QPainter& painter, const QRectF& rect, const WindowBackdropMaterialOptions& options)rect 内に不透明な Solid/Normal ウィンドウ背景を描画します。
static void paintMica(QPainter& painter, const QRectF& rect, const WindowBackdropMaterialOptions& options)柔らかな色場を備えたソフトウェア Mica 背景グラデーションを描画します。
static void paintAcrylic(QPainter& painter, const QRectF& rect, const WindowBackdropMaterialOptions& options)明度、ティント、グレインを備えたソフトウェア Acrylic 背景グラデーションを描画します。
static QColor opaqueBaseColor(const WindowBackdropMaterialOptions& options)選択された背景効果の不透明が保証されたベースカラーを返します(グラデーションとグレインは含みません)。