Changeset 47728678 in mainline for uspace/lib/ui/include


Ignore:
Timestamp:
2020-10-13T09:24:56Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f6df5a3
Parents:
f80690a
git-author:
Jiri Svoboda <jiri@…> (2020-10-12 21:24:39)
git-committer:
Jiri Svoboda <jiri@…> (2020-10-13 09:24:56)
Message:

Push button - first light

Introduced ui_resource_t class to hold common UI resources such as font,
colors, etc. We don't want every button to load its own copy of the font.

Location:
uspace/lib/ui/include
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/include/ui/pbutton.h

    rf80690a r47728678  
    3838
    3939#include <errno.h>
     40#include <gfx/coord.h>
    4041#include <types/ui/pbutton.h>
     42#include <types/ui/resource.h>
    4143
    42 extern errno_t ui_pbutton_create(const char *, ui_pbutton_t **);
     44extern errno_t ui_pbutton_create(ui_resource_t *, const char *,
     45    ui_pbutton_t **);
    4346extern void ui_pbutton_destroy(ui_pbutton_t *);
     47extern void ui_pbutton_set_rect(ui_pbutton_t *, gfx_rect_t *);
     48extern errno_t ui_pbutton_paint(ui_pbutton_t *);
    4449
    4550#endif
Note: See TracChangeset for help on using the changeset viewer.