Lines Matching defs:text

41     char *text;			/* Text to display in button (malloc'ed)
43 int numChars; /* # of characters in text. */
49 * then text and textVar and underline
52 * NULL. If non-NULL, bitmap, text, and
85 XFontStruct *fontPtr; /* Information about text font, or NULL. */
92 GC normalTextGC; /* GC for drawing text in normal mode. */
93 GC activeTextGC; /* GC for drawing text in active mode (NULL
95 Pixmap gray; /* Pixmap for displaying disabled text/icon if
99 * draw button text or icon. Otherwise
100 * text or icon is drawn with normalGC and
103 int leftBearing; /* Distance from text origin to leftmost drawn
105 int rightBearing; /* Amount text sticks right from its origin. */
109 * for window, in characters for text and in
111 * size of the text string or bitmap is
116 int padX, padY; /* Extra space around text or bitmap (pixels
118 Tk_Anchor anchor; /* Where text/bitmap should be displayed
120 Tk_Justify justify; /* Justification to use for multi-line text. */
121 int textWidth; /* Width needed to display text as requested,
123 int textHeight; /* Height needed to display text as requested,
254 {TK_CONFIG_STRING, "-text", "text", "Text",
255 DEF_MENUBUTTON_TEXT, Tk_Offset(MenuButton, text), 0},
350 mbPtr->text = NULL;
551 * Configuration information, such as text string, colors, font,
702 Tcl_SetVar(interp, mbPtr->textVarName, mbPtr->text,
705 if (mbPtr->text != NULL) {
706 ckfree(mbPtr->text);
708 mbPtr->text = (char *) ckalloc((unsigned) (strlen(value) + 1));
709 strcpy(mbPtr->text, value);
818 * Display image or bitmap or text for button.
887 mbPtr->text, mbPtr->numChars, x, y, mbPtr->textWidth,
1072 * After changes in a menu button's text or bitmap, this procedure
1109 mbPtr->numChars = strlen(mbPtr->text);
1110 TkComputeTextGeometry(mbPtr->fontPtr, mbPtr->text,
1156 * The text displayed in the menu button will change to match the
1181 Tcl_SetVar(interp, mbPtr->textVarName, mbPtr->text,
1194 if (mbPtr->text != NULL) {
1195 ckfree(mbPtr->text);
1197 mbPtr->text = (char *) ckalloc((unsigned) (strlen(value) + 1));
1198 strcpy(mbPtr->text, value);