aboutsummaryrefslogtreecommitdiffstats
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
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.
-rw-r--r--bindings/cpp/include/pugl/pugl.hpp3
-rw-r--r--include/pugl/pugl.h17
2 files changed, 0 insertions, 20 deletions
diff --git a/bindings/cpp/include/pugl/pugl.hpp b/bindings/cpp/include/pugl/pugl.hpp
index 81a7c1f..eba2583 100644
--- a/bindings/cpp/include/pugl/pugl.hpp
+++ b/bindings/cpp/include/pugl/pugl.hpp
@@ -78,9 +78,6 @@ using Point = PuglPoint;
/// @copydoc PuglArea
using Area = PuglArea;
-/// @copydoc PuglRect
-using Rect = PuglRect;
-
/// @copydoc PuglStringHint
enum class StringHint {
className = 1, ///< @copydoc PUGL_CLASS_NAME
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 {
/**