Files
luban-lite-t3e-pro/packages/third-party/awtk-ui/awtk/docs/manual/point_t.md

58 lines
1.2 KiB
Markdown
Raw Normal View History

2023-11-09 20:19:51 +08:00
## point\_t
### 概述
点。包括一个x坐标和一个y坐标。
----------------------------------
### 函数
<p id="point_t_methods">
| 函数名称 | 说明 |
| -------- | ------------ |
| <a href="#point_t_point_init">point\_init</a> | 初始化point对象。 |
### 属性
<p id="point_t_properties">
| 属性名称 | 类型 | 说明 |
| -------- | ----- | ------------ |
| <a href="#point_t_x">x</a> | xy\_t | x坐标。 |
| <a href="#point_t_y">y</a> | xy\_t | y坐标。 |
#### point\_init 函数
-----------------------
* 函数功能:
> <p id="point_t_point_init">初始化point对象。
* 函数原型:
```
point_t point_init (xy_t x, xy_t y);
```
* 参数说明:
| 参数 | 类型 | 说明 |
| -------- | ----- | --------- |
| 返回值 | point\_t | 返回point对象。 |
| x | xy\_t | x坐标。 |
| y | xy\_t | y坐标。 |
#### x 属性
-----------------------
> <p id="point_t_x">x坐标。
* 类型xy\_t
| 特性 | 是否支持 |
| -------- | ----- |
| 可直接读取 | 是 |
| 可直接修改 | 否 |
#### y 属性
-----------------------
> <p id="point_t_y">y坐标。
* 类型xy\_t
| 特性 | 是否支持 |
| -------- | ----- |
| 可直接读取 | 是 |
| 可直接修改 | 否 |