Changeset c9927c66 in mainline for uspace/srv/hid/display
- Timestamp:
- 2021-06-10T13:22:33Z (4 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9e84d2c
- Parents:
- c68c18b9
- git-author:
- Jiri Svoboda <jiri@…> (2021-05-27 17:00:30)
- git-committer:
- jxsvoboda <5887334+jxsvoboda@…> (2021-06-10 13:22:33)
- Location:
- uspace/srv/hid/display
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/dsops.c
rc68c18b9 rc9927c66 48 48 static errno_t disp_window_move_req(void *, sysarg_t, gfx_coord2_t *); 49 49 static errno_t disp_window_move(void *, sysarg_t, gfx_coord2_t *); 50 static errno_t disp_window_get_pos(void *, sysarg_t, gfx_coord2_t *); 50 51 static errno_t disp_window_resize_req(void *, sysarg_t, 51 52 display_wnd_rsztype_t, gfx_coord2_t *); … … 61 62 .window_move_req = disp_window_move_req, 62 63 .window_move = disp_window_move, 64 .window_get_pos = disp_window_get_pos, 63 65 .window_resize_req = disp_window_resize_req, 64 66 .window_resize = disp_window_resize, … … 162 164 } 163 165 166 static errno_t disp_window_get_pos(void *arg, sysarg_t wnd_id, 167 gfx_coord2_t *pos) 168 { 169 ds_client_t *client = (ds_client_t *) arg; 170 ds_window_t *wnd; 171 172 ds_display_lock(client->display); 173 174 wnd = ds_client_find_window(client, wnd_id); 175 if (wnd == NULL) { 176 ds_display_unlock(client->display); 177 return ENOENT; 178 } 179 180 log_msg(LOG_DEFAULT, LVL_DEBUG, "disp_window_get_pos()"); 181 ds_window_get_pos(wnd, pos); 182 ds_display_unlock(client->display); 183 return EOK; 184 } 185 164 186 static errno_t disp_window_resize_req(void *arg, sysarg_t wnd_id, 165 187 display_wnd_rsztype_t rsztype, gfx_coord2_t *pos) -
uspace/srv/hid/display/window.c
rc68c18b9 rc9927c66 1 1 /* 2 * Copyright (c) 20 19Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 658 658 } 659 659 660 /** Get window position. 661 * 662 * @param wnd Window 663 */ 664 void ds_window_get_pos(ds_window_t *wnd, gfx_coord2_t *dpos) 665 { 666 *dpos = wnd->dpos; 667 } 668 660 669 /** Start resizing a window, detected by client. 661 670 * -
uspace/srv/hid/display/window.h
rc68c18b9 rc9927c66 63 63 extern void ds_window_move_req(ds_window_t *, gfx_coord2_t *); 64 64 extern void ds_window_move(ds_window_t *, gfx_coord2_t *); 65 extern void ds_window_get_pos(ds_window_t *, gfx_coord2_t *); 65 66 extern void ds_window_resize_req(ds_window_t *, display_wnd_rsztype_t, 66 67 gfx_coord2_t *);
Note:
See TracChangeset
for help on using the changeset viewer.