Panda3D
Public Member Functions | List of all members
TreeItem Class Reference
Inheritance diagram for TreeItem:
SceneGraphExplorerItem

Public Member Functions

def __init__ (self)
 
def GetIconName (self)
 
def GetLabelText (self)
 
def GetSelectedIconName (self)
 
def GetSubList (self)
 
def GetText (self)
 
def GetTextBg (self)
 
def GetTextFg (self)
 
def IsEditable (self)
 
def IsExpandable (self)
 
def OnDoubleClick (self)
 
def OnSelect (self)
 
def SetText (self, text)
 

Detailed Description

Abstract class representing tree items.

Methods should typically be overridden, otherwise a default action
is used.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)
Constructor.  Do whatever you need to do.

Member Function Documentation

◆ GetIconName()

def GetIconName (   self)
Return name of icon to be displayed normally.

Reimplemented in SceneGraphExplorerItem.

◆ GetLabelText()

def GetLabelText (   self)
Return label text string to display in front of text (if any).

◆ GetSelectedIconName()

def GetSelectedIconName (   self)
Return name of icon to be displayed when selected.

◆ GetSubList()

def GetSubList (   self)
Return list of items forming sublist.

Reimplemented in SceneGraphExplorerItem.

◆ GetText()

def GetText (   self)
Return text string to display.

Reimplemented in SceneGraphExplorerItem.

◆ GetTextBg()

def GetTextBg (   self)

◆ GetTextFg()

def GetTextFg (   self)

◆ IsEditable()

def IsEditable (   self)
Return whether the item's text may be edited.

Reimplemented in SceneGraphExplorerItem.

◆ IsExpandable()

def IsExpandable (   self)
Return whether there are subitems.

Reimplemented in SceneGraphExplorerItem.

◆ OnDoubleClick()

def OnDoubleClick (   self)
Called on a double-click on the item.

◆ OnSelect()

def OnSelect (   self)
Called when item selected.

Reimplemented in SceneGraphExplorerItem.

◆ SetText()

def SetText (   self,
  text 
)
Change the item's text (if it is editable).

Reimplemented in SceneGraphExplorerItem.