1 #ifndef __DW_TOOLS_HH__
2 #define __DW_TOOLS_HH__
4 #ifndef __INCLUDED_FROM_DW_CORE_HH__
5 # error Do not include this file directly, use "core.hh" instead.
9 #include "../lout/debug.hh"
31 for (
int i = 0; i <
numPos; i++) {
47 void fill (
int numPos,
Widget **references,
int *x,
int *y);
56 inline int *
getX () {
return x; }
57 inline int *
getY () {
return y; }
59 inline int getX (
int i) {
return x[i]; }
60 inline int getY (
int i) {
return y[i]; }
66 #endif // __DW_TOOLS_HH__
int * y
Definition: tools.hh:23
#define DBG_OBJ_ARRSET_PTR(var, ind, val)
Definition: debug_rtfl.hh:440
bool isEquivalent(SizeParams *other)
Definition: tools.cc:162
~SizeParams()
Definition: tools.cc:31
int * x
Definition: tools.hh:23
int * getY()
Definition: tools.hh:57
void cleanup()
Definition: tools.cc:53
#define DBG_OBJ_SET_NUM(var, val)
Definition: debug_rtfl.hh:420
#define DBG_IF_RTFL
Definition: debug.hh:73
Hold arguments passed to dw::core::Widget::sizeRequest and dw::core::Widget::getExtremes, as described in Size requisitions depending on positions.
Definition: tools.hh:18
Widget ** references
Definition: tools.hh:22
void forChild(Widget *parent, Widget *child, int xRel, int yRel, SizeParams *childParams)
Definition: tools.cc:88
int numPos
Definition: tools.hh:21
bool findReference(Widget *reference, int *x, int *y)
Definition: tools.cc:128
int getY(int i)
Definition: tools.hh:60
Widget ** getReferences()
Definition: tools.hh:55
void fill(int numPos, Widget **references, int *x, int *y)
Definition: tools.cc:65
int getNumPos()
Definition: tools.hh:54
Dw is in this namespace, or sub namespaces of this one.
Definition: alignedtablecell.cc:28
int * getX()
Definition: tools.hh:56
SizeParams & operator=(const SizeParams &other)
Definition: tools.cc:37
SizeParams()
Definition: tools.cc:8
void init()
Definition: tools.cc:46
Widget * getReference(int i)
Definition: tools.hh:58
#define DBG_OBJ_ARRSET_NUM(var, ind, val)
Definition: debug_rtfl.hh:432
void debugPrint()
Definition: tools.hh:28
int getX(int i)
Definition: tools.hh:59