Atmel Software Framework

gfx_mono_spinctrl.h File Reference

Spin control widget.

Copyright (c) 2011-2015 Atmel Corporation. All rights reserved.

#include "gfx_mono.h"
#include "conf_spinctrl.h"

Data Structures

struct  gfx_mono_spinctrl
 Spin control struct. More...
 
struct  gfx_mono_spinctrl_spincollection
 Collection of spinners struct. More...
 
struct  gfx_mono_spinctrl_string
 String struct. More...
 

Macros

#define GFX_MONO_SPINCTRL_BUTTON   0xFF
 OK button. More...
 
#define GFX_MONO_SPINCTRL_ELEMENTS_PER_SCREEN   ((GFX_MONO_LCD_HEIGHT / SYSFONT_LINESPACING) - 1)
 Maximum number of spinner elements on display. More...
 
#define GFX_MONO_SPINCTRL_EVENT_BACK   0xFE
 Spinner back button pressed event. More...
 
#define GFX_MONO_SPINCTRL_EVENT_FINISH   0xFD
 Spinner ok button pressed event. More...
 
#define GFX_MONO_SPINCTRL_EVENT_IDLE   0xFF
 Spinner idle event. More...
 
#define GFX_MONO_SPINCTRL_INT_SPINNER_WIDTH   9
 Width of integer spinner choices. More...
 
#define GFX_MONO_SPINCTRL_MAX_ELEMENTS_IN_SPINCOLLECTION   GFX_MONO_SPINCTRL_ELEMENTS_PER_SCREEN
 Maximum numbers of spinner elements in a spincollection - limited to one screen. More...
 
#define GFX_MONO_SPINCTRL_STRING_SPINNER_WIDTH   9
 Width of string spinner choices. More...
 

Typedefs

typedef enum
gfx_mono_spinctrl_type_enum 
gfx_mono_spinctrl_type_t
 Enum to specify what kind of data spinner should spin. More...
 

Enumerations

enum  gfx_mono_spinctrl_type_enum {
  SPINTYPE_STRING,
  SPINTYPE_INTEGER
}
 Enum to specify what kind of data spinner should spin. More...
 

Functions

void gfx_mono_spinctrl_draw (struct gfx_mono_spinctrl *spinner, bool redraw)
 Draw spinner at its position. More...
 
void gfx_mono_spinctrl_init (struct gfx_mono_spinctrl *spinner, gfx_mono_spinctrl_type_t datatype, PROGMEM_STRING_T title, PROGMEM_STRING_T *data, int16_t lower_limit, int16_t upper_limit, gfx_coord_t y)
 Initialize a spinner. More...
 
int16_t gfx_mono_spinctrl_process_key (struct gfx_mono_spinctrl *spinner, uint8_t keycode)
 Update single spinner depending on input. More...
 
void gfx_mono_spinctrl_spincollection_add_spinner (struct gfx_mono_spinctrl *spinner, struct gfx_mono_spinctrl_spincollection *spinners)
 Add spinner to spincollection. More...
 
void gfx_mono_spinctrl_spincollection_init (struct gfx_mono_spinctrl_spincollection *collection)
 Initialize a spincollection. More...
 
int16_t gfx_mono_spinctrl_spincollection_process_key (struct gfx_mono_spinctrl_spincollection *spinners, uint8_t keycode, int16_t results[])
 Update spincollection on screen depending on input. More...
 
void gfx_mono_spinctrl_spincollection_show (struct gfx_mono_spinctrl_spincollection *spinners)
 Show spincollection. More...