Searched defs:fontPtr (Results 1 - 11 of 11) sorted by relevance

/ast/src/lib/libtk/generic/
H A DtkFont.c124 static void SetFontMetrics _ANSI_ARGS_((TkFont *fontPtr));
161 register TkFont *fontPtr;
177 fontPtr = (TkFont *) Tcl_GetHashValue(nameHashPtr);
178 fontPtr->refCount++;
179 return fontPtr->fontStructPtr;
194 fontPtr = (TkFont *) ckalloc(sizeof(TkFont));
195 fontPtr->display = nameKey.display;
196 fontPtr->fontStructPtr = fontStructPtr;
197 fontPtr->refCount = 1;
198 fontPtr
160 register TkFont *fontPtr; local
235 TkFont *fontPtr; local
277 register TkFont *fontPtr; local
505 register TkFont *fontPtr; local
658 register TkFont *fontPtr; local
[all...]
H A DtkMessage.c63 XFontStruct *fontPtr; /* Information about text font, or NULL. */ member in struct:__anon411
131 DEF_MESSAGE_FONT, Tk_Offset(Message, fontPtr), 0},
242 msgPtr->fontPtr = NULL;
470 gcValues.font = msgPtr->fontPtr->fid;
480 msgPtr->padX = msgPtr->fontPtr->ascent/2;
484 msgPtr->padY = msgPtr->fontPtr->ascent/4;
567 p += TkMeasureChars(msgPtr->fontPtr, p,
591 height = numLines * (msgPtr->fontPtr->ascent
592 + msgPtr->fontPtr->descent) + 2*msgPtr->inset
607 msgPtr->msgHeight = numLines * (msgPtr->fontPtr
[all...]
H A DtkMenubutton.c85 XFontStruct *fontPtr; /* Information about text font, or NULL. */ member in struct:__anon410
220 DEF_MENUBUTTON_FONT, Tk_Offset(MenuButton, fontPtr), 0},
366 mbPtr->fontPtr = NULL;
612 gcValues.font = mbPtr->fontPtr->fid;
630 gcValues.font = mbPtr->fontPtr->fid;
640 gcValues.font = mbPtr->fontPtr->fid;
886 TkDisplayText(mbPtr->display, pixmap, mbPtr->fontPtr,
1110 TkComputeTextGeometry(mbPtr->fontPtr, mbPtr->text,
1116 width = mbPtr->width * XTextWidth(mbPtr->fontPtr, "0", 1);
1119 height = mbPtr->height * (mbPtr->fontPtr
[all...]
H A DtkButton.c90 XFontStruct *fontPtr; /* Information about text font, or NULL. */ member in struct:__anon390
275 DEF_BUTTON_FONT, Tk_Offset(Button, fontPtr),
555 butPtr->fontPtr = NULL;
911 gcValues.font = butPtr->fontPtr->fid;
931 gcValues.font = butPtr->fontPtr->fid;
943 gcValues.font = butPtr->fontPtr-> fid;
1284 TkDisplayText(butPtr->display, pixmap, butPtr->fontPtr,
1571 TkComputeTextGeometry(butPtr->fontPtr, butPtr->text,
1577 width = butPtr->width * XTextWidth(butPtr->fontPtr, "0", 1);
1580 height = butPtr->height * (butPtr->fontPtr
[all...]
H A DtkCanvText.c68 XFontStruct *fontPtr; /* Font for drawing text. */ member in struct:TextItem
100 Tk_Offset(TextItem, fontPtr), 0},
241 textPtr->fontPtr = NULL;
370 if ((textPtr->color != NULL) && (textPtr->fontPtr != NULL)) {
372 gcValues.font = textPtr->fontPtr->fid;
465 if (textPtr->fontPtr != NULL) {
466 Tk_FreeFontStruct(textPtr->fontPtr);
524 XCharStruct *maxBoundsPtr = &textPtr->fontPtr->max_bounds;
546 numChars = TkMeasureChars(textPtr->fontPtr, p,
588 lineHeight = textPtr->fontPtr
[all...]
H A DtkEntry.c53 XFontStruct *fontPtr; /* Information about text font, or NULL. */ member in struct:__anon396
196 DEF_ENTRY_FONT, Tk_Offset(Entry, fontPtr), 0},
374 entryPtr->fontPtr = NULL;
483 TkMeasureChars(entryPtr->fontPtr,
489 TkMeasureChars(entryPtr->fontPtr,
497 height = entryPtr->fontPtr->ascent + entryPtr->fontPtr->descent;
927 gcValues.font = entryPtr->fontPtr->fid;
937 gcValues.font = entryPtr->fontPtr->fid;
981 entryPtr->avgWidth = XTextWidth(entryPtr->fontPtr, "
[all...]
H A DtkListbox.c86 XFontStruct *fontPtr; /* Information about text font, or NULL. */ member in struct:__anon409
217 DEF_LISTBOX_FONT, Tk_Offset(Listbox, fontPtr), 0},
374 listPtr->fontPtr = NULL;
502 listPtr->fontPtr->ascent + listPtr->fontPtr->descent);
977 gcValues.font = listPtr->fontPtr->fid;
987 gcValues.font = listPtr->fontPtr->fid;
1144 y += listPtr->fontPtr->ascent + listPtr->selBorderWidth;
1158 y + listPtr->fontPtr->descent - 1,
1230 listPtr->xScrollUnit = XTextWidth(listPtr->fontPtr, "
[all...]
H A DtkMenu.c79 XFontStruct *fontPtr; /* Text font for menu entries. NULL means member in struct:MenuEntry
186 DEF_MENU_ENTRY_FONT, Tk_Offset(MenuEntry, fontPtr),
271 XFontStruct *fontPtr; /* Text font for menu entries. */ member in struct:Menu
378 DEF_MENU_FONT, Tk_Offset(Menu, fontPtr), 0},
526 menuPtr->fontPtr = NULL;
1179 gcValues.font = menuPtr->fontPtr->fid;
1211 gcValues.font = menuPtr->fontPtr->fid;
1395 if ((mePtr->fontPtr != NULL) || (mePtr->border != NULL)
1403 gcValues.font = (mePtr->fontPtr != NULL) ? mePtr->fontPtr
1562 XFontStruct *fontPtr; local
1732 XFontStruct *fontPtr; local
[all...]
H A DtkScale.c97 XFontStruct *fontPtr; /* Information about text font, or NULL. */ member in struct:__anon415
243 DEF_SCALE_FONT, Tk_Offset(Scale, fontPtr),
424 scalePtr->fontPtr = NULL;
809 gcValues.font = scalePtr->fontPtr->fid;
975 lineHeight = scalePtr->fontPtr->ascent + scalePtr->fontPtr->descent;
1010 XTextExtents(scalePtr->fontPtr, valueString, (int) strlen(valueString),
1014 XTextExtents(scalePtr->fontPtr, valueString, (int) strlen(valueString),
1029 + scalePtr->fontPtr->ascent/2;
1048 XTextExtents(scalePtr->fontPtr, scalePt
[all...]
H A DtkText.h278 XFontStruct *fontPtr; /* Font for displaying text. NULL means member in struct:TkTextTag
461 XFontStruct *fontPtr; /* Default font for displaying text. */ member in struct:TkText
H A DtkTextDisp.c36 XFontStruct *fontPtr; /* Font for displaying text. */ member in struct:StyleValues
501 styleValues.fontPtr = textPtr->fontPtr;
536 if ((tagPtr->fontPtr != None) && (tagPtr->priority > fontPrio)) {
537 styleValues.fontPtr = tagPtr->fontPtr;
642 gcValues.font = styleValues.fontPtr->fid;
2948 lineHeight = textPtr->fontPtr->ascent + textPtr->fontPtr->descent;
3529 lineHeight = textPtr->fontPtr
4204 XFontStruct *fontPtr; local
[all...]

Completed in 51 milliseconds