Changes in uspace/lib/gfxfont/include/types/gfx/text.h [a130983:b433f68] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/gfxfont/include/types/gfx/text.h
ra130983 rb433f68 1 1 /* 2 * Copyright (c) 202 2Jiri Svoboda2 * Copyright (c) 2020 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 37 37 #define _TYPES_GFX_TEXT_H 38 38 39 #include <stdbool.h>40 39 #include <types/gfx/coord.h> 41 40 #include <types/gfx/color.h> … … 43 42 /** Text horizontal alignment */ 44 43 typedef enum { 45 /** Align text left (start at anchor point)*/44 /** Align text left */ 46 45 gfx_halign_left, 47 /** Align text on the center (center around anchor point)*/46 /** Align text on the center */ 48 47 gfx_halign_center, 49 /** Align text right (end just before anchor point)*/48 /** Align text right */ 50 49 gfx_halign_right, 51 50 /** Justify text on both left and right edge */ … … 55 54 /** Text vertical alignment */ 56 55 typedef enum { 57 /** Align top (starts at anchor point)*/56 /** Align top */ 58 57 gfx_valign_top, 59 /** Align center (centered around anchor point)*/58 /** Align center */ 60 59 gfx_valign_center, 61 /** Align bottom (end just before anchor point)*/60 /** Align bottom */ 62 61 gfx_valign_bottom, 63 62 /** Align to baseline */ … … 67 66 /** Text formatting */ 68 67 typedef struct { 69 /** Text font */70 struct gfx_font *font;71 68 /** Text color */ 72 69 gfx_color_t *color; 73 70 /** Horizontal alignment */ 74 71 gfx_halign_t halign; 75 /** Width available for the text*/76 gfx_coord_t width;72 /** Justification width (for gfx_halign_justify) */ 73 gfx_coord_t justify_width; 77 74 /** Vertical alignment */ 78 75 gfx_valign_t valign; 79 /** Abbreviate the text with ellipsis if it does not fit @c width */80 bool abbreviate;81 /** Underline */82 bool underline;83 76 } gfx_text_fmt_t; 84 77
Note:
See TracChangeset
for help on using the changeset viewer.