Changeset ca2680d in mainline for uspace/lib/ui/include
- Timestamp:
- 2022-03-07T21:07:02Z (4 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 96c6a00
- Parents:
- 4583015
- Location:
- uspace/lib/ui/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ui/include/types/ui/paint.h
r4583015 rca2680d 36 36 #ifndef _UI_TYPES_PAINT_H 37 37 #define _UI_TYPES_PAINT_H 38 39 #include <gfx/color.h> 40 #include <gfx/font.h> 38 41 39 42 /** Filled circle parts */ … … 81 84 } ui_box_style_t; 82 85 86 /** UI text formatting */ 87 typedef struct { 88 /** Text font */ 89 gfx_font_t *font; 90 /** Standard color */ 91 gfx_color_t *color; 92 /** Highlight color */ 93 gfx_color_t *hgl_color; 94 /** Horizontal alignment */ 95 gfx_halign_t halign; 96 /** Justification width (for gfx_halign_justify) */ 97 gfx_coord_t justify_width; 98 /** Vertical alignment */ 99 gfx_valign_t valign; 100 } ui_text_fmt_t; 101 83 102 #endif 84 103 -
uspace/lib/ui/include/ui/paint.h
r4583015 rca2680d 59 59 extern errno_t ui_paint_text_hbrace(ui_resource_t *, gfx_rect_t *, 60 60 ui_box_style_t, gfx_color_t *); 61 extern void ui_text_fmt_init(ui_text_fmt_t *); 62 extern gfx_coord_t ui_text_width(gfx_font_t *, const char *); 63 extern errno_t ui_paint_text(gfx_coord2_t *, ui_text_fmt_t *, const char *); 61 64 62 65 #endif
Note:
See TracChangeset
for help on using the changeset viewer.