Return

The bubble-shaped curve that can be dragged out on the left side of the screen is used to perform a return operation.

Usage

Create a return widget

Creating function is gui_return_create. Users need to enter curve animation frame images file array ,and the return operation function.

Example



Note

Please refer to `gui_engine\example\screen_454_454\gui_menu\apps.c` for details.

const uint32_t *gui_app_return_array[] =
{
    PATH04_BIN,
    PATH05_BIN,
    PATH07_BIN,
    PATH08_BIN,
    PATH09_BIN,
    PATH11_BIN,
    PATH12_BIN,
    PATH14_BIN,
    PATH15_BIN,
    PATH16_BIN,
    PATH18_BIN,
    PATH19_BIN,
    PATH20_BIN,
    PATH22_BIN,
    PATH23_BIN,
    PATH24_BIN,
    PATH25_BIN,
};
gui_return_create(GUI_APP_ROOT_SCREEN, gui_app_return_array,
                      sizeof(gui_app_return_array) / sizeof(uint32_t *), win_cb, (void *)cell);

API

Defines

RETURN_HEIGHT
RETURN_ENABLE_THREHOLD
RETURN_THREHOLD

Functions

gui_return_t *gui_return_create(void *parent, const uint32_t *frame_array[], int array_size, void *return_cb, gui_obj_t *ignore_gesture_widget)

Create a return widget.

Parameters:
  • parent – The parent widget it nested in.

  • frame_array – Return effect image frame array.

  • array_size – Return effect image frame array’s index count.

  • return_cb – Return behavior instance .

  • ignore_gesture_widget – The widget that need to be blocked for gesture response.

Returns:

return the widget object pointer.

struct gui_return_t
#include <gui_return.h>

Public Members

gui_seekbar_t base
gui_obj_t *ignore_gesture_widget