# lv_refr_private.h (/api/core/lv_refr_private_h)



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

<ApiSummary functions="7" />

Functions [#functions]

<ApiTabs items="[&#x22;Setters (1)&#x22;,&#x22;Getters (2)&#x22;,&#x22;Other (4)&#x22;]">
  <ApiTab value="Setters (1)">
    <ApiMember kind="function" name="lv_refr_set_disp_refreshing" file="core/lv_refr_private.h" line="60" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/core/lv_refr_private.h#L60">
      lv_refr_set_disp_refreshing [#lv_refr_set_disp_refreshing]

      Set the display which is being refreshed

      ```c title=" " lineNumbers=1
      void lv_refr_set_disp_refreshing(lv_display_t *disp)
      ```

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

      | Name   | Type                                                     | Description                 |
      | ------ | -------------------------------------------------------- | --------------------------- |
      | `disp` | <ApiLink name="lv_display_t" display="lv_display_t *" /> | the display being refreshed |
    </ApiMember>
  </ApiTab>

  <ApiTab value="Getters (2)">
    <ApiMember kind="function" name="lv_refr_get_disp_refreshing" file="core/lv_refr_private.h" line="54" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/core/lv_refr_private.h#L54">
      lv_refr_get_disp_refreshing [#lv_refr_get_disp_refreshing]

      Get the display which is being refreshed

      ```c title=" " lineNumbers=1
      lv_display_t * lv_refr_get_disp_refreshing(void)
      ```

      **Returns:** <ApiLink name="lv_display_t" display="lv_display_t *" /> — the display being refreshed
    </ApiMember>

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

      Search the most top object which fully covers an area

      ```c title=" " lineNumbers=1
      lv_obj_t * lv_refr_get_top_obj(const lv_area_t *area_p, lv_obj_t *obj)
      ```

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

      | Name     | Type                                                     | Description                                                  |
      | -------- | -------------------------------------------------------- | ------------------------------------------------------------ |
      | `area_p` | <ApiLink name="lv_area_t" display="const lv_area_t *" /> | pointer to an area                                           |
      | `obj`    | <ApiLink name="lv_obj_t" display="lv_obj_t *" />         | the first object to start the searching (typically a screen) |
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (4)">
    <ApiMember kind="function" name="lv_refr_init" file="core/lv_refr_private.h" line="34" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/core/lv_refr_private.h#L34">
      lv_refr_init [#lv_refr_init]

      Initialize the screen refresh subsystem

      ```c title=" " lineNumbers=1
      void lv_refr_init(void)
      ```
    </ApiMember>

    <ApiMember kind="function" name="lv_refr_deinit" file="core/lv_refr_private.h" line="39" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/core/lv_refr_private.h#L39">
      lv_refr_deinit [#lv_refr_deinit]

      Deinitialize the screen refresh subsystem

      ```c title=" " lineNumbers=1
      void lv_refr_deinit(void)
      ```
    </ApiMember>

    <ApiMember kind="function" name="lv_inv_area" file="core/lv_refr_private.h" line="48" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/core/lv_refr_private.h#L48">
      lv_inv_area [#lv_inv_area]

      Invalidate an area on display to redraw it

      ```c title=" " lineNumbers=1
      lv_result_t lv_inv_area(lv_display_t *disp, const lv_area_t *area_p)
      ```

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

      | Name     | Type                                                     | Description                                                                                             |
      | -------- | -------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
      | `disp`   | <ApiLink name="lv_display_t" display="lv_display_t *" /> | pointer to display where the area should be invalidated (NULL can be used if there is only one display) |
      | `area_p` | <ApiLink name="lv_area_t" display="const lv_area_t *" /> | pointer to area which should be invalidated (NULL: delete the invalidated areas)                        |

      **Returns:** <ApiLink name="lv_result_t" /> — LV\_RESULT\_OK: the area is invalidated; LV\_RESULT\_INVALID: the area wasn't invalidated.
    </ApiMember>

    <ApiMember kind="function" name="lv_obj_refr" file="core/lv_refr_private.h" line="75" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/core/lv_refr_private.h#L75">
      lv_obj_refr [#lv_obj_refr]

      Render an object to a layer

      ```c title=" " lineNumbers=1
      void lv_obj_refr(lv_layer_t *layer, lv_obj_t *obj)
      ```

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

      | Name    | Type                                                 | Description          |
      | ------- | ---------------------------------------------------- | -------------------- |
      | `layer` | <ApiLink name="lv_layer_t" display="lv_layer_t *" /> | target drawing layer |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" />     | object to render     |
    </ApiMember>
  </ApiTab>
</ApiTabs>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_refr.h&#x22;]" transitiveIncludes="[&#x22;lv_anim.h&#x22;, &#x22;lv_area.h&#x22;, &#x22;lv_array.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_display.h&#x22;, &#x22;lv_draw.h&#x22;, &#x22;lv_draw_arc.h&#x22;, &#x22;lv_draw_blur.h&#x22;, &#x22;lv_draw_buf.h&#x22;, &#x22;lv_draw_image.h&#x22;, &#x22;lv_draw_label.h&#x22;, &#x22;lv_draw_line.h&#x22;, &#x22;lv_draw_rect.h&#x22;, &#x22;lv_draw_triangle.h&#x22;, &#x22;lv_event.h&#x22;, &#x22;lv_ext_data.h&#x22;, &#x22;lv_flex.h&#x22;, &#x22;lv_font.h&#x22;, &#x22;lv_fs.h&#x22;, &#x22;lv_grad.h&#x22;, &#x22;lv_grid.h&#x22;, &#x22;lv_group.h&#x22;, &#x22;lv_image_decoder.h&#x22;, &#x22;lv_image_dsc.h&#x22;, &#x22;lv_indev.h&#x22;, &#x22;lv_layout.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_matrix.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_obj.h&#x22;, &#x22;lv_obj_class.h&#x22;, &#x22;lv_obj_draw.h&#x22;, &#x22;lv_obj_event.h&#x22;, &#x22;lv_obj_pos.h&#x22;, &#x22;lv_obj_property.h&#x22;, &#x22;lv_obj_property_names.h&#x22;, &#x22;lv_obj_scroll.h&#x22;, &#x22;lv_obj_style.h&#x22;, &#x22;lv_obj_style_gen.h&#x22;, &#x22;lv_obj_tree.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_profiler.h&#x22;, &#x22;lv_profiler_builtin.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;]" />
