Dillo v3.1.1-119-g140d9ebd
|
Hold arguments passed to dw::core::Widget::sizeRequest and dw::core::Widget::getExtremes, as described in Size requisitions depending on positions. More...
#include <tools.hh>
Public Member Functions | |
SizeParams () | |
SizeParams (int numPos, Widget **references, int *x, int *y) | |
SizeParams (const SizeParams &other) | |
~SizeParams () | |
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) |
bool | isEquivalent (SizeParams *other) |
Compares two instances, but considers a change in the order of the reference widgets as equivalent. | |
int | getNumPos () |
Widget ** | getReferences () |
int * | getX () |
int * | getY () |
Widget * | getReference (int i) |
int | getX (int i) |
int | getY (int i) |
Private Member Functions | |
void | init () |
void | cleanup () |
void | debugPrint () |
Private Attributes | |
int | numPos |
Widget ** | references |
int * | x |
int * | y |
Hold arguments passed to dw::core::Widget::sizeRequest and dw::core::Widget::getExtremes, as described in Size requisitions depending on positions.
dw::core::SizeParams::SizeParams | ( | ) |
Definition at line 8 of file tools.cc.
References DBG_OBJ_CREATE, debugPrint(), and init().
dw::core::SizeParams::SizeParams | ( | int | numPos, |
Widget ** | references, | ||
int * | x, | ||
int * | y | ||
) |
Definition at line 15 of file tools.cc.
References DBG_OBJ_CREATE, debugPrint(), fill(), init(), numPos, references, x, and y.
dw::core::SizeParams::SizeParams | ( | const SizeParams & | other | ) |
Definition at line 23 of file tools.cc.
References DBG_OBJ_CREATE, debugPrint(), fill(), init(), numPos, references, x, and y.
dw::core::SizeParams::~SizeParams | ( | ) |
Definition at line 31 of file tools.cc.
References cleanup(), and DBG_OBJ_DELETE.
|
private |
Definition at line 53 of file tools.cc.
References init(), references, x, and y.
Referenced by fill(), forChild(), operator=(), and ~SizeParams().
|
inlineprivate |
Definition at line 28 of file tools.hh.
References DBG_IF_RTFL, DBG_OBJ_ARRSET_NUM, DBG_OBJ_ARRSET_PTR, DBG_OBJ_SET_NUM, numPos, references, x, and y.
Referenced by fill(), forChild(), operator=(), SizeParams(), SizeParams(), and SizeParams().
void dw::core::SizeParams::fill | ( | int | numPos, |
Widget ** | references, | ||
int * | x, | ||
int * | y | ||
) |
Definition at line 65 of file tools.cc.
References cleanup(), DBG_OBJ_ENTER, DBG_OBJ_LEAVE, debugPrint(), numPos, references, x, and y.
Referenced by dw::Textblock::calcExtraSpaceImpl(), operator=(), SizeParams(), SizeParams(), and dw::Textblock::sizeRequestImpl().
bool dw::core::SizeParams::findReference | ( | Widget * | reference, |
int * | x, | ||
int * | y | ||
) |
Definition at line 130 of file tools.cc.
References DBG_OBJ_ENTER, DBG_OBJ_LEAVE_VAL, numPos, references, x, and y.
Referenced by dw::Textblock::findSizeRequestReference().
void dw::core::SizeParams::forChild | ( | Widget * | parent, |
Widget * | child, | ||
int | xRel, | ||
int | yRel, | ||
SizeParams * | childParams | ||
) |
Definition at line 88 of file tools.cc.
References cleanup(), DBG_OBJ_ENTER, DBG_OBJ_LEAVE, debugPrint(), numPos, dw::core::Widget::numSizeRequestReferences(), references, dw::core::Widget::sizeRequestReference(), x, and y.
Referenced by dw::Textblock::calcSizeOfWidgetInFlow().
|
inline |
Definition at line 54 of file tools.hh.
References numPos.
Referenced by dw::Textblock::calcSizeOfWidgetInFlow().
|
inline |
Definition at line 58 of file tools.hh.
References references.
|
inline |
Definition at line 55 of file tools.hh.
References references.
Referenced by dw::Textblock::calcSizeOfWidgetInFlow().
|
inline |
Definition at line 56 of file tools.hh.
References x.
Referenced by dw::Textblock::calcSizeOfWidgetInFlow().
|
inline |
|
inline |
Definition at line 57 of file tools.hh.
References y.
Referenced by dw::Textblock::calcSizeOfWidgetInFlow().
|
inline |
|
private |
Definition at line 46 of file tools.cc.
References numPos, references, x, and y.
Referenced by cleanup(), operator=(), SizeParams(), SizeParams(), and SizeParams().
bool dw::core::SizeParams::isEquivalent | ( | SizeParams * | other | ) |
Compares two instances, but considers a change in the order of the reference widgets as equivalent.
Definition at line 164 of file tools.cc.
References lout::misc::boolToStr(), DBG_OBJ_ENTER, DBG_OBJ_LEAVE_VAL, DBG_OBJ_MSGF, numPos, references, x, and y.
Referenced by dw::core::Widget::getExtremes(), and dw::core::Widget::sizeRequest().
SizeParams & dw::core::SizeParams::operator= | ( | const SizeParams & | other | ) |
Definition at line 37 of file tools.cc.
References cleanup(), debugPrint(), fill(), init(), numPos, references, x, and y.
|
private |
Definition at line 21 of file tools.hh.
Referenced by debugPrint(), fill(), findReference(), forChild(), getNumPos(), init(), isEquivalent(), operator=(), SizeParams(), and SizeParams().
|
private |
Definition at line 22 of file tools.hh.
Referenced by cleanup(), debugPrint(), fill(), findReference(), forChild(), getReference(), getReferences(), init(), isEquivalent(), operator=(), SizeParams(), and SizeParams().
|
private |
Definition at line 23 of file tools.hh.
Referenced by cleanup(), debugPrint(), fill(), findReference(), forChild(), getX(), getX(), init(), isEquivalent(), operator=(), SizeParams(), and SizeParams().
|
private |
Definition at line 23 of file tools.hh.
Referenced by cleanup(), debugPrint(), fill(), findReference(), forChild(), getY(), getY(), init(), isEquivalent(), operator=(), SizeParams(), and SizeParams().