draw方法
draw(draw_object, x, y, width, height)
实现该接口,在渲染时获取DrawObject和Bound。
def draw(self, draw_object, x, y, width, height):
...
| 范围 | 类型 | 描述 |
|---|---|---|
| draw_object | DrawObject | 渲染时会初始化并返回DrawObject |
| x | float | DrawObject 左侧 |
| y | float | DrawObject 顶部 |
| width | float | 绘图对象的宽度 |
| height | float | 绘图对象的高度 |