# lv_obj_class_private.h (/api/core/lv_obj_class_private_h)



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

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

Functions [#functions]

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

  ```c title=" " lineNumbers=1
  void lv_obj_destruct(lv_obj_t *obj)
  ```

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

  | Name  | Type                                             |
  | ----- | ------------------------------------------------ |
  | `obj` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> |
</ApiMember>

Structs [#structs]

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

  Describe the common methods of every object. Similar to a C++ class.

  | Member              | Type                                                                       | Description                                                                                    |
  | ------------------- | -------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
  | `base_class`        | <ApiLink name="lv_obj_class_t" display="const lv_obj_class_t *" />         |                                                                                                |
  | `constructor_cb`    | `void(*)(const lv_obj_class_t *class_p, lv_obj_t *obj)`                    | class\_p is the final class while obj->class\_p is the class currently being \[de]constructed. |
  | `destructor_cb`     | `void(*)(const lv_obj_class_t *class_p, lv_obj_t *obj)`                    |                                                                                                |
  | `event_cb`          | `void(*)(const lv_obj_class_t *class_p, lv_event_t *e)`                    | class\_p is the class in which event is being processed. Widget type specific event function   |
  | `prop_index_start`  | <ApiLink name="uint32_t" />                                                |                                                                                                |
  | `prop_index_end`    | <ApiLink name="uint32_t" />                                                |                                                                                                |
  | `properties`        | <ApiLink name="lv_property_ops_t" display="const lv_property_ops_t *" />   |                                                                                                |
  | `properties_count`  | <ApiLink name="uint32_t" />                                                |                                                                                                |
  | `property_names`    | <ApiLink name="lv_property_name_t" display="const lv_property_name_t *" /> |                                                                                                |
  | `names_count`       | <ApiLink name="uint32_t" />                                                |                                                                                                |
  | `user_data`         | `void *`                                                                   |                                                                                                |
  | `name`              | `const char *`                                                             |                                                                                                |
  | `width_def`         | <ApiLink name="int32_t" />                                                 |                                                                                                |
  | `height_def`        | <ApiLink name="int32_t" />                                                 |                                                                                                |
  | `editable`          | <ApiLink name="uint32_t" />                                                | Value from <ApiLink name="lv_obj_class_editable_t" />                                          |
  | `group_def`         | <ApiLink name="uint32_t" />                                                | Value from <ApiLink name="lv_obj_class_group_def_t" />                                         |
  | `instance_size`     | <ApiLink name="uint32_t" />                                                |                                                                                                |
  | `theme_inheritable` | <ApiLink name="uint32_t" />                                                | Value from <ApiLink name="lv_obj_class_theme_inheritable_t" />                                 |
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_obj_class.h&#x22;]" transitiveIncludes="[&#x22;lv_anim.h&#x22;, &#x22;lv_area.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_bidi.h&#x22;, &#x22;lv_color.h&#x22;, &#x22;lv_color_op.h&#x22;, &#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_draw_buf.h&#x22;, &#x22;lv_ext_data.h&#x22;, &#x22;lv_flex.h&#x22;, &#x22;lv_font.h&#x22;, &#x22;lv_grad.h&#x22;, &#x22;lv_grid.h&#x22;, &#x22;lv_image_dsc.h&#x22;, &#x22;lv_layout.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_obj_property.h&#x22;, &#x22;lv_obj_property_names.h&#x22;, &#x22;lv_obj_style.h&#x22;, &#x22;lv_obj_style_gen.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_sprintf.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_style.h&#x22;, &#x22;lv_style_gen.h&#x22;, &#x22;lv_style_properties.h&#x22;, &#x22;lv_symbol_def.h&#x22;, &#x22;lv_text.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_timer.h&#x22;, &#x22;lv_types.h&#x22;]" />
