mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
add ARM2d.pyi
Signed-off-by: 李昂 <liang6516@outlook.com>
This commit is contained in:
parent
7d2f0825db
commit
9c0a549e27
61
package/Arm2D/Arm2D.pyi
Normal file
61
package/Arm2D/Arm2D.pyi
Normal file
@ -0,0 +1,61 @@
|
||||
# origin APIs
|
||||
class Tile:
|
||||
def __init__(self): ...
|
||||
def get_root(self, validRegion: Region, offset: Location) -> Tile: ...
|
||||
def generate_child(self, reg: Region, clipRegion: int) -> Tile: ...
|
||||
def width_compare(self, reference: Region) -> int: ...
|
||||
def height_compare(self, reference: Region) -> int: ...
|
||||
def shape_compare(self, reference: Region) -> int: ...
|
||||
def region_diff(self, tile: Tile) -> Region: ...
|
||||
|
||||
|
||||
def is_point_inside_region(region: Region, location: Location) -> int: ...
|
||||
def get_absolute_location(tile: Tile) -> Location: ...
|
||||
def is_root_tile(tile: Tile) -> int: ...
|
||||
|
||||
|
||||
class Region:
|
||||
def __init__(self): ...
|
||||
def intersect(self, in2: Region) -> Region: ...
|
||||
|
||||
|
||||
class Location:
|
||||
def __init__(self): ...
|
||||
|
||||
# high level APIs
|
||||
|
||||
class BackGround:
|
||||
def __init__(self): ...
|
||||
def setColor(self, color: str): ...
|
||||
def getColor(self) -> str: ...
|
||||
def update(self): ...
|
||||
|
||||
|
||||
class ElementList:
|
||||
def update(self): ...
|
||||
|
||||
|
||||
class Element:
|
||||
def __init__(self): ...
|
||||
def move(self, x: int, y: int): ...
|
||||
def right(self, x: int): ...
|
||||
def lift(self, x: int): ...
|
||||
def up(self, y: int): ...
|
||||
def down(self, y: int): ...
|
||||
def update(self): ...
|
||||
def setAlpha(self, alpha: int): ...
|
||||
|
||||
|
||||
class Box(Element):
|
||||
# override
|
||||
def update(self): ...
|
||||
def __init__(self): ...
|
||||
def setColor(self, color: str): ...
|
||||
def setSize(self, x: int, y: int): ...
|
||||
|
||||
|
||||
class Window:
|
||||
background = BackGround()
|
||||
elems = ElementList()
|
||||
def __init__(self): ...
|
||||
def update(self): ...
|
Loading…
x
Reference in New Issue
Block a user