Changes in uspace/lib/gui/window.h [66a408f7:2bb6d04] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/window.h
r66a408f7 r2bb6d04 37 37 #define GUI_WINDOW_H_ 38 38 39 #include <async.h> 39 40 #include <adt/prodcons.h> 40 41 #include <fibril_synch.h> … … 42 43 #include <io/window.h> 43 44 #include <draw/surface.h> 44 #include <display.h>45 #include <gfx/bitmap.h>46 #include <gfx/context.h>47 45 48 46 #include "widget.h" … … 52 50 bool is_decorated; /**< True if the window decorations should be rendered. */ 53 51 bool is_focused; /**< True for the top level window of the desktop. */ 54 bool is_resizable; /**< True if window is resizable */55 52 char *caption; /**< Text title of the window header. */ 56 display_t *display; /**< Display service */ 57 display_window_t *dwindow; /**< Display window */ 58 gfx_context_t *gc; /**< GC of the window */ 53 async_sess_t *isess; /**< Input events from compositor. */ 54 async_sess_t *osess; /**< Mainly for damage reporting to compositor. */ 59 55 prodcons_t events; /**< Queue for window event loop. */ 60 56 widget_t root; /**< Decoration widget serving as a root of widget hiearchy. */ … … 62 58 widget_t *focus; /**< Widget owning the keyboard or NULL. */ 63 59 fibril_mutex_t guard; /**< Mutex guarding window surface. */ 64 surface_t *surface; /**< Window surface shared with display server. */ 65 gfx_bitmap_t *bitmap; /**< Window bitmap */ 66 display_stock_cursor_t cursor; /**< Selected cursor */ 60 surface_t *surface; /**< Window surface shared with compositor. */ 67 61 }; 68 62 69 63 /** 70 * Allocate all resources for new window and register it in the display server.64 * Allocate all resources for new window and register it in the compositor. 71 65 * If the window is declared as main, its closure causes termination of the 72 66 * whole application. Note that opened window does not have any surface yet. … … 77 71 /** 78 72 * Post resize event into event loop. Window negotiates new surface with 79 * display server and asks all widgets in the tree to calculate their new80 * properties and to paint themselves on the new surface (top-bottom order).81 * Should becalled also after opening new window to obtain surface.73 * compositor and asks all widgets in the tree to calculate their new properties 74 * and to paint themselves on the new surface (top-bottom order). Should be 75 * called also after opening new window to obtain surface. 82 76 */ 83 77 extern void window_resize(window_t *, sysarg_t, sysarg_t, sysarg_t, sysarg_t, … … 96 90 97 91 /** 98 * Post damage event into event loop. Handler informs display server to update99 * thewindow surface on the screen. Should be called by widget after painting92 * Post damage event into event loop. Handler informs compositor to update the 93 * window surface on the screen. Should be called by widget after painting 100 94 * itself or copying its buffer onto window surface. 101 95 */ … … 126 120 127 121 /** 128 * Initiate the closing cascade for the window. First, display sever deallocates122 * Initiate the closing cascade for the window. First, compositor deallocates 129 123 * output resources, prepares special closing input event for the window and 130 124 * deallocates input resources after the event is dispatched. When window
Note:
See TracChangeset
for help on using the changeset viewer.