Watchface Gradient

The watchface gradient widget allows you to create a pointer watchface with a scanning effect for each pointer.

Usage

Create Widget

To create a new watchface gradient widget, you can call the function gui_watchface_gradient_create() to achieve it.

Example



API

Defines

WATCHFACE_GRADIENT_RING1
WATCHFACE_GRADIENT_RING2
WATCHFACE_GRADIENT_RING3
WATCHFACE_GRADIENT_BASE
WATCHFACE_GRADIENT_SCLAE

Functions

NVGcontext *nvgCreateAGGE(uint32_t w, uint32_t h, uint32_t stride, enum NVGtexture format, uint8_t *data)
void nvgDeleteAGGE(NVGcontext *ctx)
gui_watchface_gradient_t *gui_watchface_gradient_create(void *parent, const char *name, int16_t x, int16_t y, int16_t w, int16_t h)

create watchface gradient

Example usage

void example_watchface(void *parent)
{
     gui_watchface_gradient_create(parent, "watchface_gradient", 0, 0, 221, 269);
 }

Parameters:
  • parent – parent widget

  • name – widget name

  • x – left

  • y – top

  • w – width

  • h – high

Returns:

gui_watchface_gradient_t* widget pointer

struct gui_watchface_gradient_t

Public Members

gui_canvas_t base