Fluent-Qt

API reference

OverlayPresentation

Public types, functions, and constants declared in this header.

fluent::overlay::presentation::MenuAnchor

Borrowed invocation anchor, available while a transformed menu is shown.

Fields

fluent::overlay::presentation

Methods

void setTransform(QWidget* root, const QTransform& transform)

Publish a root-local transform; nonfinite or singular values clear it.

void clearTransform(QWidget* root)

Restore the root's ordinary untransformed overlay coordinates.

bool hasTransform(const QWidget* widget)

Whether a widget uses a published transform or an embedded scene presentation.

QPoint mapToGlobal(const QWidget* widget, const QPoint& localPoint)

Map a local point to displayed global coordinates, or ordinary mapToGlobal.

MenuAnchor menuAnchor(const QMenu* menu)

Read the synchronous popupMenu invocation anchor, or an empty anchor.

void popupMenu(QMenu* menu, QWidget* source, const QPoint& localPoint, const QPoint& offset = QPoint())

Map before QMenu screen containment; the optional offset stays untransformed.