Main > Programming > Libraries >

Tk_CreateImageType 804.027

Tk_CreateImageType 804.027

Sponsored Links

Tk_CreateImageType 804.027 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 5.7 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 842
Date added: 2007-07-10
Publisher: Nick Ing-Simmons

Tk_CreateImageType 804.027 description

Tk_CreateImageType is a Perl module to define new kind of image.

SYNOPSIS

#include < tk.h >

Tk_CreateImageType(typePtr) ClientData

Tk_GetImageMasterData(interp, name, typePtrPtr)

ARGUMENTS

Tk_ImageType *typePtr (in)

Structure that defines the new type of image. Must be static: a pointer to this structure is retained by the image code.

Tcl_Interp *interp (in)

Interpreter in which image was created.

char *name (in)

Name of existing image.

Tk_ImageType **typePtrPtr (out)

Points to word in which to store a pointer to type information for the given image, if it exists.

Tk_CreateImageType is invoked to define a new kind of image. An image type corresponds to a particular value of the type argument for the image create command. There may exist any number of different image types, and new types may be defined dynamically by calling Tk_CreateImageType. For example, there might be one type for 2-color bitmaps, another for multi-color images, another for dithered images, another for video, and so on.

The code that implements a new image type is called an image manager. It consists of a collection of procedures plus three different kinds of data structures. The first data structure is a Tk_ImageType structure, which contains the name of the image type and pointers to five procedures provided by the image manager to deal with images of this type:

typedef struct Tk_ImageType {
char *name;
Tk_ImageCreateProc *createProc;
Tk_ImageGetProc *getProc;
Tk_ImageDisplayProc *displayProc;
Tk_ImageFreeProc *freeProc;
Tk_ImageDeleteProc *deleteProc;
} Tk_ImageType;

The fields of this structure will be described in later subsections of this entry.
The second major data structure manipulated by an image manager is called an image master; it contains overall information about a particular image, such as the values of the configuration options specified in an image create command. There will usually be one of these structures for each invocation of the image create command.

The third data structure related to images is an image instance. There will usually be one of these structures for each usage of an image in a particular widget. It is possible for a single image to appear simultaneously in multiple widgets, or even multiple times in the same widget. Furthermore, different instances may be on different screens or displays. The image instance data structure describes things that may vary from instance to instance, such as colors and graphics contexts for redisplay. There is usually one instance structure for each -image option specified for a widget or canvas item.

Tk_CreateImageType 804.027 Screenshot

Advertisements

Tk_CreateImageType 804.027 Keywords

Bookmark Tk_CreateImageType 804.027

Hyperlink code:
Link for forum:

Tk_CreateImageType 804.027 Copyright

WareSeeker periodically updates pricing and software information of Tk_CreateImageType 804.027 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Tk_CreateImageType 804.027 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Tk_CreateItemType is a Perl module that define new kind of canvas item. Free Download
Tk::Tiler is a scrollable frame with sub-widgets arranged into rows. Free Download
Tk::event contains miscellaneous event facilities: define virtual events and generate events. Free Download
Tk::Canvas Perl module can create and manipulate Canvas widgets. Free Download
Tk::Image::Cut is a Perl extension for a graphic user interface to cut pictures. Free Download
Tk::form is a Perl module with a geometry manager based on attachment rules. Free Download
Tk::Adjuster module will allow size of packed widgets to be adjusted by user. Free Download
Tk::bindtags can determine which bindings apply to a window, and order of evaluation. Free Download