class
CMiriHitTestGrid
A uniform grid over a window: each cell lists the entries whose rectangle touches it, in insertion (paint) order. A point query returns only the entries of its cell, so the caller runs the exact test on a handful of candidates instead of walking the tree. Entries are opaque ids; the caller keeps the meaning (a widget pointer, a slot index).
- Module
- Miri
- Header
#include "Miri/Core/CMiriHitTestGrid.h"- Namespace
Miri
Public functions
| Returns | Name | Description |
|---|---|---|
void | Reset | |
void | Insert | |
const std::vector<uint32_t>& | Query | |
bool | Contains | |
size_t | EntryCount | |
int32_t | Columns | |
int32_t | Rows |
Function details
Reset
C++
void Reset(const MiriVec2& size, float cellSize)Insert
C++
void Insert(uint32_t id, const MiriRect& rect)Query
C++
const std::vector<uint32_t>& Query(const MiriVec2& point) constContains
C++
bool Contains(const MiriVec2& point) constEntryCount
C++
size_t EntryCount() constColumns
C++
int32_t Columns() constRows
C++
int32_t Rows() constGenerated from Miri/Core/CMiriHitTestGrid.h via miri.json · Dec 5, 2026Version 1.1.0