fix(test) fix tests

This commit is contained in:
Gabor Kiss-Vamosi
2021-04-08 13:07:48 +02:00
parent 8e9dbf6d12
commit 20803031e8
88 changed files with 89 additions and 87 deletions

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_BUILD_EXAMPLES && LV_USE_BTN
static void btn_event_cb(lv_obj_t * btn, lv_event_t event)

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_USE_BTN && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_BUILD_EXAMPLES && LV_USE_SLIDER
static lv_obj_t * label;

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
static void row_gap_anim(void * obj, int32_t v)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_FLEX && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_GRID && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_GRID && LV_BUILD_EXAMPLES

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_GRID && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_GRID && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_GRID && LV_BUILD_EXAMPLES
static void row_gap_anim(void * obj, int32_t v)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_GRID && LV_BUILD_EXAMPLES
/**

View File

@@ -13,6 +13,8 @@ extern "C" {
/*********************
* INCLUDES
*********************/
#include "../lvgl.h"
#include "styles/lv_example_style.h"
#include "get_started/lv_example_get_started.h"
#include "widgets/lv_example_widgets.h"

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_BUILD_EXAMPLES && LV_USE_FLEX
static void sw_event_cb(lv_obj_t * sw, lv_event_t e)

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_BUILD_EXAMPLES && LV_USE_LIST
static uint32_t btn_cnt = 1;

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_BUILD_EXAMPLES && LV_USE_ARC
/**

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_BUILD_EXAMPLES && LV_USE_LABEL
/**

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_BUILD_EXAMPLES && LV_USE_LINE
/**

View File

@@ -1,4 +1,4 @@
#include "../../lvgl.h"
#include "../lv_examples.h"
#if LV_BUILD_EXAMPLES && LV_USE_IMG
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_ARC && LV_BUILD_EXAMPLES

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_ARC && LV_BUILD_EXAMPLES

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_BAR && LV_BUILD_EXAMPLES
void lv_example_bar_1(void)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_BAR && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_BAR && LV_BUILD_EXAMPLES
static void set_temp(void * bar, int32_t temp)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_BAR && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_BAR && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_BAR && LV_BUILD_EXAMPLES
//static void set_value(void *bar, int32_t v)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_BTN && LV_BUILD_EXAMPLES
static void event_handler(lv_obj_t * obj, lv_event_t event)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#include <stdio.h>
#if LV_USE_BTN && LV_BUILD_EXAMPLES

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#include <stdio.h>
#if LV_BUILD_EXAMPLES && LV_USE_BTN

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_BTNMATRIX && LV_BUILD_EXAMPLES
static void event_handler(lv_obj_t * obj, lv_event_t event)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_BTNMATRIX && LV_BUILD_EXAMPLES

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_BTNMATRIX && LV_BUILD_EXAMPLES
static void event_cb(lv_obj_t * obj, lv_event_t e)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_CALENDAR && LV_BUILD_EXAMPLES
static void event_handler(lv_obj_t * obj, lv_event_t event)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_CANVAS && LV_BUILD_EXAMPLES

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_CANVAS && LV_BUILD_EXAMPLES
#define CANVAS_WIDTH 50

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_CHART && LV_BUILD_EXAMPLES
void lv_example_chart_1(void)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_CHART && LV_DRAW_COMPLEX && LV_BUILD_EXAMPLES
static lv_obj_t * chart1;

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_CHART && LV_BUILD_EXAMPLES
static void event_cb(lv_obj_t * chart, lv_event_t e)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_CHART && LV_BUILD_EXAMPLES

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_CHART && LV_USE_SLIDER && LV_BUILD_EXAMPLES
static lv_obj_t * chart;

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_CHART && LV_BUILD_EXAMPLES
static lv_obj_t * chart;

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_CHECKBOX && LV_BUILD_EXAMPLES
static void event_handler(lv_obj_t * obj, lv_event_t event)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_COLORWHEEL && LV_BUILD_EXAMPLES
void lv_example_colorwheel_1(void)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_DROPDOWN && LV_BUILD_EXAMPLES
static void event_handler(lv_obj_t * obj, lv_event_t event)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_DROPDOWN && LV_BUILD_EXAMPLES

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_DROPDOWN && LV_BUILD_EXAMPLES
static void event_cb(lv_obj_t * dropdown, lv_event_t e)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_IMG && LV_BUILD_EXAMPLES

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_IMG && LV_USE_SLIDER && LV_BUILD_EXAMPLES
static lv_obj_t * create_slider(lv_color_t color);

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_IMG && LV_BUILD_EXAMPLES
static void set_angle(void * img, int32_t v)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_IMG && LV_BUILD_EXAMPLES
static void ofs_y_anim(void * img, int32_t v)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_IMGBTN && LV_BUILD_EXAMPLES
void lv_example_imgbtn_1(void)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_KEYBOARD && LV_BUILD_EXAMPLES
static void ta_event_cb(lv_obj_t * ta, lv_event_t e)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_LABEL && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_LABEL && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_LED && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_LINE && LV_BUILD_EXAMPLES
void lv_example_line_1(void)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_LIST && LV_BUILD_EXAMPLES
static lv_obj_t * list1;

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_METER && LV_BUILD_EXAMPLES
static lv_obj_t * meter;

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_METER && LV_BUILD_EXAMPLES
static lv_obj_t * meter;

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_METER && LV_BUILD_EXAMPLES
static lv_obj_t * meter;

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_METER && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_MSGBOX && LV_BUILD_EXAMPLES
static void event_cb(lv_obj_t * obj, lv_event_t event)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_BUILD_EXAMPLES
void lv_example_obj_1(void)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_ROLLER && LV_BUILD_EXAMPLES
static void event_handler(lv_obj_t * obj, lv_event_t event)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_ROLLER && LV_FONT_MONTSERRAT_22 && LV_BUILD_EXAMPLES
static void event_handler(lv_obj_t * obj, lv_event_t event)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_SLIDER && LV_BUILD_EXAMPLES
static void slider_event_cb(lv_obj_t * slider, lv_event_t event);

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
//#if LV_USE_SLIDER && LV_BUILD_EXAMPLES
//
//static void slider_event_cb(lv_obj_t * slider, lv_event_t event);

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
//#if LV_USE_SLIDER && LV_BUILD_EXAMPLES
//
//static void slider_event_cb(lv_obj_t * slider, lv_event_t event);

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_SPINBOX && LV_BUILD_EXAMPLES
static lv_obj_t * spinbox;

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_SPINNER && LV_BUILD_EXAMPLES
void lv_example_spinner_1(void)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_SWITCH && LV_BUILD_EXAMPLES
static void event_handler(lv_obj_t * obj, lv_event_t event)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_TABLE && LV_BUILD_EXAMPLES
static void event_cb(lv_obj_t * obj, lv_event_t e)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_TABLE && LV_BUILD_EXAMPLES
#define ITEM_CNT 200

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_TABVIEW && LV_BUILD_EXAMPLES
void lv_example_tabview_1(void)

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_TEXTAREA && LV_BUILD_EXAMPLES

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_TEXTAREA && LV_USE_KEYBOARD && LV_BUILD_EXAMPLES
static void ta_event_cb(lv_obj_t * ta, lv_event_t event);

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_TEXTAREA && LV_USE_KEYBOARD && LV_BUILD_EXAMPLES
static void ta_event_cb(lv_obj_t * ta, lv_event_t event);

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_TILEVIEW && LV_BUILD_EXAMPLES
/**

View File

@@ -1,4 +1,4 @@
#include "../../../lvgl.h"
#include "../../lv_examples.h"
#if LV_USE_WIN && LV_BUILD_EXAMPLES