Fluent-Qt

API 레퍼런스

PaintCompat

이 헤더에 선언된 공개 타입, 함수 및 상수입니다.

FluentRasterCachePainter

상속 대상 QPainter

이전 Qt 버전이 1.0 미만의 DPR을 무시할 때 보정하는 명시적 이미지/픽스맵 캐시용 페인터.

생성자

Qt 기본 클래스 문서: QPainter

Global

메서드

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

1.0 이상으로 제한되는 명시적 렌더 대상 DPR을 설정합니다 (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).