1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00
lvgl/lv_objx/lv_objx_templ.h

66 lines
1.2 KiB
C
Raw Normal View History

2016-06-08 07:25:08 +02:00
/**
2016-06-22 17:24:02 +02:00
* @file lv_templ.h
2016-06-08 07:25:08 +02:00
*
*/
/*Search an replace: template -> object normal name with lower case (e.g. button, label etc.)
* templ -> object short name with lower case(e.g. btn, label etc)
* TEMPL -> object short name with upper case (e.g. BTN, LABEL etc.)
*
*/
2016-06-22 17:24:02 +02:00
#ifndef LV_TEMPL_H
#define LV_TEMPL_H
2016-06-08 07:25:08 +02:00
/*********************
* INCLUDES
*********************/
#include "lv_conf.h"
#if USE_LV_TEMPL != 0
#include "../lv_obj/lv_obj.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
2016-07-19 14:05:27 +02:00
/*Style of template*/
2016-06-08 07:25:08 +02:00
typedef struct
{
2016-07-19 14:05:27 +02:00
/*Style of ancestor*/
/*New style element for this type */
2016-06-08 07:25:08 +02:00
}lv_templs_t;
2016-07-19 14:05:27 +02:00
/*Built-in styles of template*/
2016-06-08 07:25:08 +02:00
typedef enum
{
2016-06-22 17:24:02 +02:00
LV_TEMPLS_DEF,
2016-06-08 07:25:08 +02:00
}lv_templs_builtin_t;
2016-07-19 14:05:27 +02:00
/*Data of template*/
2016-06-08 07:25:08 +02:00
typedef struct
{
2016-07-19 14:05:27 +02:00
/*Ext. of ancestor*/
/*New data for this type */
2016-06-22 17:24:02 +02:00
}lv_templ_ext_t;
2016-06-08 07:25:08 +02:00
/**********************
* GLOBAL PROTOTYPES
**********************/
2016-06-22 17:24:02 +02:00
lv_obj_t* lv_templ_create(lv_obj_t* par_dp, lv_obj_t * copy_dp);
2016-06-08 07:25:08 +02:00
bool lv_templ_signal(lv_obj_t* obj_dp, lv_signal_t sign, void * param);
lv_templs_t * lv_templs_get(lv_templs_builtin_t style, lv_templs_t * copy_p);
/**********************
* MACROS
**********************/
#endif
#endif