LMMS
Loading...
Searching...
No Matches
lice_import.h
Go to the documentation of this file.
1#define LICE_TEXT_NO_DECLARE_CACHEDFONT
2
3#ifdef LICE_IMPORT_INTERFACE_ONLY
4#define LICE_FUNC_DEF_DECL extern
5#else
6#define LICE_FUNC_DEF_DECL
7#endif
8
9#include "lice_text.h"
10LICE_FUNC_DEF_DECL LICE_IBitmap *(*__LICE_CreateBitmap)(int, int, int);
11LICE_FUNC_DEF_DECL void (*__LICE_PutPixel)(LICE_IBitmap* dest, int x, int y, LICE_pixel color, float alpha, int mode);
12LICE_FUNC_DEF_DECL void (*__LICE_Line)(LICE_IBitmap *dest, int x1, int y1, int x2, int y2, LICE_pixel color, float alpha, int mode, bool aa);
13LICE_FUNC_DEF_DECL void (*__LICE_FLine)(LICE_IBitmap *dest, float x1, float y1, float x2, float y2, LICE_pixel color, float alpha, int mode, bool aa);
14LICE_FUNC_DEF_DECL void (*__LICE_DashedLine)(LICE_IBitmap *dest, int x1, int y1, int x2, int y2, int on, int off, LICE_pixel color, float alpha, int mode, bool aa);
15LICE_FUNC_DEF_DECL void (*__LICE_FillRect)(LICE_IBitmap *dest, int x, int y, int w, int h, LICE_pixel color, float alpha , int mode);
16LICE_FUNC_DEF_DECL void (*__LICE_DrawRect)(LICE_IBitmap *dest, int x, int y, int w, int h, LICE_pixel color, float alpha , int mode);
17LICE_FUNC_DEF_DECL void (*__LICE_BorderedRect)(LICE_IBitmap *dest, int x, int y, int w, int h, LICE_pixel bgcolor, LICE_pixel fgcolor, float alpha, int mode);
18LICE_FUNC_DEF_DECL void (*__LICE_Circle)(LICE_IBitmap* dest, float cx, float cy, float r, LICE_pixel color, float alpha, int mode, bool aa);
19LICE_FUNC_DEF_DECL void (*__LICE_FillCircle)(LICE_IBitmap* dest, float cx, float cy, float r, LICE_pixel color, float alpha, int mode, bool aa);
21LICE_FUNC_DEF_DECL void (*__LICE_Blit)(LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, float alpha, int mode);
22LICE_FUNC_DEF_DECL void (*__LICE_RotatedBlit)(LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int dstw, int dsth, float srcx, float srcy, float srcw, float srch, float angle, bool cliptosourcerect, float alpha, int mode, float rotxcent, float rotycent);
23LICE_FUNC_DEF_DECL void (*__LICE_DrawGlyph)(LICE_IBitmap* dest, int x, int y, LICE_pixel color, LICE_pixel_chan* glyph, int glyph_w, int glyph_h, float alpha, int mode);
24LICE_FUNC_DEF_DECL void (*__LICE_FillTriangle)(LICE_IBitmap *dest, int x1, int y1, int x2, int y2, int x3, int y3, LICE_pixel color, float alpha, int mode);
25LICE_FUNC_DEF_DECL void (*__LICE_Arc)(LICE_IBitmap* dest, float cx, float cy, float r, float alo, float ahi, LICE_pixel color, float alpha, int mode, bool aa);
26LICE_FUNC_DEF_DECL void (*__LICE_FillTrapezoid)(LICE_IBitmap* dest, int x1a, int x1b, int y1, int x2a, int x2b, int y2, LICE_pixel color, float alpha, int mode);
27LICE_FUNC_DEF_DECL void (*__LICE_FillConvexPolygon)(LICE_IBitmap* dest, int* x, int* y, int npoints, LICE_pixel color, float alpha, int mode);
29LICE_FUNC_DEF_DECL void (*__LICE_DrawText)(LICE_IBitmap *bm, int x, int y, const char *string, LICE_pixel color, float alpha, int mode);
30LICE_FUNC_DEF_DECL void (*__LICE_MeasureText)(const char *string, int *w, int *h);
31LICE_FUNC_DEF_DECL void (*__LICE_ScaledBlit)(LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int dstw, int dsth, float srcx, float srcy, float srcw, float srch, float alpha, int mode);
32
33LICE_FUNC_DEF_DECL void * (*LICE_CreateFont)();
34#define LICE_PutPixel __LICE_PutPixel
35#define LICE_Line __LICE_Line
36#define LICE_FLine __LICE_FLine
37#define LICE_DashedLine __LICE_DashedLine
38#define LICE_FillRect __LICE_FillRect
39#define LICE_DrawRect __LICE_DrawRect
40#define LICE_Circle __LICE_Circle
41#define LICE_Clear __LICE_Clear
42#define LICE_Blit __LICE_Blit
43#define LICE_RotatedBlit __LICE_RotatedBlit
44#define LICE_DrawGlyph __LICE_DrawGlyph
45#define LICE_FillCircle __LICE_FillCircle
46#define LICE_BorderedRect __LICE_BorderedRect
47#define LICE_FillTriangle __LICE_FillTriangle
48#define LICE_Arc __LICE_Arc
49#define LICE_FillTrapezoid __LICE_FillTrapezoid
50#define LICE_FillConvexPolygon __LICE_FillConvexPolygon
51#define LICE_Copy __LICE_Copy
52#define LICE_DrawText __LICE_DrawText
53#define LICE_MeasureText __LICE_MeasureText
54#define LICE_ScaledBlit __LICE_ScaledBlit
55#define LICE_CreateMemBitmap(w,h) (__LICE_CreateBitmap ? __LICE_CreateBitmap(0,w,h) : 0)
56#define LICE_CreateSysBitmap(w,h) (__LICE_CreateBitmap ? __LICE_CreateBitmap(1,w,h) : 0)
57#define LICE_CreateTextCache() ((LICE_IFont*)(LICE_CreateFont?LICE_CreateFont():0))
58#undef LICE_FUNC_DEF_DECL
59
60#define IMPORT_LICE_FUNCS(IMPORT_FUNC) \
61 IMPORT_FUNC(__LICE_CreateBitmap,"LICE_CreateBitmap") \
62 IMPORT_FUNC(__LICE_PutPixel,"LICE_PutPixel") \
63 IMPORT_FUNC(__LICE_Line,"LICE_LineInt") \
64 IMPORT_FUNC(__LICE_FLine,"LICE_Line") \
65 IMPORT_FUNC(__LICE_DashedLine, "LICE_DashedLine") \
66 IMPORT_FUNC(__LICE_Circle,"LICE_Circle") \
67 IMPORT_FUNC(__LICE_FillCircle,"LICE_FillCircle") \
68 IMPORT_FUNC(__LICE_FillRect,"LICE_FillRect") \
69 IMPORT_FUNC(__LICE_DrawRect,"LICE_DrawRect") \
70 IMPORT_FUNC(__LICE_BorderedRect,"LICE_BorderedRect") \
71 IMPORT_FUNC(__LICE_Clear,"LICE_Clear") \
72 IMPORT_FUNC(__LICE_Blit,"LICE_Blit") \
73 IMPORT_FUNC(__LICE_RotatedBlit,"LICE_RotatedBlit") \
74 IMPORT_FUNC(__LICE_DrawGlyph,"LICE_DrawGlyph") \
75 IMPORT_FUNC(LICE_CreateFont,"LICE_CreateFont") \
76 IMPORT_FUNC(LICE_FillTriangle,"LICE_FillTriangle") \
77 IMPORT_FUNC(LICE_Arc,"LICE_Arc") \
78 IMPORT_FUNC(LICE_FillTrapezoid,"LICE_FillTrapezoid") \
79 IMPORT_FUNC(LICE_FillConvexPolygon,"LICE_FillConvexPolygon") \
80 IMPORT_FUNC(LICE_Copy,"LICE_Copy") \
81 IMPORT_FUNC(__LICE_ScaledBlit,"LICE_ScaledBlit") \
82 IMPORT_FUNC(__LICE_MeasureText,"LICE_MeasureText") \
83 IMPORT_FUNC(__LICE_DrawText,"LICE_DrawText")
84
Definition lice.h:84
UINT_D64 w
Definition inflate.c:942
int y
Definition inflate.c:1588
unsigned x[BMAX+1]
Definition inflate.c:1586
unsigned char LICE_pixel_chan
Definition lice.h:55
unsigned int LICE_pixel
Definition lice.h:54
LICE_FUNC_DEF_DECL void(* __LICE_DashedLine)(LICE_IBitmap *dest, int x1, int y1, int x2, int y2, int on, int off, LICE_pixel color, float alpha, int mode, bool aa)
Definition lice_import.h:14
LICE_FUNC_DEF_DECL void(* __LICE_Copy)(LICE_IBitmap *dest, LICE_IBitmap *src)
Definition lice_import.h:28
LICE_FUNC_DEF_DECL void(* __LICE_DrawRect)(LICE_IBitmap *dest, int x, int y, int w, int h, LICE_pixel color, float alpha, int mode)
Definition lice_import.h:16
LICE_FUNC_DEF_DECL void(* __LICE_PutPixel)(LICE_IBitmap *dest, int x, int y, LICE_pixel color, float alpha, int mode)
Definition lice_import.h:11
LICE_FUNC_DEF_DECL void(* __LICE_Arc)(LICE_IBitmap *dest, float cx, float cy, float r, float alo, float ahi, LICE_pixel color, float alpha, int mode, bool aa)
Definition lice_import.h:25
LICE_FUNC_DEF_DECL void(* __LICE_Blit)(LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, float alpha, int mode)
Definition lice_import.h:21
LICE_FUNC_DEF_DECL void(* __LICE_FillConvexPolygon)(LICE_IBitmap *dest, int *x, int *y, int npoints, LICE_pixel color, float alpha, int mode)
Definition lice_import.h:27
LICE_FUNC_DEF_DECL void(* __LICE_RotatedBlit)(LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int dstw, int dsth, float srcx, float srcy, float srcw, float srch, float angle, bool cliptosourcerect, float alpha, int mode, float rotxcent, float rotycent)
Definition lice_import.h:22
LICE_FUNC_DEF_DECL void(* __LICE_ScaledBlit)(LICE_IBitmap *dest, LICE_IBitmap *src, int dstx, int dsty, int dstw, int dsth, float srcx, float srcy, float srcw, float srch, float alpha, int mode)
Definition lice_import.h:31
LICE_FUNC_DEF_DECL void(* __LICE_FLine)(LICE_IBitmap *dest, float x1, float y1, float x2, float y2, LICE_pixel color, float alpha, int mode, bool aa)
Definition lice_import.h:13
LICE_FUNC_DEF_DECL void(* __LICE_FillTriangle)(LICE_IBitmap *dest, int x1, int y1, int x2, int y2, int x3, int y3, LICE_pixel color, float alpha, int mode)
Definition lice_import.h:24
#define LICE_FUNC_DEF_DECL
Definition lice_import.h:6
LICE_FUNC_DEF_DECL void(* __LICE_Line)(LICE_IBitmap *dest, int x1, int y1, int x2, int y2, LICE_pixel color, float alpha, int mode, bool aa)
Definition lice_import.h:12
LICE_FUNC_DEF_DECL void(* __LICE_DrawText)(LICE_IBitmap *bm, int x, int y, const char *string, LICE_pixel color, float alpha, int mode)
Definition lice_import.h:29
LICE_FUNC_DEF_DECL void(* __LICE_Clear)(LICE_IBitmap *dest, LICE_pixel color)
Definition lice_import.h:20
LICE_FUNC_DEF_DECL void(* __LICE_DrawGlyph)(LICE_IBitmap *dest, int x, int y, LICE_pixel color, LICE_pixel_chan *glyph, int glyph_w, int glyph_h, float alpha, int mode)
Definition lice_import.h:23
LICE_FUNC_DEF_DECL void(* __LICE_FillCircle)(LICE_IBitmap *dest, float cx, float cy, float r, LICE_pixel color, float alpha, int mode, bool aa)
Definition lice_import.h:19
LICE_FUNC_DEF_DECL void(* __LICE_FillTrapezoid)(LICE_IBitmap *dest, int x1a, int x1b, int y1, int x2a, int x2b, int y2, LICE_pixel color, float alpha, int mode)
Definition lice_import.h:26
LICE_FUNC_DEF_DECL void(* __LICE_MeasureText)(const char *string, int *w, int *h)
Definition lice_import.h:30
LICE_FUNC_DEF_DECL void(* __LICE_Circle)(LICE_IBitmap *dest, float cx, float cy, float r, LICE_pixel color, float alpha, int mode, bool aa)
Definition lice_import.h:18
LICE_FUNC_DEF_DECL void(* __LICE_BorderedRect)(LICE_IBitmap *dest, int x, int y, int w, int h, LICE_pixel bgcolor, LICE_pixel fgcolor, float alpha, int mode)
Definition lice_import.h:17
LICE_FUNC_DEF_DECL void(* __LICE_FillRect)(LICE_IBitmap *dest, int x, int y, int w, int h, LICE_pixel color, float alpha, int mode)
Definition lice_import.h:15
png_structrp int mode
Definition png.h:1139
int r
Definition crypt.c:458
uch h[RAND_HEAD_LEN]
Definition crypt.c:459
typedef int(UZ_EXP MsgFn)()
#define void
Definition unzip.h:396