pub unsafe extern "C" fn esp_lcd_panel_set_gap(
    panel: esp_lcd_panel_handle_t,
    x_gap: c_int,
    y_gap: c_int
) -> esp_err_t
Expand description

@brief Set extra gap in x and y axis

The gap is the space (in pixels) between the left/top sides of the LCD panel and the first row/column respectively of the actual contents displayed.

@note Setting a gap is useful when positioning or centering a frame that is smaller than the LCD.

@param[in] panel LCD panel handle, which is created by other factory API like esp_lcd_new_panel_st7789() @param[in] x_gap Extra gap on x axis, in pixels @param[in] y_gap Extra gap on y axis, in pixels @return - ESP_OK on success