# Class cocos.tiles.RectCell

    rect.Rect --+
                |
         Cell --+
                |
               RectCell

A rectangular cell from a MapLayer.

Cell attributes:
  i, j -- index of this cell in the map x, y -- bottom-left pixel width, height -- dimensions properties -- arbitrary properties cell -- cell from the MapLayer's cells

The cell may have the standard properties "top", "left", "bottom" and "right" which are booleans indicating that those sides are impassable. These are used by RectCellCollider.

Note that all pixel attributes are not adjusted for screen, view or layer transformations.

## Methods

| __init__(self, i, j, width, height, properties, tile) Create a Rect with the bottom-left corner at (x, y) and dimensions (width, height).
| __contains__(self, key) (Inherited from cocos.tiles.Cell)
| __eq__(self, other) Compare the two rects. (Inherited from cocos.rect.Rect)
| __getitem__(self, key) (Inherited from cocos.tiles.Cell)
| __ne__(self, other) Compare the two rects. (Inherited from cocos.rect.Rect)
| __nonzero__(self) (Inherited from cocos.rect.Rect)
| __repr__(self) (Inherited from cocos.rect.Rect)
| __setitem__(self, key, value) (Inherited from cocos.tiles.Cell)
| clippedBy(self, other) Determine whether this rect is clipped by the other rect. (Inherited from cocos.rect.Rect)
| contains(self, x, y) Return boolean whether the point defined by x, y is inside the rect area. (Inherited from cocos.rect.Rect)
| copy(self) (Inherited from cocos.rect.Rect)
| get(self, key, default=None) (Inherited from cocos.tiles.Cell)
| get_bottom(self) (Inherited from cocos.rect.Rect)
| get_bottomleft(self) (Inherited from cocos.rect.Rect)
| get_bottomright(self) (Inherited from cocos.rect.Rect)
| get_center(self) (Inherited from cocos.rect.Rect)
| get_left(self) (Inherited from cocos.rect.Rect)
| get_midbottom(self) (Inherited from cocos.rect.Rect)
| get_midleft(self) (Inherited from cocos.rect.Rect)
| get_midright(self) (Inherited from cocos.rect.Rect)
| get_midtop(self) (Inherited from cocos.rect.Rect)
| get_origin(self) (Inherited from cocos.rect.Rect)
| get_right(self) (Inherited from cocos.rect.Rect)
| get_top(self) (Inherited from cocos.rect.Rect)
| get_topleft(self) (Inherited from cocos.rect.Rect)
| get_topright(self) (Inherited from cocos.rect.Rect)
| intersect(self, other) Find the intersection of two Rects. (Inherited from cocos.rect.Rect)
| intersects(self, other) Return boolean whether the "other" rect (an object with .x, .y, .width and .height attributes) overlaps this Rect in any way. (Inherited from cocos.rect.Rect)
| set_bottom(self, y) (Inherited from cocos.rect.Rect)
| set_bottomleft(self, position) (Inherited from cocos.rect.Rect)
| set_bottomright(self, position) (Inherited from cocos.rect.Rect)
| set_center(self, center) (Inherited from cocos.rect.Rect)
| set_height(self, value) (Inherited from cocos.rect.Rect)
| set_left(self, x) (Inherited from cocos.rect.Rect)
| set_midbottom(self, midbottom) (Inherited from cocos.rect.Rect)
| set_midleft(self, midleft) (Inherited from cocos.rect.Rect)
| set_midright(self, midright) (Inherited from cocos.rect.Rect)
| set_midtop(self, midtop) (Inherited from cocos.rect.Rect)
| set_origin(self, origin) (Inherited from cocos.rect.Rect)
| set_position(self, value) (Inherited from cocos.rect.Rect)
| set_right(self, x) (Inherited from cocos.rect.Rect)
| set_size(self, value) (Inherited from cocos.rect.Rect)
| set_top(self, y) (Inherited from cocos.rect.Rect)
| set_topleft(self, position) (Inherited from cocos.rect.Rect)
| set_topright(self, position) (Inherited from cocos.rect.Rect)
| set_width(self, value) (Inherited from cocos.rect.Rect)
| set_x(self, value) (Inherited from cocos.rect.Rect)
| set_y(self, value) (Inherited from cocos.rect.Rect)

## Properties

| origin
| top
| bottom
| center
| midtop
| midbottom
| left
| right
| topleft
| topright
| bottomleft
| bottomright
| midleft
| midright
| height (Inherited from cocos.rect.Rect)
| position (Inherited from cocos.rect.Rect)
| size (Inherited from cocos.rect.Rect)
| width (Inherited from cocos.rect.Rect)
| x (Inherited from cocos.rect.Rect)
| y (Inherited from cocos.rect.Rect)

## Method Details

### __init__

(Constructor) __init__(self, i, j, width, height, properties, tile)
Create a Rect with the bottom-left corner at (x, y) and dimensions (width, height).

Overrides:
  rect.Rect.__init__

## Property Details

### origin

### top

### bottom

### center

### midtop

### midbottom

### left

### right

### topleft

### topright

### bottomleft

### bottomright

### midleft

### midright