DisplayObject.st
changeset 1688 c1b54f4961e4
parent 1675 c481d1b55c93
child 1692 eb0522e1c05a
equal deleted inserted replaced
1687:1ad29040b257 1688:c1b54f4961e4
   140     "Created: 12.5.1996 / 20:20:09 / cg"
   140     "Created: 12.5.1996 / 20:20:09 / cg"
   141 ! !
   141 ! !
   142 
   142 
   143 !DisplayObject methodsFor:'accessing'!
   143 !DisplayObject methodsFor:'accessing'!
   144 
   144 
       
   145 bottom
       
   146     ^ self frame bottom
       
   147 !
       
   148 
   145 bounds
   149 bounds
   146     "ST80 component compatibility"
   150     "ST80 component compatibility"
   147 
   151 
   148     ^ self frame.
   152     ^ self frame.
   149 !
   153 !
   209 
   213 
   210 origin:origin corner:corner
   214 origin:origin corner:corner
   211     "object must calculate its dimension from outline"
   215     "object must calculate its dimension from outline"
   212 
   216 
   213     ^ self subclassResponsibility
   217     ^ self subclassResponsibility
       
   218 !
       
   219 
       
   220 right
       
   221     ^ self frame right
   214 !
   222 !
   215 
   223 
   216 width
   224 width
   217     "return the width of the frame"
   225     "return the width of the frame"
   218 
   226 
   376 
   384 
   377     self drawIn:aView offset:anOffset.
   385     self drawIn:aView offset:anOffset.
   378     self drawOutlineIn:aView offset:anOffset
   386     self drawOutlineIn:aView offset:anOffset
   379 ! !
   387 ! !
   380 
   388 
       
   389 !DisplayObject methodsFor:'dummy event handling'!
       
   390 
       
   391 buttonMotion:buttNr x:x y:y
       
   392 !
       
   393 
       
   394 buttonPress:buttNr x:x y:y
       
   395 !
       
   396 
       
   397 buttonRelease:buttNr x:x y:y
       
   398 !
       
   399 
       
   400 keyPress:key x:x y:y
       
   401 !
       
   402 
       
   403 keyRelease:key x:x y:y
       
   404 ! !
       
   405 
   381 !DisplayObject methodsFor:'initialization'!
   406 !DisplayObject methodsFor:'initialization'!
   382 
   407 
   383 computeBoundingBox
   408 computeBoundingBox
   384     "compute my boundingBox into the local variable 'frame'.
   409     "compute my boundingBox into the local variable 'frame'.
   385      The box should be computed for Display."
   410      The box should be computed for Display."
   526 ! !
   551 ! !
   527 
   552 
   528 !DisplayObject class methodsFor:'documentation'!
   553 !DisplayObject class methodsFor:'documentation'!
   529 
   554 
   530 version
   555 version
   531     ^ '$Header: /cvs/stx/stx/libview2/DisplayObject.st,v 1.27 2002-12-09 10:44:15 cg Exp $'
   556     ^ '$Header: /cvs/stx/stx/libview2/DisplayObject.st,v 1.28 2003-01-21 15:50:42 mb Exp $'
   532 ! !
   557 ! !