Changeset fa01c05 in mainline for uspace/lib/ui/include


Ignore:
Timestamp:
2020-11-03T18:46:35Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b71c0fc
Parents:
4ac11ff
Message:

UI window should fill the application are background

Except for applications that want to do their own drawing without the
use of UI control hierarchy. We solve this by doing it in a default
paint callback that the application can override with its own
paint routine.

Location:
uspace/lib/ui/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/include/types/ui/window.h

    r4ac11ff rfa01c05  
    3737#define _UI_TYPES_WINDOW_H
    3838
     39#include <errno.h>
    3940#include <io/kbd_event.h>
    4041#include <io/pos_event.h>
     
    5657        void (*focus)(ui_window_t *, void *);
    5758        void (*kbd)(ui_window_t *, void *, kbd_event_t *);
     59        errno_t (*paint)(ui_window_t *, void *);
    5860        void (*pos)(ui_window_t *, void *, pos_event_t *);
    5961        void (*unfocus)(ui_window_t *, void *);
  • uspace/lib/ui/include/ui/window.h

    r4ac11ff rfa01c05  
    5252extern gfx_context_t *ui_window_get_gc(ui_window_t *);
    5353extern void ui_window_get_app_rect(ui_window_t *, gfx_rect_t *);
     54extern errno_t ui_window_paint(ui_window_t *);
     55extern errno_t ui_window_def_paint(ui_window_t *);
    5456
    5557#endif
Note: See TracChangeset for help on using the changeset viewer.