MGUI::CTRL_TREE::ITEMINFO Class Reference

Container for individual item information. More...

#include <mgui/tree.h>

List of all members.

Public Member Functions

CHILDPRESENCE GetChildPresence () const
ITEMHND GetHandle () const
int GetHeightMult () const
ID GetID () const
int GetImageNormal () const
int GetImagePrimary () const
int GetImageSelected () const
int GetImageState () const
ITEMSTATUS GetStatus () const
ITEMSTYLE GetStyle () const
const MISTRINGGetText () const
ITEMVALUES GetValidValues () const
 ITEMINFO (const MISTRING &text, ID id=0)
 ITEMINFO ()
void Set (const ITEMINFO &iteminfo)
void SetBold (bool bold=true)
void SetChildPresence (CHILDPRESENCE ChildPresence)
void SetHeightMult (int HeightMult)
void SetID (ID id)
void SetImageNormal (int IdxNormal)
void SetImageSelected (int IdxSelected)
void SetImageState (unsigned int IdxState)
void SetRetainImages ()
void SetRetainText ()
void SetStatus (ITEMSTATUS status)
void SetStyle (ITEMSTYLE style)
void SetText (const MISTRING &text)
 ~ITEMINFO ()


Detailed Description

Container for individual item information.

Used for efficient setting an retrieval of various item information.

Definition at line 134 of file tree.h.


Constructor & Destructor Documentation

MGUI::CTRL_TREE::ITEMINFO::ITEMINFO  ) 
 

Default constructor.

MGUI::CTRL_TREE::ITEMINFO::ITEMINFO const MISTRING text,
ID  id = 0
[explicit]
 

MGUI::CTRL_TREE::ITEMINFO::~ITEMINFO  ) 
 

Destructor.


Member Function Documentation

CHILDPRESENCE MGUI::CTRL_TREE::ITEMINFO::GetChildPresence  )  const [inline]
 

Get child presence.

Definition at line 151 of file tree.h.

ITEMHND MGUI::CTRL_TREE::ITEMINFO::GetHandle  )  const [inline]
 

Get item handle.

Definition at line 155 of file tree.h.

int MGUI::CTRL_TREE::ITEMINFO::GetHeightMult  )  const [inline]
 

Get height multiplier.

Definition at line 159 of file tree.h.

ID MGUI::CTRL_TREE::ITEMINFO::GetID  )  const [inline]
 

Get ID for attaching external information to item.

Definition at line 163 of file tree.h.

int MGUI::CTRL_TREE::ITEMINFO::GetImageNormal  )  const [inline]
 

Get index for 'normal' image.

Definition at line 167 of file tree.h.

int MGUI::CTRL_TREE::ITEMINFO::GetImagePrimary  )  const [inline]
 

Get primary image index based on current status.

Returns:
Index in primary image list or -1 if none

Definition at line 172 of file tree.h.

int MGUI::CTRL_TREE::ITEMINFO::GetImageSelected  )  const [inline]
 

Get index for 'selected' image.

Definition at line 176 of file tree.h.

int MGUI::CTRL_TREE::ITEMINFO::GetImageState  )  const [inline]
 

Get 'state' image index.

Returns:
Index in 'state' image list (1-15) or 0 for none

Definition at line 181 of file tree.h.

ITEMSTATUS MGUI::CTRL_TREE::ITEMINFO::GetStatus  )  const [inline]
 

Get item status.

Definition at line 185 of file tree.h.

ITEMSTYLE MGUI::CTRL_TREE::ITEMINFO::GetStyle  )  const [inline]
 

Get item style.

Definition at line 189 of file tree.h.

const MISTRING& MGUI::CTRL_TREE::ITEMINFO::GetText  )  const [inline]
 

Get item text.

If item text retained by owner the returned string will be empty.

Definition at line 194 of file tree.h.

ITEMVALUES MGUI::CTRL_TREE::ITEMINFO::GetValidValues  )  const [inline]
 

Get enumeration of valid values.

Definition at line 198 of file tree.h.

void MGUI::CTRL_TREE::ITEMINFO::Set const ITEMINFO iteminfo  ) 
 

Set 'externally settable' members from ITEMINFO.

void MGUI::CTRL_TREE::ITEMINFO::SetBold bool  bold = true  ) 
 

Set item 'bold' status.

Parameters:
bold  true to make bold, false to not

void MGUI::CTRL_TREE::ITEMINFO::SetChildPresence CHILDPRESENCE  ChildPresence  )  [inline]
 

Set whether item 'might' have children.

This setting has no effect if item already has children.

Parameters:
ChildPresence  CHILDPRESENCE_No or CHILDPRESENCE_Ask

Definition at line 213 of file tree.h.

void MGUI::CTRL_TREE::ITEMINFO::SetHeightMult int  HeightMult  )  [inline]
 

Set height multiplier.

Actual item height will be base height * multiplier.

Parameters:
HeightMult  Height multiplier

Definition at line 219 of file tree.h.

void MGUI::CTRL_TREE::ITEMINFO::SetID ID  id  )  [inline]
 

Set ID for attaching external information to item.

Definition at line 224 of file tree.h.

void MGUI::CTRL_TREE::ITEMINFO::SetImageNormal int  IdxNormal  ) 
 

Set primary image index for 'normal' status.

Parameters:
IdxNormal  Index in primary image list for 'normal' status, -1 for none

void MGUI::CTRL_TREE::ITEMINFO::SetImageSelected int  IdxSelected  ) 
 

Set primary image index for 'selected' status.

Parameters:
IdxSelected  Index in primary image list for 'selected' status, -2 to use same as 'normal'

void MGUI::CTRL_TREE::ITEMINFO::SetImageState unsigned int  IdxState  )  [inline]
 

Set 'state' image index.

Parameters:
IdxState  Index in 'state' image list (1-15) or 0 for none

Definition at line 239 of file tree.h.

void MGUI::CTRL_TREE::ITEMINFO::SetRetainImages  ) 
 

Set to retain returned images so not requested again.

Used in v_OnGetItemInfo().

void MGUI::CTRL_TREE::ITEMINFO::SetRetainText  ) 
 

Set to retain returned text so not requested again.

Used in v_OnGetItemInfo().

void MGUI::CTRL_TREE::ITEMINFO::SetStatus ITEMSTATUS  status  )  [inline]
 

Set item status.

Definition at line 254 of file tree.h.

void MGUI::CTRL_TREE::ITEMINFO::SetStyle ITEMSTYLE  style  )  [inline]
 

Set item style for insertion.

Has no effect for existing items.

Definition at line 260 of file tree.h.

void MGUI::CTRL_TREE::ITEMINFO::SetText const MISTRING text  )  [inline]
 

Set item text.

Definition at line 265 of file tree.h.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:20:48 2004 for TNTsdk by  doxygen 1.3.8-20040913