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