Changeset 7cc30e9 in mainline for uspace/lib/display/include


Ignore:
Timestamp:
2022-10-24T17:50:46Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
913add60
Parents:
7a05d924
Message:

Display server needs to store window caption

Even though it does not use it itself, it needs to provide it to
window managers (e.g. Task bar). We need to be able to set caption
for a new window and to change it for an existing window.

Location:
uspace/lib/display/include
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/display/include/disp_srv.h

    r7a05d924 r7cc30e9  
    6767        errno_t (*window_unmaximize)(void *, sysarg_t);
    6868        errno_t (*window_set_cursor)(void *, sysarg_t, display_stock_cursor_t);
     69        errno_t (*window_set_caption)(void *, sysarg_t, const char *);
    6970        errno_t (*get_event)(void *, sysarg_t *, display_wnd_ev_t *);
    7071        errno_t (*get_info)(void *, display_info_t *);
  • uspace/lib/display/include/display.h

    r7a05d924 r7cc30e9  
    6666extern errno_t display_window_set_cursor(display_window_t *,
    6767    display_stock_cursor_t);
     68extern errno_t display_window_set_caption(display_window_t *, const char *);
    6869
    6970#endif
  • uspace/lib/display/include/ipc/display.h

    r7a05d924 r7cc30e9  
    5050        DISPLAY_WINDOW_RESIZE_REQ,
    5151        DISPLAY_WINDOW_SET_CURSOR,
     52        DISPLAY_WINDOW_SET_CAPTION,
    5253        DISPLAY_WINDOW_UNMAXIMIZE,
    5354        DISPLAY_GET_EVENT,
  • uspace/lib/display/include/types/display/wndparams.h

    r7a05d924 r7cc30e9  
    5858        /** Bounding rectangle */
    5959        gfx_rect_t rect;
     60        /** Window caption */
     61        const char *caption;
    6062        /** Minimum size (when being resized) */
    6163        gfx_coord2_t min_size;
Note: See TracChangeset for help on using the changeset viewer.