Lines Matching refs:width
81 int width, height, fullWidth, fullHeight;
106 Tk_SizeOfImage(mbPtr->image, &width, &height);
109 Tk_SizeOfBitmap(mbPtr->display, mbPtr->bitmap, &width, &height);
112 imageWidth = width;
147 fullWidth = (width > mbPtr->textWidth ? width :
150 imageXOffset = (fullWidth - width)/2;
157 textXOffset = width + mbPtr->padX;
161 fullWidth = mbPtr->textWidth + mbPtr->padX + width;
170 fullWidth = (width > mbPtr->textWidth ? width :
175 imageXOffset = (fullWidth - width)/2;
189 Tk_RedrawImage(mbPtr->image, 0, 0, width, height, pixmap,
194 gc, 0, 0, (unsigned) width, (unsigned) height,
205 width + mbPtr->indicatorWidth, height, &x, &y);
209 Tk_RedrawImage(mbPtr->image, 0, 0, width, height, pixmap,
214 gc, 0, 0, (unsigned) width, (unsigned) height,
354 int width, height, mm, pixels;
361 width = 0;
368 Tk_SizeOfImage(mbPtr->image, &width, &height);
371 Tk_SizeOfBitmap(mbPtr->display, mbPtr->bitmap, &width, &height);
401 width = (width > txtWidth ? width : txtWidth);
407 width += txtWidth + mbPtr->padX;
413 width = (width > txtWidth ? width : txtWidth);
419 if (mbPtr->width > 0) {
420 width = mbPtr->width;
425 width += 2*mbPtr->padX;
429 if (mbPtr->width > 0) {
430 width = mbPtr->width;
436 width = txtWidth;
438 if (mbPtr->width > 0) {
439 width = mbPtr->width * avgWidth;
448 width += 2*mbPtr->padX;
458 width += mbPtr->indicatorWidth;
464 Tk_GeometryRequest(mbPtr->tkwin, (int) (width + 2*mbPtr->inset),