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

VCF::ControlContainer Class Reference

A ControlContainer is a simple custom control that automatically creates a standard container as soon as it's created. More...

#include <vcf/ApplicationKit/ControlContainer.h>

Inheritance diagram for VCF::ControlContainer:

VCF::CustomControl VCF::DelegatedContainer< ControlContainer > VCF::Control VCF::Component VCF::AbstractView VCF::ObjectWithEvents VCF::View VCF::Object VCF::Panel VCF::StatusBar List of all members.

Public Member Functions

 ControlContainer (const bool &heavyWeight=true)
virtual ~ControlContainer ()
void init ()
 This is going to be removed from the bext release.
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)
double getBorderSize ()
void setBorderSize (const double &borderSize)
virtual void paint (GraphicsContext *context)
 Paints the control.

Detailed Description

A ControlContainer is a simple custom control that automatically creates a standard container as soon as it's created.

In addition it implements the DelegatedContainer class so you can access the more common container methods (like adding and removing child controls) more conviently.


Constructor & Destructor Documentation

VCF::ControlContainer::ControlContainer const bool &  heavyWeight = true  ) 
 

virtual VCF::ControlContainer::~ControlContainer  )  [virtual]
 


Member Function Documentation

double VCF::ControlContainer::getBorderSize  ) 
 

double VCF::ControlContainer::getBottomBorderHeight  ) 
 

double VCF::ControlContainer::getLeftBorderWidth  ) 
 

double VCF::ControlContainer::getRightBorderWidth  ) 
 

double VCF::ControlContainer::getTopBorderHeight  ) 
 

void VCF::ControlContainer::init  ) 
 

This is going to be removed from the bext release.

Deprecated:

Reimplemented from VCF::CustomControl.

Reimplemented in VCF::Panel.

virtual void VCF::ControlContainer::paint GraphicsContext context  )  [virtual]
 

Paints the control.

Called by the underlying windowing system whenever the control needs to be painted. Note that in some cases the GraphicsContext passed in to this method may not be the same pointer as the GraphicsContext that the control holds itself. During the paint() method you should only use the context value for all your drawing and not the one returned in getContext(). The value returned by getContext() should be used for drawing that takes place outside of the paint() method.

If the control allows paint notification, then the framework will fire an event to the BeforeControlPainted delegate prior to calling the control's paint() method. After the paint() method has returned, if the control allows paint notification, the framework will fire an event to the AfterControlPainted delegate. This allows outside observers to take part in the paint cycle, but beware that this does come at a bit of a cost, so use this feature sparingly.

Note: This should NEVER be called by programmers using the VCF, it will be called for you during the course of your applications native event loop, and is only here for providing custom drawing routines for controls. In other words: you implement it, you never call it yourself.

See also:
getAllowPaintNotification

Reimplemented from VCF::CustomControl.

Reimplemented in VCF::Panel.

void VCF::ControlContainer::setBorderSize const double &  borderSize  ) 
 

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

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

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

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


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