GLOBAL PROTOTYPES Add a style to an object. Examples:
lv_obj_add_style(btn, &style_btn, 0); //Default button style
lv_obj_add_style(btn, &btn_red, LV_STATE_PRESSED); //Overwrite only some colors to red when pressed
Mark the object as invalid to redrawn its area
Get the active screen of the default display
Get the value of a style property. The current state of the object will be considered. Inherited properties will be inherited. If a property is not set a default value will be returned.
Set the value of property in a style. This function shouldn't be used directly by the user. Instead use `lv_style_set_()`. E.g. `lv_style_set_bg_color()`
Set local style property on an object's part and state.
Set a new text for a label. Memory will be allocated to store the text by the label.
Set the size of an object.
Event callback. Events are used to notify the user of some action being taken on the object. For details, see ::lv_event_t.
Align an object to the center on its parent.
Add an event handler function for an object. Used by the user to react on event which happens with the object. An object can have multiple event handler. They will be called in the same order as they were added.
Get the parent of an object
Get the height of an object
Get the width of an object
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
DEFINES TYPEDEFS GLOBAL PROTOTYPES Copies a block of memory from a source address to a destination address.
Get the height of an area
Get the object originally targeted by the event. It's the same even if the event is bubbled.
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Change the alignment of an object and set new coordinates. Equivalent to: lv_obj_set_align(obj, align); lv_obj_set_pos(obj, x_ofs, y_ofs);
Get the event code of an event
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Get the parameter passed when the event was sent
Get the value of a property
The rectangle is a wrapper for fill, border, bg. image and box shadow. Internally fill, border, image and box shadow draw tasks will be created.
Check if a given flag or all the given flags are set on an object.
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Get the child of an object by the child's index.
Set how the item should flow
Get the current target of the event. It's the object which event handler being called. If the event is not bubbled it's the same as "normal" target.
Return with head node of the linked list
Set the start and end values of an animation
Get the width reduced by the left and right padding and the border width.
Get the common parts of two areas
Get the elapsed milliseconds since start up
Set a function to animate `var`
Get the height reduced by the top and bottom padding and the border width.
GLOBAL PROTOTYPES Initialize an animation variable. E.g.: lv_anim_t a; lv_anim_init(&a); lv_anim_set_...(&a); lv_anim_start(&a);
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Get the type of an input device
Return with the pointer of the next node after 'n_act'
Set the width of an object
Mark an area of an object as invalid. The area will be truncated to the object's area and marked for redraw.
Convert a percentage value to `int32_t`. Percentage values are stored in special range
Get the mapped of a number given an input and output range
Set the duration of an animation
Update the layout of an object.
Used by the widgets internally to call the ancestor widget types's event handler
Get the number of children
Set a variable to animate
Sets the width or height (on main axis) to grow the object in order fill the free space
Get the line height of a font. All characters fit into this height
Return the width of the area on the left the object. That is the number of pixels the object can be scrolled down. Normally positive but can be negative when scrolled inside.
Crate a draw task to render a text
Get the user_data passed when the event was registered on the object
Same as `memset(dst, 0x00, len)`.
Add one or more states to the object. The other state bits will remain unchanged. If specified in the styles, transition animation will be started from the previous state to the current.
TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Get the vertical resolution of a display
STATIC VARIABLES GLOBAL VARIABLES MACROS GLOBAL FUNCTIONS
Get the elapsed milliseconds since a previous time stamp
Set a new formatted text for a label. Memory will be allocated to store the text by the label. Example:
lv_label_set_text_fmt(label1, "%d user", user_num);
Fills a block of memory with a specified value.
Computes the length of the string str up to, but not including the terminating null character.
Reallocate a memory with a new size. The old content will be kept.
Delete animation(s) of a variable with a given animator function
Align an object to another object.
Copy the coordinates of an object to an area
Get the group of the object
Return the height of the area above the object. That is the number of pixels the object can be scrolled down. Normally positive but can be negative when scrolled inside.
Mark the object for layout update.
Get current X scroll position.
Get current Y scroll position.
Get the next input device.
Get the horizontal resolution of a display.
Get the currently processed input device. Can be used in action functions too.
Remove the node 'node_p' from 'll_p' linked list. It does not free the memory of node.
Get the draw context which should be the first parameter of the draw functions. Namely: `LV_EVENT_DRAW_MAIN/POST`, `LV_EVENT_DRAW_MAIN/POST_BEGIN`, `LV_EVENT_DRAW_MAIN/POST_END`
Initialize a label draw descriptor from an object's styles in its current state
Send a 'LV_EVENT_REFR_EXT_DRAW_SIZE' Call the ancestor's event handler to the object to refresh the value of the extended draw size. The result will be saved in `obj`.
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Set the height of an object
Get the DPI of the display
Return with area of an area (x * y)
moves the object to the given index in its parent. When used in listboxes, it can be used to sort the listbox items.
Get the width of a glyph with kerning
Check if a given flag or any of the flags are set on an object.
This function will compare two strings without specified length.
Initialize a line draw descriptor from an object's styles in its current state
Handle if the size of the internal ("virtual") content of an object has changed.
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Create a color from 0x000000..0xffffff input
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Manually set the current mode (edit or navigate).
Get the current mode (edit or navigate).
Scroll by a given amount of pixels
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Allocate zeroed memory dynamically
Remove one or more states to the object. The other state bits will remain unchanged. If specified in the styles, transition animation will be started from the previous state to the current.
Return with the pointer of the previous node after 'n_act'
Get the last point of an input device (for LV_INDEV_TYPE_POINTER and LV_INDEV_TYPE_BUTTON)
Allocate special data for an object if not allocated yet.
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
@cond Doxygen_Suppress Apply the added buffers on a line. Used internally by the library's drawing routines.
Check if a point is on an area
Set the cell of an object. The object's parent needs to have grid layout, else nothing will happen
Create a menu page object
Create a menu cont object
Set how to place (where to align) the items and tracks
Get the display of the object
Return with tail node of the linked list
Check if an area is fully on another
Get a pseudo random number in the given range
Get the area reduced by the paddings and the border width.
Return the width of the area on the right the object. That is the number of pixels the object can be scrolled down. Normally positive but can be negative when scrolled inside.
Set the path (curve) of the animation.
Set the value of an integer subject. It will notify all the observers as well.
Make the animation repeat itself.
Refresh a chart if its data line has changed
Notify an object and its children about its style is modified.
Send a control character to the focuses object of a group
Get the current cursor position in character index
Set the image data to display on the object
Set the behavior of the label with text longer than the object size
Check if the object is in a given state or not.
Create a color from 0x000..0xfff input
Remove and free all elements from a linked list. The list remain valid but become empty.
Scroll to a given Y coordinate on an object `y` will be limited internally to allow scrolling only on the content area.
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Test whether the and object is positioned by a layout or not
Get the index of a child.
Send an event to a display
@endcond Free the data from the parameter. It's called inside `lv_draw_sw_mask_remove_id` and `lv_draw_sw_mask_remove_custom` Needs to be called only in special cases when the mask is not added by `lv_draw_mask_add` and not removed by `lv_draw_mask_remove_id` or `lv_draw_mask_remove_custom`
Get the value of the main knob of a slider
Make the animation to play back to when the forward direction is ready
Set a new value on the bar
Insert a character to the current cursor position. To add a wide char, e.g. 'Á' use `lv_text_encoded_conv_wc('Á')`
Add menu to the menu item
Get the luminance of a color32: luminance = 0.3 R + 0.59 G + 0.11 B
Return the height of the area below the object. That is the number of pixels the object can be scrolled down. Normally positive but can be negative when scrolled inside.
Calculate the current value of an animation applying linear characteristic
Checks if the reset_query flag has been set. If so, perform necessary global indev cleanup actions
Add an empty draw task to the draw task list of a layer.
Set a new value on the slider
Get the animation of a variable and its `exec_cb`.
Set a new value on the arc
Scroll to a given X coordinate on an object. `x` will be limited internally to allow scrolling only on the content area.
Allocate and add a data series to the chart
Get the draw descriptor of a draw task
Needs to be called when a draw task is created and configured. It will send an event about the new draw task to the widget and assign it to a draw unit.
Get the luminance of a color: luminance = 0.3 R + 0.59 G + 0.11 B
Get the luminance of a color16: luminance = 0.3 R + 0.59 G + 0.11 B
Get the luminance of a color24: luminance = 0.3 R + 0.59 G + 0.11 B
Destroy a draw buf by freeing the actual buffer if it's marked as LV_IMAGE_FLAGS_ALLOCATED in header. Then free the lv_draw_buf_t struct.
Initialize a line mask from two points.
Remove all styles from an object
Add a new head to a linked list
Set a new map. Buttons will be created/deleted according to the map. The button matrix keeps a reference to the map and so the string array must not be deallocated during the life of the matrix.
Clear the selection on the text area.
Set the y coordinate of an object
Recalculate the size of the object
Move the parent of an object. The relative coordinates will be kept.
Set the height of an area
Set the position of the 'cursor' (read write pointer) in a file
Set menu page to display in main
Get the currently scrolled object (for LV_INDEV_TYPE_POINTER and LV_INDEV_TYPE_BUTTON)
Get where to snap the children when scrolling ends horizontally
Get where to snap the children when scrolling ends vertically
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Calculate the stride in bytes based on a width and color format
Get the area of a rectangle if its rotated and scaled
Initialize a transition descriptor. Example:
const static lv_style_prop_t trans_props[] = { LV_STYLE_BG_OPA, LV_STYLE_BG_COLOR, 0 };
static lv_style_transition_dsc_t trans1;
lv_style_transition_dsc_init(&trans1, trans_props, NULL, 300, 0, NULL);
Get the y coordinate of object.
Invalidate the area of the scrollbars
Remove a style from an object. Examples:
lv_obj_remove_style(obj, &style, LV_PART_ANY | LV_STATE_ANY); //Remove a specific style
lv_obj_remove_style(obj, NULL, LV_PART_MAIN | LV_STATE_ANY); //Remove all styles from the main part
lv_obj_remove_style(obj, NULL, LV_PART_ANY | LV_STATE_ANY); //Remove all styles
Set the next point's Y value according to the update mode policy.
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Clear all properties from a style and free all allocated memories.
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Set the start angle of an arc. 0 deg: right, 90 bottom, etc.
Set the end angle of an arc. 0 deg: right, 90 bottom, etc.
Get the required extra size (around the object's part) to draw shadow, outline, value etc.
Get the object in which directions can be scrolled
Remove a local style property from a part of an object with a given state.
Get the screen of an object
Initialize a draw buf with the given buffer and parameters. Clear draw buffer flag to zero.
Give the length of a text with a given font
Check if an area is fully out of another
Set the attributes of a button of the button matrix
Search the most top, clickable object by a point
Focus the next object in a group (defocus the current)
Get the focused object or NULL if there isn't one
Get the state of an object
Set the x coordinate of an object
Transform a point using the angle and zoom style properties of an object
Register a new style property for custom usage Example:
lv_style_prop_t MY_PROP;
static inline void lv_style_set_my_prop(lv_style_t * style, lv_color_t value) {
lv_style_value_t v = {.color = value}; lv_style_set_prop(style, MY_PROP, v); }
...
MY_PROP = lv_style_register_prop();
...
lv_style_set_my_prop(&style1, lv_palette_main(LV_PALETTE_RED));
Create a menu section object
Fill the canvas with color
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Get the draw task which was just added. Can be used in `LV_EVENT_DRAW_TASK_ADDED event`
Get the data of a cache entry.
Get the current value of an integer subject
Used internally for color filtering
Get the index of the lastly "activated" button by the user (pressed, released, focused etc) Useful in the `event_cb` to get the text of the button, check if hidden etc.
Remove an object from its group
Close an already opened file
Get the x coordinate of object.
Add an observer to a subject for an object. When the object is deleted, it will be removed from the subject automatically.
Get the index of letter on a relative point of a label.
Close (Collapse) the drop-down list
Get the area of the scrollbars
Assign a Text Area to the Keyboard. The pressed characters will be put there.
Get a pointer to main header obj
Scroll to an object until it becomes visible on its parent
Calculate the current value of an animation slowing down the end phase
Get the text of a text area. In password mode it gives the real text (not '*'s).
Duplicate a string by allocating a new one and copying the content.
Return pointer to the buffer at the given coordinates
Send an event to an indev
Set a function call when the animation is completed
Set scale total tick count (including minor and major ticks)
Sets how often the major tick will be drawn
Set the new extra draw size. Can be used in `LV_EVENT_REFR_EXT_DRAW_SIZE`
Scroll by a given amount of pixels. `dx` and `dy` will be limited internally to allow scrolling only on the content area.
Set scale mode. See lv_scale_mode_t
Get the key passed as parameter to an event. Can be used in `LV_EVENT_KEY`
Add animation to the animation timeline.
Notify all object if a style is modified
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Get the primary color of the theme
Copies the string pointed to by src, including the terminating null character, to the character array pointed to by dst.
Get the pixel size of a color format in bytes
Create an image draw task
Get the type of an image source
Add a new tail to a linked list
DEFINES TYPEDEFS GLOBAL PROTOTYPES Get the extended draw area of an object.
DEFINES TYPEDEFS GLOBAL PROTOTYPES Get the next line of text. Check line length and break chars too.
Get a pointer to the style of a span
Set the style of the part for the given scale section
Set the minimal and maximal values on a scale
Configure the text area to one line or back to normal
Focus the previous object in a group (defocus the current)
Calculate the integer exponents.
Get the relative x and y coordinates of a letter
Enable or disable automatic style refreshing when a new style is added/removed to/from an object or any other style change happens.
Focus on an object (defocus the current)
Transform an area using the angle and zoom style properties of an object
Set the options in a drop-down list from a string. The options will be copied and saved in the object so the `options` can be destroyed after calling this function
Calculate a value of a Cubic Bezier function.
Set a new type for a chart
Set the minimal and maximal y values on an axis
Get the descriptor of a glyph
Select next higher digit for edition by multiplying the step by 10
Tells whether the list is opened or not
Set the object in which directions can be scrolled
Get the child of an object by the child's index. Consider the children only with a given type.
Return how many elements are stored in the array.
Get the brightness of a color
Note: Eventually, lv_draw_buf_malloc/free will be kept as private. For now, we use `create` to distinguish with malloc. Create an draw buf by allocating struct for `lv_draw_buf_t` and allocating a buffer for it that meets specified requirements.
Get the `opa` style property from all parents and multiply and `>> 8` them.
Get the cache entry of a data. The data should be allocated by the cache instance.
Set a delay before starting the animation
Similar to `lv_anim_set_exec_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 LVGL is bound to other languages because it's more consistent to have `lv_anim_t *` as first parameter.
Get the display which is being refreshed
Set a draw buffer for the canvas. A draw buffer either can be allocated by `lv_draw_buf_create()` or defined statically by `LV_DRAW_BUF_DEFINE_STATIC`. When buffer start address and stride has alignment requirement, it's recommended to use `lv_draw_buf_create`.
Initialize a layer to use LVGL's generic draw functions (lv_draw_rect/label/...) on the canvas. Needs to be usd in pair with `lv_canvas_finish_layer`.
Wait until all the drawings are finished on layer. Needs to be usd in pair with `lv_canvas_init_layer`.
Get the pivot (rotation center) of the image. If pivot is set with LV_PCT, convert it to px before return.
Set minimum and the maximum values of a bar
Get the tab bar where the buttons are created
Set the number of columns
Set the options in a drop-down list from a static string (global, static or dynamically allocated). Only the pointer of the option string will be saved.
Scroll to a given coordinate on an object. `x` and `y` will be limited internally to allow scrolling only on the content area.
Get the widget where the container of each tab is created
Initialize an arc draw descriptor from an object's styles in its current state
Set where to snap the children when scrolling ends horizontally
Set where to snap the children when scrolling ends vertically
Calculate the current value of an animation with overshoot at the end
Create a span string descriptor and add to spangroup.
Set the number of points on a data line on a chart
Get the array of y values of a series
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
GLOBAL PROTOTYPES Create a menu object
Create a menu separator object
Set the text of a check box. `txt` will be copied and may be deallocated after this function returns.
Select next lower digit for edition by dividing the step by 10
Remove a property from a style
Get the selection start index.
Get the selection end index.
Give a pointer to a driver from its letter
Get the label of a text area
Move the cursor one character left
Get the width occupied by the "parts" of the widget. E.g. the width of all columns of a table.
GLOBAL PROTOTYPES Get information about an image. Try the created image decoder one by one. Once one is able to get info that info will be used.
Return a pointer to the active screen on a display
Return the sys. layer. The system layer is the same on all screen and it is above the normal screen and the top layer.
Temporarily enable and disable the invalidation of the display.
Returns a pointer to the element at position n in the array.
Check if two ARGB8888 color are equal
Convert am RGB888 color to XRGB8888 stored in `uint32_t`
Clear an area on the buffer
Try to get a label draw descriptor from a draw task.
Try to get a fill draw descriptor from a draw task.
Invalidate image cache. Use NULL to invalidate all images.
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Return the length of the linked list.
DEFINES TYPEDEFS GLOBAL PROTOTYPES Low level function to scroll by given x and y coordinates. `LV_EVENT_SCROLL` is sent.
Delete a the left character from the current cursor position
Set the start and end angles of the arc background
Get the input device passed as parameter to indev related events.
Set minimum and the maximum values of a bar
Create a new layer on a parent layer
Get the target of an observer
Set the rotation for the whole arc
Get the time used to play the animation timeline.
Increment spinbox value by one step
Decrement spinbox value by one step
Set the brightness of a LED object
Update the mode of the spangroup.
Get the movement vector of an input device (for LV_INDEV_TYPE_POINTER and LV_INDEV_TYPE_BUTTON)
Get the index of the selected option
Insert a text to the current cursor position
Checks if the content is scrolled "in" and adjusts it to a normal position.
Set a delay before repeating the animation.
Set an arrow or other symbol to display when on drop-down list's button. Typically a down caret or arrow.
Reset one or all input devices
Redrawn on object and all its children using the passed draw context
Set the size of an extended clickable area
Calculate the time of an animation based on its speed, start and end values.
Check if a color format has alpha channel or not
Check if two RGB888 color are equal
Get the reference count of a cache entry.
Deallocate a cache entry. And the data of the cache entry will be freed.
Store the speed as a special value which can be used as time in animations. It will be converted to time internally based on the start and end values
Notify all observers of subject
Insert a string into another
Get the whether a control value is enabled or disabled for button of a button matrix
Add title to the message box. It also creates a header for the title.
Set custom text source for major ticks labels
Get the value of the left knob of a slider
Get a pointer to menu page that is currently displayed in sidebar
Get the options of a drop-down list
Get the current selected option as a string
Set the options on a roller
Set the text of a text area
Scroll to an object until it becomes visible on its parent. Do the same on the parent's parent, and so on. Therefore the object will be scrolled into view even it has nested scrollable parents
Get the default value of a property
Check if default theme is initialized
Get the number of object in the group
Called periodically to read the input devices
Calculate the current value of an animation applying step characteristic. (Set end value on the end of the animation)
Return with the extension of the filename
Get the text content height with width fixed.
Enable or disable the whole lv_timer handling
Iterate through the timers
Insert a text to a label. The label text cannot be static.
Get the X and Y coordinates where the scrolling will end for this object if a scrolling animation is in progress. If no scrolling animation, give the current `x` or `y` scroll position.
Check the current scroll direction of an input device (for LV_INDEV_TYPE_POINTER and LV_INDEV_TYPE_BUTTON)
Apply the active theme on an object
GLOBAL PROTOTYPES MACROS GLOBAL FUNCTIONS
Used as `get_glyph_dsc` callback in lvgl's native font format if the font is uncompressed.
Wait for draw finish in case of asynchronous task execution. If `LV_USE_OS == 0` it just return.
Set the start and end angles
Get the one line configuration attribute
Get a list of accepted characters.
Get max length of a Text Area.
Move the cursor one character right
Get the height occupied by the "parts" of the widget. E.g. the height of all rows of a table.
Tell whether an area of an object is visible (even partially) now or not
Get the an area where to object can be clicked. It's the object's normal area plus the extended click area.
Get the current scroll mode (when to hide the scrollbars)
Set a static text. It will not be saved by the span so the 'text' variable has to be 'alive' while the span exist.
Set menu page to display in sidebar
Set the direction of the a drop-down list
Enable/Disable password mode
Delete all children of an object. Also remove the objects from their group and remove all animations (if any). Send `LV_EVENT_DELETED` to deleted objects.
Do nothing until the next release
Get the user_data passed when the timer was created
Get the type of a draw task
Open an image. Try the created image decoders one by one. Once one is able to open the image that decoder is saved in `dsc`
When a draw unit finished a draw task it needs to request dispatching to let LVGL assign a new draw task to it
Return the top layer. The top layer is the same on all screens and it is above the normal screen layer.
Return the bottom layer. The bottom layer is the same on all screen and it is under the normal screen layer. It's visible only if the screen is transparent.
Get the theme of a display
Transform an array of points using the angle and zoom style properties of an object
Shrink the memory capacity of array if necessary.
Copies up to dst_size-1 (non-null) characters from src to dst. A null terminator is always added.
Align the address of a buffer. The buffer needs to be large enough for the real data after alignment
Create a draw task to blend a layer to another layer
Get the signed rotary encoder diff. passed as parameter to an event. Can be used in `LV_EVENT_ROTARY`
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Check if two area has common parts
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Create a draw task to mask a rectangle from the buffer
Decode two encoded character from a string.
Set a pixel's color and opacity
Set the rotation angle of the image. The image will be rotated around the set pivot set by `lv_image_set_pivot()` Note that indexed and alpha only images can't be transformed.
Set the rotation center of the image. The image will be rotated around this point. x, y can be set with value of LV_PCT, lv_image_get_pivot will return the true pixel coordinate of pivot in this case.
Clear the attributes of all buttons of a button matrix
Add a button to the footer of to the message box. It also creates a footer.
Add a close button to the message box. It also creates a header.
Set a new value for the left knob of a slider
Get the mode of the slider.
Clean up the gradient item after it was get with `lv_grad_get_from_cache`.
Calculate the current value of an animation applying an "S" characteristic (cosine)
Make a lv_timer ready. It will not wait its period.
Calculate the atan2 of a vector.
Get the position of a point to the chart.
Set a new start value on the bar
Predict where would a scroll throw end
Set a layout for an object
Get an area the should be invalidated when the arcs angle changed between start_angle and end_ange
Convert a 32-bit RGB color to HSV
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Give information about the work memory of dynamic allocation
Set the progress of the animation timeline.
Set a new text for a span. Memory will be allocated to store the text by the span.
Get the data point number per data line on chart
Get the current index of the x-axis start point in the data array
Set the next point's X and Y value according to the update mode policy.
Get the index of the currently pressed point. It's the same for every series.
Set a new a mode (text or number map)
Set an array of points. The line object will connect these points.
Get whether a cell has the control bits
Get the subtitle font of the theme
Set the height to show the given number of rows (options)
Get the index of the selected option
Set the placeholder text of a text area
Get the actually set y coordinate of object, i.e. the offset from the set alignment
Set a static text. It will not be saved by the label so the 'text' variable has to be 'alive' while the label exists.
Got to a pixel at X and Y coordinate on a layer
Get the color format of the display
Resize the array to the given capacity.
Returns a pointer to the first element in the array.
Move a block of memory from source to destination
This function will compare two memory blocks
TYPEDEFS STATIC PROTOTYPES GLOBAL PROTOTYPES
Create an ARGB8888 color from RGB888 + alpha
GLOBAL PROTOTYPES Initialize the draw buffer with the default handlers.
Copy an area from a buffer to another
Keep using the existing memory, reshape the draw buffer to the given width and height. Return NULL if data_size is smaller than the required size.
Lock LVGL's general mutex. LVGL is not thread safe, so a mutex is used to avoid executing multiple LVGL functions at the same time from different threads. It shall be called when calling LVGL functions from threads different than lv_timer_handler's thread. It doesn't need to be called in LVGL events because they are called from lv_timer_handler(). It is called internally in lv_timer_handler().
The pair of `lv_lock()` and `lv_lock_isr()`. It unlocks LVGL general mutex. It is called internally in lv_timer_handler().
Initialize a fill draw descriptor.
Initialize an image draw descriptor from an object's styles in its current state
DEFINES TYPEDEFS GLOBAL PROTOTYPES Get the size of a cache entry.
Return true if the image cache is enabled.
Release a cache entry. The `lv_cache_entry_t::ref_cnt` will be decremented. If the `lv_cache_entry_t::ref_cnt` is zero, it will issue an error. If the entry passed to this function is the last reference to the data and the entry is marked as invalid, the cache's policy will be used to evict the entry.
Make the animation to play back to when the forward direction is ready
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Add an observer to a subject. When the subject changes `observer_cb` will be called.
Remove an observer from its subject
Check if a linked list is empty
Called periodically to handle the refreshing
Delete a part of a string
Clear the attributes of a button of the button matrix
Check if an obj is a root back btn
Add a text to the content area of message box. Multiple texts will be created below each other.
Add a section to the given scale
Set the range for the given scale section
Set properties specific to round scale
Set properties specific to round scale
Point the needle to the corresponding value through the line
Get the current tab's index
DEFINES TYPEDEFS GLOBAL PROTOTYPES Initialize LVGL library. Should be called before any other LVGL related function.
Clamp a width between min and max width. If the min/max width is in percentage value use the ref_width
Clamp a height between min and max height. If the min/max height is in percentage value use the ref_height
Get a pointer to an `lv_point_t` variable in which the self size should be saved (width in `point->x` and height `point->y`). Can be used in `LV_EVENT_GET_SELF_SIZE`
Drop all dynamically allocated memory and reset the memory pools' state
Manually refresh the state of the animations. Useful to make the animations running in a blocking process where `lv_timer_handler` can't run for a while. Shouldn't be used directly because it is called in `lv_refr_now()`.
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Get the time used to play the animation.
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES GLOBAL PROTOTYPES MACROS GLOBAL FUNCTIONS
Get the text content width when all span of spangroup on a line.
Get the brightness of a LED object
Set the number of times a timer will repeat.
Checks if a style is empty (has no properties)
Default keyboard event to add characters to the Text area and change the map. If a custom `event_cb` is added to the keyboard this function can be called from it to handle the button clicks
Get a pointer to menu page that is currently displayed in main
Check if a character is drawn under a point.
Set a destination group for a keypad input device (for LV_INDEV_TYPE_KEYPAD)
STATIC VARIABLES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Set the start angle of an arc background. 0 deg: right, 90 bottom, etc.
Set the start angle of an arc background. 0 deg: right, 90 bottom etc.
Get the start value of a bar
Get the minimum value of a bar
Get the maximum value of a bar
Enable/Disable the positioning of the cursor by clicking the text on the text area.
Get the replacement characters to show in password mode
Move the cursor one line down
Move the cursor one line up
Swap 2 object in a group. The object must be in the same group
Handle the gesture of indev_proc_p->pointer.act_obj
Get the distance of the nearest snap point
Set the height reduced by the top and bottom padding and the border width.
Get the y2 coordinate of object.
Hit-test an object given a particular point in screen space.
Tell whether an object is visible (even partially) now or not
Iterate through all children of any object.
TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
remove the least recently used item @todo we can optimise this by finding the n lru items, where n = required_space / average_length
Set the 'next node pointer' of a node
STATIC FUNCTIONS Set the previous node pointer of a node
Create a triangle draw task
Set a default group. New object are added to this group if it's enabled in their class with `add_to_def_group = true`
Calculate the current value of an animation slowing down the start phase
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Start the animation timeline.
Cancel an asynchronous function call
Set the playback direction of the animation timeline.
Set spinbox digit format (digit count and decimal format)
Set the mode of the spangroup.
Create a spangroup object
Set the align of the spangroup.
Set the overflow of the spangroup.
Set the indent of the spangroup.
Set the callback to the timer (the function to call periodically)
@cond Doxygen_Suppress Get the square root of a number
Set update mode of the chart object. Affects
Set the number of horizontal and vertical division lines
Add a cursor with a given color
Stick the cursor to a point
Remove the provided input device. Make sure not to use the provided input device afterwards anymore.
Set an individual point's x and y value of a chart's series directly based on its index Can be used only with `LV_CHART_TYPE_SCATTER`.
Get the array of x values of a series
Set a new map for the keyboard
Set the value of a cell. Memory will be allocated to store the text by the table.
Add control bits to the cell.
Clear control bits of the cell.
Get the selected cell (pressed and or focused)
Set a base theme for a theme. The styles from the base them will be added before the styles of the current theme. Arbitrary long chain of themes can be created by setting base themes.
Set an apply callback for a theme. The apply callback is used to add styles to different objects
Rotate an object to the current position of the arc (knob)
Get the text of a check box
Set text of the drop-down list's button. If set to `NULL` the selected option's text will be displayed on the button. If set to a specific text then that text will be shown regardless of the selected option.
Clear all options in a drop-down list. Works with both static and dynamic options.
Set whether the selected option in the list should be highlighted or not
Get the current selected option as a string.
Set a list of characters. Only these characters will be accepted by the text area
Set max length of a Text Area.
Set a buffer for the canvas. Use lv_canvas_set_draw_buf() instead if you need to set a buffer with alignment requirement.
Set the image animation images source.
Startup the image animation.
Set the image animation duration time. unit:ms
Set the image animation repeatedly play times.
Set the highlighted dates
Get the currently pressed day
Remove an event_cb with user_data
Change the alignment of an object.
Get the actually set x coordinate of object, i.e. the offset from the set alignment
Check the children of `obj` and scroll `obj` to fulfill the scroll_snap settings
Swap the positions of two objects. When used in listboxes, it can be used to sort the listbox items.
Search for snap point in the min..max range.
Search for snap point in the min..max range.
Get the draw area of a draw task
Try dispatching draw tasks to draw units
Used internally to try dispatching draw tasks of a specific layer
Wait for a new dispatch request. It's blocking if `LV_USE_OS == 0` else it yields
Set a default display. The new screens will be created on it by default.
Get the physical horizontal resolution of a display
Get the physical vertical resolution of a display
Get display invalidation is enabled.
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).
Get the index of a child. Consider the children only with a given type.
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Deinit the array, and free the allocated memory
Remove the element at the specified position in the array.
@endcond Calculate the y value of cubic-bezier(x1, y1, x2, y2) function as specified x.
Transform an array of points
Used internally to execute a plain `free` operation
Used internally to execute a plain realloc operation
Used internally by lv_mem_monitor() to gather LVGL heap state information.
Convert an RGB888 color to an integer
Convert am RGB888 color to RGB565 stored in `uint16_t`
As of now, draw buf share same definition as `lv_image_dsc_t`. And is interchangeable with `lv_image_dsc_t`.
Set the palette color of an indexed image. Valid only for `LV_COLOR_FORMAT_I1/2/4/8`
Duplicate a draw buf with same image size, stride and color format. Copy the image data too.
Premultiply draw buffer color with alpha channel. If it's already premultiplied, return directly. Only color formats with alpha channel will be processed.
Crate a draw task to render a single character
Initialize a border draw descriptor.
Gets a pointer to the currently active object in the currently processed input device.
Get the indev assigned group
Get the current target of the event. It's the object which event handler being called. If the event is not bubbled it's the same as "original" target.
Initialize a cache entry.
GLOBAL VARIABLES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Acquire a cache entry with the given key. If entry not in cache, it will return `NULL` (not found). If the entry is found, it's priority will be changed by the cache's policy. And the `lv_cache_entry_t::ref_cnt` will be incremented.
Give a name for a cache object. Only the pointer of the string is saved.
Add a new cache entry with the given key and data. If the cache is full, the cache's policy will be used to evict an entry.
Reserve a certain amount of memory/count in the cache. This function is useful when you want to reserve a certain amount of memory/count in advance, for example, when you know that you will need it later. When the current cache size is max than the reserved size, the function will evict entries until the reserved size is reached.
Drop a cache entry with the given key. If the entry is not in the cache, nothing will happen to it. If the entry is found, it will be removed from the cache and its data will be freed when the last reference to it is released.
Drop all cache entries. All entries will be removed from the cache and their data will be freed when the last reference to them is released.
Set the maximum size of the cache. If the current cache size is greater than the new maximum size, the cache's policy will be used to evict entries until the new maximum size is reached. If set to 0, the cache will be disabled.
Return true if the cache is enabled. Disabled cache means that when the max_size of the cache is 0. In this case, all cache operations will be no-op.
Get the pause state of a timer
Set a function call when the animation really starts (considering `delay`)
Set a function call when the animation is deleted.
Deinitialize the SW renderers
Draw an image with SW render. It handles image decoding, tiling, transformations, and recoloring.
Initialize a line mask from a point and an angle.
Add an observer to a subject and also save a target.
Set an object state if an integer subject's value is not equal to a reference value, clear the flag otherwise
Bind an integer, string, or pointer subject to a label.
Update the layer type of a widget bayed on its current styles. The result will be stored in `obj->spec_attr->layer_type`
GLOBAL PROTOTYPES Find a scrollable object based on the current scroll vector in the indev. In handles scroll propagation to the parent if needed, and scroll directions too.
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Handle throwing after scrolling. Called by LVGL during input device processing
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Get the source of the image
Give the bar is in symmetrical mode or not
Set the button control map (hidden, disabled etc.) for a button matrix. The control map array will be copied and so may be deallocated after this function returns.
Set attributes of all buttons of a button matrix
Set a non-const array of points. Identical to `lv_line_set_points` except the array may be retrieved by `lv_line_get_points_mutable`.
Add a button to the header of to the message box. It also creates a header.
Set whether back button should appear at root
Set the position of the tab bar
Set the animation time and arc length of the spinner
Pause the animation timeline.
GLOBAL VARIABLES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Reset the long press state of an input device
Convert a HSV color to RGB
Add an event handler to the display
Find an indev preferably with POINTER type (because it's the most generic) that uses the given group. In other words, find an indev, that is related to the given group. In the worst case simply return the latest indev
Hide all characters (convert them to '*')
Scale the given number of pixels (a distance or size) relative to a 160 DPI display considering the DPI of the default display. It ensures that e.g. `lv_dpx(100)` will have the same physical size regardless to the DPI of the display.
Set the zoom factor of the image. Note that indexed and alpha only images can't be transformed.
Get the current rotation of this display.
Get the last element of a path (e.g. U:/folder/file -> file)
Get the old area of the object before its size was changed. Can be used in `LV_EVENT_SIZE_CHANGED`
Get the animation descriptor of a scrolling. Can be used in `LV_EVENT_SCROLL_BEGIN`
Get a pointer to an `lv_hit_test_info_t` variable in which the hit test result should be saved. Can be used in `LV_EVENT_HIT_TEST`
Get a pointer to an area which should be examined whether the object fully covers it or not. Can be used in `LV_EVENT_HIT_TEST`
Set the result of cover checking. Can be used in `LV_EVENT_COVER_CHECK`
GLOBAL PROTOTYPES Create a new object group
Remove all objects from a group
Stop the event from bubbling. This is only valid when called in the middle of an event processing chain.
Stop processing this event. This is only valid when called in the middle of an event processing chain.
Register a new, custom event ID. It can be used the same way as e.g. `LV_EVENT_CLICKED` to send custom events Example:
uint32_t LV_EVENT_MINE = 0;
...
e = lv_event_register_id();
...
lv_obj_send_event(obj, LV_EVENT_MINE, &some_data);
Do not let to change the focus from the current object
Set a function for a group which will be called when a new object is focused
Set a function for a group which will be called when a focus edge is reached
Set whether the next or previous item in a group is focused if the currently focused obj is deleted.
Set whether focus next/prev will allow wrapping from first->last or last->first object.
Get the focus callback function of a group
Get the edge callback function of a group
Get whether focus next/prev will allow wrapping from first->last or last->first object.
Returns whether the 'lv' library is currently initialized
Check if any object has a given class (type). It checks the ancestor classes too.
Get the class (type) of the object
Check if any object is still "alive".
Enable or disable one or all input devices (default enabled)
Set a cursor for a pointer input device (for LV_INPUT_TYPE_POINTER and LV_INPUT_TYPE_BUTTON)
Tests the memory allocation system by allocating and freeing a block of memory.
Get the number of currently running animations
Calculate the current value of an animation with 3 bounces
Get global animation refresher timer.
Get whether the animation timeline is played in reverse.
Give the position of the read write pointer
Initialize a 'fs_dir_t' variable for directory reading
Read the next filename form a directory. The name of the directories will begin with '/'
Close the directory reading
Fill a buffer with the letters of existing drivers
Set spinbox rollover function
Set cursor position to a specific digit for edition
Set direction of digit step when clicking an encoder button while in editing mode
Get spinbox rollover function status
Get the spinbox numeral value (user has to convert to float according to its digit format)
Get the spinbox step value (user has to convert to float according to its digit format)
Change the name of the tab
Get a spangroup child by its index.
Get the align of the spangroup.
Get the overflow of the spangroup.
Get the indent of the spangroup.
Get the mode of the spangroup.
Toggle the state of a LED
Create an "empty" timer. It needs to be initialized with at least `lv_timer_set_cb` and `lv_timer_set_period`
Set new period for a lv_timer
Reset a lv_timer. It will be called the previously set period milliseconds later.
Get the number of custom properties that have been registered thus far.
Deallocate and remove a data series from a chart
Hide/Unhide a single series of a chart.
Change the color of a series
Set the index of the x-axis start point in the data array. This point will be considers the first (left) point and the other points will be drawn after it.
Set the coordinate of the cursor with respect to the paddings
Get the coordinate of the cursor with respect to the paddings
Initialize all data points of a series with a value
Set an individual point's y value of a chart's series directly based on its index
Set an external array for the y data points to use for the chart NOTE: It is the users responsibility to make sure the `point_cnt` matches the external array size.
Set an external array for the x data points to use for the chart NOTE: It is the users responsibility to make sure the `point_cnt` matches the external array size.
Show the button title in a popover when pressed.
Assign a Text Area to the Keyboard. The pressed characters will be put there.
Set a new a mode (text or number map)
Set the how the header should behave and its position
Get a pointer to sidebar header obj
Close a message box in the next call of the message box
Get the long mode of a label
Delete characters from a label. The label text cannot be static.
Enable (or disable) the y coordinate inversion. If enabled then y will be subtracted from the height of the object, therefore the y = 0 coordinate will be on the bottom.
Get the y inversion attribute
Set the text of a check box. `txt` must not be deallocated during the life of this checkbox.
GLOBAL PROTOTYPES Initialize a file system driver with default values. It is used to ensure all fields have known values and not memory junk. After it you can set the fields.
Test if a drive is ready or not. If the `ready` function was not initialized `true` will be returned.
Set the an array of points for LV_INDEV_TYPE_BUTTON. These points will be assigned to the buttons to press a specific point on the screen
Get the current gesture direct
Get the last pressed key of an input device (for LV_INDEV_TYPE_KEYPAD)
Get a pointer to the indev read timer to modify its parameters with `lv_timer_...` functions.
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS Redraw the invalidated areas now. Normally the redrawing is periodically executed in `lv_timer_handler` but a long blocking process can prevent the call of `lv_timer_handler`. In this case if the GUI is updated in the process (e.g. progress bar) this function can be called when the screen should be updated.
Get the small font of the theme
Get the normal font of the theme
Get the secondary color of the theme
Set minimum and the maximum values of an arc
Set a change rate to limit the speed how fast the arc should reach the pressed point.
Get the start angle of an arc.
Get the end angle of an arc.
Get the start angle of an arc background.
Get the end angle of an arc background.
Get the minimum value of an arc
Get the maximum value of an arc
Get whether the arc is type or not.
Align an object to the current position of the arc (knob)
Give the slider is being dragged or not
Add an options to a drop-down list from a string. Only works for non-static options.
Get the list of a drop-down to allow styling or other modifications
Get text of the drop-down list's button.
Get the index of an option.
Get the symbol on the drop-down list. Typically a down caret or arrow.
Get whether the selected option in the list should be highlighted or not
Get the direction of the drop-down list
Get the options of a roller
Set the replacement characters to show in password mode
In `LV_EVENT_INSERT` the text which planned to be inserted can be replaced by another text. It can be used to add automatic formatting to the text area.
Enable/disable selection mode.
Set how long show the password before changing it to '*'
@deprecated Use the normal text_align style property instead Set the label's alignment. It sets where the label is aligned (in one line mode it can be smaller than the text area) and how the lines of the area align in case of multiline text area
Get the placeholder text of a text area
Get whether the cursor click positioning is enabled or not.
Get the password mode attribute
Find whether text is selected or not.
Find whether selection mode is enabled.
Set how long show the password before changing it to '*'
Set the palette color of a canvas for index format. Valid only for `LV_COLOR_FORMAT_I1/2/4/8`
Get a pixel's color and opacity
Copy a buffer to the canvas
Get the button matrix object of the calendar. It shows the dates and day names.
Get the highlighted dates
Get the number of the highlighted dates
Set the width reduced by the left and right padding and the border width.
Get the x2 coordinate of object.
Tell whether an object is being scrolled or not at this moment
Fade in an an object and all its children.
Fade out an an object and all its children.
Make the refreshing from an object. Draw all its children and the youngers too.
Refresh the label with its text stored in its extended data
Set line properties Checks if the line has a custom section configuration or not and sets the properties accordingly.
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Set the buffers for a display, similarly to `lv_display_set_draw_buffers`, but accept the raw buffer pointers. For DIRECT/FULL rending modes, the buffer size must be at least `hor_res * ver_res * lv_color_format_get_size(lv_display_get_color_format(disp))`
Set the flush callback which will be called to copy the rendered image to the display.
Set the color format of the display.
GLOBAL PROTOTYPES Init the group module @remarks Internal function, do not call directly.
Deinit the group module @remarks Internal function, do not call directly.
Find and available draw task
Try to allocate a buffer for the layer.
Set a callback to get information about the image
Set a callback to open an image
Set a callback to a decoded line of an image
Set a callback to close a decoding session. E.g. close files and free other resources.
Check the decoded image, make any modification if decoder `args` requires.
Decode `full_area` pixels incrementally by calling in a loop. Set `decoded_area` to `LV_COORD_MIN` on first call.
Create a new image decoder
Deinitialize the drawing module
Allocate a new draw unit with the given size and appends it to the list of draw units
Set the buffers for a display, accept a draw buffer pointer. Normally use `lv_display_set_buffers` is enough for most cases. Use this function when an existing lv_draw_buf_t is available.
Return with a pointer to the previous screen. Only used during screen transitions.
Switch screen with animation
Get the top layer of the default display
Get the number of event attached to a display
Get an event descriptor for an event
Set the theme of a display. If there are no user created widgets yet the screens' theme will be updated
A function to be easily used in animation ready callback to delete an object when the animation is ready
Get the number of children having a given type.
Get the flags of a built-in or custom property.
Return if the array is empty
Push back element. Adds a new element to the end of the array. If the array capacity is not enough for the new element, the array will be resized automatically.
Set the seed of the pseudo random number generator
Copies the string pointed to by src, including the terminating null character, to the end of the string pointed to by dst.
Initialize the draw buffer with given handlers.
Calculate the stride in bytes based on a width and color format
Note: Eventually, lv_draw_buf_malloc/free will be kept as private. For now, we use `create` to distinguish with malloc. Create an draw buf by allocating struct for `lv_draw_buf_t` and allocating a buffer for it that meets specified requirements.
Align the address of a buffer with custom draw buffer handlers. The buffer needs to be large enough for the real data after alignment
Flush the cache of the buffer
Adjust the stride of a draw buf in place.
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Create a thread synchronization object
Wait for a "signal" on a sync object
Send a wake-up signal to a sync object
PROTOTYPES Compute the color in the given gradient and fraction Gradient are specified in a virtual [0-255] range, so this function scales the virtual range to the given range
Initialize a glyph draw descriptor. Used internally.
Should be used during rendering the characters to get the position and other parameters of the characters
Try to get a border draw descriptor from a draw task.
Try to get a box shadow draw descriptor from a draw task.
Read data from an input device.
Get the number of event attached to an indev
Get an event descriptor for an event
Get a pointer to the assigned display of the indev
Add or remove one or more states to the object. The other state bits will remain unchanged.
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
GLOBAL VARIABLES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
GLOBAL VARIABLES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Check if a cache entry is invalid.
Invalidate image header cache. Use NULL to invalidate all image headers. It's also automatically called when an image is invalidated.
Return true if the image header cache is enabled.
Release the bitmap of a font.
Legacy `lv_anim_set_time` API will be removed soon, use `lv_anim_set_duration` instead.
Get the duration of an animation
Get the repeat count of the animation.
Delete all the animations
A custom cubic bezier animation path, need to specify cubic-parameters in a->parameter.bezier3
Set a whether the animation's should be applied immediately or only when the delay expired.
Set the custom user data field of the animation.
Set parameter for cubic bezier path
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
STATIC VARIABLES GLOBAL VARIABLES MACROS GLOBAL FUNCTIONS
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
DEFINES TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Initialize an angle mask.
Set an object state if an integer subject's value is equal to a reference value, clear the flag otherwise
Set an integer subject to 1 when an object is checked and set it 0 when unchecked.
Bind an integer subject to an arc's value
Bind an integer subject to a slider's value
GLOBAL PROTOTYPES Called by LVGL the rendering of a screen is ready to clean up the temporal (cache) data of the masks
Deinit the lv_timer module
Deinit the animation module
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
DeInitialize built-in system monitor, such as performance and memory monitor.
TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Update the layout of a widget
Move a node before another node in the same linked list
Insert a new node in front of the n_act node
Nested events can be called and one of them might belong to an object that is being deleted. Mark this object's `event_temp_data` deleted to know that its `lv_obj_send_event` should return `LV_RESULT_INVALID`
Get resulting sub areas after removing the common parts of two areas from the first area
Join two areas into a third which involves the other two
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Deinitialize the object related style manager module. Called by LVGL in `lv_deinit()`
Used internally to create a style transition
Used internally to compare the appearance of an object in 2 states
Deinitialize the default theme
Deinitialize the simple theme
GLOBAL FUNCTIONS Initialize the screen refresh subsystem
Deinitialize the screen refresh subsystem
Invalidate an area on display to redraw it
Get the display which is being refreshed
Can be used by draw units for TILED images to handle the decoding and prepare everything for the actual image rendering
GLOBAL PROTOTYPES Can be used by draw units to handle the decoding and prepare everything for the actual image rendering
STATIC VARIABLES MACROS GLOBAL FUNCTIONS Initialize the image decoder module
Deinitialize the image decoder module
return a new formatted text. Memory will be allocated to store the text.
GLOBAL FUNCTIONS Fill an area with a color. Supports normal fill, fill with opacity, fill with mask, and fill with mask and opacity. dest_buf and color have native color depth. (RGB565, RGB888, XRGB8888) The background (dest_buf) cannot have alpha channel
Get the color of a series
Get the overall offset from the chart's side to the center of the first point. In case of a bar chart it will be the center of the first column group
Set images for a state of the image button
Frees the memory allocated by the `lv_binfont_create()` function
Set an offset for the source of an image. so the image will be displayed from the new origin.
Get the current knob angle offset
Set where text selection should start
Set where text selection should end
Set a single button's relative width. This method will cause the matrix be regenerated and is a relatively expensive operation. It is recommended that initial width be specified using `lv_buttonmatrix_set_ctrl_map` and this method only be used for dynamic changes.
Make the button matrix like a selector widget (only one button may be checked at a time). `LV_BUTTONMATRIX_CTRL_CHECKABLE` must be enabled on the buttons to be selected using `lv_buttonmatrix_set_ctrl()` or `lv_buttonmatrix_set_button_ctrl_all()`.
Get the current map of a button matrix
Get the number of points in the array of points.
Check the mutability of the stored point array pointer.
Get a pointer to the mutable array of points or NULL if it is not mutable
Get a pointer to main header back btn obj
Point the needle to the corresponding value through the image, image must point to the right. E.g. -O------>
Gets how often the major tick will be drawn
Give the slider is in symmetrical mode or not
Get max line height of all span in the spangroup.
Delete the right character from the current cursor position
Set the width or height of the tab bar
STATIC VARIABLES MACROS GLOBAL FUNCTIONS Initialize the lvgl binary image decoder module
Get info about a lvgl binary image
Decode an image from a binary file
Close the pending decoding. Free resources etc.
Set the width of a column
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Deinitialize the File system interface
TYPEDEFS STATIC PROTOTYPES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
Assign a display to the indev
Check if the style property has a specified behavioral flag. Do not pass multiple flags to this function as backwards-compatibility is not guaranteed for that.
Refresh the position of the roller. It uses the id stored in: roller->ddlist.selected_option_id
Get a pointer to the screen refresher timer to modify its parameters with `lv_timer_...` functions.
Swap the upper and lower byte of an RGB565 buffer. Might be required if a 8bit parallel port or an SPI port send the bytes in the wrong order. The bytes will be swapped in place.
Set the value of a pointer subject. It will notify all the observers as well.
Get the current value of a pointer subject
Remove all the observers from a subject and free all allocated memories in it
Initialize an pointer type subject
DEFINES TYPEDEFS GLOBAL PROTOTYPES Create a new system monitor label
Remove the transition from object's part's property. - Remove the transition from `lv_obj_style_trans_ll` and free it - Delete pending transitions
Test if char is break char or not (a text can broken here or not)
Set the position of list when it is closed to show the selected item
Update the control map for the current mode
Set the rotation of this display. LVGL will swap the horizontal and vertical resolutions internally.
Draw the scale after all the children are drawn
Test if char is break char or not (a text can broken here or not)
STATIC PROTOTYPES Transform a point with 1/256 precision (the output coordinates are upscaled by 256)
Used internally to update arc angles after a value change
Show system performance monitor: CPU usage and FPS count
Get the nth object within a group
Tell how many draw task are waiting to be drawn on the area of `t_check`. It can be used to determine if a GPU shall combine many draw tasks into one or not. If a lot of tasks are waiting for the current ones it makes sense to draw them one-by-one to not block the dependent tasks' rendering
Make a path object for the memory-mapped file compatible with the file system interface
Get the next image decoder in the linked list of image decoders
Get the total number of draw units.
Sets the resolution of a display. `LV_EVENT_RESOLUTION_CHANGED` event will be sent. Here the native resolution of the device should be set. If the display will be rotated later with `lv_display_set_rotation` LVGL will swap the hor. and ver. resolution automatically.
It's not mandatory to use the whole display for LVGL, however in some cases physical resolution is important. For example the touchpad still sees whole resolution and the values needs to be converted to the active LVGL display area.
If physical resolution is not the same as the normal resolution the offset of the active display area can be set here.
Set the DPI (dot per inch) of the display. dpi = sqrt(hor_res^2 + ver_res^2) / diagonal"
Get the horizontal offset from the full / physical display
Get the vertical offset from the full / physical display
Set a callback to be used while LVGL is waiting flushing to be finished. It can do any complex logic to wait, including semaphores, mutexes, polling flags, etc. If not set the `disp->flushing` flag is used which can be cleared with `lv_display_flush_ready()`
Enable anti-aliasing for the render engine
Get if anti-aliasing is enabled for a display or not
Load a screen on the default display
Get the system layer of the default display
Get the bottom layer of the default display
Remove an event_cb with user_data
Get elapsed time since last user activity on a display (e.g. click)
Manually trigger an activity on a display
Delete screen refresher timer
Rotate an area in-place according to the display's rotation
Scale the given number of pixels (a distance or size) relative to a 160 DPI display considering the DPI of the given display. It ensures that e.g. `lv_dpx(100)` will have the same physical size regardless to the DPI of the display.
Delete an object after some delay
Return a sibling of an object
Return a sibling of an object. Consider the siblings only with a given type.
Iterate through all children of any object and print their ID.
Return the capacity of the array, i.e. how many elements can be stored.
Return if the array is full
Copy an array to another.
Remove all elements in array.
Remove from the array either a single element or a range of elements ([start, end)).
Concatenate two arrays. Adds new elements to the end of the array.
Assigns one content to the array, replacing its current content.
Returns a pointer to the last element in the array.
@endcond Alternative (fast, approximate) implementation for getting the square root of an integer.
Copies up to dest_size characters from the string pointed to by src to the character array pointed to by dst and fills the remaining length with null bytes.
Copies up to src_len characters from the string pointed to by src to the end of the string pointed to by dst. A terminating null character is appended to dst even if no null character was encountered in src after src_len characters were copied.
Get the struct which holds the callbacks for draw buf management. Custom callback can be set on the returned value
Invalidate the cache of the buffer
@deprecated Use lv_draw_buf_set_palette instead.
@deprecated Use lv_draw_buffer_create/destroy instead. Free the data pointer and dsc struct of an image.
Duplicate a draw buf with same image size, stride and color format. Copy the image data too.
Lock a mutex from interrupt
Send a wake-up signal to a sync object from interrupt
Same as `lv_lock()` but can be called from an interrupt.
Initialize gradient color map from a table
Initialize a box shadow draw descriptor.
Try to get an image draw descriptor from a draw task.
Try to get a line draw descriptor from a draw task.
Try to get an arc draw descriptor from a draw task.
Set the input device's event model: event-driven mode or timer mode.
Get the input device's running mode.
Add an event handler to the indev
Remove an event_cb with user_data
Set the type of an input device
Set a callback function to read input device data to the indev
Set user data to the indev
Set driver data to the indev
Set long press time to indev
Set scroll limit to the input device
Set scroll throw slow-down to the indev. Greater value means faster slow-down
Get the callback function to read input device data to the indev
Get a pointer to the user data of the indev
Get a pointer to the driver data of the indev
Get whether indev is moved while pressed
Touch and key related events are sent to the input device first and to the widget after that. If this functions called in an indev event, the event won't be sent to the widget.
Set add or remove one or more flags.
Get the object originally targeted by the event. It's the same even if the event is bubbled.
Set the user_data field of the object
Get the user_data field of the object
Utility to set an object reference to NULL when it gets deleted. The reference should be in a location that will not become invalid during the object's lifetime, i.e. static or allocated.
Try to get a triangle draw descriptor from a draw task.
Resize image cache. If set to 0, the cache will be disabled.
Get the node size of a cache entry. Which is the same size with lv_cache_entry_get_size()'s node_size parameter.
Get the cache instance of a cache entry.
Resize image header cache. If set to 0, the cache is disabled.
Set the create callback of the cache.
Set the free callback of the cache.
Get the name of a cache object.
Acquire a cache entry with the given key. If the entry is not in the cache, it will create a new entry with the given key. If the entry is found, it's priority will be changed by the cache's policy. And the `lv_cache_entry_t::ref_cnt` will be incremented. If you want to use this API to simplify the code, you should provide a `lv_cache_ops_t::create_cb` that creates a new entry with the given key. This API is a combination of lv_cache_acquire() and lv_cache_add(). The effect is the same as calling lv_cache_acquire() and lv_cache_add() separately. And the internal impact on cache is also consistent with these two APIs.
Evict one entry from the cache. The eviction policy will be used to select the entry to evict.
Get the maximum size of the cache.
Get the current size of the cache.
Get the free size of the cache.
Set the compare callback of the cache.
Configure the use of kerning information stored in a font
Just a wrapper around LV_FONT_DEFAULT because it might be more convenient to use a function in some cases
Delay for the given milliseconds. By default it's a blocking delay, but with `lv_delay_set_cb()` a custom delay function can be set too
Set the custom callback for 'lv_tick_get'
Set a custom callback for 'lv_delay_ms'
Get the time remaining until the next timer will run
Set the resume callback to the timer handler
Set whether a lv_timer will be deleted automatically when it is called `repeat_count` times.
Set custom parameter to the lv_timer.
Set a function to use the current value of the variable and make start and end value relative to the returned current value.
Legacy `lv_anim_set_playback_time` API will be removed soon, use `lv_anim_set_playback_duration` instead.
Get the user_data field of the animation
Delete an animation by getting the animated variable from `a`. Only animations with `exec_cb` will be deleted. This function exists because it's logical that all anim. functions receives an `lv_anim_t` as their first parameter. It's not practical in C but might make the API more consequent and makes easier to generate bindings.
Get a delay before starting the animation
Get the animation of a variable and its `exec_cb`. This function exists because it's logical that all anim. functions receives an `lv_anim_t` as their first parameter. It's not practical in C but might make the API more consequent and makes easier to generate bindings.
Store the speed as a special value which can be used as time in animations. It will be converted to time internally based on the start and end values
Just a wrapper to `LV_GRID_FR` for bindings.
Invert a draw buffer in the I1 color format. Conventionally, a bit is set to 1 during blending if the luminance is greater than 127. Depending on the display controller used, you might want to have different behavior. The inversion will be performed in place.
Rotate a buffer into another buffer
Get the previous value of a pointer subject
Initialize an color type subject
Set the value of a color subject. It will notify all the observers as well.
Get the current value of a color subject
Get the previous value of a color subject
Initialize a subject group
Get an element from the subject group's list
Get the previous value of an integer subject
Initialize a string type subject
Copy a string to a subject. It will notify all the observers as well.
Get the current value of an string subject
Get the previous value of an string subject
Remove the observers of an object from a subject or all subjects
Get the target object of the observer. It's the same as `lv_observer_get_target` and added only for semantic reasons
Get the user data of the observer.
Set an object flag if an integer subject's value is equal to a reference value, clear the flag otherwise
Set an object flag if an integer subject's value is not equal to a reference value, clear the flag otherwise
Bind an integer subject to a roller's value
Bind an integer subject to a dropdown's value
Replaces a style of an object, preserving the order of the style stack (local styles and transitions are ignored). Examples:
lv_obj_replace_style(obj, &yellow_style, &blue_style, LV_PART_ANY | LV_STATE_ANY); //Replace a specific style
lv_obj_replace_style(obj, &yellow_style, &blue_style, LV_PART_MAIN | LV_STATE_PRESSED); //Replace a specific style assigned to the main part when it is pressed
Check if an object has a specified style property for a given style selector.
Move a node to a new linked list
DEFINES TYPEDEFS GLOBAL PROTOTYPES Set the position of an area (width and height will be kept)
Check if 2 area is the same
DEFINES TYPEDEFS GLOBAL PROTOTYPES Initialize the theme
Save a draw buf to a file
Try to get a rectangle mask draw descriptor from a draw task.
Sets a custom calendar year list
Get the image of the canvas as a pointer to an `lv_image_dsc_t` variable.
Return the pointer for the buffer. It's recommended to use this function instead of the buffer form the return value of lv_canvas_get_image() as is can be aligned
Just a wrapper to `LV_CANVAS_BUF_SIZE` for bindings.
Tell whether "popovers" mode is enabled or not.
Get the current map of a keyboard
Get the index of the lastly "activated" button by the user (pressed, released, focused etc) Useful in the `event_cb` to get the text of the button, check if hidden etc.
Use this function instead of `lv_obj_add/remove_state` to set a state manually
Get the left image in a given state
Get the middle image in a given state
Get the right image in a given state
Get the total number of options
Set the horizontal zoom factor of the image. Note that indexed and alpha only images can't be transformed.
Set the vertical zoom factor of the image. Note that indexed and alpha only images can't be transformed.
Set the blend mode of an image.
Enable/disable anti-aliasing for the transformations (rotate, zoom) or not. The quality is better with anti-aliasing looks better but slower.
Set the image object size mode.
Set an A8 bitmap mask for the image.
Get the offset's x attribute of the image object.
Get the offset's y attribute of the image object.
Get the rotation of the image.
Get the zoom factor of the image.
Get the horizontal zoom factor of the image.
Get the vertical zoom factor of the image.
Get the current blend mode of the image
Set an offset for the source of an image so the image will be displayed from the new origin.
Set an offset angle for the knob
Set the orientation of bar.
Get whether the transformations (rotate, zoom) are anti-aliased or not
Get the size mode of the image
Get the bitmap mask source.
Get the image animation images source.
Get the image animation images source.
Get the image animation duration time. unit:ms
Get the image animation repeat play times.
Get the rotation for the whole arc
Get the orientation of bar.
Tell whether "one check" mode is enabled or not.
Get the pointer to the array of points.
Get text of a given list button
Set text of a given list button
Get a pointer to sidebar header obj
Get the total number of options
Set menu page title with a static text. It will not be saved by the label so the 'text' variable has to be 'alive' while the page exists.
Remove the span from the spangroup and free memory.
Set maximum lines of the spangroup.
Draw the scale ticks on top of all parts
Get scale mode. See lv_scale_mode_t
Get scale total tick count (including minor and major ticks)
Get angle range of a round scale
Get the min range for the given scale section
Get the max range for the given scale section
Get the minimum value of a slider
Get the maximum value of a slider
Get maximum lines of the spangroup.
Get a the character from the current cursor position
Add custom user data to the cell.
Get the number of columns.
Get the width of a column
Get custom user data to the cell.
Delete animation timeline.
Make the animation timeline repeat itself.
Set a delay before repeating the animation timeline.
Get the progress of the animation timeline.
Get repeat count of the animation timeline.
Get repeat delay of the animation timeline.
STATIC PROTOTYPES GLOBAL VARIABLES STATIC VARIABLES MACROS GLOBAL FUNCTIONS
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
Create a playback animation
Create an animation timeline
Add click event to a button
Demonstrate event bubbling
Demonstrate the usage of draw event
Basic example to create a "Hello world" label
Create a button with a label and react on click event.
Create styles from scratch for buttons.
Create a slider and write its value on a label.
A simple row and a column layout with flexbox
Arrange items in rows with wrap and place the items to get even space around them.
Reverse the order of flex items
Demonstrate the effect of column and row gap style properties
RTL base direction changes order of the items. Also demonstrate how horizontal scrolling works with RTL.
A slider sends a message on value change and a label display's that value
Simple PIN login screen to start an engine. The only interface between the UI and the application is a single "subject".
Show how to handle a complete firmware update process with observers. Normally it's hard to implement a firmware update process because in some cases - the App needs to was for the UI (wait for a button press) - the UI needs to wait for the App (connecting or downloading) With observers these complex mechanisms can be implemented a simple and clean way.
Change between light and dark mode
Demonstrate how scrolling appears automatically
Show an example to scroll snap
Create a list with a floating button
Translate the object as they scroll
Using the Size, Position and Padding style properties
Using the background style properties
Demonstrate cell placement and span
Demonstrate grid's "free unit"
Demonstrate track placement
Demonstrate column and row gap
Demonstrate RTL direction on grid
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
Bar with opposite direction
Style a button from scratch
Create a style transition on a button to act like a gum when clicked
Add custom drawer to the button matrix to customize buttons one by one
Make a button group (pagination)
Create a transparent canvas with transparency
Draw a rectangle to the canvas
Draw an arc to the canvas
Draw an image to the canvas
Draw a line to the canvas
Use lv_scale to add ticks to a scrollable chart
Show the value of the pressed points
Recolor the bars of a chart based on their value
Add a faded area effect to the line chart and make some division lines ticker
Show cursor on the clicked point
Circular line chart with gap
Using the border style properties
Using the outline style properties
Using the Shadow style properties
Using the Image style properties
Using the Arc style properties
Using the text style properties
Using the line style properties
Add styles to parts and states
Extending the current theme
Opacity and Transformations
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
Create an arc which acts as a loader.
Example of styling the bar
A temperature meter example
Bar with stripe pattern and ranged value
Bar with LTR and RTL base direction
Custom drawer on the bar to display the current value
Make an object draggable.
An infinite roller with the name of the months
Add a fade mask to roller.
A simple horizontal scale
An vertical scale with section and custom styling
A round scale with section and custom styling
An scale with section and custom styling
A round scale with multiple needles, resembling a clock
Customizing scale major tick label color with `LV_EVENT_DRAW_TASK_ADDED` event
A default slider with a label displaying the current value
Show how to style a slider.
Show the current value when the slider is pressed by extending the drawer
Slider with opposite direction
A very light-weighted list created from table
Automatically format text like a clock. E.g. "12:34" Add the ':' automatically.
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 can't be scrolled further.
Checkboxes as radio buttons
Create a drop down, up, left and right menus
Create a menu from a drop-down list and show some drop-down list features and styling
Demonstrate runtime image re-coloring
Show transformations (zoom and rotation) using a pivot point.
Show line wrap, re-color, line align and text scrolling.
Create a fake text shadow
Show customizing the circular scrolling animation of a label with `LV_LABEL_LONG_SCROLL_CIRCULAR` long mode.
Create LED's with different brightness and color
Get the value of a property
Check if a style is constant
Reshape the draw buffer if required
Search the most top object which fully covers an area
For given width, height, color format, and stride, calculate the size needed for a new draw buffer.
Process the released state of LV_INDEV_TYPE_POINTER input devices
Process a new point from LV_INDEV_TYPE_BUTTON input device
compare a key against an existing item's key
If `src` is not defined for the current state try to get a state which is related to the current but has `src`. E.g. if the PRESSED src is not set but the RELEASED does, use the RELEASED.
Update the key and control map for the current mode
Free the dot_tmp_ptr field if it was previously allocated. Always clears the field
Set the middle page for the roller if infinite is enabled
MACROS For compatibility if LV_USE_BIDI = 0 Get the real text alignment from the a text alignment, base direction and a text.
TYPEDEFS STATIC PROTOTYPES
Set the state (fully overwrite) of an object. If specified in the styles, transition animations will be started from the previous state to the current.
Refresh the style of all children of an object. (Called recursively)
Recursively refresh the style of the children. Go deeper until a not NULL style is found because the NULL styles are inherited from the parent
Get the transition style of an object for a given part and for a given state. If the transition style for the part-state pair doesn't exist allocate and return it.
Test if character can be treated as marker, and don't need to be rendered. Note, this is not a full list. Add your findings to the list.
Check if two AL88 colors are equal
Test the circle drawing is ready or not
Code Comparator. Compares the value of both input arguments.
Reset the indev and send event to active obj and scroll obj
Process the pressed state of LV_INDEV_TYPE_POINTER input devices
Find the last item of a track
Tell a start coordinate and gap for a placement type.
Place the grid track according to align methods. It keeps the track sizes but sets their position. It can process both columns or rows according to the passed parameters.
Remove animations which are animating the same var with the same exec_cb and they are already running or they have early_apply
STATIC FUNCTIONS Periodically handle the animations.
STATIC FUNCTIONS Extract the drive letter and the real path from LVGL's "abstracted file system" path string
remove an item and push it to the free items queue
cubic-bezier Reference: https://github.com/gre/bezier-easing https://opensource.apple.com/source/WebCore/WebCore-955.66/platform/graphics/UnitBezier.h Copyright (c) 2014 Gaëtan Renaudeau Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Find out how much time remains before a timer must be run.
Check if angle is within arc background bounds In order to avoid unexpected value update of the arc value when the user clicks outside of the arc background we need to check if the angle (of the clicked point) is within the bounds of the background. A tolerance (extra room) also should be taken into consideration. E.g. Arc with start angle of 0° and end angle of 90°, the background is only visible in that range, from 90° to 360° the background is invisible. Click in 150° should not update the arc value, click within the arc angle range should. IMPORTANT NOTE: angle is always relative to bg_angle_start, e.g. if bg_angle_start is 30 and we click a bit to the left, angle is 10, not the expected 40.
Get the width of a button in units (default is 1).
Gives the button id of a button under a given point
Enforces a single button being toggled on the button matrix. It simply clears the toggle flag on other buttons.
Get the number of days in a month
Get center point and radius of scale arc
Get coordinates for label
Get points for ticks In order to draw ticks we need two points, this interface returns both points for all scale modes.
Called to blink the cursor
Dummy function to animate char hiding in pwd mode. Does nothing, but a function is required in car hiding anim. (pwd_char_hider callback do the real job)
Hide system performance monitor
Tell the group of a property. If the a property from a group is set in a style the (1 has_group is set. It allows early skipping the style if the property is not exists in the style at all.
Initialize the draw descriptor for the scrollbar
STATIC FUNCTIONS Get the local style of an object for a given part and for a given state. If the local style for the part-state pair doesn't exist allocate and return it.
STATIC FUNCTIONS Join the areas which has got common parts
Refresh an area if there is Virtual Display Buffer
Flush the content of the draw buffer
TYPEDEFS STATIC PROTOTYPES
STATIC FUNCTIONS Check if there are older draw task overlapping the area of `t_check`
TYPEDEFS STATIC PROTOTYPES
DEFINES TYPEDEFS STATIC PROTOTYPES
DEFINES TYPEDEFS STATIC PROTOTYPES
STATIC FUNCTIONS Calculate a blurred corner
STATIC VARIABLE STATIC FUNCTIONS
DEFINES TYPEDEFS STATIC PROTOTYPES
Initialize the circle drawing
Get the next point from the circle
Move the object to the foreground. It will look like if it was created as the last child of its parent. It also means it can cover any of the siblings.
Handle focus/defocus on click for POINTER input devices
Process a new point from LV_INDEV_TYPE_KEYPAD input device
STATIC FUNCTIONS Process a new point from LV_INDEV_TYPE_POINTER input device
Process a new point from LV_INDEV_TYPE_ENCODER input device
Process new points from an input device. indev->state.pressed has to be set
Position the children in the same track
Calculate the grid cells coordinates
Free the a grid calculation's data
Reposition a grid item in its cell
STATIC VARIABLES MACROS GLOBAL FUNCTIONS STATIC FUNCTIONS
TYPEDEFS STATIC PROTOTYPES
TYPEDEFS STATIC PROTOTYPES
Called when an animation is completed to do the necessary things e.g. repeat, play back, delete etc.
STATIC FUNCTIONS Helper function to easily create color filters
pop an existing item off the free queue, or create a new one
Convert a wide character, e.g. 'Á' little endian to be UTF-8 compatible
UTF-8 ENCODER/DECODER Give the size of an UTF-8 coded character
Convert a Unicode letter to UTF-8.
Get previous UTF-8 character form a string.
Convert a character index (in an UTF-8 text) to byte index. E.g. in "AÁRT" index of 'R' is 2th char but start at byte 3 because 'Á' is 2 bytes long
Convert a byte index (in an UTF-8 text) to character index. E.g. in "AÁRT" index of 'R' is 2th char but start at byte 3 because 'Á' is 2 bytes long
Get the number of characters (and NOT bytes) in a string. Decode it with UTF-8 if enabled. E.g.: "ÁBC" is 3 characters (but 4 bytes)
Decode an UTF-8 character from a string.
STATIC FUNCTIONS Execute timer if its remaining time is zero
TYPEDEFS STATIC PROTOTYPES
TYPEDEFS STATIC PROTOTYPES
Create the required number of buttons and control bytes according to a map
Check if any of the buttons in the first row has the LV_BUTTONMATRIX_CTRL_POPOVER control flag set.
Tells whether a year is leap year or not
Get the nearest index to an X coordinate
Called when a drop down list is released to open it or set new option
Store `len` characters from `data`. Allocates space if necessary.
Get the stored dot_tmp characters
Set arc properties Checks if the arc has a custom section configuration or not and sets the properties accordingly.
Set indicator label properties Checks if the indicator has a custom section configuration or not and sets the properties accordingly.
Sets the text of the tick label descriptor when using custom labels Sets the text pointer when valid custom label is available, otherwise set it to NULL.
Stores tick width compensation information for main line sections
Stores the width of the initial and last tick of the main line This width is used to compensate the main line drawing taking into consideration the widths of both ticks
Resets the switch's animation state to "no animation in progress".
Starts an animation for the switch knob. if the anim_time style property is greater than 0
Test a unicode character if it is accepted or not. Checks max length and accepted char list.
Call when an animation is ready to convert all characters to '*'
Emulate connection and FW downloading by timers
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
STATIC VARIABLES MACROS GLOBAL FUNCTIONS
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
INCLUDES DEFINES TYPEDEFS GLOBAL PROTOTYPES
Move the object to the background. It will look like if it was created as the first child of its parent. It also means any of the siblings can cover the object.
Get the image animation underlying animation.
Checks if the stop_processing_query flag has been set. If so, do not send any events to the object
Extend A1/2/4 to A8 with interpolation to reduce rounding error.
Get the next word of text. A word is delimited by break characters. If the word cannot fit in the max_width space, obey LV_TXT_LINE_BREAK_LONG_* rules. If the next word cannot fit anything, return 0. If the first character is a break character, returns the next index. Example calls from lv_text_get_next_line() assuming sufficient max_width and txt = "Test text\n" 0123456789 Calls would be as follows: 1. Return i=4, pointing at breakchar ' ', for the string "Test" 2. Return i=5, since i=4 was a breakchar. 3. Return i=9, pointing at breakchar '\n' 4. Parenting lv_text_get_next_line() would detect subsequent '\0' TODO: Returned word_w_ptr may overestimate the returned word's width when max_width is reached. In current usage, this has no impact.
STATIC VARIABLES MACROS STATIC FUNCTIONS
STATIC VARIABLES MACROS STATIC FUNCTIONS
Calculate the square of an integer (input range is 0..32767).
Wrapper functions for VERSION macros