Changeset dc0f6e4c in mainline for uspace/lib/ui/test/wdecor.c
- Timestamp:
- 2023-10-24T16:50:46Z (13 months ago)
- Parents:
- 29ed06d
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-22 20:38:41)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2023-10-24 16:50:46)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/test/wdecor.c
r29ed06d rdc0f6e4c 72 72 static void test_wdecor_close(ui_wdecor_t *, void *); 73 73 static void test_wdecor_move(ui_wdecor_t *, void *, gfx_coord2_t *, sysarg_t); 74 static void test_wdecor_resize(ui_wdecor_t *, void *, ui_wdecor_rsztype_t,74 static void test_wdecor_resize(ui_wdecor_t *, void *, display_wnd_rsztype_t, 75 75 gfx_coord2_t *, sysarg_t); 76 76 static void test_wdecor_set_cursor(ui_wdecor_t *, void *, ui_stock_cursor_t); … … 125 125 char32_t accel; 126 126 bool resize; 127 ui_wdecor_rsztype_t rsztype;127 display_wnd_rsztype_t rsztype; 128 128 bool set_cursor; 129 129 ui_stock_cursor_t cursor; … … 584 584 ui_wdecor_t *wdecor; 585 585 test_cb_resp_t resp; 586 ui_wdecor_rsztype_t rsztype;586 display_wnd_rsztype_t rsztype; 587 587 gfx_coord2_t pos; 588 588 sysarg_t pos_id; … … 591 591 PCUT_ASSERT_ERRNO_VAL(EOK, rc); 592 592 593 rsztype = ui_wr_bottom;593 rsztype = display_wr_bottom; 594 594 pos.x = 3; 595 595 pos.y = 4; … … 605 605 /* Resize callback with real callback set */ 606 606 resp.resize = false; 607 resp.rsztype = ui_wr_none;607 resp.rsztype = display_wr_none; 608 608 resp.pos.x = 0; 609 609 resp.pos.y = 0; … … 1361 1361 ui_wdecor_t *wdecor; 1362 1362 gfx_rect_t rect; 1363 ui_wdecor_rsztype_t rsztype;1363 display_wnd_rsztype_t rsztype; 1364 1364 gfx_coord2_t pos; 1365 1365 errno_t rc; … … 1387 1387 pos.y = -1; 1388 1388 rsztype = ui_wdecor_get_rsztype(wdecor, &pos); 1389 PCUT_ASSERT_EQUALS( ui_wr_none, rsztype);1389 PCUT_ASSERT_EQUALS(display_wr_none, rsztype); 1390 1390 1391 1391 /* Middle of the window */ … … 1393 1393 pos.y = 100; 1394 1394 rsztype = ui_wdecor_get_rsztype(wdecor, &pos); 1395 PCUT_ASSERT_EQUALS( ui_wr_none, rsztype);1395 PCUT_ASSERT_EQUALS(display_wr_none, rsztype); 1396 1396 1397 1397 /* Top-left corner, but not on edge */ … … 1399 1399 pos.y = 30; 1400 1400 rsztype = ui_wdecor_get_rsztype(wdecor, &pos); 1401 PCUT_ASSERT_EQUALS( ui_wr_none, rsztype);1401 PCUT_ASSERT_EQUALS(display_wr_none, rsztype); 1402 1402 1403 1403 /* Top-left corner on top edge */ … … 1405 1405 pos.y = 20; 1406 1406 rsztype = ui_wdecor_get_rsztype(wdecor, &pos); 1407 PCUT_ASSERT_EQUALS( ui_wr_top_left, rsztype);1407 PCUT_ASSERT_EQUALS(display_wr_top_left, rsztype); 1408 1408 1409 1409 /* Top-left corner on left edge */ … … 1411 1411 pos.y = 30; 1412 1412 rsztype = ui_wdecor_get_rsztype(wdecor, &pos); 1413 PCUT_ASSERT_EQUALS( ui_wr_top_left, rsztype);1413 PCUT_ASSERT_EQUALS(display_wr_top_left, rsztype); 1414 1414 1415 1415 /* Top-right corner on top edge */ … … 1417 1417 pos.y = 20; 1418 1418 rsztype = ui_wdecor_get_rsztype(wdecor, &pos); 1419 PCUT_ASSERT_EQUALS( ui_wr_top_right, rsztype);1419 PCUT_ASSERT_EQUALS(display_wr_top_right, rsztype); 1420 1420 1421 1421 /* Top-right corner on right edge */ … … 1423 1423 pos.y = 30; 1424 1424 rsztype = ui_wdecor_get_rsztype(wdecor, &pos); 1425 PCUT_ASSERT_EQUALS( ui_wr_top_right, rsztype);1425 PCUT_ASSERT_EQUALS(display_wr_top_right, rsztype); 1426 1426 1427 1427 /* Top edge */ … … 1429 1429 pos.y = 20; 1430 1430 rsztype = ui_wdecor_get_rsztype(wdecor, &pos); 1431 PCUT_ASSERT_EQUALS( ui_wr_top, rsztype);1431 PCUT_ASSERT_EQUALS(display_wr_top, rsztype); 1432 1432 1433 1433 /* Bottom edge */ … … 1435 1435 pos.y = 199; 1436 1436 rsztype = ui_wdecor_get_rsztype(wdecor, &pos); 1437 PCUT_ASSERT_EQUALS( ui_wr_bottom, rsztype);1437 PCUT_ASSERT_EQUALS(display_wr_bottom, rsztype); 1438 1438 1439 1439 /* Left edge */ … … 1441 1441 pos.y = 100; 1442 1442 rsztype = ui_wdecor_get_rsztype(wdecor, &pos); 1443 PCUT_ASSERT_EQUALS( ui_wr_left, rsztype);1443 PCUT_ASSERT_EQUALS(display_wr_left, rsztype); 1444 1444 1445 1445 /* Right edge */ … … 1447 1447 pos.y = 100; 1448 1448 rsztype = ui_wdecor_get_rsztype(wdecor, &pos); 1449 PCUT_ASSERT_EQUALS( ui_wr_right, rsztype);1449 PCUT_ASSERT_EQUALS(display_wr_right, rsztype); 1450 1450 1451 1451 ui_wdecor_destroy(wdecor); … … 1466 1466 pos.y = 20; 1467 1467 rsztype = ui_wdecor_get_rsztype(wdecor, &pos); 1468 PCUT_ASSERT_EQUALS( ui_wr_none, rsztype);1468 PCUT_ASSERT_EQUALS(display_wr_none, rsztype); 1469 1469 1470 1470 ui_wdecor_destroy(wdecor); … … 1479 1479 { 1480 1480 PCUT_ASSERT_EQUALS(ui_curs_arrow, 1481 ui_wdecor_cursor_from_rsztype( ui_wr_none));1481 ui_wdecor_cursor_from_rsztype(display_wr_none)); 1482 1482 PCUT_ASSERT_EQUALS(ui_curs_size_ud, 1483 ui_wdecor_cursor_from_rsztype( ui_wr_top));1483 ui_wdecor_cursor_from_rsztype(display_wr_top)); 1484 1484 PCUT_ASSERT_EQUALS(ui_curs_size_ud, 1485 ui_wdecor_cursor_from_rsztype( ui_wr_bottom));1485 ui_wdecor_cursor_from_rsztype(display_wr_bottom)); 1486 1486 PCUT_ASSERT_EQUALS(ui_curs_size_lr, 1487 ui_wdecor_cursor_from_rsztype( ui_wr_left));1487 ui_wdecor_cursor_from_rsztype(display_wr_left)); 1488 1488 PCUT_ASSERT_EQUALS(ui_curs_size_lr, 1489 ui_wdecor_cursor_from_rsztype( ui_wr_right));1489 ui_wdecor_cursor_from_rsztype(display_wr_right)); 1490 1490 PCUT_ASSERT_EQUALS(ui_curs_size_uldr, 1491 ui_wdecor_cursor_from_rsztype( ui_wr_top_left));1491 ui_wdecor_cursor_from_rsztype(display_wr_top_left)); 1492 1492 PCUT_ASSERT_EQUALS(ui_curs_size_uldr, 1493 ui_wdecor_cursor_from_rsztype( ui_wr_bottom_right));1493 ui_wdecor_cursor_from_rsztype(display_wr_bottom_right)); 1494 1494 PCUT_ASSERT_EQUALS(ui_curs_size_urdl, 1495 ui_wdecor_cursor_from_rsztype( ui_wr_top_right));1495 ui_wdecor_cursor_from_rsztype(display_wr_top_right)); 1496 1496 PCUT_ASSERT_EQUALS(ui_curs_size_urdl, 1497 ui_wdecor_cursor_from_rsztype( ui_wr_bottom_left));1497 ui_wdecor_cursor_from_rsztype(display_wr_bottom_left)); 1498 1498 } 1499 1499 … … 1725 1725 1726 1726 static void test_wdecor_resize(ui_wdecor_t *wdecor, void *arg, 1727 ui_wdecor_rsztype_t rsztype, gfx_coord2_t *pos, sysarg_t pos_id)1727 display_wnd_rsztype_t rsztype, gfx_coord2_t *pos, sysarg_t pos_id) 1728 1728 { 1729 1729 test_cb_resp_t *resp = (test_cb_resp_t *) arg;
Note:
See TracChangeset
for help on using the changeset viewer.