设置文本对齐 - DrawGuiSetTextAlign
函数简介
设置文本对象的对齐方式。
接口名称
DrawGuiSetTextAlign
DLL调用
int32_t DrawGuiSetTextAlign(int64_t instance, int64_t handle, int32_t align);
参数说明
| 参数名 | 类型 | 说明 |
|---|---|---|
| instance | 长整数型 | OLAPlug对象的指针,由 CreateCOLAPlugInterFace 接口生成。 |
| handle | 长整数型 | 文本对象句柄。 |
| align | 整数型 | 0左对齐,1居中对齐,右对齐 |
示例
DrawGuiSetTextAlign(ola, text, 0);
返回值
0 失败,1 成功。
