# lv_objx_templ.h (/api/private/widgets/objx_templ/lv_objx_templ_h)



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

Functions [#functions]

<ApiMember kind="function" name="lv_templ_create" file="private/widgets/objx_templ/lv_objx_templ.h" line="54" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/src/widgets/objx_templ/lv_objx_templ.h#L54">
  lv_templ_create [#lv_templ_create]

  Create a templ object

  ```c title=" " lineNumbers=1
  lv_obj_t * lv_templ_create(lv_obj_t *parent)
  ```

  <span className="sr-only">
    Parameters
  </span>

  | Name     | Type                                             | Description                                                                                                         |
  | -------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------- |
  | `parent` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a parent widget **May** be `NULL`.. When NULL, the widget is created as a screen on the default display. |

  **Returns:** <ApiLink name="lv_obj_t" display="lv_obj_t *" /> — pointer to the created bar
</ApiMember>

Structs [#structs]

<ApiMember kind="struct" name="lv_templ_t">
  lv_templ_t [#lv_templ_t]

  TODO Remove these instructions Search and replace: templ -> object short name with lower case(e.g. btn, label etc) TEMPL -> object short name with upper case (e.g. BTN, LABEL etc.)

  | Member     | Type            | Description |
  | ---------- | --------------- | ----------- |
  | `ancestor` | `lv_ANCESTOR_t` |             |
</ApiMember>

Variables [#variables]

<ApiMember kind="variable" name="lv_templ_class" file="private/widgets/objx_templ/lv_objx_templ.h" line="42" url="https://github.com/lvgl/lvgl/tree/e1a0ad863f29742359bc680d6a7d973448ec2285/src/widgets/objx_templ/lv_objx_templ.h#L42">
  lv_templ_class [#lv_templ_class]

  ```c title=" " lineNumbers=1
  const lv_obj_class_t lv_templ_class
  ```
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lvgl_public.h&#x22;]" />
