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

VCF::ControlGraphicsContext Class Reference

the Graphics Context associated to a control. More...

#include <vcf/ApplicationKit/ControlGraphicsContext.h>

Inheritance diagram for VCF::ControlGraphicsContext:

VCF::GraphicsContext VCF::Object List of all members.

Public Member Functions

 ControlGraphicsContext (Control *control)
 Creates a context based on the component.
virtual ~ControlGraphicsContext ()
void init ()
ControlgetOwningControl ()
 returns the Control the Graphics context belongs to.
void setOwningControl (Control *owningComponent)

Detailed Description

the Graphics Context associated to a control.

The control owns this same Graphics Context as this Graphics context belongs to it.

See also:
GraphicsContext

Win32ControlContext, for an example of a how it is used.


Constructor & Destructor Documentation

VCF::ControlGraphicsContext::ControlGraphicsContext Control control  ) 
 

Creates a context based on the component.

The context is attached to the component for the duration of it's lifetime.

virtual VCF::ControlGraphicsContext::~ControlGraphicsContext  )  [virtual]
 


Member Function Documentation

Control* VCF::ControlGraphicsContext::getOwningControl  )  [inline]
 

returns the Control the Graphics context belongs to.

This is almost always a heavweight component. If the context was created from scratch (in other words, not as the result of a component being created), then it will return NULL as it is not associated to any control.

Returns:
Control* the component that owns this context or NULL for memory contexts.

void VCF::ControlGraphicsContext::init  ) 
 

Reimplemented from VCF::GraphicsContext.

void VCF::ControlGraphicsContext::setOwningControl Control owningComponent  ) 
 


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