[−][src]Module lvgl::core::obj
Contains Rust bindings for LVGL Core API lv_core
Structs
__BindgenBitfieldUnit | |
__BindgenUnionField | |
_disp_drv_t | Display Driver structure to be registered by HAL |
_disp_t | TYPEDEFS |
_lv_anim_t | Describes an animation |
_lv_font_struct | Describe the properties of a font |
_lv_group_t | |
_lv_indev_drv_t | Initialized by the user and registered by 'lv_indev_add()' |
_lv_indev_proc_t | Run time data of input devices Internally used by the library, you should not need to touch it. |
_lv_indev_proc_t__bindgen_ty_1 | |
_lv_indev_proc_t__bindgen_ty_1__bindgen_ty_1 | |
_lv_indev_proc_t__bindgen_ty_1__bindgen_ty_2 | |
_lv_indev_t | The main input device descriptor with driver, runtime data ('proc') and some additional information |
_lv_obj_t | TYPEDEFS |
_lv_task_t | TYPEDEFS |
lv_area_t | Represents an area of the screen. |
lv_color1_t | TYPEDEFS |
lv_color1_t__bindgen_ty_1 | |
lv_color8_t | |
lv_color8_t__bindgen_ty_1 | |
lv_color16_t | |
lv_color16_t__bindgen_ty_1 | |
lv_color32_t | |
lv_color32_t__bindgen_ty_1 | |
lv_color_hsv_t | |
lv_disp_buf_t | Structure for holding display buffer information. |
lv_font_glyph_dsc_t | Describes the properties of a glyph. |
lv_indev_data_t | Data structure passed to an input driver to fill |
lv_ll_t | Description of a linked list |
lv_mem_monitor_t | Heap information structure. |
lv_obj_type_t | Used by |
lv_point_t | Represents a point on the screen. |
lv_reailgn_t | |
lv_style_anim_dsc_t | Data structure for style animations. |
lv_style_t | Objects in LittlevGL can be assigned a style - which holds information about how the object should be drawn. |
lv_style_t__bindgen_ty_1 | Object background. |
lv_style_t__bindgen_ty_1__bindgen_ty_1 | |
lv_style_t__bindgen_ty_1__bindgen_ty_2 | |
lv_style_t__bindgen_ty_1__bindgen_ty_3 | |
lv_style_t__bindgen_ty_2 | Style for text drawn by this object. |
lv_style_t__bindgen_ty_3 | |
lv_style_t__bindgen_ty_4 |
Constants
Statics
Functions
align | Align an object to an other object. |
align_origo | Align an object to an other object. |
allocate_ext_attr | Allocate a new ext. data for an object |
anim_clear_playback | Disable playback. (Disabled after |
anim_clear_repeat | Disable repeat. (Disabled after |
anim_core_init | Init. the animation module |
anim_count_running | Get the number of currently running animations Return: the number of running animations |
anim_create | Create an animation |
anim_custom_del | Delete an aniamation by getting the animated variable from |
anim_del | Delete an animation of a variable with a given animator function |
anim_init | Initialize an animation variable. E.g.: lv_anim_t a; lv_anim_init(&a); lv_anim_set_...(&a); lv_anim_create(&a); |
anim_path_bounce | Calculate the current value of an animation with 3 bounces |
anim_path_ease_in | Calculate the current value of an animation slowing down the start phase |
anim_path_ease_in_out | Calculate the current value of an animation applying an "S" characteristic (cosine) |
anim_path_ease_out | Calculate the current value of an animation slowing down the end phase |
anim_path_linear | Calculate the current value of an animation applying linear characteristic |
anim_path_overshoot | Calculate the current value of an animation with overshoot at the end |
anim_path_step | Calculate the current value of an animation applying step characteristic. (Set end value on the end of the animation) |
anim_set_custom_exec_cb | Similar to |
anim_set_exec_cb | Set a variable to animate function to execute on |
anim_set_path_cb | Set the path (curve) of the animation. |
anim_set_playback | Make the animation to play back to when the forward direction is ready |
anim_set_ready_cb | Set a function call when the animation is ready |
anim_set_repeat | Make the animation to start again when ready. |
anim_set_time | Set the duration and delay of an animation |
anim_set_values | Set the start and end values of an animation |
anim_speed_to_time | Calculate the time of an animation with a given speed and the start and end values |
area_copy | Copy an area |
area_get_height | Get the height of an area |
area_get_size | Return with area of an area (x * y) |
area_get_width | Get the width of an area |
area_increment | Increment or decrement an area's size by a single amount |
area_intersect | Get the common parts of two areas |
area_is_in | Check if an area is fully on an other |
area_is_on | Check if two area has common parts |
area_is_point_on | Check if a point is on an area |
area_join | Join two areas into a third which involves the other two |
area_set | Initialize an area |
area_set_height | Set the height of an area |
area_set_pos | Set the position of an area (width and height will be kept) |
area_set_width | Set the width of an area |
clean | Delete all children of an object |
clear_protect | Clear a bit or bits in the protect filed |
color_brightness | Get the brightness of a color |
color_hex | |
color_hex3 | |
color_hsv_to_rgb | Convert a HSV color to RGB |
color_make | |
color_mix | |
color_rgb_to_hsv | Convert a 32-bit RGB color to HSV |
color_to1 | GLOBAL PROTOTYPES |
color_to8 | |
color_to16 | |
color_to32 | |
color_to_hsv | Convert a color to HSV |
count_children | Count the children of an object (only children directly on 'obj') |
count_children_recursive | Recursively count the children of an object |
create | Create a basic object |
del | Delete 'obj' and all of its children |
del_async | Helper function for asynchronously deleting objects.
Useful for cases where you can't delete an object directly in an |
disp_buf_init | Initialize a display buffer |
disp_drv_init | Initialize a display driver with default values. It is used to have known values in the fields and not junk in memory. After it you can safely set only the fields you need. |
disp_drv_register | Register an initialized display driver. Automatically set the first display as active. |
disp_drv_update | Update the driver in run time. |
disp_flush_ready | Call in the display driver's |
disp_get_antialiasing | Get if anti-aliasing is enabled for a display or not |
disp_get_buf | Get the internal buffer of a display |
disp_get_default | Get the default display Return: pointer to the default display |
disp_get_hor_res | Get the horizontal resolution of a display |
disp_get_inv_buf_size | Get the number of areas in the buffer Return: number of invalid areas |
disp_get_next | Get the next display. |
disp_get_ver_res | Get the vertical resolution of a display |
disp_is_double_buf | Check the driver configuration if it's double buffered (both |
disp_is_true_double_buf | Check the driver configuration if it's TRUE double buffered (both |
disp_pop_from_inv_buf | Pop (delete) the last 'num' invalidated areas from the buffer |
disp_remove | Remove a display |
disp_set_default | Set a default screen. The new screens will be created on it by default. |
disp_set_direction | |
event_get_data | Get the |
event_send | Send an event to the object |
event_send_func | Call an event function with an object, event, and data. |
font_get_glyph_bitmap | Return with the bitmap of a font. |
font_get_glyph_dsc | Get the descriptor of a glyph |
font_get_glyph_width | Get the width of a glyph with kerning |
font_get_line_height | Get the line height of a font. All characters fit into this height |
get_auto_realign | Get the automatic realign property of the object. |
get_base_dir | |
get_child | Iterate through the children of an object (start from the "youngest, lastly created") |
get_child_back | Iterate through the children of an object (start from the "oldest", firstly created) |
get_click | Get the click enable attribute of an object |
get_coords | Copy the coordinates of an object to an area |
get_design_cb | Get the design function of an object |
get_disp | Get the display of an object |
get_drag | Get the drag enable attribute of an object |
get_drag_dir | Get the directions an object can be dragged |
get_drag_parent | Get the drag parent attribute of an object |
get_drag_throw | Get the drag throw enable attribute of an object |
get_event_cb | Get the event function of an object |
get_ext_attr | Get the ext pointer |
get_ext_click_pad_bottom | Get the bottom padding of extended clickable area |
get_ext_click_pad_left | Get the left padding of extended clickable area |
get_ext_click_pad_right | Get the right padding of extended clickable area |
get_ext_click_pad_top | Get the top padding of extended clickable area |
get_ext_draw_pad | Get the extended size attribute of an object |
get_group | Get the group of the object |
get_height | Get the height of an object |
get_height_fit | Get that height reduced by the top an bottom padding. |
get_hidden | Get the hidden attribute of an object |
get_inner_coords | Reduce area retried by |
get_opa_scale | Get the opa scale parameter of an object |
get_opa_scale_enable | Get the opa scale enable parameter |
get_parent | Returns with the parent of an object |
get_parent_event | Get the drag parent attribute of an object |
get_protect | Get the protect field of an object |
get_screen | Return with the screen of an object |
get_signal_cb | Get the signal function of an object |
get_style | Get the style pointer of an object (if NULL get style of the parent) |
get_top | Get the top enable attribute of an object |
get_type | Get object's and its ancestors type. Put their name in |
get_user_data | Get the object's user data |
get_user_data_ptr | Get a pointer to the object's user data |
get_width | Get the width of an object |
get_width_fit | Get that width reduced by the left and right padding. |
get_x | Get the x coordinate of object |
get_y | Get the y coordinate of object |
handle_get_type_signal | Used in the signal callback to handle |
indev_drv_init | Initialize an input device driver with default values. It is used to surly have known values in the fields ant not memory junk. After it you can set the fields. |
indev_drv_register | Register an initialized input device driver. |
indev_drv_update | Update the driver in run time. |
indev_get_next | Get the next input device. |
indev_read | Read data from an input device. |
invalidate | Mark the object as invalid therefore its current position will be redrawn by 'lv_refr_task' |
is_focused | Tell whether the object is the focused object of a group or not. |
is_protected | Check at least one bit of a given protect bitfield is set |
ll_chg_list | Move a node to a new linked list |
ll_clear | Remove and free all elements from a linked list. The list remain valid but become empty. |
ll_get_head | Return with head node of the linked list |
ll_get_len | Return the length of the linked list. |
ll_get_next | Return with the pointer of the next node after 'n_act' |
ll_get_prev | Return with the pointer of the previous node after 'n_act' |
ll_get_tail | Return with tail node of the linked list |
ll_init | Initialize linked list |
ll_ins_head | Add a new head to a linked list |
ll_ins_prev | Insert a new node in front of the n_act node |
ll_ins_tail | Add a new tail to a linked list |
ll_is_empty | Check if a linked list is empty |
ll_move_before | Move a nodw before an other node in the same linked list |
ll_rem | Remove the node 'node_p' from 'll_p' linked list. It does not free the the memory of node. |
lv_init | Init. the 'lv' library. |
mem_alloc | Allocate a memory dynamically |
mem_defrag | Join the adjacent free memory blocks |
mem_free | Free an allocated data |
mem_get_size | Give the size of an allocated memory |
mem_init | Initiaize the dyn_mem module (work memory and other variables) |
mem_monitor | Give information about the work memory of dynamic allocation |
mem_realloc | Reallocate a memory with a new size. The old content will be kept. |
move_background | Move and object to the background |
move_foreground | Move and object to the foreground |
realign | Realign the object based on the last |
refresh_ext_draw_pad | Send a 'LV_SIGNAL_REFR_EXT_SIZE' signal to the object |
refresh_style | Notify an object about its style is modified |
report_style_mod | Notify all object if a style is modified |
set_auto_realign | Enable the automatic realign of the object when its size has changed based on the last
|
set_base_dir | |
set_click | Enable or disable the clicking of an object |
set_design_cb | Set a new design function for an object |
set_drag | Enable the dragging of an object |
set_drag_dir | Set the directions an object can be dragged in |
set_drag_parent | Enable to use parent for drag related operations. If trying to drag the object the parent will be moved instead |
set_drag_throw | Enable the throwing of an object after is is dragged |
set_event_cb | Set a an event handler function for an object. Used by the user to react on event which happens with the object. |
set_ext_click_area | Set the size of an extended clickable area |
set_height | Set the height of an object |
set_hidden | Hide an object. It won't be visible and clickable. |
set_opa_scale | Set the opa scale of an object.
The opacity of this object and all it's children will be scaled down with this factor.
|
set_opa_scale_enable | Set the opa scale enable parameter (required to set opa_scale with |
set_parent | Set a new parent for an object. Its relative position will be the same. |
set_parent_event | Propagate the events to the parent too |
set_pos | Set relative the position of an object (relative to the parent) |
set_protect | Set a bit or bits in the protect filed |
set_signal_cb | Set the a signal function of an object. Used internally by the library. Always call the previous signal function in the new. |
set_size | Set the size of an object |
set_style | Set a new style for an object |
set_top | Enable to bring this object to the foreground if it or any of its children is clicked |
set_user_data | Set the object's user data. The data will be copied. |
set_width | Set the width of an object |
set_x | Set the x coordinate of a object |
set_y | Set the y coordinate of a object |
signal_send | Send an event to the object |
style_anim_clear_playback | Disable playback. (Disabled after |
style_anim_clear_repeat | Disable repeat. (Disabled after |
style_anim_create | Create an animation |
style_anim_init | Initialize an animation variable. E.g.: lv_anim_t a; lv_style_anim__init(&a); lv_style_anim_set_...(&a); lv_style_anim_create(&a); |
style_anim_set_playback | Make the animation to play back to when the forward direction is ready |
style_anim_set_ready_cb | Set a function call when the animation is ready |
style_anim_set_repeat | Make the animation to start again when ready. |
style_anim_set_styles |
a : pointer to an initialized lv_anim_t variableto_anim : pointer to the style to animatestart : pointer to a style to animate from (start value)end : pointer to a style to animate to (end value) |
style_anim_set_time | Set the duration and delay of an animation |
style_copy | Copy a style to an other |
style_init | Init the basic styles |
style_mix | Mix two styles according to a given ratio |
task_core_init | Init the lv_task module |
task_create | Create a new lv_task |
task_create_basic | Create an "empty" task. It needs to initialzed with at least
|
task_del | Delete a lv_task |
task_enable | Enable or disable the whole lv_task handling |
task_get_idle | Get idle percentage Return: the lv_task idle in percentage |
task_handler | Call it periodically to handle lv_tasks. |
task_once | Delete the lv_task after one call |
task_ready | Make a lv_task ready. It will not wait its period. |
task_reset | Reset a lv_task. It will be called the previously set period milliseconds later. |
task_set_cb | Set the callback the task (the function to call periodically) |
task_set_period | Set new period for a lv_task |
task_set_prio | Set new priority for a lv_task |
tick_elaps | Get the elapsed milliseconds since a previous time stamp |
tick_get | Get the elapsed milliseconds since start up Return: the elapsed milliseconds |
tick_inc | You have to call this function periodically |
Type Definitions
_bindgen_ty_2 | The bitmaps might be upscaled by 3 to achieve subpixel rendering. |
_bindgen_ty_3 | Opacity percentages. |
_bindgen_ty_4 | Can be used to indicate if animations are enabled or disabled in a case |
_bindgen_ty_5 | TYPEDEFS |
_bindgen_ty_6 | |
_bindgen_ty_7 | LittlevGL error codes. |
_bindgen_ty_8 | TYPEDEFS |
_bindgen_ty_9 | Possible priorities for lv_tasks |
_bindgen_ty_10 | Possible input device types |
_bindgen_ty_11 | States for input devices |
_bindgen_ty_12 | Design modes |
_bindgen_ty_13 | |
_bindgen_ty_14 | Signals are for use by the object itself or to extend the object's functionality. Applications should use ::lv_obj_set_event_cb to be notified of events that occur on the object. |
_bindgen_ty_15 | Object alignment. |
_bindgen_ty_16 | |
_bindgen_ty_17 | |
lv_align_t | |
lv_anim_custom_exec_cb_t | Same as |
lv_anim_enable_t | |
lv_anim_exec_xcb_t | Generic prototype of "animator" functions.
First parameter is the variable to animate.
Second parameter is the value to set.
Compatible with |
lv_anim_path_cb_t | Get the current value during an animation |
lv_anim_ready_cb_t | Callback to call when the animation is ready |
lv_anim_t | |
lv_anim_user_data_t | |
lv_anim_value_t | Type of the animated value |
lv_bidi_dir_t | |
lv_border_part_t | |
lv_color_int_t | |
lv_color_t | |
lv_coord_t | |
lv_design_cb_t | The design callback is used to draw the object on the screen. It accepts the object, a mask area, and the mode in which to draw the object. |
lv_design_mode_t | |
lv_disp_drv_t | |
lv_disp_drv_user_data_t | |
lv_disp_t | |
lv_drag_dir_t | |
lv_event_cb_t | @brief Event callback. Events are used to notify the user of some action being taken on the object. For details, see ::lv_event_t. |
lv_event_t | |
lv_font_subpx_t | |
lv_font_t | |
lv_font_user_data_t | |
lv_group_user_data_t | |
lv_img_decoder_user_data_t | |
lv_indev_drv_t | |
lv_indev_drv_user_data_t | |
lv_indev_proc_t | |
lv_indev_state_t | |
lv_indev_t | |
lv_indev_type_t | |
lv_ll_node_t | Dummy type to make handling easier |
lv_log_level_t | |
lv_obj_t | |
lv_obj_user_data_t | |
lv_opa_t | |
lv_protect_t | |
lv_res_t | |
lv_shadow_type_t | |
lv_signal_cb_t | |
lv_signal_t | |
lv_task_cb_t | Tasks execute this type type of functions. |
lv_task_prio_t | |
lv_task_t | |
lv_uintptr_t |