Changeset d8ddf7a in mainline for uspace/lib/ui/test/image.c


Ignore:
Timestamp:
2020-11-22T17:52:37Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2d879f7
Parents:
4f64b7b8
Message:

UI demo should demonstrate image and entry controls

We also add the ability to draw a frame around image control, use
in UI demo and in launcher.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/test/image.c

    r4f64b7b8 rd8ddf7a  
    110110}
    111111
     112/** Set image flags sets internal field */
     113PCUT_TEST(set_flags)
     114{
     115        ui_image_t *image = NULL;
     116        gfx_rect_t brect;
     117        errno_t rc;
     118
     119        rc = ui_image_create(NULL, NULL, &brect, &image);
     120        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
     121        PCUT_ASSERT_NOT_NULL(image);
     122
     123        PCUT_ASSERT_INT_EQUALS(0, image->flags);
     124
     125        ui_image_set_flags(image, ui_imgf_frame);
     126        PCUT_ASSERT_INT_EQUALS(ui_imgf_frame, image->flags);
     127
     128        ui_image_destroy(image);
     129}
     130
    112131/** Set image bitmap */
    113132PCUT_TEST(set_bmp)
Note: See TracChangeset for help on using the changeset viewer.