Changeset 6feccae in mainline
- Timestamp:
- 2020-05-11T16:20:17Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4d8002d
- Parents:
- 83cb672
- Location:
- uspace
- Files:
-
- 9 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/io/window.h
r83cb672 r6feccae 36 36 #define _LIBC_IO_WINDOW_H_ 37 37 38 #include <stdbool.h>39 #include <async.h>40 #include <loc.h>41 38 #include <io/kbd_event.h> 42 39 #include <io/pos_event.h> 40 #include <types/common.h> 43 41 44 42 typedef enum { … … 113 111 } window_event_t; 114 112 115 extern errno_t win_register(async_sess_t *, window_flags_t, service_id_t *,116 service_id_t *);117 118 extern errno_t win_get_event(async_sess_t *, window_event_t *);119 120 extern errno_t win_damage(async_sess_t *, sysarg_t, sysarg_t, sysarg_t, sysarg_t);121 extern errno_t win_grab(async_sess_t *, sysarg_t, sysarg_t);122 extern errno_t win_resize(async_sess_t *, sysarg_t, sysarg_t, sysarg_t, sysarg_t,123 window_placement_flags_t, void *);124 extern errno_t win_close(async_sess_t *);125 extern errno_t win_close_request(async_sess_t *);126 127 113 #endif 128 114 -
uspace/lib/c/meson.build
r83cb672 r6feccae 132 132 'generic/io/table.c', 133 133 'generic/io/visualizer.c', 134 'generic/io/window.c',135 134 'generic/iplink.c', 136 135 'generic/iplink_srv.c', -
uspace/lib/gui/terminal.c
r83cb672 r6feccae 42 42 #include <io/concaps.h> 43 43 #include <io/console.h> 44 #include <loc.h> 44 45 #include <task.h> 45 46 #include <adt/list.h> -
uspace/lib/gui/terminal.h
r83cb672 r6feccae 42 42 #include <io/chargrid.h> 43 43 #include <io/con_srv.h> 44 #include <loc.h> 44 45 #include <adt/list.h> 45 46 #include <adt/prodcons.h> -
uspace/lib/gui/window.c
r83cb672 r6feccae 519 519 520 520 if (width > 0 && height > 0) { 521 /* Notify compositor. */522 //win_damage(win->osess, x, y, width, height);523 524 521 rect.p0.x = x; 525 522 rect.p0.y = y; -
uspace/lib/gui/window.h
r83cb672 r6feccae 61 61 widget_t *focus; /**< Widget owning the keyboard or NULL. */ 62 62 fibril_mutex_t guard; /**< Mutex guarding window surface. */ 63 surface_t *surface; /**< Window surface shared with compositor. */63 surface_t *surface; /**< Window surface shared with display server. */ 64 64 gfx_bitmap_t *bitmap; /**< Window bitmap */ 65 65 }; 66 66 67 67 /** 68 * Allocate all resources for new window and register it in the compositor.68 * Allocate all resources for new window and register it in the display server. 69 69 * If the window is declared as main, its closure causes termination of the 70 70 * whole application. Note that opened window does not have any surface yet. … … 75 75 /** 76 76 * Post resize event into event loop. Window negotiates new surface with 77 * compositor and asks all widgets in the tree to calculate their new properties78 * and to paint themselves on the new surface (top-bottom order). Should be79 * called also after opening new window to obtain surface.77 * display server and asks all widgets in the tree to calculate their new 78 * properties and to paint themselves on the new surface (top-bottom order). 79 * Should be called also after opening new window to obtain surface. 80 80 */ 81 81 extern void window_resize(window_t *, sysarg_t, sysarg_t, sysarg_t, sysarg_t, … … 94 94 95 95 /** 96 * Post damage event into event loop. Handler informs compositor to update the97 * window surface on the screen. Should be called by widget after painting96 * Post damage event into event loop. Handler informs display server to update 97 * the window surface on the screen. Should be called by widget after painting 98 98 * itself or copying its buffer onto window surface. 99 99 */ … … 124 124 125 125 /** 126 * Initiate the closing cascade for the window. First, compositor deallocates126 * Initiate the closing cascade for the window. First, display sever deallocates 127 127 * output resources, prepares special closing input event for the window and 128 128 * deallocates input resources after the event is dispatched. When window -
uspace/lib/meson.build
r83cb672 r6feccae 60 60 'fs', 61 61 'gfx', 62 'graph',63 62 'http', 64 63 'label', -
uspace/srv/meson.build
r83cb672 r6feccae 43 43 'fs/tmpfs', 44 44 'fs/udf', 45 'hid/compositor',46 45 'hid/console', 47 46 'hid/display',
Note:
See TracChangeset
for help on using the changeset viewer.