| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- class BxArea:
- def Build(self):
- """构建区域数据"""
- pass
- def Length(self):
- """获取区域长度"""
- pass
- class BaseArea(BxArea):
- def __init__(self, typ, x, y, w, h):
- self.typ = typ
- self.x = x
- self.y = y
- self.w = w
- self.h = h
- def GetX(self):
- """获取X坐标"""
- return self.x
- def SetX(self, x):
- """设置X坐标"""
- self.x = x
- def GetY(self):
- """获取Y坐标"""
- return self.y
- def SetY(self, y):
- """设置Y坐标"""
- self.y = y
- def GetW(self):
- """获取宽度"""
- return self.w
- def SetW(self, w):
- """设置宽度"""
- self.w = w
- def GetH(self):
- """获取高度"""
- return self.h
- def SetH(self, h):
- """设置高度"""
- self.h = h
- # 创建BxArea实例的函数
- def NewBxArea(typ, x, y, w, h):
- return BaseArea(typ, x, y, w, h)
|