| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
#ifndef BLT_TILE_H |
| 26 |
#define BLT_TILE_H |
| 27 |
|
| 28 |
#define TILE_THREAD_KEY "BLT Tile Data" |
| 29 |
#define TILE_MAGIC ((unsigned int) 0x46170277) |
| 30 |
|
| 31 |
typedef struct Blt_TileClientStruct *Blt_Tile; |
| 32 |
|
| 33 |
typedef void (Blt_TileChangedProc) _ANSI_ARGS_((ClientData clientData, |
| 34 |
Blt_Tile tile)); |
| 35 |
|
| 36 |
extern int Blt_GetTile _ANSI_ARGS_((Tcl_Interp *interp, Tk_Window tkwin, |
| 37 |
char *imageName, Blt_Tile *tilePtr)); |
| 38 |
|
| 39 |
extern int Blt_TileFlags _ANSI_ARGS_((Blt_Tile tile)); |
| 40 |
|
| 41 |
extern void Blt_FreeTile _ANSI_ARGS_((Blt_Tile tile)); |
| 42 |
extern void Blt_FixedTile _ANSI_ARGS_((Blt_Tile tile)); |
| 43 |
|
| 44 |
extern char *Blt_NameOfTile _ANSI_ARGS_((Blt_Tile tile)); |
| 45 |
|
| 46 |
extern void Blt_SetTileChangedProc _ANSI_ARGS_((Blt_Tile tile, |
| 47 |
Blt_TileChangedProc *changeProc, ClientData clientData)); |
| 48 |
|
| 49 |
extern void Blt_TileRectangle _ANSI_ARGS_((Tk_Window tkwin, Drawable drawable, |
| 50 |
Blt_Tile tile, int x, int y, unsigned int width, unsigned int height)); |
| 51 |
extern void Blt_TileRectangles _ANSI_ARGS_((Tk_Window tkwin, Drawable drawable, |
| 52 |
Blt_Tile tile, XRectangle *rectArr, int nRects)); |
| 53 |
extern void Blt_TilePolygon _ANSI_ARGS_((Tk_Window tkwin, Drawable drawable, |
| 54 |
Blt_Tile tile, XPoint *pointArr, int nPoints)); |
| 55 |
extern Pixmap Blt_PixmapOfTile _ANSI_ARGS_((Blt_Tile tile)); |
| 56 |
|
| 57 |
extern int Blt_HasTile _ANSI_ARGS_((Blt_Tile tile)); |
| 58 |
|
| 59 |
extern void Blt_SizeOfTile _ANSI_ARGS_((Blt_Tile tile, int *widthPtr, |
| 60 |
int *heightPtr)); |
| 61 |
|
| 62 |
extern void Blt_SetTileOrigin _ANSI_ARGS_((Tk_Window tkwin, Blt_Tile tile, |
| 63 |
int x, int y)); |
| 64 |
|
| 65 |
extern void Blt_SetTSOrigin _ANSI_ARGS_((Tk_Window tkwin, Blt_Tile tile, |
| 66 |
int x, int y)); |
| 67 |
|
| 68 |
extern void Blt_Fill3DRectangleTile _ANSI_ARGS_((Tk_Window tkwin, |
| 69 |
Drawable drawable, Tk_3DBorder border, int x, int y, int width, int height, |
| 70 |
int borderWidth, int relief, Blt_Tile tile, int scrollTile, int flags)); |
| 71 |
|
| 72 |
#endif |