Squeak Class Documentation category index | class index  
 
BackgroundMorph
  category: Morphic-Widgets
  superclass: Morph
  subclasses:

This morph incorporates tiling and regular motion with the intent of supporting, eg, panning of endless (toroidal) backgrounds.

The idea is that embedded morphs get displayed at a moving offset relative to my position. Moreover this display is tiled according to the bounding box of the submorphs (subBounds), as much as necesary to fill the rest of my bounds.

instance methods
  as yet unclassified
  addCustomMenuItems:hand:
drawOn:
fullBounds
fullDrawOn:
initialize
layoutChanged
slideBy:
startRunning
step
stepTime
stopRunning
subBounds

class methods
  as yet unclassified
  test

instance methods
  as yet unclassified top  
 

addCustomMenuItems:hand:

Add morph-specific items to the given menu which was invoked by the given hand. This method provides is invoked both from the halo-menu and from the control-menu regimes.


 

drawOn:

The tiling is solely determined by bounds, subBounds and offset.
The extent of display is determined by bounds and the clipRect of the canvas.


 

fullBounds

Return the bounding box of the receiver and all its children. Recompute the layout if necessary.


 

fullDrawOn:

Draw the full Morphic structure on the given Canvas


 

initialize


 

layoutChanged

Do nothing, since I clip my submorphs


 

slideBy:


 

startRunning


 

step

Answer the desired time between steps in milliseconds.


 

stepTime

Answer the desired time between steps in milliseconds.


 

stopRunning


 

subBounds

calculate the submorph bounds


class methods
  as yet unclassified top  
 

test