File tree Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Expand file tree Collapse file tree 2 files changed +1
-17
lines changed Original file line number Diff line number Diff line change @@ -140,18 +140,6 @@ proc centerInRect*(s: Size, r: Rect): Point =
140140    result .x =  r.origin.x +  (r.width -  s.width) /  2 
141141    result .y =  r.origin.y +  (r.height -  s.height) /  2 
142142
143- proc  left * (r: Rect ): Coord  = 
144-     result  =  r.origin.x
145- 
146- proc  right * (r: Rect ): Coord  = 
147-     result  =  r.origin.x +  r.size.width
148- 
149- proc  top * (r: Rect ): Coord  = 
150-     result  =  r.origin.y
151- 
152- proc  bottom * (r: Rect ): Coord  = 
153-     result  =  r.origin.y +  r.size.height
154- 
155143proc  intersect * (r: Rect , c: Rect ): bool  = 
156-     if  r.left  <  c.right  and  c.left  <  r.right  and  r.top  <  c.bottom  and  c.top  <  r.bottom :
144+     if  r.minX  <  c.maxX  and  c.minX  <  r.maxX  and  r.minY  <  c.maxY  and  c.minY  <  r.maxY :
157145        result  =  true 
Original file line number Diff line number Diff line change @@ -254,7 +254,3 @@ proc isDescendantOf*(subView, superview: View): bool =
254254        if  vi ==  superview:
255255            return  true 
256256        vi =  vi.superview
257- 
258- method  translate * (v: View , p : Point ) {.base .} = 
259-     v.frame.origin.x +=  p.x
260-     v.frame.origin.y +=  p.y
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments