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