Changeset e022819 in mainline for uspace/lib/display
- Timestamp:
- 2020-03-14T00:30:53Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 03c8081
- Parents:
- 1e4a937
- Location:
- uspace/lib/display
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/display/include/types/display.h
r1e4a937 re022819 70 70 /** Position event */ 71 71 void (*pos_event)(void *, pos_event_t *); 72 /** Resize event */ 73 void (*resize_event)(void *, gfx_rect_t *); 72 74 /** Unfocus event */ 73 75 void (*unfocus_event)(void *); -
uspace/lib/display/include/types/display/event.h
r1e4a937 re022819 36 36 #define _LIBDISPLAY_TYPES_DISPLAY_EVENT_H_ 37 37 38 #include <gfx/coord.h> 38 39 #include <io/kbd_event.h> 39 40 #include <io/pos_event.h> … … 49 50 /** Position event */ 50 51 wev_pos, 52 /** Resize event */ 53 wev_resize, 51 54 /** Window lost focus */ 52 55 wev_unfocus 53 56 } display_wnd_ev_type_t; 57 58 /** Display window resize event */ 59 typedef struct { 60 gfx_rect_t rect; 61 } display_wnd_resize_ev_t; 54 62 55 63 /** Display window event */ … … 62 70 /** Position event data */ 63 71 pos_event_t pos; 72 /** Resize event data */ 73 display_wnd_resize_ev_t resize; 64 74 } ev; 65 75 } display_wnd_ev_t; -
uspace/lib/display/src/display.c
r1e4a937 re022819 460 460 } 461 461 break; 462 case wev_resize: 463 if (window->cb != NULL && window->cb->resize_event != NULL) { 464 window->cb->resize_event(window->cb_arg, 465 &event.ev.resize.rect); 466 } 467 break; 462 468 case wev_unfocus: 463 469 if (window->cb != NULL && window->cb->unfocus_event != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.