ci: upgrade astyle tool (#4776)
Install from source to use the latest version
This commit is contained in:
@@ -30,8 +30,6 @@ void lv_example_arc_2(void)
|
||||
lv_anim_set_values(&a, 0, 100);
|
||||
lv_anim_start(&a);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -36,5 +36,4 @@ void lv_example_bar_3(void)
|
||||
lv_anim_start(&a);
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -8,7 +8,6 @@ void lv_example_bar_5(void)
|
||||
{
|
||||
lv_obj_t * label;
|
||||
|
||||
|
||||
lv_obj_t * bar_ltr = lv_bar_create(lv_screen_active());
|
||||
lv_obj_set_size(bar_ltr, 200, 20);
|
||||
lv_bar_set_value(bar_ltr, 70, LV_ANIM_OFF);
|
||||
|
||||
@@ -8,7 +8,6 @@ void lv_example_bar_7(void)
|
||||
{
|
||||
lv_obj_t * label;
|
||||
|
||||
|
||||
lv_obj_t * bar_tob = lv_bar_create(lv_screen_active());
|
||||
lv_obj_set_size(bar_tob, 20, 200);
|
||||
lv_bar_set_range(bar_tob, 100, 0);
|
||||
|
||||
@@ -13,7 +13,6 @@ static void event_handler(lv_event_t * e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static const char * btnm_map[] = {"1", "2", "3", "4", "5", "\n",
|
||||
"6", "7", "8", "9", "0", "\n",
|
||||
"Action1", "Action2", ""
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "../../lv_examples.h"
|
||||
#if LV_USE_BTNMATRIX && LV_BUILD_EXAMPLES
|
||||
|
||||
|
||||
static void event_cb(lv_event_t * e)
|
||||
{
|
||||
lv_obj_t * obj = lv_event_get_target(e);
|
||||
|
||||
@@ -34,7 +34,6 @@ void lv_example_buttonmatrix_3(void)
|
||||
lv_style_set_radius(&style_bg, LV_RADIUS_CIRCLE);
|
||||
lv_style_set_border_width(&style_bg, 0);
|
||||
|
||||
|
||||
static lv_style_t style_btn;
|
||||
lv_style_init(&style_btn);
|
||||
lv_style_set_radius(&style_btn, 0);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "../../lv_examples.h"
|
||||
#if LV_USE_CANVAS && LV_BUILD_EXAMPLES
|
||||
|
||||
|
||||
#define CANVAS_WIDTH 200
|
||||
#define CANVAS_HEIGHT 150
|
||||
|
||||
@@ -35,14 +34,12 @@ void lv_example_canvas_1(void)
|
||||
lv_obj_center(canvas);
|
||||
lv_canvas_fill_bg(canvas, lv_palette_lighten(LV_PALETTE_GREY, 3), LV_OPA_COVER);
|
||||
|
||||
|
||||
lv_layer_t layer;
|
||||
lv_canvas_init_layer(canvas, &layer);
|
||||
|
||||
lv_area_t coords_rect = {30, 20, 100, 70};
|
||||
lv_draw_rect(&layer, &rect_dsc, &coords_rect);
|
||||
|
||||
|
||||
lv_area_t coords_text = {40, 80, 100, 120};
|
||||
lv_draw_label(&layer, &label_dsc, &coords_text);
|
||||
|
||||
|
||||
@@ -35,6 +35,5 @@ void lv_example_canvas_7(void)
|
||||
|
||||
lv_canvas_finish_layer(canvas, &layer);
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "../../lv_examples.h"
|
||||
#if LV_USE_CHART && LV_BUILD_EXAMPLES
|
||||
|
||||
|
||||
static void event_cb(lv_event_t * e)
|
||||
{
|
||||
lv_event_code_t code = lv_event_get_code(e);
|
||||
|
||||
@@ -19,7 +19,6 @@ static void draw_event_cb(lv_event_t * e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Recolor the bars of a chart based on their value
|
||||
*/
|
||||
|
||||
@@ -54,7 +54,6 @@ static void add_faded_area(lv_event_t * e)
|
||||
lv_draw_task_t * draw_task = lv_event_get_draw_task(e);
|
||||
lv_draw_dsc_base_t * base_dsc = draw_task->draw_dsc;
|
||||
|
||||
|
||||
const lv_chart_series_t * ser = lv_chart_get_series_next(obj, NULL);
|
||||
|
||||
/*Draw a triangle below the line witch some opacity gradient*/
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "../../lv_examples.h"
|
||||
#if LV_USE_CHART && LV_DRAW_SW_COMPLEX && LV_BUILD_EXAMPLES
|
||||
|
||||
|
||||
static void add_data(lv_timer_t * t)
|
||||
{
|
||||
lv_obj_t * chart = t->user_data;
|
||||
|
||||
@@ -24,7 +24,6 @@ static void radio_event_handler(lv_event_t * e)
|
||||
LV_LOG_USER("Selected radio buttons: %d, %d", (int)active_index_1, (int)active_index_2);
|
||||
}
|
||||
|
||||
|
||||
static void radiobutton_create(lv_obj_t * parent, const char * txt)
|
||||
{
|
||||
lv_obj_t * obj = lv_checkbox_create(parent);
|
||||
@@ -44,7 +43,6 @@ void lv_example_checkbox_2(void)
|
||||
* A variable is passed as event user data where the index of the active
|
||||
* radiobutton is saved */
|
||||
|
||||
|
||||
lv_style_init(&style_radio);
|
||||
lv_style_set_radius(&style_radio, LV_RADIUS_CIRCLE);
|
||||
|
||||
@@ -82,5 +80,4 @@ void lv_example_checkbox_2(void)
|
||||
lv_obj_add_state(lv_obj_get_child(cont2, 0), LV_STATE_CHECKED);
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "../../lv_examples.h"
|
||||
#if LV_USE_DROPDOWN && LV_BUILD_EXAMPLES
|
||||
|
||||
|
||||
/**
|
||||
* Create a drop down, up, left and right menus
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "../../lv_examples.h"
|
||||
#if LV_USE_IMG && LV_BUILD_EXAMPLES
|
||||
|
||||
|
||||
void lv_example_image_1(void)
|
||||
{
|
||||
LV_IMAGE_DECLARE(img_cogwheel_argb);
|
||||
|
||||
@@ -7,7 +7,6 @@ static void slider_event_cb(lv_event_t * e);
|
||||
static lv_obj_t * red_slider, * green_slider, * blue_slider, * intense_slider;
|
||||
static lv_obj_t * img1;
|
||||
|
||||
|
||||
/**
|
||||
* Demonstrate runtime image re-coloring
|
||||
*/
|
||||
|
||||
@@ -11,7 +11,6 @@ static void set_zoom(void * img, int32_t v)
|
||||
lv_image_set_zoom(img, v);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Show transformations (zoom and rotation) using a pivot point.
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
#include "../../lv_examples.h"
|
||||
#if LV_USE_LIST && LV_BUILD_EXAMPLES
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ static void drag_event_handler(lv_event_t * e)
|
||||
lv_obj_set_pos(obj, x, y);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Make an object draggable.
|
||||
*/
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
#include "../../lv_examples.h"
|
||||
#if LV_USE_SLIDER && LV_BUILD_EXAMPLES
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Show how to style a slider.
|
||||
*/
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
|
||||
static lv_obj_t * spinbox;
|
||||
|
||||
|
||||
static void lv_spinbox_increment_event_cb(lv_event_t * e)
|
||||
{
|
||||
lv_event_code_t code = lv_event_get_code(e);
|
||||
@@ -20,7 +19,6 @@ static void lv_spinbox_decrement_event_cb(lv_event_t * e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void lv_example_spinbox_1(void)
|
||||
{
|
||||
spinbox = lv_spinbox_create(lv_screen_active());
|
||||
|
||||
@@ -41,7 +41,6 @@ static void draw_event_cb(lv_event_t * e)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void lv_example_table_1(void)
|
||||
{
|
||||
lv_obj_t * table = lv_table_create(lv_screen_active());
|
||||
|
||||
@@ -54,7 +54,6 @@ static void change_event_cb(lv_event_t * e)
|
||||
else lv_table_add_cell_ctrl(obj, row, 0, LV_TABLE_CELL_CTRL_CUSTOM_1);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* A very light-weighted list created from table
|
||||
*/
|
||||
|
||||
@@ -14,7 +14,6 @@ void lv_example_tabview_2(void)
|
||||
lv_obj_set_style_text_color(tab_buttons, lv_palette_lighten(LV_PALETTE_GREY, 5), 0);
|
||||
lv_obj_set_style_border_side(tab_buttons, LV_BORDER_SIDE_RIGHT, LV_PART_ITEMS | LV_STATE_CHECKED);
|
||||
|
||||
|
||||
/*Add 3 tabs (the tabs are page (lv_page) and can be scrolled*/
|
||||
lv_obj_t * tab1 = lv_tabview_add_tab(tabview, "Tab 1");
|
||||
lv_obj_t * tab2 = lv_tabview_add_tab(tabview, "Tab 2");
|
||||
|
||||
@@ -29,7 +29,6 @@ void lv_example_textarea_2(void)
|
||||
lv_obj_add_event(text_ta, ta_event_cb, LV_EVENT_ALL, NULL);
|
||||
lv_obj_align(text_ta, LV_ALIGN_TOP_RIGHT, -5, 20);
|
||||
|
||||
|
||||
/*Create a label and position it above the text box*/
|
||||
lv_obj_t * oneline_label = lv_label_create(lv_screen_active());
|
||||
lv_label_set_text(oneline_label, "Text:");
|
||||
|
||||
@@ -16,7 +16,6 @@ void lv_example_tileview_1(void)
|
||||
lv_label_set_text(label, "Scroll down");
|
||||
lv_obj_center(label);
|
||||
|
||||
|
||||
/*Tile2: a button*/
|
||||
lv_obj_t * tile2 = lv_tileview_add_tile(tv, 0, 1, LV_DIR_TOP | LV_DIR_RIGHT);
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "../../lv_examples.h"
|
||||
#if LV_USE_WIN && LV_BUILD_EXAMPLES
|
||||
|
||||
|
||||
static void event_handler(lv_event_t * e)
|
||||
{
|
||||
lv_obj_t * obj = lv_event_get_target(e);
|
||||
@@ -40,7 +39,6 @@ void lv_example_win_1(void)
|
||||
"sure it\n"
|
||||
"overflows. :)");
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user