Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::StandardContainer Class Reference

Basic implementation of a container handles basic alignment,layout of child components. More...

#include <vcf/ApplicationKit/Containers.h>

Inheritance diagram for VCF::StandardContainer:

VCF::AbstractContainer VCF::Container VCF::Component VCF::ObjectWithCallbacks VCF::Object VCF::ColumnLayoutContainer VCF::DesignTimeContainer VCF::HorizontalLayoutContainer VCF::StatusBar::Container List of all members.

Public Member Functions

 StandardContainer ()
 StandardContainer (Component *owner)
virtual void resizeChildren (Control *control)
 resizes all the children, according to their alignment types and anchor values.
double getBottomBorderHeight ()
void setBottomBorderHeight (const double &bottomBorderHeight)
double getTopBorderHeight ()
void setTopBorderHeight (const double &topBorderHeight)
double getRightBorderWidth ()
void setRightBorderWidth (const double &rightBorderWidth)
double getLeftBorderWidth ()
void setLeftBorderWidth (const double &leftBorderWidth)
void setBorderWidth (const double &borderWidth)
void calcAlignmentList (const AlignmentType &alignment, std::vector< Control * > &alignmentList)
ControlgetControlWithAlignment (const AlignmentType &alignment, const bool &first=true)
ControlgetControlInAlignmentList (const AlignmentType &alignment, const bool &first=true)
virtual bool generatePropertyValue (const String &fullPropertyName, Property *property, VariantData *value, String &strValue)

Protected Member Functions

bool insertBefore (Control *initialControl, const bool &controlJustAdded, Control *c1, Control *c2, const AlignmentType &alignment, Rect *bounds)
void doPosition (Control *component, const AlignmentType &alignment, Rect *rect)
void doAlign (Control *initialControl, const bool &controlJustAdded, const AlignmentType &alignment, Rect *rect)
bool alignWork ()
bool anchorWork ()
void doAnchors (Control *control, const bool &controlJustAdded, Rect *bounds)
void alignFixed (Control *initialControl, const bool &controlJustAdded, const AlignmentType &alignment, Rect *rect)

Protected Attributes

double bottomBorderHeight_
double topBorderHeight_
double rightBorderWidth_
double leftBorderWidth_

Detailed Description

Basic implementation of a container handles basic alignment,layout of child components.


Constructor & Destructor Documentation

VCF::StandardContainer::StandardContainer  ) 
 

VCF::StandardContainer::StandardContainer Component owner  ) 
 


Member Function Documentation

void VCF::StandardContainer::alignFixed Control initialControl,
const bool &  controlJustAdded,
const AlignmentType alignment,
Rect rect
[protected]
 

bool VCF::StandardContainer::alignWork  )  [protected]
 

bool VCF::StandardContainer::anchorWork  )  [protected]
 

void VCF::StandardContainer::calcAlignmentList const AlignmentType alignment,
std::vector< Control * > &  alignmentList
 

void VCF::StandardContainer::doAlign Control initialControl,
const bool &  controlJustAdded,
const AlignmentType alignment,
Rect rect
[protected]
 

void VCF::StandardContainer::doAnchors Control control,
const bool &  controlJustAdded,
Rect bounds
[protected]
 

void VCF::StandardContainer::doPosition Control component,
const AlignmentType alignment,
Rect rect
[protected]
 

virtual bool VCF::StandardContainer::generatePropertyValue const String fullPropertyName,
Property property,
VariantData value,
String strValue
[virtual]
 

Reimplemented from VCF::Component.

Reimplemented in VCF::HorizontalLayoutContainer.

double VCF::StandardContainer::getBottomBorderHeight  )  [inline]
 

Control* VCF::StandardContainer::getControlInAlignmentList const AlignmentType alignment,
const bool &  first = true
 

Control* VCF::StandardContainer::getControlWithAlignment const AlignmentType alignment,
const bool &  first = true
 

double VCF::StandardContainer::getLeftBorderWidth  )  [inline]
 

double VCF::StandardContainer::getRightBorderWidth  )  [inline]
 

double VCF::StandardContainer::getTopBorderHeight  )  [inline]
 

bool VCF::StandardContainer::insertBefore Control initialControl,
const bool &  controlJustAdded,
Control c1,
Control c2,
const AlignmentType alignment,
Rect bounds
[protected]
 

virtual void VCF::StandardContainer::resizeChildren Control control  )  [virtual]
 

resizes all the children, according to their alignment types and anchor values.

Usually called by the implementing container control when it is resized.

Parameters:
Control the child control that has changed and should be paid attention to. If the the parameter is NULL then the control that the container is attached to has changed.

Implements VCF::Container.

Reimplemented in VCF::ColumnLayoutContainer, VCF::DesignTimeContainer, VCF::HorizontalLayoutContainer, and VCF::StatusBar::Container.

void VCF::StandardContainer::setBorderWidth const double &  borderWidth  ) 
 

void VCF::StandardContainer::setBottomBorderHeight const double &  bottomBorderHeight  ) 
 

void VCF::StandardContainer::setLeftBorderWidth const double &  leftBorderWidth  ) 
 

void VCF::StandardContainer::setRightBorderWidth const double &  rightBorderWidth  ) 
 

void VCF::StandardContainer::setTopBorderHeight const double &  topBorderHeight  ) 
 


Member Data Documentation

double VCF::StandardContainer::bottomBorderHeight_ [protected]
 

double VCF::StandardContainer::leftBorderWidth_ [protected]
 

double VCF::StandardContainer::rightBorderWidth_ [protected]
 

double VCF::StandardContainer::topBorderHeight_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information