77 for (
int i = 0; i <
numPos; i++) {
92 parent, child, xRel, yRel, childParams);
100 childParams->
x =
new int[numChildReferences];
101 childParams->
y =
new int[numChildReferences];
103 for (
int i = 0; i < numChildReferences; i++) {
106 if (childReference == parent) {
108 childParams->
x[childParams->
numPos] = xRel;
109 childParams->
y[childParams->
numPos] = yRel;
113 for (
int j = 0; !found && j <
numPos; j++) {
117 childParams->
x[childParams->
numPos] =
x[j] + xRel;
118 childParams->
y[childParams->
numPos] =
y[j] + yRel;
132 DBG_OBJ_ENTER (
"resize", 0,
"findReference",
"%p", reference);
135 for (
int i = 0; i <
numPos && !found; i++) {
174 for (
int i = 0; result && i <
numPos; i++) {
175 bool otherFound =
false;
176 for (
int j = 0; !otherFound && j <
numPos; j++) {
178 "#%d = (%p, %d, %d) vs. #%d = (%p, %d, %d)",
180 other->
x[j], other->
y[j]);
184 if (!(
x[i] == other->
x[j] &&
y[i] == other->
y[j]))
Hold arguments passed to dw::core::Widget::sizeRequest and dw::core::Widget::getExtremes,...
bool isEquivalent(SizeParams *other)
Compares two instances, but considers a change in the order of the reference widgets as equivalent.
SizeParams & operator=(const SizeParams &other)
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)
#define DBG_OBJ_CREATE(klass)
#define DBG_OBJ_MSGF(aspect, prio, fmt,...)
#define DBG_OBJ_ENTER(aspect, prio, funname, fmt,...)
#define DBG_OBJ_LEAVE_VAL(fmt,...)
Dw is in this namespace, or sub namespaces of this one.
Miscellaneous stuff, which does not fit anywhere else.
const char * boolToStr(bool b)