Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2021-06-26T23:30:18Z (5 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
e87415e6
Parents:
bb14312
Message:

Memory GC needs to be able to forward cursor control

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/memgfx/include/types/memgfx/memgc.h

    rbb14312 r1215db9  
    3737#define _MEMGFX_TYPES_MEMGC_H
    3838
     39#include <errno.h>
     40#include <stdbool.h>
    3941#include <types/gfx/coord.h>
    4042
     
    4244typedef struct mem_gc mem_gc_t;
    4345
    44 typedef void (*mem_gc_invalidate_cb_t)(void *, gfx_rect_t *);
    45 typedef void (*mem_gc_update_cb_t)(void *);
     46typedef struct {
     47        /** Invalidate rectangle */
     48        void (*invalidate)(void *, gfx_rect_t *);
     49        /** Update display */
     50        void (*update)(void *);
     51        /** Get cursor position */
     52        errno_t (*cursor_get_pos)(void *, gfx_coord2_t *);
     53        /** Set cursor position */
     54        errno_t (*cursor_set_pos)(void *, gfx_coord2_t *);
     55        /** Set cursor visibility */
     56        errno_t (*cursor_set_visible)(void *, bool);
     57} mem_gc_cb_t;
    4658
    4759#endif
Note: See TracChangeset for help on using the changeset viewer.