Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
All Data Structures Namespaces Files Functions Variables
GUICompButton Class Reference
Inheritance diagram for GUICompButton:
GUIButton GUIStaticImage GUIElement

Public Member Functions

def __init__
 
def draw
 
- Public Member Functions inherited from GUIButton
def __init__
 
def onMouseUp
 
def onMouseDown
 
def onMouseEnter
 
def onMouseLeave
 
def onMouseMove
 
def onClick
 
def draw
 
def setNeutralState
 
def undraw
 
def hide
 
def show
 
def redraw
 
def setCaption
 
def setState
 
def getState
 
def hasState
 
def isEnabled
 
def enable
 
def disable
 
def setEnable
 
def getGroup
 
def setGroup
 
def onMessage
 
- Public Member Functions inherited from GUIStaticImage
def __init__
 
def spriteIsValid
 
def draw
 
def undraw
 
def redraw
 
def setSprite
 
- Public Member Functions inherited from GUIElement
def __init__
 
def __str__
 
def __repr__
 
def show
 
def hide
 
def notifyNeedRedraw
 
def draw
 
def undraw
 
def redraw
 
def onMessage
 
def onClick
 
def onShow
 
def onHide
 
def onDraw
 
def onUndraw
 
def onRedraw
 
def focus
 
def setModal
 
def isInteractive
 

Data Fields

 compmodes
 
 linkstate
 
 visible
 
- Data Fields inherited from GUIButton
 sprites
 
 hotspot
 
 linkdesc
 
 linkstate
 
 state
 
 group
 
 enabled
 
 clickHandler
 
 textOverlay
 
 textcolor
 
 textbgcolor
 
 textfontsize
 
 pythonstr
 
 visible
 
- Data Fields inherited from GUIStaticImage
 sprite
 
 index
 
 spritestate
 
 redrawPreservesZ
 
 visible
 
- Data Fields inherited from GUIElement
 room
 
 owner
 
 visible
 
 redrawPreservesZ
 
 id
 

Detailed Description

Definition at line 1327 of file GUI.py.

Constructor & Destructor Documentation

def __init__ (   self,
  room,
  modes,
  parg,
  kwarg 
)

Definition at line 1328 of file GUI.py.

1329  def __init__(self,room,modes,*parg,**kwarg):
1330  self.compmodes = modes
1331 
1332  """ Init base class """
1333  GUIButton.__init__(self,room,*parg,**kwarg)

Member Function Documentation

def draw (   self)
Creates the button 

Definition at line 1334 of file GUI.py.

1335  def draw(self):
1336  """ Creates the button """
1337  if (self.linkstate==0) and (self.visible==1) and self.enabled:
1338  # getHotRect returns the BOTTOM-left x,y needed by Base.Python
1339  (x,y,w,h) = self.hotspot.getHotRect()
1340  # possible bug: not set to frontmost.
1341  Base.CompPython(self.room.getIndex(),self.index,self.pythonstr,x,y,w,h,self.linkdesc,self.compmodes)
1342  Base.SetLinkEventMask(self.room.getIndex(),self.index,'cduel')
1343  self.linkstate=1
1344  self.setState(self.state)
1345  GUIStaticImage.draw(self)
1346  if self.textOverlay.visible:
1347  self.textOverlay.draw()
1348 
1349 """----------------------------------------------------------------"""
1350 """ """
1351 """ GUIRoomButton - a button you can click on that takes you """
1352 """ to another room """
1353 """ """
1354 """----------------------------------------------------------------"""

Field Documentation

compmodes

Definition at line 1329 of file GUI.py.

linkstate

Definition at line 1336 of file GUI.py.

visible

Definition at line 1336 of file GUI.py.


The documentation for this class was generated from the following file: