Changeset 0ae9e18 in mainline for uspace/lib
- Timestamp:
- 2025-03-09T12:03:24Z (7 months ago)
- Branches:
- master
- Children:
- da54714
- Parents:
- 797ab95
- Location:
- uspace/lib/ui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/include/types/ui/selectdialog.h
r797ab95 r0ae9e18 1 1 /* 2 * Copyright (c) 202 3Jiri Svoboda2 * Copyright (c) 2025 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 44 44 typedef struct ui_select_dialog ui_select_dialog_t; 45 45 46 /** Select dialog flags */ 47 typedef enum { 48 /** Topmost window */ 49 usdf_topmost = 0x1, 50 /** Place to the center of the screen */ 51 usdf_center = 0x2 52 } ui_select_dialog_flags_t; 53 46 54 /** Select dialog parameters */ 47 55 typedef struct { … … 50 58 /** Prompt text */ 51 59 const char *prompt; 60 /** Flags */ 61 ui_select_dialog_flags_t flags; 52 62 } ui_select_dialog_params_t; 53 63 -
uspace/lib/ui/src/selectdialog.c
r797ab95 r0ae9e18 1 1 /* 2 * Copyright (c) 202 3Jiri Svoboda2 * Copyright (c) 2025 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 114 114 ui_wnd_params_init(&wparams); 115 115 wparams.caption = params->caption; 116 117 if ((params->flags & usdf_topmost) != 0) 118 wparams.flags |= wndf_topmost; 119 if ((params->flags & usdf_center) != 0) 120 wparams.placement = ui_wnd_place_center; 116 121 117 122 /* FIXME: Auto layout */
Note:
See TracChangeset
for help on using the changeset viewer.