Changeset 9e84d2c in mainline for uspace/lib
- Timestamp:
- 2021-06-10T13:22:33Z (4 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5823aef3
- Parents:
- c9927c66
- git-author:
- Jiri Svoboda <jiri@…> (2021-06-02 17:00:03)
- git-committer:
- jxsvoboda <5887334+jxsvoboda@…> (2021-06-10 13:22:33)
- Location:
- uspace/lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/display/include/types/display/wndparams.h
rc9927c66 r9e84d2c 1 1 /* 2 * Copyright (c) 20 19Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 38 38 #include <gfx/coord.h> 39 39 40 /** Window flags */ 41 typedef enum { 42 /** Popup window (capture events, no focus) */ 43 wndf_popup = 0x1 44 } display_wnd_flags_t; 45 40 46 /** Parameters for a new window. 41 47 * … … 50 56 /** Minimum size (when being resized) */ 51 57 gfx_coord2_t min_size; 58 /** Flags */ 59 display_wnd_flags_t flags; 52 60 } display_wnd_params_t; 53 61 -
uspace/lib/ui/include/types/ui/window.h
rc9927c66 r9e84d2c 63 63 } ui_wnd_placement_t; 64 64 65 /** Window flags */ 66 typedef enum { 67 /** Popup window */ 68 ui_wndf_popup = 0x1 69 } ui_wnd_flags_t; 70 65 71 /** Window parameters */ 66 72 typedef struct { … … 73 79 /** Window placement */ 74 80 ui_wnd_placement_t placement; 81 /** Window flags */ 82 ui_wnd_flags_t flags; 75 83 /** Parent rectangle for popup windows */ 76 84 gfx_rect_t prect; -
uspace/lib/ui/include/ui/window.h
rc9927c66 r9e84d2c 1 1 /* 2 * Copyright (c) 202 0Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * -
uspace/lib/ui/src/popup.c
rc9927c66 r9e84d2c 94 94 wparams.style &= ~ui_wds_decorated; 95 95 wparams.placement = ui_wnd_place_popup; 96 wparams.flags |= ui_wndf_popup; 96 97 97 98 /* Compute position of parent rectangle relative to the screen */ -
uspace/lib/ui/src/window.c
rc9927c66 r9e84d2c 188 188 gfx_rect_dims(¶ms->rect, &dparams.min_size); 189 189 190 if ((params->flags & ui_wndf_popup) != 0) 191 dparams.flags |= wndf_popup; 192 190 193 if (ui->display != NULL) { 191 194 if (params->placement != ui_wnd_place_default) {
Note:
See TracChangeset
for help on using the changeset viewer.