/***************************************************************
                          text.h
 ***************************************************************/
module allegro.text;

import allegro.gfx;
import allegro.font;
import allegro.internal._export;


mixin(_export!(`
   extern extern (C) {
      FONT *font;
      int allegro_404_char;
   }
`));

extern (C) {

void textout_ex (BITMAP *bmp, in FONT *f, in char *str, int x, int y, int color, int bg);
void textout_centre_ex (BITMAP *bmp, in FONT *f, in char *str, int x, int y, int color, int bg);
void textout_right_ex (BITMAP *bmp, in FONT *f, in char *str, int x, int y, int color, int bg);
void textout_justify_ex (BITMAP *bmp, in FONT *f, in char *str, int x1, int x2, int y, int diff, int color, int bg);
void textprintf_ex (BITMAP *bmp, in FONT *f, int x, int y, int color, int bg, in char *format, ...);
void textprintf_centre_ex (BITMAP *bmp, in FONT *f, int x, int y, int color, int bg, in char *format, ...);
void textprintf_right_ex (BITMAP *bmp, in FONT *f, int x, int y, int color, int bg, in char *format, ...);
void textprintf_justify_ex (BITMAP *bmp, in FONT *f, int x1, int x2, int y, int diff, int color, int bg, in char *format, ...);
int text_length (in FONT *f, in char *str);
int text_height (in FONT *f);
void destroy_font (FONT *f);

} // extern (C)
