28 lines
850 B
C
28 lines
850 B
C
#ifndef _COMPO_PICTUREBOX_H
|
|
#define _COMPO_PICTUREBOX_H
|
|
|
|
typedef struct compo_picturebox_t_ {
|
|
COMPO_STRUCT_COMMON;
|
|
widget_image_t *img;
|
|
} compo_picturebox_t;
|
|
|
|
//创建一个图像框组件
|
|
compo_picturebox_t *compo_picturebox_create(compo_form_t *frm, u32 res_addr);
|
|
|
|
//设置图像
|
|
void compo_picturebox_set(compo_picturebox_t *picbox, u32 res_addr);
|
|
|
|
//设置图像框组件的坐标
|
|
void compo_picturebox_set_pos(compo_picturebox_t *picbox, s16 x, s16 y);
|
|
|
|
//设置图像框组件的大小
|
|
void compo_picturebox_set_size(compo_picturebox_t *picbox, s16 width, s16 height);
|
|
|
|
//设置图像框的旋转角度
|
|
void compo_picturebox_set_rotation(compo_picturebox_t *picbox, s16 angle);
|
|
|
|
//设置图像框的旋转中心点
|
|
void compo_picturebox_set_rotation_center(compo_picturebox_t *picbox, s16 x, s16 y);
|
|
|
|
#endif
|