VCF::DefaultColumnItem Class Reference
Class DefaultColumnItem documentation. More...
#include <vcf/ApplicationKit/DefaultColumnItem.h>
Inheritance diagram for VCF::DefaultColumnItem:

Public Member Functions | |
| DefaultColumnItem () | |
| virtual | ~DefaultColumnItem () |
| virtual bool | containsPoint (Point *pt) |
| This is called to determine if a given point is within the bounds of the item. | |
| virtual uint32 | getIndex () |
| Returns the index of the item within it's model. | |
| virtual void | setIndex (const uint32 &index) |
| virtual void * | getData () |
| Returns some application defined data. | |
| virtual void | setData (void *data) |
| Sets the application defined data. | |
| virtual String | getCaption () |
| returns the caption for the column item | |
| virtual void | setCaption (const String &caption) |
| sets the caption of the column. | |
| virtual double | getWidth () |
| returns the width of the coumn. | |
| virtual void | setWidth (const double &width) |
| sets the width of the column | |
| virtual void | setCaptionAlignment (const TextAlignmentType &alignment) |
| sets the alignment of the caption. | |
| virtual TextAlignmentType | getCaptionAlignment () |
| gets the current alignment type fopr the column. | |
| virtual void | paint (GraphicsContext *context, Rect *paintRect) |
| virtual bool | isSelected () |
| virtual void | setSelected (const bool &selected) |
| virtual int32 | getImageIndex () |
| virtual void | setImageIndex (const int32 &imageIndex) |
| virtual Rect * | getBounds () |
| returns the Bounds for the Item or NULL if not applicable. | |
| virtual bool | canPaint () |
| indicates whether the item can paint itself. | |
| virtual void | setBounds (Rect *bounds) |
| virtual int32 | getStateImageIndex () |
| not supported | |
| virtual void | setStateImageIndex (const int32 &index) |
| not supported | |
Protected Attributes | |
| String | caption_ |
| void * | data_ |
| uint32 | index_ |
| Rect | bounds_ |
| bool | selected_ |
| int32 | imageIndex_ |
| double | width_ |
| TextAlignmentType | textAlignment_ |
Detailed Description
Class DefaultColumnItem documentation.
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
indicates whether the item can paint itself. In general this is often false, but when true, the control that contains the item should call the item's paint() method whenever the item needs repainting. Implements VCF::Item. |
|
|
This is called to determine if a given point is within the bounds of the item. The bounds may be slightly different than what is returned by getBounds(). For example, an item may not support getBounds(), but may have a non-rectangular region and may implement containsPoint() accordingly. Implements VCF::Item. |
|
|
returns the Bounds for the Item or NULL if not applicable.
Implements VCF::Item. |
|
|
returns the caption for the column item
Implements VCF::ColumnItem. |
|
|
gets the current alignment type fopr the column.
Implements VCF::ColumnItem. |
|
|
Returns some application defined data. This can be anything you want, hence the void* storage. Implements VCF::Item. |
|
|
Implements VCF::Item. |
|
|
Returns the index of the item within it's model.
Implements VCF::Item. |
|
|
not supported
Implements VCF::Item. |
|
|
returns the width of the coumn. The width should always be greater than or equal to 0 Implements VCF::ColumnItem. |
|
|
Implements VCF::Item. |
|
||||||||||||
|
Implements VCF::Item. |
|
|
Implements VCF::Item. |
|
|
sets the caption of the column. If the text is wider than the current width of the column it will be truncated to fit and drawn with an ellipsis ("...")
Implements VCF::ColumnItem. |
|
|
sets the alignment of the caption. Setting the caption alignment determines how the caption is drawn and to which side the text is aligned. You can align it to the left, right, or center.
Implements VCF::ColumnItem. |
|
|
Sets the application defined data.
Implements VCF::Item. |
|
|
Implements VCF::Item. |
|
|
Implements VCF::Item. |
|
|
Implements VCF::Item. |
|
|
not supported
Implements VCF::Item. |
|
|
sets the width of the column
Implements VCF::ColumnItem. |
Member Data Documentation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The documentation for this class was generated from the following file:
- vcf/ApplicationKit/DefaultColumnItem.h
