Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2020-01-09T16:44:57Z (10 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
946a666
Parents:
8e9781f
git-author:
Jiri Svoboda <jiri@…> (2020-01-09 18:44:03)
git-committer:
Jiri Svoboda <jiri@…> (2020-01-09 16:44:57)
Message:

Moving windows by mouse drag

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/display/types/display/window.h

    r8e9781f ra40ae0d  
    4444typedef sysarg_t ds_wnd_id_t;
    4545
     46/** Window state */
     47typedef enum {
     48        /** Idle */
     49        dsw_idle,
     50        /** Moving by mouse drag */
     51        dsw_moving
     52} ds_window_state_t;
     53
    4654/** Display server window */
    4755typedef struct ds_window {
     
    6270        /** Graphic context */
    6371        gfx_context_t *gc;
     72
     73        /** State */
     74        ds_window_state_t state;
     75        /** Original position before started to move the window */
     76        gfx_coord2_t orig_pos;
    6477} ds_window_t;
    6578
Note: See TracChangeset for help on using the changeset viewer.