Button abstract class
Button是Gesti画布内按钮的基类,而按钮则是它的实现类。
Methods(方法)
| 方法 | 参数类型 | 描述 |
|---|---|---|
| setLocation | Alignment | 设置位置 |
| setBackgroundColor | string | 设置背景颜色 |
| hideBackground | - | 隐藏背景 |
| setIconColor | string | 设置图标颜色 |
| setSenseRadius | number | 设置感知半径 |
| setId | string | 设置 ID |
ButtonOption
| 属性 | 类型 | 描述 |
|---|---|---|
| alignment | Alignment | 对齐方式 |
| icon | Icon | 图标 |