Changeset dcfd422 in mainline for uspace/lib/ui/src/wdecor.c
- Timestamp:
- 2020-10-23T13:45:18Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 5a43bd0
- Parents:
- 26653c9
- git-author:
- Jiri Svoboda <jiri@…> (2020-10-22 19:44:59)
- git-committer:
- Jiri Svoboda <jiri@…> (2020-10-23 13:45:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/src/wdecor.c
r26653c9 rdcfd422 271 271 } 272 272 273 /** Get outer rectangle from application area rectangle. 274 * 275 * Note that this needs to work just based on a UI, without having an actual 276 * window decoration, since we need it in order to create the window 277 * and its decoration. 278 * 279 * @param app Application area rectangle 280 * @param rect Place to store (outer) window decoration rectangle 281 */ 282 void ui_wdecor_rect_from_app(gfx_rect_t *app, gfx_rect_t *rect) 283 { 284 rect->p0.x = app->p0.x - 4; 285 rect->p0.y = app->p0.y - 22 - 4; 286 rect->p1.x = app->p1.x + 4; 287 rect->p1.y = app->p1.y + 4; 288 } 289 273 290 /** Handle window decoration position event. 274 291 *
Note:
See TracChangeset
for help on using the changeset viewer.