函数名 |
PX_Object *PX_Object_PushButtonCreate(px_memorypool *mp,PX_Object *Parent,px_int x,px_int y,px_int Width,px_int Height,const px_char *Text,PX_FontModule *fontmodule); |
功能 |
创建按钮 |
mp |
内存池 |
Parent |
父对象 |
x,y |
平面坐标 |
width,height |
宽度,高度 |
text |
按钮文本 |
fontmodule |
字模 |
|
如果创建成功返回对象指针,否者返回PX_NULL |
函数名 |
PX_Object_PushButton * PX_Object_GetPushButton( PX_Object *Object ); |
功能 |
取得按钮对象数据 |
Object |
对象指针 |
返回值 |
如果成功返回对象数据指针,否者返回PX_NULL |
函数名 |
px_char * PX_Object_PushButtonGetText( PX_Object *PushButton ); |
功能 |
取得按钮文本 |
Object |
对象指针 |
返回值 |
返回文本指针 |
函数名 |
px_void PX_Object_PushButtonSetText( PX_Object *pObject,const px_char *Text ); |
功能 |
设置按钮文本 |
Object |
对象指针 |
Text |
想要设置的文本 |
返回值 |
- |
函数名 |
px_void PX_Object_PushButtonSetBackgroundColor( PX_Object *pObject,px_color Color ); |
功能 |
设置按钮背景颜色 |
Object |
对象指针 |
color |
想要设置背景颜色 |
返回值 |
- |
函数名 |
px_void PX_Object_PushButtonSetCursorColor( PX_Object *pObject,px_color Color ); |
功能 |
设置按钮背景指针颜色(当鼠标移动到按钮上显示的背景颜色) |
Object |
对象指针 |
color |
想要设置指针颜色 |
返回值 |
- |
函数名 |
px_void PX_Object_PushButtonSetStyle(PX_Object *pObject,PX_OBJECT_PUSHBUTTON_STYLE style); |
功能 |
设置按钮风格 |
Object |
对象指针 |
style |
想要设置的风格(矩形按钮,圆角按钮) |
返回值 |
- |
函数名 |
px_void PX_Object_PushButtonSetPushColor( PX_Object *pObject,px_color Color ); |
功能 |
设置按钮按下颜色 |
Object |
对象指针 |
color |
想要设置的按下颜色 |
返回值 |
- |
函数名 |
px_void PX_Object_PushButtonSetBorderColor( PX_Object *pObject,px_color Color ); |
功能 |
设置按钮边框颜色 |
Object |
对象指针 |
color |
想要设置的边框颜色 |
返回值 |
- |
函数名 |
px_void PX_Object_PushButtonSetBorder( PX_Object *Object,px_bool Border ); |
功能 |
设置按钮是否显示边框 |
Object |
对象指针 |
Border |
PX_TRUE表示显示,否者(PX_FALSE)表示不显示 |
返回值 |
- |
函数名 |
px_void PX_Object_PushButtonSetTextColor( PX_Object *pObject,px_color Color ); |
功能 |
设置按钮文本颜色 |
Object |
对象指针 |
color |
想要设置的文本颜色 |
返回值 |
- |
函数名 |
px_void PX_Object_PushButtonSetTexture(PX_Object *pObject,px_texture *texture); |
功能 |
设置按钮背景图片(这个图片会居中显示) |
Object |
对象指针 |
texture |
纹理指针 |
返回值 |
- |
函数名 |
px_void PX_Object_PushButtonSetShape(PX_Object *pObject,px_shape *pshape); |
功能 |
设置按钮背景轮廓(这个轮廓会居中显示) |
Object |
对象指针 |
pShape |
轮廓指针 |
返回值 |
- |