aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-02-08 16:49:49 -0500
committerDavid Robillard <d@drobilla.net>2025-02-08 18:02:30 -0500
commit45d36b04b8998af3e939b24d3e6a9cd7e504800b (patch)
treeed54a627c1715f6238515cf580347a2985bce0b3 /include
parent7c42a6a510e9b57c7956cbaafbeec68c9014a4da (diff)
downloadpugl-45d36b04b8998af3e939b24d3e6a9cd7e504800b.tar.gz
pugl-45d36b04b8998af3e939b24d3e6a9cd7e504800b.tar.bz2
pugl-45d36b04b8998af3e939b24d3e6a9cd7e504800b.zip
Remove PuglRect entirely
This is no longer used internally, and overall, I've found it to be more of a hassle than a convenience in client code. It's also arguably questionable to have a "flat" rectangle when point and area types exist (compare with NSRect, for example). Also towards fully separating position from size and discouraging the joining of them in general, towards Wayland and to discourage common plugin GUI bugs.
Diffstat (limited to 'include')
-rw-r--r--include/pugl/pugl.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/include/pugl/pugl.h b/include/pugl/pugl.h
index 9048709..5ba5a46 100644
--- a/include/pugl/pugl.h
+++ b/include/pugl/pugl.h
@@ -58,23 +58,6 @@ typedef struct {
PuglSpan height;
} PuglArea;
-/**
- A rectangle in a view or on the screen.
-
- This type is used to describe two things: the position and size of a view
- (for configuring), or a rectangle within a view (for exposing).
-
- The coordinate (0, 0) represents the top-left pixel of the parent window (or
- display if there isn't one), or the top-left pixel of the view,
- respectively.
-*/
-typedef struct {
- PuglCoord x;
- PuglCoord y;
- PuglSpan width;
- PuglSpan height;
-} PuglRect;
-
/// A string property for configuration
typedef enum {
/**