class
CMiriTooltipGeometry
Size and placement of the tooltip card, the same numbers the painter and the popup-window host use.
- Module
- Miri
- Header
#include "Miri/Framework/CMiriPopupSystems.h"- Namespace
Miri
Properties
| Type | Name | Description |
|---|---|---|
static constexpr float | kCursorOffsetX | Default 12.0f. |
static constexpr float | kCursorOffsetY | Default 18.0f. |
static constexpr float | kAnchorGap | Default 4.0f. |
static constexpr float | kAnchorMaxHeight | Default 64.0f. |
Public functions
| Returns | Name | Description |
|---|---|---|
FMiriTooltipMeasure | Measure | |
MiriRect | Place | With a hovered-widget rect no taller than kAnchorMaxHeight the card goes just under that rect (flipping above it when the window has no room), at the pointer's x, so it never covers the row being read. |
Function details
Measure
C++
static FMiriTooltipMeasure Measure(const std::string& encodedText)Place
C++
static MiriRect Place(const MiriVec2& pointer, const MiriVec2& cardSize, float windowWidth, float windowHeight, const MiriRect* hovered = nullptr)With a hovered-widget rect no taller than kAnchorMaxHeight the card goes just under that rect (flipping above it when the window has no room), at the pointer's x, so it never covers the row being read. Without one, or for a tall widget, it sits below-right of the pointer and flips above it at the bottom. Either way it is clamped inside the window.
Generated from Miri/Framework/CMiriPopupSystems.h via miri.json · Dec 5, 2026Version 1.1.0