Tearsback's picture
download
raw
2.35 kB
/*********************************************************************************************************
* ģ�����ƣ�TextWidget.h
* ժ Ҫ��Text�ؼ�ģ��
* ��ǰ�汾��1.0.0
* �� �ߣ�Leyutek(COPYRIGHT 2018 - 2021 Leyutek. All rights reserved.)
* ������ڣ�2021��07��01��
* �� �ݣ�
* ע �⣺
**********************************************************************************************************
* ȡ���汾��
* �� �ߣ�
* ������ڣ�
* �޸����ݣ�
* �޸��ļ���
*********************************************************************************************************/
#ifndef _TEXT_WIDGET_H_
#define _TEXT_WIDGET_H_
/*********************************************************************************************************
* ����ͷ�ļ�
*********************************************************************************************************/
#include "DataType.h"
/*********************************************************************************************************
* �궨��
*********************************************************************************************************/
#define TEXT_WIDGET_BUF_SIZE 1024 * 5 / 2 //������������С��ÿ�����ص�2���ֽڣ���������СΪ5k
/*********************************************************************************************************
* ö�ٽṹ�嶨��
*********************************************************************************************************/
//text�ؼ����ýṹ�����Ǿ�̬����
typedef struct
{
u16 x0; //text��ʾԭ�������
u16 y0; //text��ʾԭ��������
u16 width; //text���ȣ����ص�
u16 height; //text�߶ȣ����ص�
u16 size; //text�����С
u16 color; //������ɫ
u16 background[TEXT_WIDGET_BUF_SIZE]; //����������
void (*setText)(void* this, const char* string); //����text����
}StructTextWidget;
/*********************************************************************************************************
* API��������
*********************************************************************************************************/
u8 CreateTextWidget(StructTextWidget* text); //����Text�ؼ�
#endif

Xet Storage Details

Size:
2.35 kB
·
Xet hash:
3d44907e2c1f31104e432065581b15f23a069307160447de70599203baa5f7cb

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.