CFBDGraphicRect¶
Module: Rectangle Operations
Represents a rectangle defined by top-left and bottom-right corner points. More...
#include <rectangle.h>
Detailed Description¶
Represents a rectangle defined by top-left and bottom-right corner points.
This structure defines a rectangular region using two diagonal corner points. The corners do not need to be in any particular order; the rect_normalize() function can be used to ensure consistent corner positioning.
The rectangle is defined by:
tl(top-left): One corner of the rectanglebr(bottom-right): The diagonal corner of the rectangle
Key properties:
- Corners can be specified in any order (will be normalized if needed)
- Supports all standard rectangle operations (area, width, height, intersection, etc.)
- Can be empty (zero width or height)
- Coordinates are clamped to valid range by device driver
Updated on 2026-02-03 at 13:21:55 +0000