Dillo
Public Member Functions | Private Member Functions | Private Attributes | List of all members
dw::core::SizeParams Class Reference

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 ()
 
SizeParamsoperator= (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)
 
int getNumPos ()
 
Widget ** getReferences ()
 
int * getX ()
 
int * getY ()
 
WidgetgetReference (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
 

Detailed Description

Hold arguments passed to dw::core::Widget::sizeRequest and dw::core::Widget::getExtremes, as described in Size requisitions depending on positions.

Constructor & Destructor Documentation

dw::core::SizeParams::SizeParams ( )
dw::core::SizeParams::SizeParams ( int  numPos,
Widget **  references,
int *  x,
int *  y 
)
dw::core::SizeParams::SizeParams ( const SizeParams other)
dw::core::SizeParams::~SizeParams ( )

References DBG_OBJ_DELETE.

Member Function Documentation

void dw::core::SizeParams::cleanup ( )
private

References lout::misc::init().

void dw::core::SizeParams::debugPrint ( )
inlineprivate
void dw::core::SizeParams::fill ( int  numPos,
Widget **  references,
int *  x,
int *  y 
)

References DBG_OBJ_ENTER, and DBG_OBJ_LEAVE.

bool dw::core::SizeParams::findReference ( Widget reference,
int *  x,
int *  y 
)

References DBG_OBJ_ENTER, and DBG_OBJ_LEAVE_VAL.

void dw::core::SizeParams::forChild ( Widget parent,
Widget child,
int  xRel,
int  yRel,
SizeParams childParams 
)
int dw::core::SizeParams::getNumPos ( )
inline

References numPos.

Widget* dw::core::SizeParams::getReference ( int  i)
inline
Widget** dw::core::SizeParams::getReferences ( )
inline

References references.

int* dw::core::SizeParams::getX ( )
inline

References x.

int dw::core::SizeParams::getX ( int  i)
inline
int* dw::core::SizeParams::getY ( )
inline

References y.

int dw::core::SizeParams::getY ( int  i)
inline
void dw::core::SizeParams::init ( )
private
bool dw::core::SizeParams::isEquivalent ( SizeParams other)

Compares two instances, but considers a change in the order of the reference widgets as equivalent.

References lout::misc::boolToStr(), DBG_OBJ_ENTER, DBG_OBJ_LEAVE_VAL, numPos, references, x, and y.

Referenced by dw::core::Widget::getExtremes(), and dw::core::Widget::sizeRequest().

SizeParams & dw::core::SizeParams::operator= ( const SizeParams other)

References lout::misc::init(), numPos, references, x, and y.

Member Data Documentation

int dw::core::SizeParams::numPos
private
Widget** dw::core::SizeParams::references
private
int* dw::core::SizeParams::x
private
int * dw::core::SizeParams::y
private

The documentation for this class was generated from the following files: