# lv_group_private.h (/api/core/lv_group_private_h)



<RelatedHeaders name="lv_group.h" isPrivate="true" />

<ApiSummary functions="2" structs="1" />

Functions [#functions]

<ApiMember kind="function" name="lv_group_init" file="core/lv_group_private.h" line="62" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/core/lv_group_private.h#L62">
  lv_group_init [#lv_group_init]

  Init the group module

  ```c title=" " lineNumbers=1
  void lv_group_init(void)
  ```

  <Callout type="info">
    **Remark:** Internal function, do not call directly.
  </Callout>
</ApiMember>

<ApiMember kind="function" name="lv_group_deinit" file="core/lv_group_private.h" line="68" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/core/lv_group_private.h#L68">
  lv_group_deinit [#lv_group_deinit]

  Deinit the group module

  ```c title=" " lineNumbers=1
  void lv_group_deinit(void)
  ```

  <Callout type="info">
    **Remark:** Internal function, do not call directly.
  </Callout>
</ApiMember>

Structs [#structs]

<ApiMember kind="struct" name="_lv_group_t">
  \_lv_group_t [#_lv_group_t]

  Groups can be used to logically hold objects so that they can be individually focused. They are NOT for laying out objects on a screen (try layouts for that).

  | Member           | Type                                              | Description                                                                                                                                                |
  | ---------------- | ------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `ext_data`       | <ApiLink name="lv_ext_data_t" />                  |                                                                                                                                                            |
  | `obj_ll`         | <ApiLink name="lv_ll_t" />                        | Linked list to store the objects in the group                                                                                                              |
  | `obj_focus`      | <ApiLink name="lv_obj_t" display="lv_obj_t **" /> | The object in focus                                                                                                                                        |
  | `focus_cb`       | <ApiLink name="lv_group_focus_cb_t" />            | A function to call when a new object is focused (optional)                                                                                                 |
  | `edge_cb`        | <ApiLink name="lv_group_edge_cb_t" />             | A function to call when an edge is reached, no more focus targets are available in this direction (to allow edge feedback like a sound or a scroll bounce) |
  | `user_data`      | `void *`                                          |                                                                                                                                                            |
  | `frozen`         | <ApiLink name="uint8_t" />                        | 1: can't focus to new object                                                                                                                               |
  | `editing`        | <ApiLink name="uint8_t" />                        | 1: Edit mode, 0: Navigate mode                                                                                                                             |
  | `refocus_policy` | <ApiLink name="uint8_t" />                        | 1: Focus prev if focused on deletion. 0: Focus next if focused on deletion.                                                                                |
  | `wrap`           | <ApiLink name="uint8_t" />                        | 1: Focus next/prev can wrap at end of list. 0: Focus next/prev stops at end of list.                                                                       |
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_ext_data.h&#x22;, &#x22;lv_group.h&#x22;]" transitiveIncludes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_types.h&#x22;]" />
