Changeset 2d879f7 in mainline for uspace/lib/ui/include
- Timestamp:
- 2020-11-26T11:59:59Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 554a5f1
- Parents:
- d8ddf7a
- git-author:
- Jiri Svoboda <jiri@…> (2020-11-25 18:46:07)
- git-committer:
- Jiri Svoboda <jiri@…> (2020-11-26 11:59:59)
- Location:
- uspace/lib/ui/include
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/include/types/ui/wdecor.h
rd8ddf7a r2d879f7 38 38 39 39 #include <gfx/coord.h> 40 #include <types/ui/cursor.h> 40 41 41 42 struct ui_wdecor; 42 43 typedef struct ui_wdecor ui_wdecor_t; 44 45 /** Window decoration style */ 46 typedef enum { 47 ui_wds_none = 0x0, 48 ui_wds_resizable = 0x1 49 } ui_wdecor_style_t; 50 51 /** Window resize type */ 52 typedef enum { 53 ui_wr_none = 0, 54 55 ui_wr_top = 0x1, 56 ui_wr_left = 0x2, 57 ui_wr_bottom = 0x4, 58 ui_wr_right = 0x8, 59 60 ui_wr_top_left = ui_wr_top | ui_wr_left, 61 ui_wr_bottom_left = ui_wr_bottom | ui_wr_left, 62 ui_wr_bottom_right = ui_wr_bottom | ui_wr_right, 63 ui_wr_top_right = ui_wr_top | ui_wr_right 64 } ui_wdecor_rsztype_t; 43 65 44 66 /** Window decoration callbacks */ … … 46 68 void (*close)(ui_wdecor_t *, void *); 47 69 void (*move)(ui_wdecor_t *, void *, gfx_coord2_t *); 70 void (*resize)(ui_wdecor_t *, void *, ui_wdecor_rsztype_t, 71 gfx_coord2_t *); 72 void (*set_cursor)(ui_wdecor_t *, void *, ui_stock_cursor_t); 48 73 } ui_wdecor_cb_t; 49 74 -
uspace/lib/ui/include/types/ui/window.h
rd8ddf7a r2d879f7 40 40 #include <io/kbd_event.h> 41 41 #include <io/pos_event.h> 42 #include <types/ui/wdecor.h> 42 43 43 44 struct ui_window; … … 64 65 /** Window caption */ 65 66 const char *caption; 67 /** Window decoration style */ 68 ui_wdecor_style_t style; 66 69 /** Window placement */ 67 70 ui_wnd_placement_t placement; -
uspace/lib/ui/include/ui/wdecor.h
rd8ddf7a r2d879f7 45 45 46 46 extern errno_t ui_wdecor_create(ui_resource_t *, const char *, 47 ui_wdecor_ t **);47 ui_wdecor_style_t, ui_wdecor_t **); 48 48 extern void ui_wdecor_destroy(ui_wdecor_t *); 49 49 extern void ui_wdecor_set_cb(ui_wdecor_t *, ui_wdecor_cb_t *, void *);
Note:
See TracChangeset
for help on using the changeset viewer.