예제 #1
0
파일: base.py 프로젝트: Soares/graveyard
	def resize(self, width, height):
		self.scale(iff(width, sub, self.position.width), iff(height, sub, self.position.height))
예제 #2
0
파일: base.py 프로젝트: Soares/graveyard
	def scale(self, dw, dh):
		self.resize(iff(dw, add, self.position.width), iff(dh, add, self.position.height))
예제 #3
0
파일: base.py 프로젝트: Soares/graveyard
	def move(self, x, y):
		self.shift(iff(x, sub, self.position.x), iff(y, sub, self.position.y))
예제 #4
0
파일: base.py 프로젝트: Soares/graveyard
	def shift(self, dx, dy):
		self.move(iff(dx, add, self.position.x), iff(dy, add, self.position.y))