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

VCF::TabSheet Class Reference

#include <TabbedPages.h>

Inheritance diagram for VCF::TabSheet:

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

Public Member Functions

 TabSheet ()
virtual void paint (GraphicsContext *ctx)
 Paints the control.
TabPagegetPage ()
void setPage (TabPage *val)
String getTitle ()
void setTitle (const String &val)

Protected Attributes

String title_
TabPagetabPage_

Constructor & Destructor Documentation

VCF::TabSheet::TabSheet  )  [inline]
 


Member Function Documentation

TabPage* VCF::TabSheet::getPage  )  [inline]
 

String VCF::TabSheet::getTitle  )  [inline]
 

virtual void VCF::TabSheet::paint GraphicsContext ctx  )  [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::Panel.

void VCF::TabSheet::setPage TabPage val  )  [inline]
 

void VCF::TabSheet::setTitle const String val  )  [inline]
 


Member Data Documentation

TabPage* VCF::TabSheet::tabPage_ [protected]
 

String VCF::TabSheet::title_ [protected]
 


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