Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/draw/font.h

    rb7fd2a0 r8d2dd7f2  
    9191
    9292typedef struct {
    93         errno_t (*get_font_metrics)(void *, font_metrics_t *);
    94         errno_t (*resolve_glyph)(void *, wchar_t, glyph_id_t *);
    95         errno_t (*get_glyph_metrics)(void *, glyph_id_t, glyph_metrics_t *);
    96         errno_t (*render_glyph)(void *, drawctx_t *, source_t *, sysarg_t,
     93        int (*get_font_metrics)(void *, font_metrics_t *);
     94        int (*resolve_glyph)(void *, wchar_t, glyph_id_t *);
     95        int (*get_glyph_metrics)(void *, glyph_id_t, glyph_metrics_t *);
     96        int (*render_glyph)(void *, drawctx_t *, source_t *, sysarg_t,
    9797            sysarg_t, glyph_id_t);
    9898        void (*release)(void *);
     
    105105
    106106extern font_t *font_create(font_backend_t *, void *);
    107 extern errno_t font_get_metrics(font_t *, font_metrics_t *);
    108 extern errno_t font_resolve_glyph(font_t *, wchar_t, glyph_id_t *);
    109 extern errno_t font_get_glyph_metrics(font_t *, glyph_id_t, glyph_metrics_t *);
    110 extern errno_t font_render_glyph(font_t *, drawctx_t *, source_t *,
     107extern int font_get_metrics(font_t *, font_metrics_t *);
     108extern int font_resolve_glyph(font_t *, wchar_t, glyph_id_t *);
     109extern int font_get_glyph_metrics(font_t *, glyph_id_t, glyph_metrics_t *);
     110extern int font_render_glyph(font_t *, drawctx_t *, source_t *,
    111111    sysarg_t, sysarg_t, glyph_id_t);
    112112extern void font_release(font_t *);
    113113
    114 extern errno_t font_get_box(font_t *, char *, sysarg_t *, sysarg_t *);
    115 extern errno_t font_draw_text(font_t *, drawctx_t *, source_t *, const char *,
     114extern int font_get_box(font_t *, char *, sysarg_t *, sysarg_t *);
     115extern int font_draw_text(font_t *, drawctx_t *, source_t *, const char *,
    116116    sysarg_t, sysarg_t);
    117117
Note: See TracChangeset for help on using the changeset viewer.