Ignore:
Timestamp:
2022-03-07T16:10:44Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ca2680d
Parents:
5c27e77
Message:

Add font to gfx_text_fmt_t

This is quite logical and saves us one argument that we need to pass to
all text formatting functions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/gfxfont/include/gfx/text.h

    r5c27e77 r4583015  
    4545extern void gfx_text_fmt_init(gfx_text_fmt_t *);
    4646extern gfx_coord_t gfx_text_width(gfx_font_t *, const char *);
    47 extern errno_t gfx_puttext(gfx_font_t *, gfx_coord2_t *, gfx_text_fmt_t *,
    48     const char *);
    49 extern void gfx_text_start_pos(gfx_font_t *, gfx_coord2_t *, gfx_text_fmt_t *,
    50     const char *, gfx_coord2_t *);
    51 extern size_t gfx_text_find_pos(gfx_font_t *, gfx_coord2_t *, gfx_text_fmt_t *,
    52     const char *, gfx_coord2_t *);
    53 extern void gfx_text_cont(gfx_font_t *, gfx_coord2_t *, gfx_text_fmt_t *,
    54     const char *, gfx_coord2_t *, gfx_text_fmt_t *);
    55 extern void gfx_text_rect(gfx_font_t *, gfx_coord2_t *, gfx_text_fmt_t *,
    56     const char *, gfx_rect_t *);
     47extern errno_t gfx_puttext(gfx_coord2_t *, gfx_text_fmt_t *, const char *);
     48extern void gfx_text_start_pos(gfx_coord2_t *, gfx_text_fmt_t *, const char *,
     49    gfx_coord2_t *);
     50extern size_t gfx_text_find_pos(gfx_coord2_t *, gfx_text_fmt_t *, const char *,
     51    gfx_coord2_t *);
     52extern void gfx_text_cont(gfx_coord2_t *, gfx_text_fmt_t *, const char *,
     53    gfx_coord2_t *, gfx_text_fmt_t *);
     54extern void gfx_text_rect(gfx_coord2_t *, gfx_text_fmt_t *, const char *,
     55    gfx_rect_t *);
    5756
    5857#endif
Note: See TracChangeset for help on using the changeset viewer.