[−][src]Module lvgl::objx::label
Contains Rust bindings for LVGL Objx API lv_objx
Structs
__BindgenBitfieldUnit | |
__BindgenUnionField | |
_lv_font_struct | Describe the properties of a font |
lv_area_t | Represents an area of the screen. |
lv_color16_t | |
lv_color16_t__bindgen_ty_1 | |
lv_font_glyph_dsc_t | Describes the properties of a glyph. |
lv_label_ext_t | Data of label |
lv_label_ext_t__bindgen_ty_1 | |
lv_ll_t | Description of a linked list |
lv_point_t | Represents a point on the screen. |
lv_reailgn_t | |
lv_style_t__bindgen_ty_1 | Object background. |
lv_style_t__bindgen_ty_1__bindgen_ty_1 | |
lv_style_t__bindgen_ty_1__bindgen_ty_2 | |
lv_style_t__bindgen_ty_1__bindgen_ty_3 | |
lv_style_t__bindgen_ty_2 | Style for text drawn by this object. |
lv_style_t__bindgen_ty_3 | |
lv_style_t__bindgen_ty_4 |
Constants
LV_LABEL_ALIGN_AUTO | < Use LEFT or RIGHT depending on the direction of the text (LTR/RTL) |
LV_LABEL_ALIGN_CENTER | < Align text to center |
LV_LABEL_ALIGN_LEFT | < Align text to left |
LV_LABEL_ALIGN_RIGHT | < Align text to right |
LV_LABEL_DEF_SCROLL_SPEED | |
LV_LABEL_DOT_NUM | |
LV_LABEL_LONG_BREAK | < Keep the object width, break the too long lines and expand the object height |
LV_LABEL_LONG_CROP | < Keep the size and crop the text out of it |
LV_LABEL_LONG_DOT | < Keep the size and write dots at the end if the text is too long |
LV_LABEL_LONG_EXPAND | < Expand the object size to the text size |
LV_LABEL_LONG_SROLL | < Keep the size and roll the text back and forth |
LV_LABEL_LONG_SROLL_CIRC | < Keep the size and roll the text circularly |
LV_LABEL_LONG_TXT_HINT | |
LV_LABEL_POS_LAST | |
LV_LABEL_STYLE_MAIN | |
LV_LABEL_TEXT_SEL | |
LV_LABEL_TEXT_SEL_OFF | |
LV_LABEL_WAIT_CHAR_COUNT |
Functions
create | Create a label objects |
cut_text | Delete characters from a label. The label text can not be static. |
get_align | Get the align attribute |
get_anim_speed | Get the label's animation speed in LV_LABEL_LONG_ROLL and SCROLL modes |
get_body_draw | Get the body draw attribute |
get_letter_on | Get the index of letter on a relative point of a label |
get_letter_pos | Get the relative x and y coordinates of a letter |
get_long_mode | Get the long mode of a label |
get_recolor | Get the recoloring attribute |
get_style | Get the style of an label object |
get_text | Get the text of a label |
get_text_sel_end | @brief Get the selection end index. |
get_text_sel_start | @brief Get the selection start index. |
ins_text | Insert a text to the label. The label text can not be static. |
is_char_under_pos | Check if a character is drawn under a point. |
set_align | Set the align of the label (left or center) |
set_anim_speed | Set the label's animation speed in LV_LABEL_LONG_SROLL/SCROLL_CIRC modes |
set_array_text | Set a new text for a label from a character array. The array don't has to be '\0' terminated. Memory will be allocated to store the array by the label. |
set_body_draw | Set the label to draw (or not draw) background specified in its style's body |
set_long_mode | Set the behavior of the label with longer text then the object size |
set_recolor | Enable the recoloring by in-line commands |
set_static_text | Set a static text. It will not be saved by the label so the 'text' variable has to be 'alive' while the label exist. |
set_style | Set the style of an label |
set_text | Set a new text for a label. Memory will be allocated to store the text by the label. |
set_text_fmt | Set a new formatted text for a label. Memory will be allocated to store the text by the label. |
set_text_sel_end | @brief Set the selection end index. |
set_text_sel_start | @brief Set the selection start index. |
Type Definitions
_bindgen_ty_22 | Long mode behaviors. Used in 'lv_label_ext_t' |
_bindgen_ty_23 | Label align policy |
_bindgen_ty_24 | Label styles |
lv_align_t | |
lv_bidi_dir_t | |
lv_border_part_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_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_t | |
lv_font_user_data_t | |
lv_label_align_t | |
lv_label_long_mode_t | |
lv_label_style_t | |
lv_ll_node_t | Dummy type to make handling easier |
lv_obj_t | |
lv_obj_user_data_t | |
lv_opa_t | |
lv_res_t | |
lv_shadow_type_t | |
lv_signal_cb_t | |
lv_signal_t |