Skip to content

Commit

Permalink
Added point_count property to RectangleShape
Browse files Browse the repository at this point in the history
  • Loading branch information
intjelic committed Sep 4, 2013
1 parent e49f7a0 commit a4df416
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/sfml/graphics.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1589,6 +1589,9 @@ cdef class RectangleShape(Shape):
def __set__(self, size):
self.p_this.setSize(to_vector2f(size))

property point_count:
def __get__(self):
return self.p_this.getPointCount()

cdef class Vertex:
cdef sf.Vertex *p_this
Expand Down

0 comments on commit a4df416

Please sign in to comment.