Fluent-Qt

API reference

WindowChromeCompat

Cross-platform adapter for window chrome behavior.

compatibility::WindowChromeOptions

Declarative options for platform window-chrome integration.

Fields

QRect titleBarRect

Local title-bar area that can behave as a draggable caption.

QVector<QRect> dragExclusionRects

Local child-control rectangles that must stay normal client areas.

int resizeBorderWidth = 8

Resize hit-test border width in device-independent pixels.

bool useCustomWindowChrome = false

Enables Fluent-managed title-bar/non-client integration.

bool preferNativeMacControls = true

Keeps native macOS traffic-light buttons when available.

bool chromeInteractive = true

Locks chrome move/resize when false, for modal overlays.

compatibility::WindowChromeCompat

Constructors

Methods

void configure(const WindowChromeOptions& options)

Replaces the current chrome options and synchronizes platform geometry.

void applyPlatformWindowFlags()

Applies platform window flags required by the current chrome policy.

bool systemBackdropSupported() const

Whether this platform supports a translucent system backdrop.

BackdropCapabilities backdropCapabilities() const

Returns per-effect platform capabilities for the current session.

bool applySystemBackdrop(BackdropEffect effect, bool dark, bool forceRecomposite = false)

Applies the requested system backdrop effect; returns success.

bool beginSystemMove(const QPoint& globalPos)

Starts a platform system-move operation.

bool beginSystemResize(Qt::Edges edges, const QPoint& globalPos)

Starts a platform system-resize operation for the given edges.

bool performTitleBarDoubleClick()

Performs the platform title-bar double-click action.

bool showSystemMenu(const QPoint& globalPos)

Shows the platform system menu at the given global position.

bool requestForegroundActivation()

Requests foreground activation through the platform window manager.

HitTest hitTestLocal(const QPoint& localPos) const

Classifies a local point against configured title/resize regions.

Enumerations

enum class Platform

Runtime platform family used for chrome policy decisions.

  • Windows
  • MacOS
  • Linux
  • Other
enum class HitTest

Logical hit-test result before mapping to native platform codes.

  • Client
  • Caption
  • Left
  • Right
  • Top
  • Bottom
  • TopLeft
  • TopRight
  • BottomLeft
  • BottomRight

compatibility

Types and aliases

using FluentNativeEventResult = qintptr

Native-event result type used by QWidget::nativeEvent() across Qt versions.