#include <tcl.h>
#include <tk.h>
#include <string.h>
#include <sadie.h>
#include "tclsadie.h"
Go to the source code of this file.
Functions | |
int | Sadie_Image_Init (Tcl_Interp *interp) |
Define a new Tk image format that handles SADIE images. | |
Variables | |
Tk_PhotoImageFormat | tkImgFmtSADIE |
The structure Tk uses to hold application-provided callback pointers. |
The image format support within Tk is extensible without requiring any changes to the installed Tk or Tcl libraries. Applications can use certain data structures pre-defined within the Tk API to register their own image handling callbacks with Tk, so here we define callbacks to handle SADIE images. It isn't necessary to define all possible callbacks, and for the string interface we can get away with using the image ID strings rather than strings that directly encode the image content. The only hidden complications arise from changes to the Tk API after version 8.3: newer versions of the image handling interface break older code, and whether the image format is upper or lower case starts to have significance. Please refer to any documentation for the Tk_CreatePhotoImageFormat
Tk function for more information.
Definition in file Sadie_Image.c.
|
Define a new Tk image format that handles SADIE images.
Definition at line 504 of file Sadie_Image.c. References tkImgFmtSADIE. Referenced by Tcl_AppInit(). |
|
Initial value:
{
"sadie",
NULL,
MatchSADIE,
NULL,
ReadSADIE,
WriteSADIE,
NULL
}
Definition at line 65 of file Sadie_Image.c. Referenced by Sadie_Image_Init(). |