#include <guiTreeViewCtrl.h>
Enumerator |
---|
Selected |
|
Expanded |
|
Focus |
|
MouseOverBmp |
|
MouseOverText |
|
InspectorData |
Set if we're representing some inspector info (ie, use mInspectorInfo, not mScriptInfo)
|
VirtualParent |
This indicates that we should be rendered as a parent even though we don't have any children. This is useful for preventing scenarios where we might want to create thousands of Items that might never be shown (for instance if we're browsing the object hierarchy in Torque, which might have thousands of objects).
|
this stores the pixel width needed to render the item's data in the onRenderCell function to optimize for speed.
Find an inspector data item by it's SimObject pointer.
Find a regular data item by it's script value.
void getDisplayText |
( |
U32 |
bufLen, |
|
|
char * |
buf |
|
) |
| |
const U32 getDisplayTextLength |
( |
| ) |
|
const S32 getDisplayTextWidth |
( |
GFont * |
font | ) |
|
const S8 getExpandedImage |
( |
| ) |
const |
const S16 getID |
( |
| ) |
const |
|
inline |
const S8 getNormalImage |
( |
| ) |
const |
const bool isExpanded |
( |
| ) |
const |
Returns true if this item is expanded. For inspector objects, the expansion is stored on the SimObject, for other things we use our bit vector.
const bool isInspectorData |
( |
| ) |
const |
|
inline |
Returns true if an item is inspector data or false if it's just an item.
const bool isParent |
( |
| ) |
const |
Returns true if we should show the expand art and make the item interact with the mouse as if it were a parent.
void setExpanded |
( |
const bool |
f | ) |
|
Set whether an item is expanded or not (showing children or having them hidden)
void setExpandedImage |
( |
const S8 |
id | ) |
|
Set the image to display when an item IS expanded.
void setNormalImage |
( |
const S8 |
id | ) |
|
Set the image to display when an item is NOT expanded.
Assign a SimObject pointer to an inspector data item.
void setText |
( |
char * |
txt | ) |
|
Set the items displayable text (caption)
void setValue |
( |
const char * |
val | ) |
|
Set the items script value (data)
void setVirtualParent |
( |
bool |
value | ) |
|
Set the items virtual parent flag.
The documentation for this struct was generated from the following files:
- gui/guiTreeViewCtrl.h
- gui/guiTreeViewCtrl.cc