code stringlengths 1 1.05M | repo_name stringlengths 6 83 | path stringlengths 3 242 | language stringclasses 222
values | license stringclasses 20
values | size int64 1 1.05M |
|---|---|---|---|---|---|
def slider_event_cb(e):
code = e.get_code()
obj = e.get_target()
# Provide some extra space for the value
if code == lv.EVENT.REFR_EXT_DRAW_SIZE:
e.set_ext_draw_size(50)
elif code == lv.EVENT.DRAW_PART_END:
# print("DRAW_PART_END")
dsc = lv.obj_draw_part_dsc_t.__cas... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/slider/lv_example_slider_3.py | Python | apache-2.0 | 1,521 |
#include "../../lv_examples.h"
#if LV_USE_SPAN && LV_BUILD_EXAMPLES
/**
* Create span.
*/
void lv_example_span_1(void)
{
static lv_style_t style;
lv_style_init(&style);
lv_style_set_border_width(&style, 1);
lv_style_set_border_color(&style, lv_palette_main(LV_PALETTE_ORANGE));
lv_style_set_pad_al... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/span/lv_example_span_1.c | C | apache-2.0 | 2,064 |
#
# Create span
#
style = lv.style_t()
style.init()
style.set_border_width(1)
style.set_border_color(lv.palette_main(lv.PALETTE.ORANGE))
style.set_pad_all(2)
spans = lv.spangroup(lv.scr_act())
spans.set_width(300)
spans.set_height(300)
spans.center()
spans.add_style(style, 0)
spans.set_align(lv.TEXT_ALIGN.LEFT)
spans... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/span/lv_example_span_1.py | Python | apache-2.0 | 1,481 |
#include "../../lv_examples.h"
#if LV_USE_SPINBOX && LV_BUILD_EXAMPLES
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);
if(code == LV_EVENT_SHORT_CLICKED || code == LV_EVENT_LONG_PRESSED_REPEAT) {
lv_spinbox_increment... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/spinbox/lv_example_spinbox_1.c | C | apache-2.0 | 1,477 |
def increment_event_cb(e):
code = e.get_code()
if code == lv.EVENT.SHORT_CLICKED or code == lv.EVENT.LONG_PRESSED_REPEAT:
spinbox.increment()
def decrement_event_cb(e):
code = e.get_code()
if code == lv.EVENT.SHORT_CLICKED or code == lv.EVENT.LONG_PRESSED_REPEAT:
spinbox.decrement()
s... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/spinbox/lv_example_spinbox_1.py | Python | apache-2.0 | 905 |
#include "../../lv_examples.h"
#if LV_USE_SPINNER && LV_BUILD_EXAMPLES
void lv_example_spinner_1(void)
{
/*Create a spinner*/
lv_obj_t * spinner = lv_spinner_create(lv_scr_act(), 1000, 60);
lv_obj_set_size(spinner, 100, 100);
lv_obj_center(spinner);
}
#endif
| YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/spinner/lv_example_spinner_1.c | C | apache-2.0 | 277 |
# Create a spinner
spinner = lv.spinner(lv.scr_act(), 1000, 60)
spinner.set_size(100, 100)
spinner.center()
| YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/spinner/lv_example_spinner_1.py | Python | apache-2.0 | 110 |
#include "../../lv_examples.h"
#if LV_USE_SWITCH && LV_BUILD_EXAMPLES
static void event_handler(lv_event_t * e)
{
lv_event_code_t code = lv_event_get_code(e);
lv_obj_t * obj = lv_event_get_target(e);
if(code == LV_EVENT_VALUE_CHANGED) {
LV_LOG_USER("State: %s\n", lv_obj_has_state(obj, LV_STATE_CHEC... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/switch/lv_example_switch_1.c | C | apache-2.0 | 1,159 |
def event_handler(e):
code = e.get_code()
obj = e.get_target()
if code == lv.EVENT.VALUE_CHANGED:
if obj.has_state(lv.STATE.CHECKED):
print("State: on")
else:
print("State: off")
lv.scr_act().set_flex_flow(lv.FLEX_FLOW.COLUMN)
lv.scr_act().set_flex_align(lv.FLEX_ALI... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/switch/lv_example_switch_1.py | Python | apache-2.0 | 813 |
#include "../../lv_examples.h"
#if LV_USE_TABLE && LV_BUILD_EXAMPLES
static void draw_part_event_cb(lv_event_t * e)
{
lv_obj_t * obj = lv_event_get_target(e);
lv_obj_draw_part_dsc_t * dsc = lv_event_get_param(e);
/*If the cells are drawn...*/
if(dsc->part == LV_PART_ITEMS) {
uint32_t row = dsc-... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/table/lv_example_table_1.c | C | apache-2.0 | 2,402 |
def draw_part_event_cb(e):
obj = e.get_target()
dsc = lv.obj_draw_part_dsc_t.__cast__(e.get_param())
# If the cells are drawn../
if dsc.part == lv.PART.ITEMS:
row = dsc.id // obj.get_col_cnt()
col = dsc.id - row * obj.get_col_cnt()
# Make the texts in the first cell center alig... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/table/lv_example_table_1.py | Python | apache-2.0 | 1,819 |
#include "../../lv_examples.h"
#if LV_USE_TABLE && LV_BUILD_EXAMPLES
#define ITEM_CNT 200
static void draw_event_cb(lv_event_t * e)
{
lv_obj_t * obj = lv_event_get_target(e);
lv_obj_draw_part_dsc_t * dsc = lv_event_get_draw_part_dsc(e);
/*If the cells are drawn...*/
if(dsc->part == LV_PART_ITEMS) {
... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/table/lv_example_table_2.c | C | apache-2.0 | 3,319 |
from utime import ticks_ms
import gc
ITEM_CNT = 200
def draw_event_cb(e):
obj = e.get_target()
dsc = lv.obj_draw_part_dsc_t.__cast__(e.get_param())
# If the cells are drawn...
if dsc.part == lv.PART.ITEMS:
chk = obj.has_cell_ctrl(dsc.id, 0, lv.table.CELL_CTRL.CUSTOM_1)
rect_dsc = lv.d... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/table/lv_example_table_2.py | Python | apache-2.0 | 2,883 |
#include "../../lv_examples.h"
#if LV_USE_TABVIEW && LV_BUILD_EXAMPLES
void lv_example_tabview_1(void)
{
/*Create a Tab view object*/
lv_obj_t *tabview;
tabview = lv_tabview_create(lv_scr_act(), LV_DIR_TOP, 50);
/*Add 3 tabs (the tabs are page (lv_page) and can be scrolled*/
lv_obj_t *tab1 = lv_ta... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/tabview/lv_example_tabview_1.c | C | apache-2.0 | 1,415 |
# Create a Tab view object
tabview = lv.tabview(lv.scr_act(), lv.DIR.TOP, 50)
# Add 3 tabs (the tabs are page (lv_page) and can be scrolled
tab1 = tabview.add_tab("Tab 1")
tab2 = tabview.add_tab("Tab 2")
tab3 = tabview.add_tab("Tab 3")
# Add content to the tabs
label = lv.label(tab1)
label.set_text("""This the first ... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/tabview/lv_example_tabview_1.py | Python | apache-2.0 | 603 |
#include "../../lv_examples.h"
#if LV_USE_TABVIEW && LV_BUILD_EXAMPLES
static void scroll_begin_event(lv_event_t * e)
{
/*Disable the scroll animations. Triggered when a tab button is clicked */
if(lv_event_get_code(e) == LV_EVENT_SCROLL_BEGIN) {
lv_anim_t * a = lv_event_get_param(e);
if(a) a-... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/tabview/lv_example_tabview_2.c | C | apache-2.0 | 2,042 |
def scroll_begin_event(e):
#Disable the scroll animations. Triggered when a tab button is clicked */
if e.get_code() == lv.EVENT.SCROLL_BEGIN:
a = lv.anim_t.__cast__(e.get_param())
if a:
a.time = 0
# Create a Tab view object
tabview = lv.tabview(lv.scr_act(), lv.DIR.LEFT, 80)
tabvi... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/tabview/lv_example_tabview_2.py | Python | apache-2.0 | 1,412 |
#include "../../lv_examples.h"
#if LV_USE_TEXTAREA && LV_BUILD_EXAMPLES
static void textarea_event_handler(lv_event_t * e)
{
lv_obj_t * ta = lv_event_get_target(e);
LV_LOG_USER("Enter was pressed. The current text is: %s", lv_textarea_get_text(ta));
}
static void btnm_event_handler(lv_event_t * e)
{
lv_ob... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/textarea/lv_example_textarea_1.c | C | apache-2.0 | 1,666 |
def textarea_event_handler(e,ta):
print("Enter was pressed. The current text is: " + ta.get_text())
def btnm_event_handler(e,ta):
obj = e.get_target()
txt = obj.get_btn_text(obj.get_selected_btn())
if txt == lv.SYMBOL.BACKSPACE:
ta.del_char()
elif txt == lv.SYMBOL.NEW_LINE:
lv.... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/textarea/lv_example_textarea_1.py | Python | apache-2.0 | 1,103 |
#include "../../lv_examples.h"
#if LV_USE_TEXTAREA && LV_USE_KEYBOARD && LV_BUILD_EXAMPLES
static void ta_event_cb(lv_event_t * e);
static lv_obj_t * kb;
void lv_example_textarea_2(void)
{
/*Create the password box*/
lv_obj_t * pwd_ta = lv_textarea_create(lv_scr_act());
lv_textarea_set_text(pwd_ta, "");
... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/textarea/lv_example_textarea_2.c | C | apache-2.0 | 2,046 |
def ta_event_cb(e):
code = e.get_code()
ta = e.get_target()
if code == lv.EVENT.CLICKED or code == lv.EVENT.FOCUSED:
# Focus on the clicked text area
if kb != None:
kb.set_textarea(ta)
elif code == lv.EVENT.READY:
print("Ready, current text: " + ta.get_text())
# Cr... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/textarea/lv_example_textarea_2.py | Python | apache-2.0 | 1,470 |
#include "../../lv_examples.h"
#if LV_USE_TEXTAREA && LV_USE_KEYBOARD && LV_BUILD_EXAMPLES
static void ta_event_cb(lv_event_t * e);
static lv_obj_t * kb;
/**
* Automatically format text like a clock. E.g. "12:34"
* Add the ':' automatically.
*/
void lv_example_textarea_3(void)
{
/*Create the text area*/
l... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/textarea/lv_example_textarea_3.c | C | apache-2.0 | 1,174 |
def ta_event_cb(e):
ta = e.get_target()
txt = ta.get_text()
# print(txt)
pos = ta.get_cursor_pos()
# print("cursor pos: ",pos)
# find position of ":" in text
colon_pos= txt.find(":")
# if there are more than 2 digits before the colon, remove the last one entered
if colon_pos == 3:
... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/textarea/lv_example_textarea_3.py | Python | apache-2.0 | 1,397 |
#include "../../lv_examples.h"
#if LV_USE_TILEVIEW && LV_BUILD_EXAMPLES
/**
* Create a 2x2 tile view and allow scrolling only in an "L" shape.
* Demonstrate scroll chaining with a long list that
* scrolls the tile view when it cant't be scrolled further.
*/
void lv_example_tileview_1(void)
{
lv_obj_t *tv = lv_... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/tileview/lv_example_tileview_1.c | C | apache-2.0 | 1,503 |
#
# Create a 2x2 tile view and allow scrolling only in an "L" shape.
# Demonstrate scroll chaining with a long list that
# scrolls the tile view when it cant't be scrolled further.
#
tv = lv.tileview(lv.scr_act())
# Tile1: just a label
tile1 = tv.add_tile(0, 0, lv.DIR.BOTTOM)
label = lv.label(tile1)
label.set_text("Sc... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/tileview/lv_example_tileview_1.py | Python | apache-2.0 | 951 |
#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);
LV_LOG_USER("Button %d clicked", (int)lv_obj_get_index(obj));
}
void lv_example_win_1(void)
{
lv_obj_t * win = lv_win_create(lv_scr_act(), 40);
lv_ob... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/win/lv_example_win_1.c | C | apache-2.0 | 1,414 |
def event_handler(e):
code = e.get_code()
obj = e.get_target()
if code == lv.EVENT.CLICKED:
print("Button {:d} clicked".format(obj.get_child_id()))
win = lv.win(lv.scr_act(), 60)
btn1 = win.add_btn(lv.SYMBOL.LEFT, 40)
btn1.add_event_cb(event_handler,lv.EVENT.ALL, None)
win.add_title("A title")
btn2... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/examples/widgets/win/lv_example_win_1.py | Python | apache-2.0 | 756 |
/**
* @file lv_conf.h
* Configuration file for v8.1.0
*/
/*
* Copy this file as `lv_conf.h`
* 1. simply next to the `lvgl` folder
* 2. or any other places and
* - define `LV_CONF_INCLUDE_SIMPLE`
* - add the path as include path
*/
/* clang-format off */
#if 0 /*Set it to "1" to enable content*/
#ifnde... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/lv_conf_template.h | C | apache-2.0 | 19,460 |
/**
* @file lvgl.h
* Include all LVGL related headers
*/
#ifndef LVGL_H
#define LVGL_H
#ifdef __cplusplus
extern "C" {
#endif
/***************************
* CURRENT VERSION OF LVGL
***************************/
#define LVGL_VERSION_MAJOR 8
#define LVGL_VERSION_MINOR 1
#define LVGL_VERSION_PATCH 0
#define LVGL_VE... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/lvgl.h | C | apache-2.0 | 3,012 |
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/examples/examples.mk
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/extra/extra.mk
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/core/lv_core.mk
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/draw/lv_draw.mk
include $(LVGL_DIR)/$(LVGL_DIR_NAME)/src/font/lv_font.mk
include $(LVGL_DIR)/$(LVGL_DIR_NAME... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/lvgl.mk | Makefile | apache-2.0 | 515 |
from building import *
import rtconfig
import os
import shutil
# get current dir path
cwd = GetCurrentDir()
src = []
inc = []
lvgl_cwd = cwd + '/../'
lvgl_src_cwd = lvgl_cwd + 'src/'
inc = inc + [lvgl_src_cwd]
for root, dirs, files in os.walk(lvgl_src_cwd):
for dir in dirs:
src = src + Glob(os.path.joi... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/rt-thread/SConscript | Python | apache-2.0 | 2,092 |
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: MIT
*
* Change Logs:
* Date Author Notes
* 2021-10-15 Meco Man The first version
*/
#ifndef LV_RT_THREAD_CONF_H
#define LV_RT_THREAD_CONF_H
#ifdef __RTTHREAD__
#define LV_RTTHREAD_INCLUDE <rtthread.h... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/rt-thread/lv_rt_thread_conf.h | C | apache-2.0 | 1,822 |
/*
* Copyright (c) 2006-2021, RT-Thread Development Team
*
* SPDX-License-Identifier: MIT
*
* Change Logs:
* Date Author Notes
* 2021-10-18 Meco Man The first version
*/
#ifdef __RTTHREAD__
#include <rtthread.h>
#include <lvgl.h>
#define DBG_TAG "LVGL"
#define DBG_LVL DBG_INFO
#i... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/rt-thread/lv_rt_thread_port.c | C | apache-2.0 | 924 |
#!/bin/bash
set -e
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
CURRENT_REF="$(git rev-parse HEAD)"
rm -rf emscripten_builder
git clone https://github.com/lvgl/lv_sim_emscripten.git emscripten_builder
scripts/genexamplelist.sh > emscripten_builder/examplelist.c
cd emscripten_builder
git submodule u... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/build_html_examples.sh | Shell | apache-2.0 | 686 |
#!/usr/bin/env python3.6
import argparse
from argparse import RawTextHelpFormatter
import os
import sys
parser = argparse.ArgumentParser(description="""Create fonts for LittelvGL including the built-in symbols. lv_font_conv needs to be installed. See https://github.com/littlevgl/lv_font_conv
Example: python built_in_... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/built_in_font/built_in_font_gen.py | Python | apache-2.0 | 2,509 |
#!/usr/bin/env python3.6
import os
print("Generating 8 px")
os.system("./built_in_font_gen.py --size 8 -o lv_font_montserrat_8.c --bpp 4")
os.system('sed -i \'s|#include "lvgl/lvgl.h"|#include "../../lvgl.h"|\' lv_font_montserrat_8.c')
print("\nGenerating 10 px")
os.system("./built_in_font_gen.py --size 10 -o lv_fon... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/built_in_font/generate_all.py | Python | apache-2.0 | 9,871 |
{{#each releases}}
## [{{title}}]({{href}}) {{niceDate}}
### Breaking Changes
{{#commit-list merges heading='' message='BREAKING CHANGE'}}
- :warning: {{message}} [`{{id}}`]({{href}})
{{/commit-list}}
{{#commit-list commits heading='' message='BREAKING CHANGE'}}
- :warning: {{subject}} [`{{shorthash}... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/changelog-template.hbs | Handlebars | apache-2.0 | 4,169 |
# Generate CHANGELOG_LAST.md from changes since the last version tag. (vx.y.z-dev tags are ignored)
# CHANGELOG_LAST.md can be edited manually if required and manually added to docs/CHANGELOG.md
#
# Requirements:
# npm install -g auto-changelog
#
# Usage:
# changelog-gen <next-version>
#
# Example: if the lates... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/changelog_gen.sh | Shell | apache-2.0 | 661 |
astyle --options=code-format.cfg "../src/*.c,*.h"
| YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/code-format.sh | Shell | apache-2.0 | 50 |
cppcheck -j8 --template="{severity}\t{file}:{line}\t{id}: {message}" --enable=all ../src/ --output-file=cppcheck_res.txt --suppress=unusedFunction --suppress=preprocessorErrorDirective --force
| YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/cppcheck_run.sh | Shell | apache-2.0 | 193 |
#!/usr/bin/env python3
import sys
with open(sys.argv[1], 'r') as file:
s = file.read()
b = bytearray()
b.extend(map(ord, s))
for a in b: print(hex(a), end =", ")
| YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/filetohex.py | Python | apache-2.0 | 170 |
#!/bin/bash
# Credit: https://stackoverflow.com/a/4774063
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
TMPENVFILE=$(mktemp /tmp/lvgl.script.XXXXXX)
cat $SCRIPTPATH/../lvgl.h | grep "#define LVGL_VERSION_" | sed 's/#define //g' | sed -r 's/\s+/=/' > $TMPENVFILE
. $TMPENVFILE
rm $TMPENVFILE
echo $LV... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/find_version.sh | Shell | apache-2.0 | 357 |
# https://github.com/facebook/infer
#
# Install:
# VERSION=0.17.0; \
# curl -sSL "https://github.com/facebook/infer/releases/download/v$VERSION/infer-linux64-v$VERSION.tar.xz" \
# | sudo tar -C /opt -xJ && \
# sudoln -s "/opt/infer-linux64-v$VERSION/bin/infer" /usr/local/bin/infer
infer run -- make -j8
| YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/infer_run.sh | Shell | apache-2.0 | 305 |
#!/usr/bin/sh
# Install Linux package prerequisites needed for LVGL development
# and testing. Some less-common development packages are not included
# here, such as MicroPython and PC simulator packages.
#
# Note: This script is run by the CI workflows.
sudo apt install gcc python3 libpng-dev ruby-full gcovr cmake
| YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/install-prerequisites.sh | Shell | apache-2.0 | 318 |
##################################################################
# sjpeg converter script version 1.0
# Dependencies: (PYTHON-3)
##################################################################
SJPG_FILE_FORMAT_VERSION = "V1.00" #
JPEG_SPLIT_HEIGHT = 16
##########################################################... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/jpg_to_sjpg.py | Python | apache-2.0 | 3,557 |
#!/usr/bin/env python
import sys
import os.path
from os import path
import os, fnmatch
import re
import subprocess
import com
def cmd(c, ask_on_err = True):
print("\n" + c)
r = os.system(c)
if r:
print("### Error: " + str(r))
if ask_on_err:
input("Press Enter to continue execution...")
def defi... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/release/com.py | Python | apache-2.0 | 2,956 |
#!/usr/bin/env python3
# Applies a commit or commits on baranch or branches
# USAGE:
# patch.py -c <commit-list> -b <branch-list> [-p] [-t]
# - <commit-list>: list of commit SHAs to apply.
# - <branch-list>: branches where the commit should be applied. * can be used as wildchar
# - p: push the changes to <brac... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/release/patch.py | Python | apache-2.0 | 2,226 |
#!/usr/bin/env python3
# Create a new release from master. Execute the followings:
# - On lvgl, lv_demos, and lv_drivers:
# - Detect the current version of master. E.g. 8.1-dev
# - Create a new branch from the master for the release. E.g. release/v8.1
# - Remove the "-dev" postfix from the version numbers
# - ... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/release/release.py | Python | apache-2.0 | 724 |
#!/usr/bin/env python3
import sys, os, re
props = [
{'section': 'Size and position', 'dsc':'Properties related to size, position, alignment and layout of the objects.' },
{'name': 'WIDTH',
'style_type': 'num', 'var_type': 'lv_coord_t' , 'default':'widget dependent', 'inherited': 0, 'layout': 1... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/scripts/style_api_gen.py | Python | apache-2.0 | 28,818 |
CSRCS += lv_disp.c
CSRCS += lv_group.c
CSRCS += lv_indev.c
CSRCS += lv_indev_scroll.c
CSRCS += lv_obj.c
CSRCS += lv_obj_class.c
CSRCS += lv_obj_draw.c
CSRCS += lv_obj_pos.c
CSRCS += lv_obj_scroll.c
CSRCS += lv_obj_style.c
CSRCS += lv_obj_style_gen.c
CSRCS += lv_obj_tree.c
CSRCS += lv_event.c
CSRCS += lv_refr.c
CSRCS +=... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_core.mk | Makefile | apache-2.0 | 494 |
/**
* @file lv_disp.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_disp.h"
#include "../misc/lv_math.h"
#include "../core/lv_refr.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/*************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_disp.c | C | apache-2.0 | 12,925 |
/**
* @file lv_disp.h
*
*/
#ifndef LV_DISP_H
#define LV_DISP_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../hal/lv_hal.h"
#include "lv_obj.h"
#include "lv_theme.h"
/*********************
* DEFINES
*********************/
/*************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_disp.h | C | apache-2.0 | 6,865 |
/**
* @file lv_event.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_obj.h"
#include "lv_indev.h"
/*********************
* DEFINES
*********************/
#define MY_CLASS &lv_obj_class
/**********************
* TYPEDEFS
**********************/
typedef struct _lv_e... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_event.c | C | apache-2.0 | 13,287 |
/**
* @file lv_templ.h
*
*/
#ifndef LV_EVENT_H
#define LV_EVENT_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
*****************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_event.h | C | apache-2.0 | 14,543 |
/**
* @file lv_group.c
*
*/
/*********************
* INCLUDES
*********************/
#include <stddef.h>
#include "lv_group.h"
#include "../misc/lv_gc.h"
#include "../core/lv_obj.h"
#include "../core/lv_indev.h"
/*********************
* DEFINES
*********************/
/**********************
* ... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_group.c | C | apache-2.0 | 12,699 |
/**
* @file lv_group.h
*
*/
#ifndef LV_GROUP_H
#define LV_GROUP_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../lv_conf_internal.h"
#include <stdint.h>
#include <stdbool.h>
#include "../misc/lv_ll.h"
#include "../misc/lv_types.h"
/**********... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_group.h | C | apache-2.0 | 6,980 |
/**
* @file lv_indev.c
*
*/
/*********************
* INCLUDES
********************/
#include "lv_indev.h"
#include "lv_disp.h"
#include "lv_obj.h"
#include "lv_indev_scroll.h"
#include "lv_group.h"
#include "lv_refr.h"
#include "../hal/lv_hal_tick.h"
#include "../misc/lv_timer.h"
#include "../misc/lv_math.h... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_indev.c | C | apache-2.0 | 42,674 |
/**
* @file lv_indev.h
*
*/
#ifndef LV_INDEV_H
#define LV_INDEV_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_obj.h"
#include "../hal/lv_hal_indev.h"
#include "lv_group.h"
/*********************
* DEFINES
*********************/
/****... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_indev.h | C | apache-2.0 | 5,000 |
/**
* @file lv_indev_scroll.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_indev.h"
#include "lv_indev_scroll.h"
/*********************
* DEFINES
*********************/
#define ELASTIC_SLOWNESS_FACTOR 4 /*Scrolling on elastic parts are slower by this factor*/
/*******... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_indev_scroll.c | C | apache-2.0 | 26,527 |
/**
* @file lv_indev_scroll.h
*
*/
#ifndef LV_INDEV_SCROLL_H
#define LV_INDEV_SCROLL_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_obj.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEF... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_indev_scroll.h | C | apache-2.0 | 1,544 |
/**
* @file lv_obj.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_obj.h"
#include "lv_indev.h"
#include "lv_refr.h"
#include "lv_group.h"
#include "lv_disp.h"
#include "lv_theme.h"
#include "../misc/lv_assert.h"
#include "../draw/lv_draw.h"
#include "../misc/lv_anim.h"
#include ... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj.c | C | apache-2.0 | 30,874 |
/**
* @file lv_obj.h
*
*/
#ifndef LV_OBJ_H
#define LV_OBJ_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../lv_conf_internal.h"
#include <stddef.h>
#include <stdbool.h>
#include "../misc/lv_style.h"
#include "../misc/lv_types.h"
#include "../mis... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj.h | C | apache-2.0 | 13,657 |
/**
* @file lv_obj_class.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_obj.h"
#include "lv_theme.h"
/*********************
* DEFINES
*********************/
#define MY_CLASS &lv_obj_class
/**********************
* TYPEDEFS
**********************/
/**************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_class.c | C | apache-2.0 | 5,835 |
/**
* @file lv_obj_class.h
*
*/
#ifndef LV_OBJ_CLASS_H
#define LV_OBJ_CLASS_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdint.h>
#include <stdbool.h>
/*********************
* DEFINES
*********************/
/**********************
*... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_class.h | C | apache-2.0 | 2,554 |
/**
* @file lv_obj_draw.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_obj_draw.h"
#include "lv_obj.h"
#include "lv_disp.h"
#include "lv_indev.h"
/*********************
* DEFINES
*********************/
#define MY_CLASS &lv_obj_class
/**********************
* TYPED... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_draw.c | C | apache-2.0 | 13,513 |
/**
* @file lv_obj_draw.h
*
*/
#ifndef LV_OBJ_DRAW_H
#define LV_OBJ_DRAW_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../draw/lv_draw.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_draw.h | C | apache-2.0 | 7,226 |
/**
* @file lv_obj_pos.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_obj.h"
#include "lv_disp.h"
#include "lv_refr.h"
#include "../misc/lv_gc.h"
/*********************
* DEFINES
*********************/
#define MY_CLASS &lv_obj_class
/**********************
* TYPED... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_pos.c | C | apache-2.0 | 34,721 |
/**
* @file lv_obj_pos.h
*
*/
#ifndef LV_OBJ_POS_H
#define LV_OBJ_POS_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../misc/lv_area.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
***... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_pos.h | C | apache-2.0 | 16,555 |
/**
* @file lv_obj_scroll.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_obj_scroll.h"
#include "lv_obj.h"
#include "lv_indev.h"
#include "lv_disp.h"
#include "lv_indev_scroll.h"
/*********************
* DEFINES
*********************/
#define MY_CLASS &lv_obj_class
#defi... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_scroll.c | C | apache-2.0 | 26,341 |
/**
* @file lv_obj_scroll.h
*
*/
#ifndef LV_OBJ_SCROLL_H
#define LV_OBJ_SCROLL_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../misc/lv_area.h"
#include "../misc/lv_anim.h"
/*********************
* DEFINES
*********************/
/******... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_scroll.h | C | apache-2.0 | 10,011 |
/**
* @file lv_obj_style.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_obj.h"
#include "lv_disp.h"
#include "../misc/lv_gc.h"
/*********************
* DEFINES
*********************/
#define MY_CLASS &lv_obj_class
/**********************
* TYPEDEFS
**************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_style.c | C | apache-2.0 | 29,227 |
/**
* @file lv_obj_style.h
*
*/
#ifndef LV_OBJ_STYLE_H
#define LV_OBJ_STYLE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdint.h>
#include <stdbool.h>
#include "../misc/lv_bidi.h"
/*********************
* DEFINES
*********************/... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_style.h | C | apache-2.0 | 8,896 |
#include "lv_obj.h"
void lv_obj_set_style_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector)
{
lv_style_value_t v = {
.num = (int32_t)value
};
lv_obj_set_local_style_prop(obj, LV_STYLE_WIDTH, v, selector);
}
void lv_obj_set_style_min_width(struct _lv_obj_t * obj, lv_coord... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_style_gen.c | C | apache-2.0 | 22,015 |
static inline lv_coord_t lv_obj_get_style_width(const struct _lv_obj_t * obj, uint32_t part)
{
lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_WIDTH);
return (lv_coord_t)v.num;
}
static inline lv_coord_t lv_obj_get_style_min_width(const struct _lv_obj_t * obj, uint32_t part)
{
lv_style_value... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_style_gen.h | C | apache-2.0 | 28,647 |
/**
* @file lv_obj_tree.c
*
*/
/*********************
* INCLUDES
*********************/
#include <stdlib.h>
#include "lv_obj.h"
#include "lv_indev.h"
#include "../misc/lv_anim.h"
#include "../misc/lv_gc.h"
#include "../misc/lv_async.h"
/*********************
* DEFINES
*********************/
#define ... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_tree.c | C | apache-2.0 | 12,200 |
/**
* @file struct _lv_obj_tree.h
*
*/
#ifndef LV_OBJ_TREE_H
#define LV_OBJ_TREE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stddef.h>
#include <stdbool.h>
/*********************
* DEFINES
*********************/
/********************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_obj_tree.h | C | apache-2.0 | 4,999 |
/**
* @file lv_refr.c
*
*/
/*********************
* INCLUDES
*********************/
#include <stddef.h>
#include "lv_refr.h"
#include "lv_disp.h"
#include "../hal/lv_hal_tick.h"
#include "../hal/lv_hal_disp.h"
#include "../misc/lv_timer.h"
#include "../misc/lv_mem.h"
#include "../misc/lv_math.h"
#include "..... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_refr.c | C | apache-2.0 | 33,289 |
/**
* @file lv_refr.h
*
*/
#ifndef LV_REFR_H
#define LV_REFR_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_obj.h"
#include <stdbool.h>
/*********************
* DEFINES
*********************/
#define LV_REFR_TASK_PRIO LV_TASK_PRIO_MID... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_refr.h | C | apache-2.0 | 2,366 |
/**
* @file lv_theme.c
*
*/
/*********************
* INCLUDES
*********************/
#include "../../lvgl.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************/
/**********************
* STATIC PROTOTYPES
*********************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_theme.c | C | apache-2.0 | 2,948 |
/**
*@file lv_theme.h
*
*/
#ifndef LV_THEME_H
#define LV_THEME_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../core/lv_obj.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
*****************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/core/lv_theme.h | C | apache-2.0 | 2,779 |
/**
* @file lv_draw.h
*
*/
#ifndef LV_DRAW_H
#define LV_DRAW_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../lv_conf_internal.h"
#include "../misc/lv_style.h"
#include "../misc/lv_txt.h"
#include "lv_img_decoder.h"
#include "lv_img_cache.h"
#... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw.h | C | apache-2.0 | 1,003 |
CSRCS += lv_draw_arc.c
CSRCS += lv_draw_blend.c
CSRCS += lv_draw_img.c
CSRCS += lv_draw_label.c
CSRCS += lv_draw_line.c
CSRCS += lv_draw_mask.c
CSRCS += lv_draw_rect.c
CSRCS += lv_draw_triangle.c
CSRCS += lv_img_buf.c
CSRCS += lv_img_cache.c
CSRCS += lv_img_decoder.c
DEPPATH += --dep-path $(LVGL_DIR)/$(LVGL_DIR_NAME)/... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw.mk | Makefile | apache-2.0 | 430 |
/**
* @file lv_draw_arc.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_draw_arc.h"
#include "lv_draw_rect.h"
#include "lv_draw_mask.h"
#include "../misc/lv_math.h"
#include "../misc/lv_log.h"
#include "../misc/lv_mem.h"
/*********************
* DEFINES
******************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_arc.c | C | apache-2.0 | 23,801 |
/**
* @file lv_draw_arc.h
*
*/
#ifndef LV_DRAW_ARC_H
#define LV_DRAW_ARC_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_draw_line.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
***... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_arc.h | C | apache-2.0 | 2,367 |
/**
* @file lv_draw_blend.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_draw_blend.h"
#include "lv_img_decoder.h"
#include "../misc/lv_math.h"
#include "../hal/lv_hal_disp.h"
#include "../core/lv_refr.h"
#if LV_USE_GPU_NXP_PXP
#include "../gpu/lv_gpu_nxp_pxp.h"
#elif LV_US... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_blend.c | C | apache-2.0 | 43,274 |
/**
* @file lv_draw_blend.h
*
*/
#ifndef LV_DRAW_BLEND_H
#define LV_DRAW_BLEND_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "../misc/lv_color.h"
#include "../misc/lv_area.h"
#include "../misc/lv_style.h"
#include "lv_draw_mask.h"
/*************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_blend.h | C | apache-2.0 | 1,220 |
/**
* @file lv_draw_img.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_draw_img.h"
#include "lv_img_cache.h"
#include "../hal/lv_hal_disp.h"
#include "../misc/lv_log.h"
#include "../core/lv_refr.h"
#include "../misc/lv_mem.h"
#include "../misc/lv_math.h"
#if LV_USE_GPU_STM32_DMA... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_img.c | C | apache-2.0 | 24,537 |
/**
* @file lv_draw_img.h
*
*/
#ifndef LV_DRAW_IMG_H
#define LV_DRAW_IMG_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_img_decoder.h"
#include "lv_img_buf.h"
#include "lv_draw_blend.h"
/*********************
* DEFINES
****************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_img.h | C | apache-2.0 | 2,324 |
/**
* @file lv_draw_label.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_draw_label.h"
#include "../misc/lv_math.h"
#include "../hal/lv_hal_disp.h"
#include "../core/lv_refr.h"
#include "../misc/lv_bidi.h"
#include "../misc/lv_assert.h"
#if LV_USE_GPU_SDL
#include "../gpu/l... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_label.c | C | apache-2.0 | 31,714 |
/**
* @file lv_draw_label.h
*
*/
#ifndef LV_DRAW_LABEL_H
#define LV_DRAW_LABEL_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_draw_blend.h"
#include "../misc/lv_bidi.h"
#include "../misc/lv_txt.h"
#include "../misc/lv_color.h"
/**************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_label.h | C | apache-2.0 | 3,227 |
/**
* @file lv_draw_line.c
*
*/
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#include "lv_draw_mask.h"
#include "lv_draw_blend.h"
#include "../core/lv_refr.h"
#include "../misc/lv_math.h"
/*********************
* DEFINES
*********************/
/**********************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_line.c | C | apache-2.0 | 17,879 |
/**
* @file lv_draw_line.h
*
*/
#ifndef LV_DRAW_LINE_H
#define LV_DRAW_LINE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_draw_blend.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_line.h | C | apache-2.0 | 1,458 |
/**
* @file lv_mask.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_draw_mask.h"
#if LV_DRAW_COMPLEX
#include "../misc/lv_math.h"
#include "../misc/lv_log.h"
#include "../misc/lv_assert.h"
#include "../misc/lv_gc.h"
/*********************
* DEFINES
*********************/
... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_mask.c | C | apache-2.0 | 50,859 |
/**
* @file lv_draw_mask.h
*
*/
#ifndef LV_DRAW_MASK_H
#define LV_DRAW_MASK_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#include "../misc/lv_area.h"
#include "../misc/lv_color.h"
#include "../misc/lv_math.h"
/*********************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_mask.h | C | apache-2.0 | 12,661 |
/**
* @file lv_draw_rect.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_draw_rect.h"
#include "lv_draw_blend.h"
#include "lv_draw_mask.h"
#include "../misc/lv_math.h"
#include "../misc/lv_txt_ap.h"
#include "../core/lv_refr.h"
#include "../misc/lv_assert.h"
/*******************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_rect.c | C | apache-2.0 | 52,966 |
/**
* @file lv_draw_rect.h
*
*/
#ifndef LV_DRAW_RECT_H
#define LV_DRAW_RECT_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_draw_blend.h"
#include "../font/lv_font.h"
/*********************
* DEFINES
*********************/
#define LV_RA... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_rect.h | C | apache-2.0 | 2,407 |
/**
* @file lv_draw_triangle.c
*
*/
/*********************
* INCLUDES
*********************/
#include "lv_draw_triangle.h"
#include "../misc/lv_math.h"
#include "../misc/lv_mem.h"
/*********************
* DEFINES
*********************/
/**********************
* TYPEDEFS
**********************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_triangle.c | C | apache-2.0 | 6,505 |
/**
* @file lv_draw_triangle.h
*
*/
#ifndef LV_DRAW_TRIANGLE_H
#define LV_DRAW_TRIANGLE_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include "lv_draw_rect.h"
/*********************
* DEFINES
*********************/
/**********************
* ... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_draw_triangle.h | C | apache-2.0 | 1,320 |
/**
* @file lv_img_buf.c
*
*/
/*********************
* INCLUDES
*********************/
#include <stddef.h>
#include <string.h>
#include "lv_img_buf.h"
#include "lv_draw_img.h"
#include "../misc/lv_math.h"
#include "../misc/lv_log.h"
#include "../misc/lv_mem.h"
/*********************
* DEFINES
*******... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_img_buf.c | C | apache-2.0 | 27,213 |
/**
* @file lv_img_buf.h
*
*/
#ifndef LV_IMG_BUF_H
#define LV_IMG_BUF_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdbool.h>
#include "../misc/lv_color.h"
#include "../misc/lv_area.h"
/*********************
* DEFINES
******************... | YifuLiu/AliOS-Things | components/py_engine/engine/lib/lv_bindings/lvgl/src/draw/lv_img_buf.h | C | apache-2.0 | 11,567 |