siege.graphic.ui

GuiManager

class GuiManager
createView( name, area, >[, fullscreen=False]])
Parameters:
  • name (str) –
  • area (PixelRect) –
  • > (eight=0) –
  • fullscreen (bool) –
Return type:

View

destroyView(name)
Parameters:name (str) –
focusView(name)
Parameters:name (str) –
focusView(view)
Parameters:view (View) –
getFocused()
Return type:View
getScale()
Return type:float
getView( name, area, >[, fullscreen=False]])
Parameters:
  • name (str) –
  • area (PixelRect) –
  • > (eight=0) –
  • fullscreen (bool) –
Return type:

View

handleResize(width, height)
Parameters:
  • width (int) –
  • height (int) –
hasView(name)
Parameters:name (str) –
Return type:bool
hideAll()
isMousedOver()
Return type:bool
setScale(zoom, scale)
Parameters:
  • zoom (float) –
  • scale (float) –
unfocusView(view)
Parameters:view (View) –
isReady
onUiZoom

ToolbarUiHelper

class ToolbarUiHelper
__init__(arg2, arg3)
Parameters:
update()

View

class View
clearCallbacks()
createImageData(renderSystem, name, width, height)
Parameters:
  • renderSystem (RenderSystem) –
  • name (str) –
  • width (int) –
  • height (int) –
Return type:

bool

execute(script)
Parameters:script (str) –
execute(commands)
Parameters:commands (list) –
getPosition()
Return type:Vector
getSize()
Return type:PixelVector
handleEvent(arg2)
Parameters:arg2 (sfEvent) –
Return type:bool
hasFocus()
Return type:bool
hasInputFocus()
Return type:bool
hide()
isModal()
Return type:bool
isVisible()
Return type:bool
load(path)
Parameters:path (object) –
register(methodName, callback)
Parameters:
  • methodName (str) –
  • callback (object) –
reload(ignoreCache)
Parameters:ignoreCache (bool) –
renderLoopedToImageData(name, render, position, loopWidth[, finalize=True])
Parameters:
  • name (str) –
  • render (RenderComponent) –
  • position (Vector) –
  • loopWidth (int) –
  • finalize (bool) –
renderToImageData(name, render[, finalize=True])
Parameters:
resize(width, height)
Parameters:
  • width (int) –
  • height (int) –
setModal(isModal)
Parameters:isModal (bool) –
setPosition(position)
Parameters:position (Vector) –
show()
toggleVisibility()
waitForRefresh()
consumeMouseWheel
debugging
isLoaded
isReady
name
onHide
onReady
onRender
onShow