Changeset c4a53280 in mainline for uspace/app/taskbar/wndlist.h


Ignore:
Timestamp:
2022-12-01T14:39:56Z (17 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
795c6f7
Parents:
68d68e9
git-author:
Jiri Svoboda <jiri@…> (2022-11-30 18:39:42)
git-committer:
Jiri Svoboda <jiri@…> (2022-12-01 14:39:56)
Message:

Optimize redrawing of window buttons

We cache the button pich inside wndlist_t. We only repaint the entire
window list if the pitch changes. Otherwise we just (un)paint the
affected buttons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/taskbar/wndlist.h

    r68d68e9 rc4a53280  
    5252extern errno_t wndlist_append(wndlist_t *, sysarg_t, const char *, bool);
    5353extern errno_t wndlist_remove(wndlist_t *, wndlist_entry_t *, bool);
     54extern bool wndlist_update_pitch(wndlist_t *);
    5455extern errno_t wndlist_update(wndlist_t *, wndlist_entry_t *, const char *);
    5556extern void wndlist_set_entry_rect(wndlist_t *, wndlist_entry_t *);
    5657extern wndlist_entry_t *wndlist_entry_by_id(wndlist_t *, sysarg_t);
    5758extern wndlist_entry_t *wndlist_first(wndlist_t *);
     59extern wndlist_entry_t *wndlist_last(wndlist_t *);
    5860extern wndlist_entry_t *wndlist_next(wndlist_entry_t *);
    5961extern size_t wndlist_count(wndlist_t *);
    6062extern errno_t wndlist_repaint(wndlist_t *);
     63extern errno_t wndlist_unpaint_entry(wndlist_entry_t *);
    6164
    6265#endif
Note: See TracChangeset for help on using the changeset viewer.