Lines Matching refs:aspect
6 * in a window according to a particular aspect ratio.
71 * compute width using aspect ratio below. */
72 int aspect; /* Desired aspect ratio for window
75 * from width and/or aspect. */
112 {TK_CONFIG_INT, "-aspect", "aspect", "Aspect",
113 DEF_MESSAGE_ASPECT, Tk_Offset(Message, aspect), 0},
249 msgPtr->aspect = 150;
509 * taking into account the desired aspect ratio for the
529 int aspect, lowerBound, upperBound;
534 * Compute acceptable bounds for the final aspect ratio.
537 aspect = msgPtr->aspect/10;
538 if (aspect < 5) {
539 aspect = 5;
541 lowerBound = msgPtr->aspect - aspect;
542 upperBound = msgPtr->aspect + aspect;
549 * the desired aspect ratio. Or, if the user gave an explicit
597 aspect = (100*(maxWidth + 2*msgPtr->inset + 2*msgPtr->padX))/height;
598 if (aspect < lowerBound) {
600 } else if (aspect > upperBound) {