Panda3D
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
DirectScrolledList Class Reference
Inheritance diagram for DirectScrolledList:
DirectFrame DirectGuiWidget DirectGuiBase

Public Member Functions

def __init__
 
def addItem
 
def destroy
 
def getItemIndexForItemID
 
def getSelectedIndex
 
def getSelectedText
 
def makeAllItems
 
def recordMaxHeight
 
def refresh
 
def removeAllItems
 
def removeAndDestroyAllItems
 
def removeAndDestroyItem
 
def removeItem
 
def scrollBy
 
def scrollTo
 
def scrollToItemID
 
def selectListItem
 
def setDecButtonCallback
 
def setForceHeight
 
def setIncButtonCallback
 
def setNumItemsVisible
 
def setScrollSpeed
 
- Public Member Functions inherited from DirectFrame
def __init__
 
def destroy
 
def setGeom
 
def setImage
 
def setText
 
- Public Member Functions inherited from DirectGuiWidget
def __init__
 
def copyOptions
 
def destroy
 
def disableEdit
 
def editStart
 
def editStop
 
def enableEdit
 
def frameInitialiseFunc
 
def getBounds
 
def getCenter
 
def getFrameType
 
def getHeight
 
def getWidth
 
def guiDragTask
 
def guiScaleTask
 
def printConfig
 
def resetFrameSize
 
def setBorderUvWidth
 
def setBorderWidth
 
def setFrameColor
 
def setFrameSize
 
def setFrameTexture
 
def setFrameVisibleScale
 
def setProp
 
def setRelief
 
def setState
 
def taskName
 
def uniqueName
 
def updateFrameStyle
 
- Public Member Functions inherited from DirectGuiBase
def __init__
 
def __setitem__
 
def addoptions
 
def bind
 
def cget
 
def component
 
def components
 
def configure
 
def createcomponent
 
def defineoptions
 
def destroy
 
def destroycomponent
 
def hascomponent
 
def initialiseoptions
 
def isinitoption
 
def options
 
def postInitialiseFunc
 
def unbind
 

Public Attributes

 currentSelected
 
 decButton
 
 decButtonCallback
 
 forceHeight
 
 incButton
 
 incButtonCallback
 
 index
 
 itemFrame
 
 maxHeight
 
 nextItemID
 
 numItemsVisible
 
 scrollSpeed
 
- Public Attributes inherited from DirectGuiWidget
 bounds
 
 frameStyle
 
 guiId
 
 guiItem
 
 ll
 
 stateNodePath
 
 ur
 
- Public Attributes inherited from DirectGuiBase
 fInit
 
 guiId
 
 postInitialiseFuncList
 

Static Public Attributes

tuple notify = DirectNotifyGlobal.directNotify.newCategory("DirectScrolledList")
 
- Static Public Attributes inherited from DirectFrame
tuple DefDynGroups = ('text', 'geom', 'image')
 
- Static Public Attributes inherited from DirectGuiWidget
float gridSpacing = 0.05
 
dictionary guiDict = {}
 
tuple guiEdit = get_config_showbase()
 
 inactiveInitState = DGG.NORMAL
 
int snapToGrid = 0
 

Constructor & Destructor Documentation

def __init__ (   self,
  parent = None,
  kw 
)

Member Function Documentation

def addItem (   self,
  item,
  refresh = 1 
)
Add this string and extraArg to the list
def destroy (   self)
def getItemIndexForItemID (   self,
  itemID 
)
def getSelectedIndex (   self)
def getSelectedText (   self)
def makeAllItems (   self)
def recordMaxHeight (   self)
def refresh (   self)
Update the list - useful when adding or deleting items
or changing properties that would affect the scrolling
def removeAllItems (   self,
  refresh = 1 
)
Remove this item from the panel
Warning 2006_10_19 tested only in the trolley metagame
def removeAndDestroyAllItems (   self,
  refresh = 1 
)
Remove and destroy all items from the panel.
Warning 2006_10_19 tested only in the trolley metagame
def removeAndDestroyItem (   self,
  item,
  refresh = 1 
)
Remove and destroy this item from the panel.
def removeItem (   self,
  item,
  refresh = 1 
)
Remove this item from the panel
def scrollBy (   self,
  delta 
)
def scrollTo (   self,
  index,
  centered = 0 
)
scrolls list so selected index is at top, or centered in box
def scrollToItemID (   self,
  itemID,
  centered = 0 
)
def selectListItem (   self,
  item 
)
def setDecButtonCallback (   self)
def setForceHeight (   self)
def setIncButtonCallback (   self)
def setNumItemsVisible (   self)
def setScrollSpeed (   self)

Member Data Documentation

currentSelected
decButton
decButtonCallback
forceHeight
incButton
incButtonCallback
index
itemFrame
maxHeight
nextItemID
tuple notify = DirectNotifyGlobal.directNotify.newCategory("DirectScrolledList")
static
numItemsVisible
scrollSpeed