agl_gui.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00040
00046
#ifndef _adgali_gui_h
00047
#define _adgali_gui_h
00048
00049
00050
00051
#ifdef __cplusplus
00052
extern "C"
00053 {
00054
#endif
00055
00056
typedef struct
00057
{
00058
int created;
00059
agl_rect bbox;
00060
int yoffset;
00061
int advance;
00062 } agl_glyph;
00063
00064
typedef struct _agl_font
00065 {
00066
int height;
00067
int ascent;
00068
int descent;
00069
int linegap;
00070 agl_glyph glyphs[256];
00071
struct _agl_fontio *pfio;
00072
void *priv;
00073 } agl_font;
00074
00075
extern agl_font *agl_fontioload(
agl_ios * ops,
int size);
00076
extern int agl_putc(
agl_pix * pix, agl_font * font,
agl_pos * pos,
unsigned char c);
00077
extern int agl_puts(
agl_pix * pix, agl_font * font,
agl_pos * pos,
unsigned char *str);
00078
extern int agl_printf(
agl_pix * pix, agl_font * font,
agl_pos * pos,
char *fmt, ...);
00079
extern agl_font *agl_fontnew(
void);
00080
extern int agl_fontfree(agl_font * font);
00081
00082
00083
int agl_bdrpixcolr(
agl_pix * ptr,
agl_rect * rect,
agl_pos * pos,
unsigned long color);
00084
void agl_bdrhlinecolr(
agl_pix * ptr,
short y,
short ix,
short ox,
unsigned long color);
00085
void agl_bdrvlinecolr(
agl_pix * ptr,
short x,
short iy,
short oy,
unsigned long color);
00086
int agl_bdrlinecolr(
agl_pix * ptr,
agl_rect * rect,
agl_pos * ipos,
agl_pos * dpos,
unsigned long color);
00087
00088
00089
#ifdef __cplusplus
00090
};
00091
#endif
00092
00093
#endif
Doc generated at 29 Sep 2004 for,
0.2.4 written by Stephane APIOU,
© 2001
Generated by
Doxygen 1.3.8 ,