Panda3D
Public Member Functions | Public Attributes | List of all members
DirectScrolledFrame Class Reference
Inheritance diagram for DirectScrolledFrame:
DirectFrame DirectGuiWidget DirectGuiBase

Public Member Functions

def __init__ (self, parent=None, **kw)
 
def commandFunc (self)
 
def destroy (self)
 
def getCanvas (self)
 
def setAutoHideScrollBars (self)
 
def setCanvasSize (self)
 
def setManageScrollBars (self)
 
def setScrollBarWidth (self)
 
- Public Member Functions inherited from DirectFrame
def clearGeom (self)
 
def clearImage (self)
 
def clearText (self)
 
def setGeom (self, geom=None)
 
def setImage (self, image=None)
 
def setText (self, text=None)
 
- Public Member Functions inherited from DirectGuiWidget
def copyOptions (self, other)
 
def disableEdit (self)
 
def editStart (self, event)
 
def editStop (self, event)
 
def enableEdit (self)
 
def frameInitialiseFunc (self)
 
def getBounds (self, state=0)
 
def getCenter (self)
 
def getFrameType (self, state=0)
 
def getHeight (self)
 
def getWidth (self)
 
def guiDragTask (self, state)
 
def guiScaleTask (self, state)
 
def printConfig (self, indent=0)
 
def resetFrameSize (self)
 
def setBorderUvWidth (self)
 
def setBorderWidth (self)
 
def setFrameColor (self)
 
def setFrameSize (self, fClearFrame=0)
 
def setFrameTexture (self)
 
def setFrameVisibleScale (self)
 
def setProp (self, propString, value)
 
def setRelief (self, fSetStyle=1)
 
def setState (self)
 
def taskName (self, idString)
 
def uniqueName (self, idString)
 
def updateFrameStyle (self)
 
- Public Member Functions inherited from DirectGuiBase
def __init__ (self)
 
def __setitem__ (self, key, value)
 
def addoptions (self, optionDefs, optionkeywords)
 
def bind (self, event, command, extraArgs=[])
 
def cget (self, option)
 
def component (self, name)
 
def components (self)
 
def configure (self, option=None, **kw)
 
def createcomponent (self, componentName, componentAliases, componentGroup, widgetClass, *widgetArgs, **kw)
 
def defineoptions (self, keywords, optionDefs, dynamicGroups=())
 
def destroycomponent (self, name)
 
def hascomponent (self, component)
 
def initialiseoptions (self, myClass)
 
def isinitoption (self, option)
 
def options (self)
 
def postInitialiseFunc (self)
 
def unbind (self, event)
 

Public Attributes

 canvas
 
 horizontalScroll
 
 verticalScroll
 
- Public Attributes inherited from DirectGuiWidget
 bounds
 
 frameStyle
 
 guiId
 
 guiItem
 
 ll
 
 stateNodePath
 
 ur
 
- Public Attributes inherited from DirectGuiBase
 fInit
 
 guiId
 
 postInitialiseFuncList
 

Additional Inherited Members

- Static Public Attributes inherited from DirectFrame
tuple DefDynGroups = ('text', 'geom', 'image')
 
- Static Public Attributes inherited from DirectGuiWidget
float gridSpacing = 0.05
 
dictionary guiDict = {}
 
 guiEdit = ShowBaseGlobal.config.GetBool('direct-gui-edit', False)
 
 inactiveInitState = DGG.NORMAL
 
int snapToGrid = 0
 

Detailed Description

DirectScrolledFrame -- a special frame that uses DirectScrollBar to
implement a small window (the frameSize) into a potentially much
larger virtual canvas (the canvasSize, scrolledFrame.getCanvas()).

Unless specified otherwise, scroll bars are automatically created
and managed as needed, based on the relative sizes od the
frameSize and the canvasSize.  You can also set manageScrollBars =
0 and explicitly position and hide or show the scroll bars
yourself.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  parent = None,
**  kw 
)

Reimplemented from DirectFrame.

Member Function Documentation

◆ commandFunc()

def commandFunc (   self)

◆ destroy()

def destroy (   self)

Reimplemented from DirectFrame.

◆ getCanvas()

def getCanvas (   self)
Returns the NodePath of the virtual canvas.  Nodes parented to this
canvas will show inside the scrolled area.

◆ setAutoHideScrollBars()

def setAutoHideScrollBars (   self)

◆ setCanvasSize()

def setCanvasSize (   self)

◆ setManageScrollBars()

def setManageScrollBars (   self)

◆ setScrollBarWidth()

def setScrollBarWidth (   self)

Member Data Documentation

◆ canvas

canvas

◆ horizontalScroll

horizontalScroll

◆ verticalScroll

verticalScroll