https://github.com/libsdl-org/Maelstrom/commit/5463a43977b690297a1a9e98d9e5c40c66446b49
From 5463a43977b690297a1a9e98d9e5c40c66446b49 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 21 Oct 2012 15:12:07 -0700
Subject: [PATCH] Added accessors to tell whether either the width or height is
being autosized
---
screenlib/UIArea.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/screenlib/UIArea.h b/screenlib/UIArea.h
index d3b119ae..bbe73c88 100644
--- a/screenlib/UIArea.h
+++ b/screenlib/UIArea.h
@@ -69,6 +69,12 @@ class UIArea : public ErrorBase
bool IsAutoSizing() const {
return m_autosizeWidth && m_autosizeHeight;
}
+ bool IsAutoSizingWidth() const {
+ return m_autosizeWidth;
+ }
+ bool IsAutoSizingHeight() const {
+ return m_autosizeHeight;
+ }
void SetAnchor(AnchorLocation from, AnchorLocation to, UIArea *anchor,
int offsetX = 0, int offsetY = 0);