diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-09 09:55:56 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-09-09 09:55:56 (GMT) |
commit | 9c82b94f7f8be2ebc6cf88f55d08d6e087cff5a5 (patch) | |
tree | 976f58bbb47262acff6f1ff2a3d3872665a22cc6 /generic/tkImgBmap.c | |
parent | 19d012df44dac9aaf5faa9b3beca5a6396ea21a8 (diff) | |
download | tk-9c82b94f7f8be2ebc6cf88f55d08d6e087cff5a5.zip tk-9c82b94f7f8be2ebc6cf88f55d08d6e087cff5a5.tar.gz tk-9c82b94f7f8be2ebc6cf88f55d08d6e087cff5a5.tar.bz2 |
TIP #581: More progress
Diffstat (limited to 'generic/tkImgBmap.c')
-rw-r--r-- | generic/tkImgBmap.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/generic/tkImgBmap.c b/generic/tkImgBmap.c index 8d51671..c6ab05d 100644 --- a/generic/tkImgBmap.c +++ b/generic/tkImgBmap.c @@ -14,7 +14,7 @@ #include "tkInt.h" /* - * The following data structure represents the master for a bitmap + * The following data structure represents the model for a bitmap * image: */ @@ -40,7 +40,7 @@ typedef struct BitmapModel { char *maskDataString; /* Value of -maskdata option (malloc'ed). */ struct BitmapInstance *instancePtr; /* First in list of all instances associated - * with this master. */ + * with this model. */ } BitmapModel; /* @@ -51,7 +51,7 @@ typedef struct BitmapModel { typedef struct BitmapInstance { int refCount; /* Number of instances that share this data * structure. */ - BitmapModel *modelPtr; /* Pointer to master for image. */ + BitmapModel *modelPtr; /* Pointer to model for image. */ Tk_Window tkwin; /* Window in which the instances will be * displayed. */ XColor *fg; /* Foreground color for displaying image. */ @@ -322,8 +322,8 @@ ImgBmapConfigureModel( * ImgBmapConfigureInstance -- * * This procedure is called to create displaying information for a bitmap - * image instance based on the configuration information in the master. - * It is invoked both when new instances are created and when the master + * image instance based on the configuration information in the model. + * It is invoked both when new instances are created and when the model * is reconfigured. * * Results: @@ -751,7 +751,7 @@ NextBitmapWord( static int ImgBmapCmd( - ClientData clientData, /* Information about the image master. */ + ClientData clientData, /* Information about the image model. */ Tcl_Interp *interp, /* Current interpreter. */ int objc, /* Number of arguments. */ Tcl_Obj *const objv[]) /* Argument objects. */ @@ -816,10 +816,10 @@ static ClientData ImgBmapGet( Tk_Window tkwin, /* Window in which the instance will be * used. */ - ClientData masterData) /* Pointer to our master structure for the + ClientData modelData) /* Pointer to our model structure for the * image. */ { - BitmapModel *modelPtr = masterData; + BitmapModel *modelPtr = modelData; BitmapInstance *instancePtr; /* @@ -993,7 +993,7 @@ ImgBmapFree( * * ImgBmapDelete -- * - * This procedure is called by the image code to delete the master + * This procedure is called by the image code to delete the model * structure for an image. * * Results: @@ -1007,10 +1007,10 @@ ImgBmapFree( static void ImgBmapDelete( - ClientData masterData) /* Pointer to BitmapModel structure for + ClientData modelData) /* Pointer to BitmapModel structure for * image. Must not have any more instances. */ { - BitmapModel *modelPtr = masterData; + BitmapModel *modelPtr = modelData; if (modelPtr->instancePtr != NULL) { Tcl_Panic("tried to delete bitmap image when instances still exist"); |