VCF::View Class Reference
A view represents a visual display or rendering of part or all of the data in a model. More...
#include <vcf/ApplicationKit/View.h>
Inheritance diagram for VCF::View:

Public Member Functions | |
| virtual | ~View () |
| virtual Model * | getViewModel ()=0 |
| virtual void | setViewModel (Model *viewModel)=0 |
| virtual Control * | getViewControl ()=0 |
| virtual void | setViewControl (Control *viewControl)=0 |
| virtual void | paintView (GraphicsContext *context)=0 |
| virtual void | updateView (Model *updatedModel)=0 |
| updates the view. | |
Detailed Description
A view represents a visual display or rendering of part or all of the data in a model.Each view has a single model that it is associated with. Each view has a single control that it is associated with. A control may have more than one view if it's main view is implemented in such a way that it allows ofr multiple views. Unlike a control which gets OS events like mouse input and keyboard input and may be a wrapper for some underlying native control (like a edit box, or a tree control), a view is strictly for rendering the model associated with it.
Constructor & Destructor Documentation
|
|
|
Member Function Documentation
|
|
Implemented in VCF::AbstractView. |
|
|
Implemented in VCF::AbstractView, and VCF::Control. |
|
|
Implemented in VCF::AbstractView. |
|
|
Implemented in VCF::AbstractView. |
|
|
Implemented in VCF::AbstractView, VCF::ComboBoxControl, and VCF::Control. |
|
|
updates the view. If the updatedModel is NULL, this signifies the model is detaching itself from the view, and the view should clean up it's display appropriately Implemented in VCF::AbstractView, and VCF::ToggledButton. |
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/View.h
