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


Ignore:
Timestamp:
2020-11-01T18:37:09Z (4 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/fixed.c

    r8009dc27 r4df6607  
    147147}
    148148
     149/** Paint fixed layout.
     150 *
     151 * @param fixed Fixed layout
     152 * @return EOK on success or an error code
     153 */
     154errno_t ui_fixed_paint(ui_fixed_t *fixed)
     155{
     156        ui_fixed_elem_t *elem;
     157        errno_t rc;
     158
     159        elem = ui_fixed_first(fixed);
     160        while (elem != NULL) {
     161                rc = ui_control_paint(elem->control);
     162                if (rc != EOK)
     163                        return rc;
     164
     165                elem = ui_fixed_next(elem);
     166        }
     167
     168        return EOK;
     169}
     170
    149171/** Handle fixed layout position event.
    150172 *
Note: See TracChangeset for help on using the changeset viewer.