Header file containing functions prototypes of Graphics library. More...
#include "hal_gfx_sys_defs.h"
Include dependency graph for hal_gfx_event.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) |
| hide cursor event More... | |
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... | |
Header file containing functions prototypes of Graphics library.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file hal_gfx_event.h.