OpenXLSX 1.9.1
Loading...
Searching...
No Matches
OpenXLSX::XLMergeCells::XLRect Struct Reference

Internal numerical bounds representation for constant-time coordinate tests. More...

#include <XLMergeCells.hpp>

Public Member Functions

bool contains (uint32_t row, uint16_t col) const noexcept
 Determine if a cell coordinate is within the merged region.
 
bool overlaps (const XLRect &other) const noexcept
 Detect spatial intersection between two regions to prevent overlapping merges, which are illegal in the OOXML schema.
 

Data Fields

uint32_t top
 
uint16_t left
 
uint32_t bottom
 
uint16_t right
 

Detailed Description

Internal numerical bounds representation for constant-time coordinate tests.

Member Function Documentation

◆ contains()

bool OpenXLSX::XLMergeCells::XLRect::contains ( uint32_t  row,
uint16_t  col 
) const
inlinenoexcept

Determine if a cell coordinate is within the merged region.

◆ overlaps()

bool OpenXLSX::XLMergeCells::XLRect::overlaps ( const XLRect other) const
inlinenoexcept

Detect spatial intersection between two regions to prevent overlapping merges, which are illegal in the OOXML schema.

Field Documentation

◆ bottom

uint32_t OpenXLSX::XLMergeCells::XLRect::bottom

◆ left

uint16_t OpenXLSX::XLMergeCells::XLRect::left

◆ right

uint16_t OpenXLSX::XLMergeCells::XLRect::right

◆ top

uint32_t OpenXLSX::XLMergeCells::XLRect::top

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