Changeset 7e38970d in mainline for uspace/lib/gfxfont/private/glyph_bmp.h
- Timestamp:
- 2020-12-07T00:08:37Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 25f26600
- Parents:
- 7a873f0 (diff), 8596474 (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/gfxfont/private/glyph_bmp.h
r7a873f0 r7e38970d 1 1 /* 2 * Copyright (c) 20 12 Petr Koupy2 * Copyright (c) 2020 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup gui29 /** @addtogroup libgfxfont 30 30 * @{ 31 31 */ 32 32 /** 33 * @file 33 * @file Glyph structure 34 * 34 35 */ 35 36 36 #ifndef GUI_BUTTON_H_37 #define GUI_BUTTON_H_37 #ifndef _GFX_PRIVATE_GLYPH_BMP_H 38 #define _GFX_PRIVATE_GLYPH_BMP_H 38 39 39 #include < stdint.h>40 #include < io/pixel.h>40 #include <gfx/coord.h> 41 #include <types/gfx/glyph_bmp.h> 41 42 42 #include <draw/source.h> 43 #include <draw/font.h> 43 /** Glyph bitmap 44 * 45 * Glyph bitmap open for editing. This is used to edit glyph bitmap. 46 * Updating the entire font bitmap whenever the glyph is resized could 47 * be costly. This allows to postpone the update until we are done editing. 48 * 49 * This is private to libgfxfont. 50 */ 51 struct gfx_glyph_bmp { 52 /** Containing glyph */ 53 struct gfx_glyph *glyph; 54 /** Rectangle covered by bitmap */ 55 gfx_rect_t rect; 56 /** Pixel array */ 57 int *pixels; 58 }; 44 59 45 #include "connection.h" 46 #include "widget.h" 47 48 typedef struct button { 49 widget_t widget; 50 source_t background; 51 source_t foreground; 52 source_t text; 53 char *caption; 54 font_t *font; 55 signal_t clicked; 56 } button_t; 57 58 extern bool init_button(button_t *, widget_t *, const void *, const char *, 59 uint16_t, pixel_t, pixel_t, pixel_t); 60 extern button_t *create_button(widget_t *, const void *, const char *, uint16_t, 61 pixel_t, pixel_t, pixel_t); 62 extern void deinit_button(button_t *); 60 extern void gfx_glyph_bmp_find_used_rect(gfx_glyph_bmp_t *, gfx_rect_t *); 63 61 64 62 #endif
Note:
See TracChangeset
for help on using the changeset viewer.