Changes in uspace/lib/ui/private/window.h [cde067e:db3895d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/private/window.h
rcde067e rdb3895d 1 1 /* 2 * Copyright (c) 202 4Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 46 46 #include <io/pos_event.h> 47 47 #include <memgfx/memgc.h> 48 #include <memgfx/xlategc.h>49 #include <types/common.h>50 48 #include <types/ui/cursor.h> 51 49 #include <types/ui/window.h> … … 72 70 /** Window memory GC (if client-side rendering) */ 73 71 mem_gc_t *mgc; 74 /** Translating GC (if full screen & server-side rendering) */75 xlate_gc_t *xgc;76 72 /** Real window GC (if client-side rendering) */ 77 73 gfx_context_t *realgc; 78 74 /** Window rectangle */ 79 75 gfx_rect_t rect; 80 /** Normal window rectangle (when not maximized) */81 gfx_rect_t normal_rect;82 /** Display position (if fullscreen mode) */83 gfx_coord2_t dpos;84 76 /** Application area bitmap */ 85 77 gfx_bitmap_t *app_bmp; … … 94 86 /** Window decoration */ 95 87 struct ui_wdecor *wdecor; 96 /** System menu */97 struct ui_menu *sysmenu;98 /** System menu restore entry */99 struct ui_menu_entry *sysmenu_restore;100 /** System menu minimize entry */101 struct ui_menu_entry *sysmenu_minimize;102 /** System menu maximize entry */103 struct ui_menu_entry *sysmenu_maximize;104 /** Menu bar */105 struct ui_menu_bar *mbar;106 88 /** Top-level control in the application area */ 107 89 struct ui_control *control; 108 90 /** Current cursor */ 109 91 ui_stock_cursor_t cursor; 110 /** Window placement */111 ui_wnd_placement_t placement;112 92 }; 113 93 114 /** Size change operation */115 typedef enum {116 /** Resize window */117 ui_wsc_resize,118 /** Maximize window */119 ui_wsc_maximize,120 /** Unmaximize window */121 ui_wsc_unmaximize122 } ui_wnd_sc_op_t;123 124 94 extern display_stock_cursor_t wnd_dcursor_from_cursor(ui_stock_cursor_t); 125 extern void ui_window_send_sysmenu(ui_window_t *, sysarg_t);126 extern void ui_window_send_minimize(ui_window_t *);127 extern void ui_window_send_maximize(ui_window_t *);128 extern void ui_window_send_unmaximize(ui_window_t *);129 95 extern void ui_window_send_close(ui_window_t *); 130 extern void ui_window_send_focus(ui_window_t * , unsigned);96 extern void ui_window_send_focus(ui_window_t *); 131 97 extern void ui_window_send_kbd(ui_window_t *, kbd_event_t *); 132 98 extern errno_t ui_window_send_paint(ui_window_t *); 133 99 extern void ui_window_send_pos(ui_window_t *, pos_event_t *); 134 extern void ui_window_send_unfocus(ui_window_t *, unsigned); 135 extern void ui_window_send_resize(ui_window_t *); 136 extern errno_t ui_window_size_change(ui_window_t *, gfx_rect_t *, 137 ui_wnd_sc_op_t); 100 extern void ui_window_send_unfocus(ui_window_t *); 138 101 139 102 #endif
Note:
See TracChangeset
for help on using the changeset viewer.