Rectangle.st
changeset 20606 12764db7d3a4
parent 20308 9110f117d260
child 20727 fb8c5591428b
child 21269 a12e4696432c
equal deleted inserted replaced
20605:0976069c6263 20606:12764db7d3a4
   819 
   819 
   820     |l|
   820     |l|
   821 
   821 
   822     l := LayoutFrame new.
   822     l := LayoutFrame new.
   823     l
   823     l
   824 	leftFraction:(self left);
   824         leftFraction:(self left);
   825 	rightFraction:(self right);
   825         rightFraction:(self right);
   826 	topFraction:(self top);
   826         topFraction:(self top);
   827 	bottomFraction:(self bottom).
   827         bottomFraction:(self bottom).
   828     ^ l
   828     ^ l
   829 
   829 
   830     "
   830     "
   831      (0.5@0.5 corner:0.75@0.75) asFractionalLayout
   831      (0.5@0.5 corner:0.75@0.75) asFractionalLayout
   832      (0.5@0.5 corner:0.75@0.75) asOffsetLayout
   832      (0.5@0.5 corner:0.75@0.75) asOffsetLayout
   833      (0.5@0.5 corner:0.75@0.75) asLayout
   833      (0.5@0.5 corner:0.75@0.75) asLayout
       
   834      (0@0 corner:1@1) asLayout
       
   835      (0@0 corner:1@1) asFractionalLayout
       
   836      (0@0 corner:1@1) asOffsetLayout
   834     "
   837     "
   835 !
   838 !
   836 
   839 
   837 asLayout
   840 asLayout
   838     "return a layoutFrame in which offsets (top, left, bottom, right)
   841     "return a layoutFrame in which offsets (top, left, bottom, right)