Vaca::BoxConstraint Class Reference

#include <BoxConstraint.h>

Inheritance diagram for Vaca::BoxConstraint:

Vaca::Constraint

List of all members.


Detailed Description

Defines a constraint for the BoxLayout.

With BoxLayout a Widget can be expansive or not. An expansive widget tries to ocuppy more space what Widget::getPreferredSize() returns (generally widgets like ListBox or Edit should be expansive).

If you don't setup an BoxConstraint for a widget controlled by a BoxLayout, the widget'll be known as non-expansive.

Public Member Functions

 BoxConstraint (bool expansive)
 BoxConstraint (const BoxConstraint &boxConstraint)
virtual ~BoxConstraint ()
bool isExpansive ()
void setExpansive (bool expansive)

Private Attributes

bool m_expansive


Constructor & Destructor Documentation

BoxConstraint::BoxConstraint ( bool  expansive  ) 

BoxConstraint::BoxConstraint ( const BoxConstraint boxConstraint  ) 

BoxConstraint::~BoxConstraint (  )  [virtual]


Member Function Documentation

bool BoxConstraint::isExpansive (  ) 

void BoxConstraint::setExpansive ( bool  expansive  ) 


Member Data Documentation