hal_gfx_event.h File Reference
#include "hal_gfx_sys_defs.h"

Go to the source code of this file.

Classes

struct  hal_gfx_event_t
 Event Structure for Graphics. More...
 

Macros

#define HAL_GFX_EVENT_HIDE_CURSOR   (1 << 1)
 

Enumerations

enum  hal_gfx_mouse_event_t {
  MOUSE_EVENT_NONE = 0,
  MOUSE_EVENT_LEFT_CLICK,
  MOUSE_EVENT_LEFT_RELEASE,
  MOUSE_EVENT_MIDDLE_CLICK,
  MOUSE_EVENT_MIDDLE_RELEASE,
  MOUSE_EVENT_RIGHT_CLICK,
  MOUSE_EVENT_RIGHT_RELEASE,
  MOUSE_EVENT_SCROLL_UP,
  MOUSE_EVENT_SCROLL_DOWN,
  MOUSE_EVENT_MAX
}
 Mouse Event for Graphics. More...
 
enum  hal_gfx_kb_event_t {
  KB_EVENT_NONE = 0,
  KB_EVENT_PRESS,
  KB_EVENT_HOLD,
  KB_EVENT_RELEASE,
  KB_EVENT_MAX
}
 KeyBoard Event for Graphics. More...
 
enum  hal_gfx_mouse_state_t {
  MOUSE_STATE_NONE = 0,
  MOUSE_STATE_LEFT_CLICKED = 1,
  MOUSE_STATE_MIDDLE_CLICKED = 1U<<1,
  MOUSE_STATE_RIGHT_CLICKED = 1U<<2
}
 Mouse State for Graphics. More...
 

Functions

int hal_gfx_event_init (int flags, int mouse_init_x, int mouse_init_y, int mouse_max_x, int mouse_max_y)
 event init function More...
 
int hal_gfx_event_wait (hal_gfx_event_t *event, int block_until_event)
 wait event init function More...
 
void hal_gfx_event_force_cursor_xy (int x, int y)
 force setting cursy to [x,y] More...
 
uintptr_t hal_gfx_init_triple_fb (int layer, uintptr_t fb0_phys, uintptr_t fb1_phys, uintptr_t fb2_phys)
 Init triple framebuffer (Not USED) More...
 
uintptr_t hal_gfx_swap_fb (int layer)
 Swap layer to current layer. More...
 
int hal_gfx_timer_create (void)
 Create a timer, need to porting. More...
 
void hal_gfx_timer_destroy (int timer_id)
 Destroy timer, need to porting. More...
 
int hal_gfx_timer_set_periodic (int timer_id, uint32_t timeout_milisecs)
 Set periodic timer, need to porting. More...
 
int hal_gfx_timer_set_oneshot (int timer_id, uint32_t timeout_milisecs)
 Set one-shot timer, need to porting. More...
 
void hal_gfx_timer_stop (int timer_id)
 Stop timer, need to porting. More...