Lines Matching full:group
24 /** Predefined keys to control which Widget has focus via lv_group_send(group, c) */
57 * Create new Widget group.
58 * @return pointer to the new Widget group
63 * Delete group object.
64 * @param group pointer to a group
66 void lv_group_delete(lv_group_t * group);
69 * Set default group. New Widgets will be added to this group if it's enabled in
71 * @param group pointer to a group (can be `NULL`)
73 void lv_group_set_default(lv_group_t * group);
76 * Get default group.
77 * @return pointer to the default group
82 * Add an Widget to group.
83 * @param group pointer to a group
86 void lv_group_add_obj(lv_group_t * group, lv_obj_t * obj);
89 * Swap 2 Widgets in group. Widgets must be in the same group.
96 * Remove a Widget from its group.
102 * Remove all Widgets from a group.
103 * @param group pointer to a group
105 void lv_group_remove_all_objs(lv_group_t * group);
114 * Focus on next Widget in a group (defocus the current).
115 * @param group pointer to a group
117 void lv_group_focus_next(lv_group_t * group);
120 * Focus on previous Widget in a group (defocus the current).
121 * @param group pointer to a group
123 void lv_group_focus_prev(lv_group_t * group);
127 * @param group pointer to a group
130 void lv_group_focus_freeze(lv_group_t * group, bool en);
133 * Send a control character to Widget that has focus in a group.
134 * @param group pointer to a group
136 * @return result of Widget with focus in group.
138 lv_result_t lv_group_send_data(lv_group_t * group, uint32_t c);
141 * Set a function for a group which will be called when a new Widget has focus.
142 * @param group pointer to a group
145 void lv_group_set_focus_cb(lv_group_t * group, lv_group_focus_cb_t focus_cb);
148 * Set a function for a group which will be called when a focus edge is reached
149 * @param group pointer to a group
152 void lv_group_set_edge_cb(lv_group_t * group, lv_group_edge_cb_t edge_cb);
155 * Set whether the next or previous Widget in a group gets focus when Widget that has
157 * @param group pointer to a group
160 void lv_group_set_refocus_policy(lv_group_t * group, lv_group_refocus_policy_t policy);
164 * @param group pointer to group
167 void lv_group_set_editing(lv_group_t * group, bool edit);
172 * @param group pointer to group
175 void lv_group_set_wrap(lv_group_t * group, bool en);
179 * @param group pointer to a group
182 lv_obj_t * lv_group_get_focused(const lv_group_t * group);
185 * Get focus callback function of a group.
186 * @param group pointer to a group
189 lv_group_focus_cb_t lv_group_get_focus_cb(const lv_group_t * group);
192 * Get edge callback function of a group.
193 * @param group pointer to a group
196 lv_group_edge_cb_t lv_group_get_edge_cb(const lv_group_t * group);
200 * @param group pointer to group
203 bool lv_group_get_editing(const lv_group_t * group);
208 * @param group pointer to group
210 bool lv_group_get_wrap(lv_group_t * group);
213 * Get number of Widgets in group.
214 * @param group pointer to a group
215 * @return number of Widgets in the group
217 uint32_t lv_group_get_obj_count(lv_group_t * group);
220 * Get nth Widget within group.
221 * @param group pointer to a group
222 * @param index index of Widget within the group
225 lv_obj_t * lv_group_get_obj_by_index(lv_group_t * group, uint32_t index);
234 * Get a group by its index.
235 * @param index index of the group
236 * @return pointer to the group