Changeset b0a94854 in mainline for uspace/lib/display/include


Ignore:
Timestamp:
2020-02-19T13:28:34Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0a052b0
Parents:
e1f2079
git-author:
Jiri Svoboda <jiri@…> (2020-01-18 18:28:21)
git-committer:
Jiri Svoboda <jiri@…> (2020-02-19 13:28:34)
Message:

Deliver window focus and unfocus events

Location:
uspace/lib/display/include/types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/display/include/types/display.h

    re1f2079 rb0a94854  
    5858/** Display window callbacks */
    5959typedef struct {
     60        /** Focus event */
     61        void (*focus_event)(void *);
     62        /** Keyboard event callback */
    6063        void (*kbd_event)(void *, kbd_event_t *);
     64        /** Position event callback */
    6165        void (*pos_event)(void *, pos_event_t *);
     66        /** Unfocus event */
     67        void (*unfocus_event)(void *);
    6268} display_wnd_cb_t;
    6369
  • uspace/lib/display/include/types/display/event.h

    re1f2079 rb0a94854  
    3939#include <io/pos_event.h>
    4040
     41/** Display window event type */
    4142typedef enum {
     43        /** Window gained focus */
     44        wev_focus,
     45        /** Keyboard event */
    4246        wev_kbd,
    43         wev_pos
     47        /** Position event */
     48        wev_pos,
     49        /** Window lost focus */
     50        wev_unfocus
    4451} display_wnd_ev_type_t;
    4552
     53/** Display window event */
    4654typedef struct {
     55        /** Event type */
    4756        display_wnd_ev_type_t etype;
    4857        union {
     58                /** Keyboard event data */
    4959                kbd_event_t kbd;
     60                /** Position event data */
    5061                pos_event_t pos;
    5162        } ev;
Note: See TracChangeset for help on using the changeset viewer.