Changeset 8e7c9fe in mainline for uspace/lib/draw/font/bitmap_backend.h
- Timestamp:
- 2014-09-12T03:45:25Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c53b58e
- Parents:
- 3eb0c85 (diff), 105d8d6 (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/draw/font/bitmap_backend.h
r3eb0c85 r8e7c9fe 1 1 /* 2 * Copyright (c) 2006 Ondrej Palkovsky 2 * Copyright (c) 2012 Petr Koupy 3 * Copyright (c) 2014 Martin Sucha 3 4 * All rights reserved. 4 5 * … … 27 28 */ 28 29 29 /** @addtogroup libc30 /** @addtogroup draw 30 31 * @{ 31 32 */ 32 /** @file 33 /** 34 * @file 33 35 */ 34 36 35 #ifndef LIBC_MMAN_H_36 #define LIBC_MMAN_H_37 #ifndef DRAW_FONT_BITMAP_BACKEND_H_ 38 #define DRAW_FONT_BITMAP_BACKEND_H_ 37 39 38 #include <as.h>39 40 #include <sys/types.h> 40 41 41 #define MAP_FAILED AS_MAP_FAILED 42 #include "../font.h" 43 #include "../surface.h" 44 #include "../source.h" 42 45 43 #define MAP_SHARED (1 << 0) 44 #define MAP_PRIVATE (1 << 1) 45 #define MAP_FIXED (1 << 2) 46 #define MAP_ANONYMOUS (1 << 3) 46 typedef struct { 47 int (*resolve_glyph)(void *, const wchar_t, glyph_id_t *); 48 int (*load_glyph_surface)(void *, glyph_id_t, surface_t **); 49 int (*load_glyph_metrics)(void *, glyph_id_t, glyph_metrics_t *); 50 void (*release)(void *); 51 } bitmap_font_decoder_t; 47 52 48 #define PROTO_READ AS_AREA_READ 49 #define PROTO_WRITE AS_AREA_WRITE 50 #define PROTO_EXEC AS_AREA_EXEC 51 52 extern void *mmap(void *start, size_t length, int prot, int flags, int fd, 53 aoff64_t offset); 54 extern int munmap(void *start, size_t length); 53 extern int bitmap_font_create(bitmap_font_decoder_t *, void *, uint32_t, 54 font_metrics_t, uint16_t, font_t **); 55 55 56 56 #endif
Note:
See TracChangeset
for help on using the changeset viewer.