MeshLib Documentation
Loading...
Searching...
No Matches
MR::UI::RectAllocator Class Reference

#include <MRUIRectAllocator.h>

+ Inheritance diagram for MR::UI::RectAllocator:

Classes

struct  FindFreeRectResult
 

Public Types

using FindPotentiallyOverlappingRects = std::function<void( Box2f target, std::function<void( const char* name, Box2f box )> overlaps )>
 

Public Member Functions

MRVIEWER_API RectAllocator ()
 
MRVIEWER_API FindFreeRectResult findFreeRect (Box2f preferredRect, Box2f preferredBounds, FindPotentiallyOverlappingRects findOverlaps, ImVec2 axisWeights=ImVec2(1, 1))
 

Static Public Member Functions

static bool rectRectOverlap (Box2f a, Box2f b)
 

Member Typedef Documentation

◆ FindPotentiallyOverlappingRects

using MR::UI::RectAllocator::FindPotentiallyOverlappingRects = std::function<void( Box2f target, std::function<void( const char* name, Box2f box )> overlaps )>

Constructor & Destructor Documentation

◆ RectAllocator()

MRVIEWER_API MR::UI::RectAllocator::RectAllocator ( )

Member Function Documentation

◆ findFreeRect()

MRVIEWER_API FindFreeRectResult MR::UI::RectAllocator::findFreeRect ( Box2f preferredRect,
Box2f preferredBounds,
FindPotentiallyOverlappingRects findOverlaps,
ImVec2 axisWeights = ImVec2(1, 1) )
nodiscard

◆ rectRectOverlap()

static bool MR::UI::RectAllocator::rectRectOverlap ( Box2f a,
Box2f b )
inlinestaticnodiscard

The documentation for this class was generated from the following file: