| 1 |
/* |
| 2 |
Copyright (c) 1995-2004 Nick Ing-Simmons. All rights reserved. |
| 3 |
This program is free software; you can redistribute it and/or |
| 4 |
modify it under the same terms as Perl itself. |
| 5 |
*/ |
| 6 |
#define PERL_NO_GET_CONTEXT |
| 7 |
#include <EXTERN.h> |
| 8 |
#include <perl.h> |
| 9 |
#include <XSUB.h> |
| 10 |
|
| 11 |
#include "tkGlue.def" |
| 12 |
|
| 13 |
#include "pTk/tkPort.h" |
| 14 |
#include "pTk/tkInt.h" |
| 15 |
#include "pTk/tixPort.h" |
| 16 |
#include "pTk/tixInt.h" |
| 17 |
#include "pTk/tixImgXpm.h" |
| 18 |
#include "tkGlue.h" |
| 19 |
#include "tkGlue.m" |
| 20 |
#include "pTk/tkVMacro.h" |
| 21 |
|
| 22 |
DECLARE_VTABLES; |
| 23 |
DECLARE_TIX; |
| 24 |
DECLARE_TIXXPM; |
| 25 |
|
| 26 |
extern Tk_ImageType tixPixmapImageType; |
| 27 |
|
| 28 |
static void Install _((char *, TkWindow *win)); |
| 29 |
|
| 30 |
static void |
| 31 |
Install(class,winPtr) |
| 32 |
char *class; |
| 33 |
TkWindow *winPtr; |
| 34 |
{ |
| 35 |
TkMainInfo *mainInfo = winPtr->mainPtr; |
| 36 |
if (mainInfo) |
| 37 |
{ |
| 38 |
Tcl_Interp *Et_Interp = mainInfo->interp; |
| 39 |
if (Et_Interp) |
| 40 |
{ |
| 41 |
#if defined(WIN32) && !defined(__GNUC__) |
| 42 |
#pragma warning(disable: 4305) |
| 43 |
#endif |
| 44 |
#define UNSIGNED_CHAR unsigned char |
| 45 |
#include "pTk/tixBitmaps.h" |
| 46 |
} |
| 47 |
} |
| 48 |
} |
| 49 |
|
| 50 |
|
| 51 |
MODULE = Tk::Pixmap PACKAGE = Tk::Pixmap |
| 52 |
|
| 53 |
PROTOTYPES: DISABLE |
| 54 |
|
| 55 |
void |
| 56 |
Install(class,win) |
| 57 |
char * class |
| 58 |
TkWindow * win |
| 59 |
|
| 60 |
BOOT: |
| 61 |
{ |
| 62 |
IMPORT_VTABLES; |
| 63 |
IMPORT_TIX; |
| 64 |
IMPORT_TIXXPM; |
| 65 |
Tk_CreateImageType(&tixPixmapImageType); |
| 66 |
} |