Changeset 4df6607 in mainline for uspace/lib/ui/src/label.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/label.c

    r8009dc27 r4df6607  
    4646#include "../private/resource.h"
    4747
     48static errno_t ui_label_ctl_paint(void *);
    4849static ui_evclaim_t ui_label_ctl_pos_event(void *, pos_event_t *);
    4950
    5051/** Label control ops */
    5152ui_control_ops_t ui_label_ops = {
     53        .paint = ui_label_ctl_paint,
    5254        .pos_event = ui_label_ctl_pos_event
    5355};
     
    205207}
    206208
     209/** Paint lable control.
     210 *
     211 * @param arg Argument (ui_label_t *)
     212 * @return EOK on success or an error code
     213 */
     214errno_t ui_label_ctl_paint(void *arg)
     215{
     216        ui_label_t *label = (ui_label_t *) arg;
     217
     218        return ui_label_paint(label);
     219}
     220
    207221/** Handle label control position event.
    208222 *
Note: See TracChangeset for help on using the changeset viewer.