Changeset 25eec4e in mainline for uspace/lib/gui/canvas.h
- Timestamp:
- 2013-04-19T18:38:18Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6d717a4
- Parents:
- a1e2df13 (diff), 289cb7dd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gui/canvas.h
ra1e2df13 r25eec4e 1 1 /* 2 * Copyright (c) 201 1 Martin Sucha2 * Copyright (c) 2013 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup fs29 /** @addtogroup gui 30 30 * @{ 31 */ 31 */ 32 /** 33 * @file 34 */ 32 35 33 #ifndef EXT2FS_EXT2FS_H_34 #define EXT2FS_EXT2FS_H_36 #ifndef GUI_CANVAS_H_ 37 #define GUI_CANVAS_H_ 35 38 36 #include <libext2.h> 37 #include <libfs.h> 39 #include <stdbool.h> 38 40 #include <sys/types.h> 41 #include <io/pixel.h> 42 #include <surface.h> 43 #include "widget.h" 39 44 40 #define min(a, b) ((a) < (b) ? (a) : (b)) 45 typedef struct { 46 widget_t widget; 47 sysarg_t width; 48 sysarg_t height; 49 surface_t *surface; 50 } canvas_t; 41 51 42 extern vfs_out_ops_t ext2fs_ops; 43 extern libfs_ops_t ext2fs_libfs_ops; 44 45 extern int ext2fs_global_init(void); 46 extern int ext2fs_global_fini(void); 52 extern bool init_canvas(canvas_t *, widget_t *, sysarg_t, sysarg_t, 53 surface_t *); 54 extern canvas_t *create_canvas(widget_t *, sysarg_t, sysarg_t, surface_t *); 55 extern void deinit_canvas(canvas_t *); 47 56 48 57 #endif 49 58 50 /** 51 * @} 59 /** @} 52 60 */
Note:
See TracChangeset
for help on using the changeset viewer.