Ignore:
Timestamp:
2022-04-04T14:48:41Z (2 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
86fff971
Parents:
0d1d0ea
git-author:
Jiri Svoboda <jiri@…> (2022-04-03 17:48:17)
git-committer:
Jiri Svoboda <jiri@…> (2022-04-04 14:48:41)
Message:

Scrollbar needs custom button decorations

Push button now allows setting a 'custom decoration' which means
instead of painting the button text a callback function is invoked
to paint the decoration.

File:
1 edited

Legend:

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

    r0d1d0ea rd68239a1  
    3737#define _UI_TYPES_PBUTTON_H
    3838
     39#include <errno.h>
     40#include <gfx/coord.h>
     41
    3942struct ui_pbutton;
    4043typedef struct ui_pbutton ui_pbutton_t;
     
    4750} ui_pbutton_cb_t;
    4851
     52/** Push button decoration ops */
     53typedef struct ui_pbutton_decor_ops {
     54        errno_t (*paint)(ui_pbutton_t *, void *, gfx_coord2_t *);
     55} ui_pbutton_decor_ops_t;
     56
    4957#endif
    5058
Note: See TracChangeset for help on using the changeset viewer.