[][src]Module lvgl::core::obj

Contains Rust bindings for LVGL Core API lv_core

Structs

__BindgenBitfieldUnit
__BindgenUnionField
_disp_drv_t

Display Driver structure to be registered by HAL

_disp_t

TYPEDEFS

_lv_anim_t

Describes an animation

_lv_font_struct

Describe the properties of a font

_lv_group_t
_lv_indev_drv_t

Initialized by the user and registered by 'lv_indev_add()'

_lv_indev_proc_t

Run time data of input devices Internally used by the library, you should not need to touch it.

_lv_indev_proc_t__bindgen_ty_1
_lv_indev_proc_t__bindgen_ty_1__bindgen_ty_1
_lv_indev_proc_t__bindgen_ty_1__bindgen_ty_2
_lv_indev_t

The main input device descriptor with driver, runtime data ('proc') and some additional information

_lv_obj_t

TYPEDEFS

_lv_task_t

TYPEDEFS

lv_area_t

Represents an area of the screen.

lv_color1_t

TYPEDEFS

lv_color1_t__bindgen_ty_1
lv_color8_t
lv_color8_t__bindgen_ty_1
lv_color16_t
lv_color16_t__bindgen_ty_1
lv_color32_t
lv_color32_t__bindgen_ty_1
lv_color_hsv_t
lv_disp_buf_t

Structure for holding display buffer information.

lv_font_glyph_dsc_t

Describes the properties of a glyph.

lv_indev_data_t

Data structure passed to an input driver to fill

lv_ll_t

Description of a linked list

lv_mem_monitor_t

Heap information structure.

lv_obj_type_t

Used by lv_obj_get_type(). The object's and its ancestor types are stored here

lv_point_t

Represents a point on the screen.

lv_reailgn_t
lv_style_anim_dsc_t

Data structure for style animations.

lv_style_t

Objects in LittlevGL can be assigned a style - which holds information about how the object should be drawn.

lv_style_t__bindgen_ty_1

Object background.

lv_style_t__bindgen_ty_1__bindgen_ty_1
lv_style_t__bindgen_ty_1__bindgen_ty_2
lv_style_t__bindgen_ty_1__bindgen_ty_3
lv_style_t__bindgen_ty_2

Style for text drawn by this object.

lv_style_t__bindgen_ty_3
lv_style_t__bindgen_ty_4

Constants

LV_ALIGN_CENTER
LV_ALIGN_IN_BOTTOM_LEFT
LV_ALIGN_IN_BOTTOM_MID
LV_ALIGN_IN_BOTTOM_RIGHT
LV_ALIGN_IN_LEFT_MID
LV_ALIGN_IN_RIGHT_MID
LV_ALIGN_IN_TOP_LEFT
LV_ALIGN_IN_TOP_MID
LV_ALIGN_IN_TOP_RIGHT
LV_ALIGN_OUT_BOTTOM_LEFT
LV_ALIGN_OUT_BOTTOM_MID
LV_ALIGN_OUT_BOTTOM_RIGHT
LV_ALIGN_OUT_LEFT_BOTTOM
LV_ALIGN_OUT_LEFT_MID
LV_ALIGN_OUT_LEFT_TOP
LV_ALIGN_OUT_RIGHT_BOTTOM
LV_ALIGN_OUT_RIGHT_MID
LV_ALIGN_OUT_RIGHT_TOP
LV_ALIGN_OUT_TOP_LEFT
LV_ALIGN_OUT_TOP_MID
LV_ALIGN_OUT_TOP_RIGHT
LV_ANIM_OFF
LV_ANIM_ON
LV_ANTIALIAS
LV_BIDI_DIR_AUTO
LV_BIDI_DIR_INHERIT
LV_BIDI_DIR_LTR
LV_BIDI_DIR_NEUTRAL
LV_BIDI_DIR_RTL
LV_BIDI_DIR_WEAK
LV_BIDI_LRO
LV_BIDI_RLO
LV_BORDER_BOTTOM
LV_BORDER_FULL
LV_BORDER_INTERNAL

< FOR matrix-like objects (e.g. Button matrix)

LV_BORDER_LEFT
LV_BORDER_NONE
LV_BORDER_RIGHT
LV_BORDER_TOP
LV_BTN_INK_EFFECT
LV_CHART_AXIS_TICK_LABEL_MAX_LEN
LV_COLOR_16_SWAP
LV_COLOR_DEPTH
LV_COLOR_SCREEN_TRANSP
LV_COLOR_SIZE
LV_CONF_INCLUDE_SIMPLE
LV_DDLIST_DEF_ANIM_TIME
LV_DESIGN_COVER_CHK

< Check if the object fully covers the 'mask_p' area

LV_DESIGN_DRAW_MAIN

< Draw the main portion of the object

LV_DESIGN_DRAW_POST

< Draw extras on the object

LV_DISP_DEF_REFR_PERIOD
LV_DPI
LV_DRAG_DIR_ALL

< Object can be dragged in all directions.

LV_DRAG_DIR_HOR

< Object can be dragged horizontally.

LV_DRAG_DIR_VER

< Object can be dragged vertically.

LV_ENABLE_GC
LV_EVENT_APPLY

< "Ok", "Apply" or similar specific button has clicked

LV_EVENT_CANCEL

< "Close", "Cancel" or similar specific button has clicked

LV_EVENT_CLICKED

< Called on release if not dragged (regardless to long press)

LV_EVENT_DEFOCUSED
LV_EVENT_DELETE

< Object is being deleted

LV_EVENT_DRAG_BEGIN
LV_EVENT_DRAG_END
LV_EVENT_DRAG_THROW_BEGIN
LV_EVENT_FOCUSED
LV_EVENT_INSERT
LV_EVENT_KEY
LV_EVENT_LONG_PRESSED

< Object has been pressed for at least LV_INDEV_LONG_PRESS_TIME. Not called if dragged.

LV_EVENT_LONG_PRESSED_REPEAT

< Called after LV_INDEV_LONG_PRESS_TIME in every LV_INDEV_LONG_PRESS_REP_TIME ms. Not called if dragged.

LV_EVENT_PRESSED

< The object has been pressed

LV_EVENT_PRESSING

< The object is being pressed (called continuously while pressing)

LV_EVENT_PRESS_LOST

< User is still pressing but slid cursor/finger off of the object

LV_EVENT_REFRESH
LV_EVENT_RELEASED

< Called in every cases when the object has been released

LV_EVENT_SHORT_CLICKED

< User pressed object for a short period of time, then released it. Not called if dragged.

LV_EVENT_VALUE_CHANGED

< The object's value has changed (i.e. slider moved)

LV_EXT_CLICK_AREA_FULL
LV_EXT_CLICK_AREA_OFF
LV_EXT_CLICK_AREA_TINY
LV_FONT_FMT_TXT_LARGE
LV_FONT_KERN_NEGATIVE
LV_FONT_KERN_POSITIVE
LV_FONT_ROBOTO_12
LV_FONT_ROBOTO_12_SUBPX
LV_FONT_ROBOTO_16
LV_FONT_ROBOTO_22
LV_FONT_ROBOTO_28
LV_FONT_ROBOTO_28_COMPRESSED
LV_FONT_SUBPX_BGR
LV_FONT_SUBPX_BOTH
LV_FONT_SUBPX_HOR
LV_FONT_SUBPX_NONE
LV_FONT_SUBPX_VER
LV_FONT_UNSCII_8
LV_FONT_WIDTH_FRACT_DIGIT
LV_HOR_RES_MAX
LV_IMGBTN_TILED
LV_IMG_CACHE_DEF_SIZE
LV_IMG_CF_ALPHA
LV_IMG_CF_INDEXED
LV_INDEV_DEF_DRAG_LIMIT
LV_INDEV_DEF_DRAG_THROW
LV_INDEV_DEF_LONG_PRESS_REP_TIME
LV_INDEV_DEF_LONG_PRESS_TIME
LV_INDEV_DEF_READ_PERIOD
LV_INDEV_STATE_PR
LV_INDEV_STATE_REL
LV_INDEV_TYPE_BUTTON

< External (hardware button) which is assigned to a specific point of the screen

LV_INDEV_TYPE_ENCODER

< Encoder with only Left, Right turn and a Button

LV_INDEV_TYPE_KEYPAD

< Keypad or keyboard

LV_INDEV_TYPE_NONE

< Uninitialized state

LV_INDEV_TYPE_POINTER

< Touch pad, mouse, external button

LV_INDEXED_CHROMA
LV_INV_BUF_SIZE
LV_LABEL_DEF_SCROLL_SPEED
LV_LABEL_LONG_TXT_HINT
LV_LABEL_TEXT_SEL
LV_LABEL_WAIT_CHAR_COUNT
LV_LIST_DEF_ANIM_TIME
LV_LOG_LEVEL_ERROR
LV_LOG_LEVEL_INFO
LV_LOG_LEVEL_NONE
LV_LOG_LEVEL_TRACE
LV_LOG_LEVEL_WARN
LV_LVGL_H_INCLUDE_SIMPLE
LV_MAX_ANCESTOR_NUM
LV_MEM_ADR
LV_MEM_AUTO_DEFRAG
LV_MEM_CUSTOM
LV_MEM_SIZE
LV_OPA_0
LV_OPA_10
LV_OPA_20
LV_OPA_30
LV_OPA_40
LV_OPA_50
LV_OPA_60
LV_OPA_70
LV_OPA_80
LV_OPA_90
LV_OPA_100
LV_OPA_COVER
LV_OPA_MAX
LV_OPA_MIN
LV_OPA_TRANSP
LV_PAGE_DEF_ANIM_TIME
LV_PRELOAD_DEF_ARC_LENGTH
LV_PRELOAD_DEF_SPIN_TIME
LV_PROTECT_CHILD_CHG

< Disable the child change signal. Used by the library

LV_PROTECT_CLICK_FOCUS

< Prevent focusing the object by clicking on it

LV_PROTECT_FOLLOW

< Prevent the object be followed in automatic ordering (e.g. in lv_cont PRETTY layout)

LV_PROTECT_NONE
LV_PROTECT_PARENT

< Prevent automatic parent change (e.g. in lv_page)

LV_PROTECT_POS

< Prevent automatic positioning (e.g. in lv_cont layout)

LV_PROTECT_PRESS_LOST

< If the indev was pressing this object but swiped out while pressing do not search other object.

LV_RES_INV
LV_RES_OK
LV_ROLLER_DEF_ANIM_TIME
LV_ROLLER_INF_PAGES
LV_SHADOW_BOTTOM

< Only draw bottom shadow

LV_SHADOW_FULL

< Draw shadow on all sides

LV_SIGNAL_BASE_DIR_CHG

<The base dir has changed

LV_SIGNAL_CHILD_CHG

< Child was removed/added

LV_SIGNAL_CLEANUP

< Object is being deleted

LV_SIGNAL_CONTROL
LV_SIGNAL_CORD_CHG

< Object coordinates/size have changed

LV_SIGNAL_DEFOCUS
LV_SIGNAL_DRAG_BEGIN
LV_SIGNAL_DRAG_END
LV_SIGNAL_FOCUS
LV_SIGNAL_GET_EDITABLE
LV_SIGNAL_GET_TYPE

< LittlevGL needs to retrieve the object's type

LV_SIGNAL_LONG_PRESS

< Object has been pressed for at least LV_INDEV_LONG_PRESS_TIME. Not called if dragged.

LV_SIGNAL_LONG_PRESS_REP

< Called after LV_INDEV_LONG_PRESS_TIME in every LV_INDEV_LONG_PRESS_REP_TIME ms. Not called if dragged.

LV_SIGNAL_PARENT_SIZE_CHG

< Parent's size has changed

LV_SIGNAL_PRESSED

< The object has been pressed

LV_SIGNAL_PRESSING

< The object is being pressed (called continuously while pressing)

LV_SIGNAL_PRESS_LOST

< User is still pressing but slid cursor/finger off of the object

LV_SIGNAL_REFR_EXT_DRAW_PAD

< Object's extra padding has changed

LV_SIGNAL_RELEASED

< User pressed object for a short period of time, then released it. Not called if dragged.

LV_SIGNAL_STYLE_CHG

< Object's style has changed

LV_SPRINTF_CUSTOM
LV_STYLE_DEGUG_SENTINEL_VALUE
LV_SYMBOL_AUDIO
LV_SYMBOL_BACKSPACE
LV_SYMBOL_BATTERY_1
LV_SYMBOL_BATTERY_2
LV_SYMBOL_BATTERY_3
LV_SYMBOL_BATTERY_EMPTY
LV_SYMBOL_BATTERY_FULL
LV_SYMBOL_BELL
LV_SYMBOL_BLUETOOTH
LV_SYMBOL_CALL
LV_SYMBOL_CHARGE
LV_SYMBOL_CLOSE
LV_SYMBOL_COPY
LV_SYMBOL_CUT
LV_SYMBOL_DIRECTORY
LV_SYMBOL_DOWN
LV_SYMBOL_DOWNLOAD
LV_SYMBOL_DRIVE
LV_SYMBOL_DUMMY
LV_SYMBOL_EDIT
LV_SYMBOL_EJECT
LV_SYMBOL_EYE_CLOSE
LV_SYMBOL_EYE_OPEN
LV_SYMBOL_FILE
LV_SYMBOL_GPS
LV_SYMBOL_HOME
LV_SYMBOL_IMAGE
LV_SYMBOL_KEYBOARD
LV_SYMBOL_LEFT
LV_SYMBOL_LIST
LV_SYMBOL_LOOP
LV_SYMBOL_MINUS
LV_SYMBOL_MUTE
LV_SYMBOL_NEW_LINE
LV_SYMBOL_NEXT
LV_SYMBOL_OK
LV_SYMBOL_PASTE
LV_SYMBOL_PAUSE
LV_SYMBOL_PLAY
LV_SYMBOL_PLUS
LV_SYMBOL_POWER
LV_SYMBOL_PREV
LV_SYMBOL_REFRESH
LV_SYMBOL_RIGHT
LV_SYMBOL_SAVE
LV_SYMBOL_SD_CARD
LV_SYMBOL_SETTINGS
LV_SYMBOL_SHUFFLE
LV_SYMBOL_STOP
LV_SYMBOL_TRASH
LV_SYMBOL_UP
LV_SYMBOL_UPLOAD
LV_SYMBOL_USB
LV_SYMBOL_VIDEO
LV_SYMBOL_VOLUME_MAX
LV_SYMBOL_VOLUME_MID
LV_SYMBOL_WARNING
LV_SYMBOL_WIFI
LV_TABLE_COL_MAX
LV_TABVIEW_DEF_ANIM_TIME
LV_TASK_PRIO_HIGH
LV_TASK_PRIO_HIGHEST
LV_TASK_PRIO_LOW
LV_TASK_PRIO_LOWEST
LV_TASK_PRIO_MID
LV_TASK_PRIO_OFF
LV_TA_DEF_CURSOR_BLINK_TIME
LV_TA_DEF_PWD_SHOW_TIME
LV_THEME_LIVE_UPDATE
LV_TICK_CUSTOM
LV_TICK_CUSTOM_INCLUDE
LV_TILEVIEW_DEF_ANIM_TIME
LV_TXT_BREAK_CHARS
LV_TXT_COLOR_CMD
LV_TXT_LINE_BREAK_LONG_LEN
LV_TXT_LINE_BREAK_LONG_POST_MIN_LEN
LV_TXT_LINE_BREAK_LONG_PRE_MIN_LEN
LV_USE_ANIMATION
LV_USE_ARC
LV_USE_BAR
LV_USE_BIDI
LV_USE_BTN
LV_USE_BTNM
LV_USE_CALENDAR
LV_USE_CANVAS
LV_USE_CB
LV_USE_CHART
LV_USE_CONT
LV_USE_CPICKER
LV_USE_DDLIST
LV_USE_DEBUG
LV_USE_FILESYSTEM
LV_USE_GAUGE
LV_USE_GPU
LV_USE_GROUP
LV_USE_IMG
LV_USE_IMGBTN
LV_USE_KB
LV_USE_LABEL
LV_USE_LED
LV_USE_LINE
LV_USE_LIST
LV_USE_LMETER
LV_USE_LOG
LV_USE_MBOX
LV_USE_OBJ_REALIGN
LV_USE_PAGE
LV_USE_PRELOAD
LV_USE_ROLLER
LV_USE_SHADOW
LV_USE_SLIDER
LV_USE_SPINBOX
LV_USE_SW
LV_USE_TA
LV_USE_TABLE
LV_USE_TABVIEW
LV_USE_THEME_ALIEN
LV_USE_THEME_DEFAULT
LV_USE_THEME_MATERIAL
LV_USE_THEME_MONO
LV_USE_THEME_NEMO
LV_USE_THEME_NIGHT
LV_USE_THEME_TEMPL
LV_USE_THEME_ZEN
LV_USE_TILEVIEW
LV_USE_USER_DATA
LV_USE_WIN
LV_VER_RES_MAX
_LV_TASK_PRIO_NUM

Statics

lv_font_roboto_28
lv_style_btn_ina
lv_style_btn_pr
lv_style_btn_rel
lv_style_btn_tgl_pr
lv_style_btn_tgl_rel
lv_style_plain
lv_style_plain_color
lv_style_pretty
lv_style_pretty_color
lv_style_scr
lv_style_transp
lv_style_transp_fit
lv_style_transp_tight

Functions

align

Align an object to an other object.

align_origo

Align an object to an other object.

allocate_ext_attr

Allocate a new ext. data for an object

anim_clear_playback

Disable playback. (Disabled after lv_anim_init())

anim_clear_repeat

Disable repeat. (Disabled after lv_anim_init())

anim_core_init

Init. the animation module

anim_count_running

Get the number of currently running animations Return: the number of running animations

anim_create

Create an animation

anim_custom_del

Delete an aniamation by getting the animated variable from a. Only animations with exec_cb will be deleted. This function exist becasue it's logical that all anim functions receives an lv_anim_t as their first parameter. It's not practical in C but might makes the API more conequent and makes easier to genrate bindings.

anim_del

Delete an animation of a variable with a given animator function

anim_init

Initialize an animation variable. E.g.: lv_anim_t a; lv_anim_init(&a); lv_anim_set_...(&a); lv_anim_create(&a);

anim_path_bounce

Calculate the current value of an animation with 3 bounces

anim_path_ease_in

Calculate the current value of an animation slowing down the start phase

anim_path_ease_in_out

Calculate the current value of an animation applying an "S" characteristic (cosine)

anim_path_ease_out

Calculate the current value of an animation slowing down the end phase

anim_path_linear

Calculate the current value of an animation applying linear characteristic

anim_path_overshoot

Calculate the current value of an animation with overshoot at the end

anim_path_step

Calculate the current value of an animation applying step characteristic. (Set end value on the end of the animation)

anim_set_custom_exec_cb

Similar to lv_anim_set_var_and_cb but lv_anim_custom_exec_cb_t receives lv_anim_t * as its first parameter instead of void *. This function might be used when LittlevGL is binded to other languages because it's more consistent to have lv_anim_t * as first parameter.

anim_set_exec_cb

Set a variable to animate function to execute on var

anim_set_path_cb

Set the path (curve) of the animation.

anim_set_playback

Make the animation to play back to when the forward direction is ready

anim_set_ready_cb

Set a function call when the animation is ready

anim_set_repeat

Make the animation to start again when ready.

anim_set_time

Set the duration and delay of an animation

anim_set_values

Set the start and end values of an animation

anim_speed_to_time

Calculate the time of an animation with a given speed and the start and end values

area_copy

Copy an area

area_get_height

Get the height of an area

area_get_size

Return with area of an area (x * y)

area_get_width

Get the width of an area

area_increment

Increment or decrement an area's size by a single amount

area_intersect

Get the common parts of two areas

area_is_in

Check if an area is fully on an other

area_is_on

Check if two area has common parts

area_is_point_on

Check if a point is on an area

area_join

Join two areas into a third which involves the other two

area_set

Initialize an area

area_set_height

Set the height of an area

area_set_pos

Set the position of an area (width and height will be kept)

area_set_width

Set the width of an area

clean

Delete all children of an object

clear_protect

Clear a bit or bits in the protect filed

color_brightness

Get the brightness of a color

color_hex
color_hex3
color_hsv_to_rgb

Convert a HSV color to RGB

color_make
color_mix
color_rgb_to_hsv

Convert a 32-bit RGB color to HSV

color_to1

GLOBAL PROTOTYPES

color_to8
color_to16
color_to32
color_to_hsv

Convert a color to HSV

count_children

Count the children of an object (only children directly on 'obj')

count_children_recursive

Recursively count the children of an object

create

Create a basic object

del

Delete 'obj' and all of its children

del_async

Helper function for asynchronously deleting objects. Useful for cases where you can't delete an object directly in an LV_EVENT_DELETE handler (i.e. parent).

disp_buf_init

Initialize a display buffer

disp_drv_init

Initialize a display driver with default values. It is used to have known values in the fields and not junk in memory. After it you can safely set only the fields you need.

disp_drv_register

Register an initialized display driver. Automatically set the first display as active.

disp_drv_update

Update the driver in run time.

disp_flush_ready

Call in the display driver's flush_cb function when the flushing is finished

disp_get_antialiasing

Get if anti-aliasing is enabled for a display or not

disp_get_buf

Get the internal buffer of a display

disp_get_default

Get the default display Return: pointer to the default display

disp_get_hor_res

Get the horizontal resolution of a display

disp_get_inv_buf_size

Get the number of areas in the buffer Return: number of invalid areas

disp_get_next

Get the next display.

disp_get_ver_res

Get the vertical resolution of a display

disp_is_double_buf

Check the driver configuration if it's double buffered (both buf1 and buf2 are set)

disp_is_true_double_buf

Check the driver configuration if it's TRUE double buffered (both buf1 and buf2 are set and size is screen sized)

disp_pop_from_inv_buf

Pop (delete) the last 'num' invalidated areas from the buffer

disp_remove

Remove a display

disp_set_default

Set a default screen. The new screens will be created on it by default.

disp_set_direction
event_get_data

Get the data parameter of the current event Return: the data parameter

event_send

Send an event to the object

event_send_func

Call an event function with an object, event, and data.

font_get_glyph_bitmap

Return with the bitmap of a font.

font_get_glyph_dsc

Get the descriptor of a glyph

font_get_glyph_width

Get the width of a glyph with kerning

font_get_line_height

Get the line height of a font. All characters fit into this height

get_auto_realign

Get the automatic realign property of the object.

get_base_dir
get_child

Iterate through the children of an object (start from the "youngest, lastly created")

get_child_back

Iterate through the children of an object (start from the "oldest", firstly created)

get_click

Get the click enable attribute of an object

get_coords

Copy the coordinates of an object to an area

get_design_cb

Get the design function of an object

get_disp

Get the display of an object

get_drag

Get the drag enable attribute of an object

get_drag_dir

Get the directions an object can be dragged

get_drag_parent

Get the drag parent attribute of an object

get_drag_throw

Get the drag throw enable attribute of an object

get_event_cb

Get the event function of an object

get_ext_attr

Get the ext pointer

get_ext_click_pad_bottom

Get the bottom padding of extended clickable area

get_ext_click_pad_left

Get the left padding of extended clickable area

get_ext_click_pad_right

Get the right padding of extended clickable area

get_ext_click_pad_top

Get the top padding of extended clickable area

get_ext_draw_pad

Get the extended size attribute of an object

get_group

Get the group of the object

get_height

Get the height of an object

get_height_fit

Get that height reduced by the top an bottom padding.

get_hidden

Get the hidden attribute of an object

get_inner_coords

Reduce area retried by lv_obj_get_coords() the get graphically usable area of an object. (Without the size of the border or other extra graphical elements)

get_opa_scale

Get the opa scale parameter of an object

get_opa_scale_enable

Get the opa scale enable parameter

get_parent

Returns with the parent of an object

get_parent_event

Get the drag parent attribute of an object

get_protect

Get the protect field of an object

get_screen

Return with the screen of an object

get_signal_cb

Get the signal function of an object

get_style

Get the style pointer of an object (if NULL get style of the parent)

get_top

Get the top enable attribute of an object

get_type

Get object's and its ancestors type. Put their name in type_buf starting with the current type. E.g. buf.type[0]="lv_btn", buf.type[1]="lv_cont", buf.type[2]="lv_obj"

get_user_data

Get the object's user data

get_user_data_ptr

Get a pointer to the object's user data

get_width

Get the width of an object

get_width_fit

Get that width reduced by the left and right padding.

get_x

Get the x coordinate of object

get_y

Get the y coordinate of object

handle_get_type_signal

Used in the signal callback to handle LV_SIGNAL_GET_TYPE signal

indev_drv_init

Initialize an input device driver with default values. It is used to surly have known values in the fields ant not memory junk. After it you can set the fields.

indev_drv_register

Register an initialized input device driver.

indev_drv_update

Update the driver in run time.

indev_get_next

Get the next input device.

indev_read

Read data from an input device.

invalidate

Mark the object as invalid therefore its current position will be redrawn by 'lv_refr_task'

is_focused

Tell whether the object is the focused object of a group or not.

is_protected

Check at least one bit of a given protect bitfield is set

ll_chg_list

Move a node to a new linked list

ll_clear

Remove and free all elements from a linked list. The list remain valid but become empty.

ll_get_head

Return with head node of the linked list

ll_get_len

Return the length of the linked list.

ll_get_next

Return with the pointer of the next node after 'n_act'

ll_get_prev

Return with the pointer of the previous node after 'n_act'

ll_get_tail

Return with tail node of the linked list

ll_init

Initialize linked list

ll_ins_head

Add a new head to a linked list

ll_ins_prev

Insert a new node in front of the n_act node

ll_ins_tail

Add a new tail to a linked list

ll_is_empty

Check if a linked list is empty

ll_move_before

Move a nodw before an other node in the same linked list

ll_rem

Remove the node 'node_p' from 'll_p' linked list. It does not free the the memory of node.

lv_init

Init. the 'lv' library.

mem_alloc

Allocate a memory dynamically

mem_defrag

Join the adjacent free memory blocks

mem_free

Free an allocated data

mem_get_size

Give the size of an allocated memory

mem_init

Initiaize the dyn_mem module (work memory and other variables)

mem_monitor

Give information about the work memory of dynamic allocation

mem_realloc

Reallocate a memory with a new size. The old content will be kept.

move_background

Move and object to the background

move_foreground

Move and object to the foreground

realign

Realign the object based on the last lv_obj_align parameters.

refresh_ext_draw_pad

Send a 'LV_SIGNAL_REFR_EXT_SIZE' signal to the object

refresh_style

Notify an object about its style is modified

report_style_mod

Notify all object if a style is modified

set_auto_realign

Enable the automatic realign of the object when its size has changed based on the last lv_obj_align parameters.

set_base_dir
set_click

Enable or disable the clicking of an object

set_design_cb

Set a new design function for an object

set_drag

Enable the dragging of an object

set_drag_dir

Set the directions an object can be dragged in

set_drag_parent

Enable to use parent for drag related operations. If trying to drag the object the parent will be moved instead

set_drag_throw

Enable the throwing of an object after is is dragged

set_event_cb

Set a an event handler function for an object. Used by the user to react on event which happens with the object.

set_ext_click_area

Set the size of an extended clickable area

set_height

Set the height of an object

set_hidden

Hide an object. It won't be visible and clickable.

set_opa_scale

Set the opa scale of an object. The opacity of this object and all it's children will be scaled down with this factor. lv_obj_set_opa_scale_enable(obj, true) needs to be called to enable it. (not for all children just for the parent where to start the opa scaling)

set_opa_scale_enable

Set the opa scale enable parameter (required to set opa_scale with lv_obj_set_opa_scale())

set_parent

Set a new parent for an object. Its relative position will be the same.

set_parent_event

Propagate the events to the parent too

set_pos

Set relative the position of an object (relative to the parent)

set_protect

Set a bit or bits in the protect filed

set_signal_cb

Set the a signal function of an object. Used internally by the library. Always call the previous signal function in the new.

set_size

Set the size of an object

set_style

Set a new style for an object

set_top

Enable to bring this object to the foreground if it or any of its children is clicked

set_user_data

Set the object's user data. The data will be copied.

set_width

Set the width of an object

set_x

Set the x coordinate of a object

set_y

Set the y coordinate of a object

signal_send

Send an event to the object

style_anim_clear_playback

Disable playback. (Disabled after lv_anim_init())

style_anim_clear_repeat

Disable repeat. (Disabled after lv_anim_init())

style_anim_create

Create an animation

style_anim_init

Initialize an animation variable. E.g.: lv_anim_t a; lv_style_anim__init(&a); lv_style_anim_set_...(&a); lv_style_anim_create(&a);

style_anim_set_playback

Make the animation to play back to when the forward direction is ready

style_anim_set_ready_cb

Set a function call when the animation is ready

style_anim_set_repeat

Make the animation to start again when ready.

style_anim_set_styles

  • a: pointer to an initialized lv_anim_t variable
  • to_anim: pointer to the style to animate
  • start: pointer to a style to animate from (start value)
  • end: pointer to a style to animate to (end value)
  • style_anim_set_time

    Set the duration and delay of an animation

    style_copy

    Copy a style to an other

    style_init

    Init the basic styles

    style_mix

    Mix two styles according to a given ratio

    task_core_init

    Init the lv_task module

    task_create

    Create a new lv_task

    task_create_basic

    Create an "empty" task. It needs to initialzed with at least lv_task_set_cb and lv_task_set_period Return: pointer to the craeted task

    task_del

    Delete a lv_task

    task_enable

    Enable or disable the whole lv_task handling

    task_get_idle

    Get idle percentage Return: the lv_task idle in percentage

    task_handler

    Call it periodically to handle lv_tasks.

    task_once

    Delete the lv_task after one call

    task_ready

    Make a lv_task ready. It will not wait its period.

    task_reset

    Reset a lv_task. It will be called the previously set period milliseconds later.

    task_set_cb

    Set the callback the task (the function to call periodically)

    task_set_period

    Set new period for a lv_task

    task_set_prio

    Set new priority for a lv_task

    tick_elaps

    Get the elapsed milliseconds since a previous time stamp

    tick_get

    Get the elapsed milliseconds since start up Return: the elapsed milliseconds

    tick_inc

    You have to call this function periodically

    Type Definitions

    _bindgen_ty_2

    The bitmaps might be upscaled by 3 to achieve subpixel rendering.

    _bindgen_ty_3

    Opacity percentages.

    _bindgen_ty_4

    Can be used to indicate if animations are enabled or disabled in a case

    _bindgen_ty_5

    TYPEDEFS

    _bindgen_ty_6
    _bindgen_ty_7

    LittlevGL error codes.

    _bindgen_ty_8

    TYPEDEFS

    _bindgen_ty_9

    Possible priorities for lv_tasks

    _bindgen_ty_10

    Possible input device types

    _bindgen_ty_11

    States for input devices

    _bindgen_ty_12

    Design modes

    _bindgen_ty_13
    _bindgen_ty_14

    Signals are for use by the object itself or to extend the object's functionality. Applications should use ::lv_obj_set_event_cb to be notified of events that occur on the object.

    _bindgen_ty_15

    Object alignment.

    _bindgen_ty_16
    _bindgen_ty_17
    lv_align_t
    lv_anim_custom_exec_cb_t

    Same as lv_anim_exec_xcb_t but receives lv_anim_t * as the first parameter. It's more consistent but less convenient. Might be used by binding generator functions.

    lv_anim_enable_t
    lv_anim_exec_xcb_t

    Generic prototype of "animator" functions. First parameter is the variable to animate. Second parameter is the value to set. Compatible with lv_xxx_set_yyy(obj, value) functions The x in _xcb_t means its not a fully generic prototype because it doesn't receive lv_anim_t * as its first argument

    lv_anim_path_cb_t

    Get the current value during an animation

    lv_anim_ready_cb_t

    Callback to call when the animation is ready

    lv_anim_t
    lv_anim_user_data_t
    lv_anim_value_t

    Type of the animated value

    lv_bidi_dir_t
    lv_border_part_t
    lv_color_int_t
    lv_color_t
    lv_coord_t
    lv_design_cb_t

    The design callback is used to draw the object on the screen. It accepts the object, a mask area, and the mode in which to draw the object.

    lv_design_mode_t
    lv_disp_drv_t
    lv_disp_drv_user_data_t
    lv_disp_t
    lv_drag_dir_t
    lv_event_cb_t

    @brief Event callback. Events are used to notify the user of some action being taken on the object. For details, see ::lv_event_t.

    lv_event_t
    lv_font_subpx_t
    lv_font_t
    lv_font_user_data_t
    lv_group_user_data_t
    lv_img_decoder_user_data_t
    lv_indev_drv_t
    lv_indev_drv_user_data_t
    lv_indev_proc_t
    lv_indev_state_t
    lv_indev_t
    lv_indev_type_t
    lv_ll_node_t

    Dummy type to make handling easier

    lv_log_level_t
    lv_obj_t
    lv_obj_user_data_t
    lv_opa_t
    lv_protect_t
    lv_res_t
    lv_shadow_type_t
    lv_signal_cb_t
    lv_signal_t
    lv_task_cb_t

    Tasks execute this type type of functions.

    lv_task_prio_t
    lv_task_t
    lv_uintptr_t