BlSpaceis responsible for displaying a scene in a separate window. Users can customise window's title or extent. To spawn a window send BlSpace>>#show
show "Open me in a window and show it to the user" "delegate showing work to the Universe" (BlParallelUniverse forHost: self host class) openSpace: selfto an instance of the space.
aSpace := BlSpace new addChild: GtCreateStandaloneAppHowToGuide new helloWorldScene; extent: 800@600; title: 'Hello World'. aSpace show
GtWorldopened by default. When creating a standalone app based on GT we should close that window, which can be done in two steps.
BlSpaceShutdownOnCloseListeneras an event handler to a
BlSpace. It should be removed before we close such spaces.
GtWorld allInstances do: [ :eachWorld | eachWorld removeShutdownListener ]
close "Delegate closing work to the Universe" (BlParallelUniverse forHost: self host class) closeSpace: selfto an intended space.
GtWorld allInstances do: [ :eachWorld | eachWorld close ]
Smalltalk snapshot: true andQuit: false