mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
74 lines
913 B
Python
74 lines
913 B
Python
#api
|
|
from PikaObj import *
|
|
|
|
|
|
class BackGround(TinyObj):
|
|
def init():
|
|
pass
|
|
|
|
def setColor(color: str):
|
|
pass
|
|
|
|
def getColor() -> str:
|
|
pass
|
|
|
|
def update():
|
|
pass
|
|
|
|
|
|
class ElementList(BaseObj):
|
|
def update():
|
|
pass
|
|
|
|
|
|
class Element(TinyObj):
|
|
def init():
|
|
pass
|
|
|
|
def move(x: int, y: int):
|
|
pass
|
|
|
|
def right(x: int):
|
|
pass
|
|
|
|
def lift(x: int):
|
|
pass
|
|
|
|
def up(y: int):
|
|
pass
|
|
|
|
def down(y: int):
|
|
pass
|
|
|
|
def update():
|
|
pass
|
|
|
|
def setAlpha(alpha: int):
|
|
pass
|
|
|
|
|
|
class Box(Element):
|
|
# override
|
|
def update():
|
|
pass
|
|
|
|
def init():
|
|
pass
|
|
|
|
def setColor(color: str):
|
|
pass
|
|
|
|
def setSize(x: int, y: int):
|
|
pass
|
|
|
|
|
|
class Window(BaseObj):
|
|
background = BackGround()
|
|
elems = ElementList()
|
|
|
|
def init():
|
|
pass
|
|
|
|
def update():
|
|
pass
|