pixmap(n)
πΈ NAME πΈ
okay so bestie, pixmap(n) is literally the Tix Built-In Commands page for the pixmap image type β the one that handles the XPM file format. iconic behavior only β¨
β¨ SYNOPSIS β¨
image create pixmap ?name? ?options?
π DESCRIPTION π
XPM is a popular X Window image file format for storing color icons. The pixmap image type defined by the Tix(n) library can be used to create color images using XPM files. slay π
π CREATING PIXMAPS π
Like all images, pixmaps are created using the image create command. Pixmaps support the following options:
-data stringβ Specifies the contents of the source pixmap as a string. The string must adhere to the XPM file format (e.g., as generated by thepixmap(1)program). If both the-dataand-fileoptions are specified, the-dataoption takes precedence. Please note that the XPM file parsing code in the xpm library is extremely fragile. The first line of the string must be"/* XPM */"β otherwise a segmatation fault will be caused (their spelling, not mine ππ).-file nameβnamegives the name of a file whose contents define the source pixmap. The file must adhere to the XPM file format (e.g., as generated by thepixmap(1)program).
π IMAGE COMMAND π
When a pixmap image is created, Tk also creates a new command whose name is the same as the image. This command may be used to invoke various operations on the image. It has the following general form:
imageName option ?arg arg ...?
Option and the args determine the exact behavior of the command. The following commands are possible for pixmap images:
imageName cget optionβ Returns the current value of the configuration option given by option. Option may have any of the values accepted by theimage create pixmapcommand.imageName configure ?option? ?value option value ...?β Query or modify the configuration options for the image. If no option is specified, returns a list describing all of the available options for imageName (seeTk_ConfigureInfofor information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by theimage create pixmapcommand.
π¦ KEYWORDS π¦
Tix 4.0 Β· pixmap(n) β that's the footer energy, bestie, mwah πβ¨π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: tix 8.4.3-160000.2.2 Β· BSD-3-Clause
- Copyright (c) 1993-1999 Ioi Kim Lam
- Copyright (c) 2000-2001 Tix Project Group
- (c) 1990 The Regents of the University of California
- (c) 1994-1995 Sun Microsystems, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms