ItemTreePopupData Class Reference

#include <customgui_itemtree_utils.h>

Detailed Description

Stores temporary state for an item-tree popup editor.

The item-tree implementation fills this structure before opening a popup and uses the stored GUI, screen position, dimensions, column, and node GUID to associate the popup with its corresponding item-tree node.

Public Member Functions

 ItemTreePopupData ()
 
 ~ItemTreePopupData ()
 

Static Public Member Functions

static ItemTreePopupData * Alloc ()
 
static void Free (ItemTreePopupData *&p)
 

Public Attributes

iBaseCustomGui * dlg
 
Int32 col
 
Int32 xpos
 
Int32 ypos
 
Int32 height
 
UInt64 guid
 

Constructor & Destructor Documentation

◆ ItemTreePopupData()

Initializes empty popup-edit data.

◆ ~ItemTreePopupData()

Releases popup-edit data without owning the referenced GUI.

Member Function Documentation

◆ Alloc()

static ItemTreePopupData* Alloc ( )
static

Allocates popup data with the MAXON object allocator.

◆ Free()

static void Free ( ItemTreePopupData *&  p)
static

Deletes popup data allocated with Alloc() and clears the pointer.

Member Data Documentation

◆ dlg

iBaseCustomGui* dlg

GUI that owns the item tree associated with the popup.

◆ col

Int32 col

Column containing the node associated with the popup.

◆ xpos

Int32 xpos

◆ ypos

Int32 ypos

◆ height

Int32 height

Screen position and height of the popup editor.

◆ guid

UInt64 guid

GUID of the node associated with the popup.