Gesture Library
stroke.h File Reference
#include "gesturelib.h"
#include "recognizer.h"

Go to the source code of this file.

Data Structures

struct  stroke
 Data structure for stroke gesture data. More...
 

Macros

#define STROKE_CACHE_SIZE   30
 

Typedefs

typedef struct stroke stroke_t
 Data structure for stroke gesture data. More...
 

Functions

void init_stroke ()
 Initialize stroke data structures. More...
 
void recognize_stroke (const touch_event_t *event)
 Recognize stroke gesture. More...
 
const stroke_tget_stroke ()
 Access array of stroke_t of size MAX_TOUCHES. More...
 

Macro Definition Documentation

◆ STROKE_CACHE_SIZE

#define STROKE_CACHE_SIZE   30

Definition at line 8 of file stroke.h.

Typedef Documentation

◆ stroke_t

typedef struct stroke stroke_t

Data structure for stroke gesture data.

Function Documentation

◆ get_stroke()

const stroke_t* get_stroke ( )

Access array of stroke_t of size MAX_TOUCHES.

Returns
Pointer to first element of array of stroke_t of size MAX_TOUCHES

Definition at line 47 of file stroke.c.

◆ init_stroke()

void init_stroke ( )

Initialize stroke data structures.

Definition at line 7 of file stroke.c.

◆ recognize_stroke()

void recognize_stroke ( const touch_event_t event)

Recognize stroke gesture.

Parameters
eventtouch event to recognize

Definition at line 33 of file stroke.c.