From 45d36b04b8998af3e939b24d3e6a9cd7e504800b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 8 Feb 2025 16:49:49 -0500 Subject: 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. --- include/pugl/pugl.h | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'include/pugl') 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 { /** -- cgit v1.2.1