Ignore:
Timestamp:
2021-06-26T16:40:28Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1215db9
Parents:
69511176
Message:

Use hardware cursor in text mode

We extend GC with cursor control operations. This will also allow to
control the HW cursor when running display server in text mode in
the future (provided that we implement the missing bits in the rest
of the stack, i.e. in IPC GC and in the display server).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfx/include/types/gfx/ops/context.h

    r69511176 rbb14312  
    4444#include <types/gfx/coord.h>
    4545#include <types/gfx/context.h>
     46#include <stdbool.h>
    4647
    4748/** Graphics context ops */
     
    6465        /** Get bitmap allocation info */
    6566        errno_t (*bitmap_get_alloc)(void *, gfx_bitmap_alloc_t *);
     67        /** Get hardware cursor position */
     68        errno_t (*cursor_get_pos)(void *, gfx_coord2_t *);
     69        /** Set hardware cursor position */
     70        errno_t (*cursor_set_pos)(void *, gfx_coord2_t *);
     71        /** Set hardware cursor visibility */
     72        errno_t (*cursor_set_visible)(void *, bool);
    6673} gfx_context_ops_t;
    6774
Note: See TracChangeset for help on using the changeset viewer.