summaryrefslogtreecommitdiff
path: root/dw/tools.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2016-01-01 14:54:31 +0100
committerSebastian Geerken <devnull@localhost>2016-01-01 14:54:31 +0100
commitbf6aeb8e54aac0b5aec39de544ec41f3a59daddf (patch)
treec07ab632acc86a71bed08fe3d29b088a33277e2b /dw/tools.hh
parent21b11e2ef463d13f5ce1002a5ba2575c2cac3606 (diff)
SRDOP: Consider references and positions in Widget::sizeRequest.
Diffstat (limited to 'dw/tools.hh')
-rw-r--r--dw/tools.hh10
1 files changed, 9 insertions, 1 deletions
diff --git a/dw/tools.hh b/dw/tools.hh
index 973881af..60435c5a 100644
--- a/dw/tools.hh
+++ b/dw/tools.hh
@@ -1,6 +1,10 @@
#ifndef __DW_TOOLS_HH__
#define __DW_TOOLS_HH__
+#ifndef __INCLUDED_FROM_DW_CORE_HH__
+# error Do not include this file directly, use "core.hh" instead.
+#endif
+
#include "core.hh"
#include "../lout/debug.hh"
@@ -34,13 +38,17 @@ private:
public:
SizeParams ();
+ SizeParams (int numPos, Widget **references, int *x, int *y);
+ SizeParams (SizeParams &other);
~SizeParams ();
void fill (int numPos, Widget **references, int *x, int *y);
void forChild (Widget *parent, Widget *child, int xRel, int yRel,
SizeParams *childParams);
bool findReference (Widget *reference, int *x, int *y);
-
+
+ bool isEquivalent (SizeParams *other);
+
inline int getNumPos () { return numPos; }
inline Widget **getReferences () { return references; }
inline int *getX () { return x; }