#line 2614 "/home/travis/build/felix-lang/felix/src/packages/sdl.fdoc"
  
  
  open class SDL_rect_h
  {
    typedef struct
    {
      int x;
      int y;
    } SDL_Point;
  
    typedef struct SDL_Rect
    {
      int x; int y;
      int w; int h;
    } SDL_Rect;
  
    fun \(\in\) (p:SDL_Point, r:SDL_Rect) =>
      p.x >= r.x and p.x < r.x + r.w and p.y >= r.y and p.y < r.y + r.h
    ;
  
    fun inRect (x:int, y:int, r:SDL_Rect) => SDL_Point (x,y) in r;
  
    instance Str[SDL_Rect] {
      fun str (r:SDL_Rect)=>"Rect(x="+r.x.str+",y="+r.y.str+",h="+r.h.str+",w="+r.w.str+")";
    }
  }