Fluent-Qt

API リファレンス

PaintCompat

このヘッダーで宣言されている公開の型、関数、定数です。

FluentRasterCachePainter

継承元 QPainter

明示的な画像/Pixmap キャッシュ用のペインター。古い Qt で 1.0 未満の DPR が無視される場合にスケーリングを補正します。

コンストラクタ

Qt 基底クラスドキュメント:QPainter

Global

メソッド

template <class Device> inline void fluentSetRenderTargetDevicePixelRatio(Device& device, qreal dpr)

明示的なレンダーターゲットの DPR を >= 1.0 の範囲で設定します(Qt 5.15/6.2 およびエフェクトフィルターで必須)。fluentApplyRenderTargetScale() と組み合わせて使用してください。

inline void fluentApplyRenderTargetScale(QPainter& painter, qreal dpr)

正規化されたレンダーターゲットの描画開始時に、1.0 未満の残余スケールを一度だけ適用します。

inline void fluentDrawPixmapAt(QPainter& painter, const QPointF& position, const QPixmap& pixmap)

1 未満の DPR を含め、ピックスマップを論理サイズで描画します。

inline void fluentDrawImageAt(QPainter& painter, const QPointF& position, const QImage& image)

1 未満の DPR を含め、画像を論理サイズで描画します。

inline qreal fluentPainterDevicePixelRatio(const QPainter& painter)

ペインターの現在のペイントデバイスにおける実効デバイスピクセル比です。

inline void fluentDrawPixmapInLogicalRect(QPainter& painter, const QRectF& logicalRect, const QPixmap& source)

ペインターデバイスの DPR で論理矩形の中央にピックスマップを描画します(HiDPI や小数倍スケーリングでの 1x サムネイルなどに適しています)。

inline void fluentDrawCoverPixmapInLogicalRect(QPainter& painter, const QRectF& logicalRect, const QPixmap& source)

ピックスマップを等比スケーリングし、中央トリミングで論理矩形全体を覆うように描画します。

型とエイリアス

using FluentColorComponent = float

QColor::getHsvF / getRgbF / getHslF の成分ポインター型(Qt 6 では float、Qt 5 では qreal)。