Changeset d68239a1 in mainline for uspace/lib/ui/private/pbutton.h


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/private/pbutton.h

    r0d1d0ea rd68239a1  
    11/*
    2  * Copyright (c) 2020 Jiri Svoboda
     2 * Copyright (c) 2022 Jiri Svoboda
    33 * All rights reserved.
    44 *
     
    5454        /** Callback argument */
    5555        void *arg;
     56        /** Custom decoration ops or @c NULL */
     57        struct ui_pbutton_decor_ops *decor_ops;
     58        /** Decoration argument */
     59        void *decor_arg;
    5660        /** Push button rectangle */
    5761        gfx_rect_t rect;
Note: See TracChangeset for help on using the changeset viewer.