Changeset 2bb6d04 in mainline for uspace/lib/draw/include
- Timestamp:
- 2019-06-25T14:58:16Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aeba767
- Parents:
- cd9531d3
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-13 12:14:16)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-06-25 14:58:16)
- Location:
- uspace/lib/draw/include/draw
- Files:
-
- 8 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/draw/include/draw/codec.h
rcd9531d3 r2bb6d04 1 1 /* 2 2 * Copyright (c) 2014 Martin Decky 3 * Copyright (c) 2011 Petr Koupy 3 4 * All rights reserved. 4 5 * … … 34 35 */ 35 36 36 #ifndef DRAW_CODEC_ TGA_GZ_H_37 #define DRAW_CODEC_ TGA_GZ_H_37 #ifndef DRAW_CODEC_H_ 38 #define DRAW_CODEC_H_ 38 39 39 40 #include <stddef.h> 40 #include " ../surface.h"41 #include "surface.h" 41 42 42 43 extern surface_t *decode_tga_gz(void *, size_t, surface_flags_t); 43 44 extern bool encode_tga_gz(surface_t *, void **, size_t *); 45 extern surface_t *decode_tga(void *, size_t, surface_flags_t); 46 extern bool encode_tga(surface_t *, void **, size_t *); 47 extern surface_t *decode_webp(void *, size_t, surface_flags_t); 48 extern bool encode_webp(surface_t *, void **, size_t *); 44 49 45 50 #endif -
uspace/lib/draw/include/draw/cursor.h
rcd9531d3 r2bb6d04 58 58 } cursor_t; 59 59 60 extern cursor_decoder_t cd_embedded; 61 60 62 extern void cursor_init(cursor_t *, cursor_decoder_type_t, char *); 61 63 extern void cursor_release(cursor_t *); -
uspace/lib/draw/include/draw/font.h
rcd9531d3 r2bb6d04 40 40 #include <stdint.h> 41 41 42 #include "font.h" 42 43 #include "surface.h" 43 44 #include "source.h" … … 108 109 } font_t; 109 110 111 typedef struct { 112 errno_t (*resolve_glyph)(void *, const wchar_t, glyph_id_t *); 113 errno_t (*load_glyph_surface)(void *, glyph_id_t, surface_t **); 114 errno_t (*load_glyph_metrics)(void *, glyph_id_t, glyph_metrics_t *); 115 void (*release)(void *); 116 } bitmap_font_decoder_t; 117 110 118 extern font_t *font_create(font_backend_t *, void *); 111 119 extern errno_t font_get_metrics(font_t *, font_metrics_t *); … … 120 128 sysarg_t, sysarg_t); 121 129 130 extern errno_t bitmap_font_create(bitmap_font_decoder_t *, void *, uint32_t, 131 font_metrics_t, uint16_t, font_t **); 132 extern errno_t embedded_font_create(font_t **, uint16_t points); 133 extern errno_t pcf_font_create(font_t **, char *path, uint16_t points); 134 122 135 #endif 123 136 -
uspace/lib/draw/include/draw/gfx.h
rcd9531d3 r2bb6d04 1 1 /* 2 * Copyright (c) 2005 Martin Decky 2 * Copyright (c) 2008 Martin Decky 3 * Copyright (c) 2012 Petr Koupy 3 4 * All rights reserved. 4 5 * … … 33 34 */ 34 35 35 #ifndef FONT_8X16_H_36 #define FONT_8X16_H_36 #ifndef GFX_H_ 37 #define GFX_H_ 37 38 38 39 #include <stdint.h> … … 40 41 #include <stddef.h> 41 42 43 #define CURSOR_WIDTH 11 44 #define CURSOR_HEIGHT 18 45 42 46 #define FONT_GLYPHS 2899 43 47 #define FONT_WIDTH 8 44 48 #define FONT_SCANLINES 16 45 49 #define FONT_ASCENDER 12 50 51 extern uint8_t cursor_texture[]; 52 extern uint8_t cursor_mask[]; 46 53 47 54 extern uint16_t fb_font_glyph(const wchar_t, bool *);
Note:
See TracChangeset
for help on using the changeset viewer.