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

VCF::ThemeBorder Class Reference

Draws a native theme compliant border around a component. More...

#include <vcf/ApplicationKit/ThemeBorder.h>

Inheritance diagram for VCF::ThemeBorder:

VCF::Border VCF::Component VCF::ObjectWithCallbacks VCF::Object List of all members.

Public Member Functions

 ThemeBorder ()
 ThemeBorder (Component *owner)
 ThemeBorder (Component *owner, UIElementType val)
virtual ~ThemeBorder ()
virtual void paint (Control *control, GraphicsContext *context)
 Paint the border on context.
virtual void paint (Rect *bounds, GraphicsContext *context)
 paints a border in the given bounds on the context
virtual Rect getClientRect (Rect *initialBounds, Control *control)
 Returns a client rect in which contained components may live.
void setElementType (UIElementType val)

Protected Attributes

UIElementType elementType_

Detailed Description

Draws a native theme compliant border around a component.

Version:
1.0
Author:
Jim Crafton


Constructor & Destructor Documentation

VCF::ThemeBorder::ThemeBorder  )  [inline]
 

VCF::ThemeBorder::ThemeBorder Component owner  )  [inline]
 

VCF::ThemeBorder::ThemeBorder Component owner,
UIElementType  val
[inline]
 

virtual VCF::ThemeBorder::~ThemeBorder  )  [inline, virtual]
 


Member Function Documentation

virtual Rect VCF::ThemeBorder::getClientRect Rect initialBounds,
Control control
[inline, virtual]
 

Returns a client rect in which contained components may live.

Thus if a particular implementation required a 3 pixel border at the edges to draw itself, then it would retrieve the component's border and then reduce it by 3 pixels. This new value is the available area that the component could use to place child components

Parameters:
Rect* - the initial bounds to calculate a new client rectangle from.
Control* - a control that may provide additional information
Returns:
Rect the new (possibly adjusted) client rectangle

Implements VCF::Border.

virtual void VCF::ThemeBorder::paint Rect bounds,
GraphicsContext context
[inline, virtual]
 

paints a border in the given bounds on the context

Parameters:
Rect the rectangle that makes up the outer most region of the border
GraphicsContext the context on which to paint the border

Implements VCF::Border.

virtual void VCF::ThemeBorder::paint Control control,
GraphicsContext context
[inline, virtual]
 

Paint the border on context.

Implements VCF::Border.

void VCF::ThemeBorder::setElementType UIElementType  val  )  [inline]
 


Member Data Documentation

UIElementType VCF::ThemeBorder::elementType_ [protected]
 


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