EU1KY AA
hit.h File Reference
#include <stdint.h>
#include "LCD.h"
#include "main.h"

Go to the source code of this file.

Data Structures

struct  HitRect
 

Macros

#define HITRECT(x0, y0, width, height, callback)   {(x0), (y0), (x0) + (width) - 1, (y0) + (height) - 1, (callback)}
 
#define HITEND   { 0xFFFFFFFFul, 0, 0xFFFFFFFFul, 0, 0 }
 

Functions

int HitTest (const struct HitRect *r, uint32_t x, uint32_t y)
 
void ShowHitRect (const struct HitRect *hitArr)
 

Macro Definition Documentation

#define HITEND   { 0xFFFFFFFFul, 0, 0xFFFFFFFFul, 0, 0 }
#define HITRECT (   x0,
  y0,
  width,
  height,
  callback 
)    {(x0), (y0), (x0) + (width) - 1, (y0) + (height) - 1, (callback)}

Function Documentation

int HitTest ( const struct HitRect r,
uint32_t  x,
uint32_t  y 
)
void ShowHitRect ( const struct HitRect hitArr)