Changeset 9242ad9 in mainline for uspace/srv/hid/display/window.c


Ignore:
Timestamp:
2020-05-20T17:35:07Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9901f267
Parents:
5480d5e
Message:

Switch to double-arrow cursors when pointer is above resize areas

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/window.c

    r5480d5e r9242ad9  
    309309        wnd->min_size = params->min_size;
    310310        wnd->gc = gc;
     311        wnd->cursor = wnd->display->cursor[dcurs_arrow];
    311312        *rgc = wnd;
    312313        return EOK;
     
    822823}
    823824
     825/** Set window cursor.
     826 *
     827 * @param wnd Window
     828 * @return EOK on success, EINVAL if @a cursor is invalid
     829 */
     830errno_t ds_window_set_cursor(ds_window_t *wnd, display_stock_cursor_t cursor)
     831{
     832        if (cursor >= dcurs_arrow &&
     833            cursor < (display_stock_cursor_t) dcurs_limit) {
     834                wnd->cursor = wnd->display->cursor[cursor];
     835                return EOK;
     836        } else {
     837                return EINVAL;
     838        }
     839}
     840
    824841/** @}
    825842 */
Note: See TracChangeset for help on using the changeset viewer.