Searched refs:width (Results 1 - 25 of 133) sorted by relevance

123456

/ast/src/lib/libtk/generic/
H A DtkUtil.c32 * A rectangle "width" pixels wide is drawn in "drawable",
39 Tk_DrawFocusHighlight(tkwin, gc, width, drawable)
44 int width; /* Width of the highlight ring, in pixels. */
52 rects[0].width = Tk_Width(tkwin);
53 rects[0].height = width;
55 rects[1].y = Tk_Height(tkwin) - width;
56 rects[1].width = Tk_Width(tkwin);
57 rects[1].height = width;
59 rects[2].y = width;
60 rects[2].width
[all...]
H A DtkBitmap.c43 int width, height; /* Dimensions of bitmap. */ member in struct:__anon385
80 int width, height; /* Dimensions of bitmap. */ member in struct:__anon388
101 int width, height; /* Dimensions of bitmap. */ member in struct:__anon389
153 int width, height;
187 (unsigned int *) &width, (unsigned int *) &height,
211 width = predefPtr->width;
215 (unsigned) width, (unsigned) height);
224 bitmapPtr->width = width;
152 int width, height; local
[all...]
H A DtkImgPPM.c45 int width, int height, int srcX, int srcY));
123 width, height, srcX, srcY)
131 int width, height; /* Dimensions of block of photo image to
162 if ((srcX + width) > fileWidth) {
163 width = fileWidth - srcX;
168 if ((width <= 0) || (height <= 0)
185 block.width = width;
188 Tk_PhotoExpand(imageHandle, destX + width, destY + height);
227 Tk_PhotoPutBlock(imageHandle, &block, destX, destY, width, nLine
[all...]
H A DtkImgPhoto.c147 int width, height; /* Dimensions of image. */ member in struct:PhotoMaster
200 int width, height; /* Dimensions of the pixmap. */ member in struct:PhotoInstance
276 int imageX, int imageY, int width, int height,
317 {TK_CONFIG_INT, "-width", (char *) NULL, (char *) NULL,
363 int width, int height));
385 int x, int y, int width, int height));
387 int x, int y, int width, int height));
537 int x, y, width, height;
638 if ((options.fromX2 > block.width) || (options.fromY2 > block.height)
639 || (options.fromX2 > block.width)
534 int x, y, width, height; local
[all...]
H A DtkImage.c62 int width, height; /* Last known dimensions for image. */ member in struct:ImageMaster
214 masterPtr->width = masterPtr->height = 1;
232 masterPtr->width, masterPtr->height, masterPtr->width,
321 } else if ((c == 'w') && (strncmp(argv[1], "width", length) == 0)) {
324 " width name\"", (char *) NULL);
334 sprintf(interp->result, "%d", masterPtr->width);
338 " or width", (char *) NULL);
365 Tk_ImageChanged(imageMaster, x, y, width, height, imageWidth,
371 int width, heigh
[all...]
H A DtkCanvBmap.c84 int x, int y, int width, int height));
372 int width, height;
389 &width, &height);
392 x -= width/2;
395 x -= width;
398 x -= width;
402 x -= width;
406 x -= width/2;
418 x -= width/2;
429 bmapPtr->header.x2 = x + width;
367 int width, height; local
384 &width, &height); local
714 int width, height, rowsAtOnce, rowsThisTime; local
730 &width, &height); local
[all...]
H A DtkCanvWind.c29 int width; /* Width to use for window (<= 0 means use member in struct:WindowItem
30 * window's requested width). */
32 * window's requested width). */
53 {TK_CONFIG_PIXELS, "-width", (char *) NULL, (char *) NULL,
54 "0", Tk_Offset(WindowItem, width), TK_CONFIG_DONT_SET_DEFAULT},
77 int x, int y, int width, int height));
183 winItemPtr->width = 0;
420 int width, height, x, y;
435 width = winItemPtr->width;
415 int width, height, x, y; local
529 int width, height; local
[all...]
H A DtkCanvImg.c60 int x, int y, int width, int height, int imgWidth,
81 int x, int y, int width, int height));
359 int width, height;
375 Tk_SizeOfImage(imgPtr->image, &width, &height);
378 x -= width/2;
381 x -= width;
384 x -= width;
388 x -= width;
392 x -= width/2;
404 x -= width/
354 int width, height; local
[all...]
H A DtkGeometry.c31 int width, height; /* Desired dimensions of slave. */ member in struct:MaintainSlave
158 * X gets very upset if a window requests a width or height of
186 * border of a given width and that child windows should not be
193 * The border width is recorded for the window, and all geometry
201 Tk_SetInternalBorder(tkwin, width)
203 int width; /* Width of internal border, in pixels. */
207 if (width == winPtr->internalBorderWidth) {
210 if (width < 0) {
211 width = 0;
213 winPtr->internalBorderWidth = width;
[all...]
H A DtkMenubutton.c80 int inset; /* Total width of all borders, including
106 char *widthString; /* Value of -width option. Malloc'ed. */
108 int width, height; /* If > 0, these specify dimensions to request member in struct:__anon410
261 {TK_CONFIG_STRING, "-width", "width", "Width",
280 int x, int y, int width, int height, int imgWidth,
378 mbPtr->width = 0;
379 mbPtr->width = 0;
722 &mbPtr->width) != TCL_OK) {
724 Tcl_AddErrorInfo(interp, "\n (processing -width optio
782 int width, height; local
1081 int width, height, mm, pixels; local
[all...]
/ast/src/cmd/std/
H A Dseq.sh44 [w:equal-width?equalize width by padding with leading zeroes.]
69 integer width=0 precision=0 n
72 (( n > width )) && width=$n
78 print -r -- "%0$width.${precision}f"
82 width= sep=$'\n' fmt= end=
93 width=1;;
104 if [[ $width ]]
105 then [[ $fmt ]] && err_exit "format string may not be specified when printing equal width string
[all...]
/ast/src/lib/libtk/library/demos/
H A Dbutton.tcl24 button $w.b1 -text "Peach Puff" -width 10 \
26 button $w.b2 -text "Light Blue" -width 10 \
28 button $w.b3 -text "Sea Green" -width 10 \
30 button $w.b4 -text "Yellow" -width 10 \
H A Darrow.tcl32 eval "$c create line $v(x1) $v(y) $v(x2) $v(y) -width [expr 10*$v(width)] \
36 set deltaY [expr 10*$v(c)+5*$v(width)]
39 $v(x2) $v(y) -width 2 -capstyle round -joinstyle round
49 eval "$c create rect [expr $v(x1)-5] [expr $v(y)-5*$v(width)-5] \
50 [expr $v(x1)+5] [expr $v(y)-5*$v(width)+5] $v(boxStyle) \
59 -width 2
62 -width $v(width) \
65 -width
[all...]
H A Dhscale.tcl26 canvas $w.frame.canvas -width 50 -height 50 -bd 0 -highlightthickness 0
35 proc setWidth {w width} {
36 incr width 21
37 set x2 [expr $width - 30]
41 $w coords poly 20 15 20 35 $x2 35 $x2 45 $width 25 $x2 5 $x2 15 20 15
42 $w coords line 20 15 20 35 $x2 35 $x2 45 $width 25 $x2 5 $x2 15 20 15
H A Dplot.tcl25 canvas $c -relief raised -width 450 -height 300
30 $c create line 100 250 400 250 -width 2
31 $c create line 100 250 100 50 -width 2
36 $c create line $x 250 $x 245 -width 2
41 $c create line 100 $y 105 $y -width 2
50 [expr $x+6] [expr $y+6] -width 1 -outline black \
H A Dimage2.tcl58 entry $w.dirName -width 30 -textvariable dirName
60 frame $w.spacer1 -height 3m -width 20
65 listbox $w.f.list -width 20 -height 10 -yscrollcommand "$w.f.scroll set"
73 frame $w.spacer2 -height 3m -width 20
/ast/src/lib/libtk/unix/
H A DtkUnixDraw.c58 TkScrollWindow(tkwin, gc, x, y, width, height, dx, dy, damageRgn)
61 int x, y, width, height; /* Position rectangle to be scrolled. */
70 x, y, (unsigned int) width, (unsigned int) height, x + dx, y + dy);
139 rect.width = eventPtr->xgraphicsexpose.width;
159 rect.width = eventPtr->xexpose.width;
/ast/src/lib/libtk/library/
H A Dmsgbox.tcl62 {abort -width 6 -text Abort -under 0}
63 {retry -width 6 -text Retry -under 0}
64 {ignore -width 6 -text Ignore -under 0}
69 {ok -width 6 -text OK -under 0}
77 {ok -width 6 -text OK -under 0}
78 {cancel -width 6 -text Cancel -under 0}
83 {retry -width 6 -text Retry -under 0}
84 {cancel -width 6 -text Cancel -under 0}
89 {yes -width 6 -text Yes -under 0}
90 {no -width
[all...]
/ast/src/lib/libcmd/
H A Dfold.c37 "each output line is the maximum width possible that does not "
42 "[+carriage-return?The current count of line width will be set "
45 "[+backspace?If positive, the current count of line width will be "
64 "[w:width]#[width:=80?Use a maximum line length of \awidth\a columns "
89 static void fold(Sfio_t *in, Sfio_t *out, register int width, const char *cont, size_t contsize, char *cols) argument
105 if(cols['\b']==0 && (n=sfvalue(in))<=width)
116 while((cp-first) > (width-col))
121 col = width-col;
145 if((cp-first) > (width
172 register int n, width=WIDTH; local
[all...]
/ast/src/cmd/dsslib/num_t/
H A Dnum_t.c128 if (format->width > size)
129 return format->width;
130 if ((e = s + format->width - 1) < s)
150 return format->width;
211 if (format->width > size)
212 return format->width;
215 e = s + format->width - 1;
245 return format->width;
259 if (format->width > size)
260 return format->width;
[all...]
/ast/src/cmd/dsslib/fix/
H A Dfix.c25 " variable width then the input file is used to estimate average and"
47 size_t width; member in struct:Field_s
71 if (fa->width < fb->width)
73 if (fa->width > fb->width)
161 if (field->width = variable->format.width)
166 else if (field->width = variable->type->format.width)
[all...]
/ast/src/cmd/tests/
H A Dtestdate.sh35 then width=${#d}
36 if (( width < 8 ))
38 elif (( width < 16 ))
40 elif (( width < 24 ))
42 elif (( width < 32 ))
/ast/src/lib/libast/tm/
H A Dtmxfmt.c110 int width; local
156 width = 0;
195 width = width * 10 + (c - '0');
263 cp = number(cp, ep, (long)(1900 + tm->tm_year) / 100, 2, width, pad);
266 cp = number(cp, ep, (long)tm->tm_mday, 2, width, pad);
272 cp = number(cp, ep, (long)tm->tm_mday, -2, width, pad);
300 cp = number(cp, ep, (long)n, c, width, pad);
303 cp = number(cp, ep, (long)tm->tm_hour, 2, width, pad);
311 cp = number(cp, ep, (long)n, 2, width, pa
[all...]
/ast/src/lib/libcs/
H A Dcspoll.c51 register int width; local
73 events = width = 0;
77 if (pp->fd > width)
78 width = pp->fd;
105 num = select(width + 1, rp, wp, ep, tp);
110 num = select(width + 1, rp, wp, ms);
/ast/src/cmd/builtin/
H A Dnl.c78 "[w:number-width]#[width:=6?\awidth\a is the number of characters to be used "
103 int width; member in struct:_nl_
127 int blank=0, width=pp->width+strlen(pp->sep); local
130 sfsprintf(format,sizeof(format),"%%-%dd%%s",pp->width);
132 sfsprintf(format,sizeof(format),"%%%dd%%s",pp->width);
134 sfsprintf(format,sizeof(format),"%%0%dd%%s",pp->width);
196 sfnputc(out,' ',width);
211 nl.width
[all...]

Completed in 44 milliseconds

123456