Changeset 4df6607 in mainline for uspace/lib/ui/src/pbutton.c


Ignore:
Timestamp:
2020-11-01T18:37:09Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c6f00b40
Parents:
8009dc27
Message:

Paint controls via layout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/pbutton.c

    r8009dc27 r4df6607  
    5454};
    5555
     56static errno_t ui_pbutton_ctl_paint(void *);
    5657static ui_evclaim_t ui_pbutton_ctl_pos_event(void *, pos_event_t *);
    5758
    5859/** Push button control ops */
    5960ui_control_ops_t ui_pbutton_ops = {
     61        .paint = ui_pbutton_ctl_paint,
    6062        .pos_event = ui_pbutton_ctl_pos_event
    6163};
     
    416418}
    417419
     420/** Paint push button control.
     421 *
     422 * @param arg Argument (ui_pbutton_t *)
     423 * @return EOK on success or an error code
     424 */
     425errno_t ui_pbutton_ctl_paint(void *arg)
     426{
     427        ui_pbutton_t *pbutton = (ui_pbutton_t *) arg;
     428
     429        return ui_pbutton_paint(pbutton);
     430}
     431
    418432/** Handle push button control position event.
    419433 *
Note: See TracChangeset for help on using the changeset viewer.