Lines Matching refs:text_info
505 XWidgetInfo *text_info) in XDrawMatteText() argument
533 text_info->x,text_info->y,text_info->width,text_info->height); in XDrawMatteText()
534 if (text_info->text == (char *) NULL) in XDrawMatteText()
536 XSetTextColor(display,window_info,text_info->highlight); in XDrawMatteText()
538 x=text_info->x+(QuantumMargin >> 2); in XDrawMatteText()
539 y=text_info->y+font_info->ascent+(text_info->height >> 2); in XDrawMatteText()
540 width=text_info->width-(QuantumMargin >> 1); in XDrawMatteText()
542 if (*text_info->text == '\0') in XDrawMatteText()
554 crop_info.width=(unsigned short) text_info->width; in XDrawMatteText()
555 crop_info.height=(unsigned short) text_info->height; in XDrawMatteText()
556 crop_info.x=text_info->x; in XDrawMatteText()
557 crop_info.y=text_info->y; in XDrawMatteText()
561 if (text_info->cursor < text_info->marker) in XDrawMatteText()
562 text_info->marker=text_info->cursor; in XDrawMatteText()
565 text=text_info->marker; in XDrawMatteText()
566 if (XTextWidth(font_info,(char *) text,(int) (text_info->cursor-text)) > in XDrawMatteText()
569 text=text_info->text; in XDrawMatteText()
573 (text_info->cursor-text-i)); in XDrawMatteText()
577 text_info->marker=(char *) text+i; in XDrawMatteText()
583 if (text_info->highlight == MagickFalse) in XDrawMatteText()
588 x,y,text_info->marker,Extent(text_info->marker)); in XDrawMatteText()
595 width=WidgetTextWidth(font_info,text_info->marker); in XDrawMatteText()
602 window_info->highlight_context,x,y,text_info->marker, in XDrawMatteText()
603 Extent(text_info->marker)); in XDrawMatteText()
606 x+=XTextWidth(font_info,text_info->marker,(int) in XDrawMatteText()
607 (text_info->cursor-text_info->marker)); in XDrawMatteText()
988 XWidgetInfo *text_info) in XDrawWidgetText() argument
1011 if (text_info->raised) in XDrawWidgetText()
1012 (void) XClearArea(display,window_info->id,text_info->x,text_info->y, in XDrawWidgetText()
1013 text_info->width,text_info->height,MagickFalse); in XDrawWidgetText()
1016 (void) XFillRectangle(display,window_info->id,widget_context,text_info->x, in XDrawWidgetText()
1017 text_info->y,text_info->width,text_info->height); in XDrawWidgetText()
1020 if (text_info->text == (char *) NULL) in XDrawWidgetText()
1022 if (*text_info->text == '\0') in XDrawWidgetText()
1028 crop_info.width=(unsigned short) text_info->width; in XDrawWidgetText()
1029 crop_info.height=(unsigned short) text_info->height; in XDrawWidgetText()
1030 crop_info.x=text_info->x; in XDrawWidgetText()
1031 crop_info.y=text_info->y; in XDrawWidgetText()
1035 width=WidgetTextWidth(font_info,text_info->text); in XDrawWidgetText()
1036 x=text_info->x+(QuantumMargin >> 1); in XDrawWidgetText()
1037 if (text_info->center) in XDrawWidgetText()
1038 x=text_info->x+(text_info->width >> 1)-(width >> 1); in XDrawWidgetText()
1039 if (text_info->raised) in XDrawWidgetText()
1040 if (width > (text_info->width-QuantumMargin)) in XDrawWidgetText()
1041 x+=(text_info->width-QuantumMargin-width); in XDrawWidgetText()
1043 y=text_info->y+((text_info->height-height) >> 1)+font_info->ascent; in XDrawWidgetText()
1045 (void) XDrawString(display,window_info->id,widget_context,x,y,text_info->text, in XDrawWidgetText()
1046 Extent(text_info->text)); in XDrawWidgetText()
1048 if (x < text_info->x) in XDrawWidgetText()
1050 text_info->x,text_info->y,text_info->x,text_info->y+text_info->height-1); in XDrawWidgetText()
1087 static void XEditText(Display *display,XWidgetInfo *text_info, in XEditText() argument
1095 if (text_info->highlight) in XEditText()
1100 *text_info->text='\0'; in XEditText()
1101 text_info->cursor=text_info->text; in XEditText()
1102 text_info->marker=text_info->text; in XEditText()
1103 text_info->highlight=MagickFalse; in XEditText()
1108 if (text_info->cursor != text_info->text) in XEditText()
1110 text_info->cursor--; in XEditText()
1111 (void) memmove(text_info->cursor,text_info->cursor+1, in XEditText()
1112 strlen(text_info->cursor+1)+1); in XEditText()
1113 text_info->highlight=MagickFalse; in XEditText()
1123 if (text_info->cursor == text_info->text) in XEditText()
1125 text_info->cursor--; in XEditText()
1134 if (text_info->cursor == (text_info->text+Extent(text_info->text))) in XEditText()
1136 text_info->cursor++; in XEditText()
1152 if ((Extent(text_info->text)+1) >= (int) MagickPathExtent) in XEditText()
1156 if (text_info->highlight) in XEditText()
1161 *text_info->text='\0'; in XEditText()
1162 text_info->cursor=text_info->text; in XEditText()
1163 text_info->marker=text_info->text; in XEditText()
1164 text_info->highlight=MagickFalse; in XEditText()
1169 q=text_info->text+Extent(text_info->text)+strlen(text); in XEditText()
1170 for (i=0; i <= Extent(text_info->cursor); i++) in XEditText()
1177 *text_info->cursor++=(*p++); in XEditText()
1677 text_info; in XColorBrowserWidget() local
1890 XGetWidgetInfo(text,&text_info); in XColorBrowserWidget()
1891 text_info.center=MagickFalse; in XColorBrowserWidget()
1892 text_info.width=reply_info.width; in XColorBrowserWidget()
1893 text_info.height=height; in XColorBrowserWidget()
1894 text_info.x=list_info.x-(QuantumMargin >> 1); in XColorBrowserWidget()
1895 text_info.y=QuantumMargin; in XColorBrowserWidget()
1912 y=text_info.y+((text_info.height-height) >> 1)+font_info->ascent; in XColorBrowserWidget()
1916 (void) CopyMagickString(text_info.text,glob_pattern,MagickPathExtent); in XColorBrowserWidget()
1917 XDrawWidgetText(display,&windows->widget,&text_info); in XColorBrowserWidget()
2000 (void) CopyMagickString(text_info.text,glob_pattern,MagickPathExtent); in XColorBrowserWidget()
2001 XDrawWidgetText(display,&windows->widget,&text_info); in XColorBrowserWidget()
3678 text_info; in XDialogWidget() local
3799 XGetWidgetInfo(query,&text_info); in XDialogWidget()
3800 text_info.width=reply_info.width; in XDialogWidget()
3801 text_info.height=height; in XDialogWidget()
3802 text_info.x=reply_info.x-(QuantumMargin >> 1); in XDialogWidget()
3803 text_info.y=QuantumMargin; in XDialogWidget()
3804 text_info.center=MagickFalse; in XDialogWidget()
3812 XDrawWidgetText(display,&windows->widget,&text_info); in XDialogWidget()
4281 text_info, in XFileBrowserWidget() local
4501 XGetWidgetInfo(text,&text_info); in XFileBrowserWidget()
4502 text_info.center=MagickFalse; in XFileBrowserWidget()
4503 text_info.width=reply_info.width; in XFileBrowserWidget()
4504 text_info.height=height; in XFileBrowserWidget()
4505 text_info.x=list_info.x-(QuantumMargin >> 1); in XFileBrowserWidget()
4506 text_info.y=QuantumMargin; in XFileBrowserWidget()
4523 y=text_info.y+((text_info.height-height) >> 1)+font_info->ascent; in XFileBrowserWidget()
4527 (void) CopyMagickString(text_info.text,working_path,MagickPathExtent); in XFileBrowserWidget()
4528 (void) ConcatenateMagickString(text_info.text,DirectorySeparator, in XFileBrowserWidget()
4530 (void) ConcatenateMagickString(text_info.text,glob_pattern, in XFileBrowserWidget()
4532 XDrawWidgetText(display,&windows->widget,&text_info); in XFileBrowserWidget()
4606 (void) CopyMagickString(text_info.text,working_path,MagickPathExtent); in XFileBrowserWidget()
4607 (void) ConcatenateMagickString(text_info.text,DirectorySeparator, in XFileBrowserWidget()
4609 (void) ConcatenateMagickString(text_info.text,glob_pattern, in XFileBrowserWidget()
4611 XDrawWidgetText(display,&windows->widget,&text_info); in XFileBrowserWidget()
5540 text_info; in XFontBrowserWidget() local
5764 XGetWidgetInfo(text,&text_info); in XFontBrowserWidget()
5765 text_info.center=MagickFalse; in XFontBrowserWidget()
5766 text_info.width=reply_info.width; in XFontBrowserWidget()
5767 text_info.height=height; in XFontBrowserWidget()
5768 text_info.x=list_info.x-(QuantumMargin >> 1); in XFontBrowserWidget()
5769 text_info.y=QuantumMargin; in XFontBrowserWidget()
5786 y=text_info.y+((text_info.height-height) >> 1)+font_info->ascent; in XFontBrowserWidget()
5790 (void) CopyMagickString(text_info.text,glob_pattern,MagickPathExtent); in XFontBrowserWidget()
5791 XDrawWidgetText(display,&windows->widget,&text_info); in XFontBrowserWidget()
5895 (void) CopyMagickString(text_info.text,glob_pattern,MagickPathExtent); in XFontBrowserWidget()
5896 XDrawWidgetText(display,&windows->widget,&text_info); in XFontBrowserWidget()
6805 text_info; in XListBrowserWidget() local
6984 XGetWidgetInfo(query,&text_info); in XListBrowserWidget()
6985 text_info.width=reply_info.width; in XListBrowserWidget()
6986 text_info.height=height; in XListBrowserWidget()
6987 text_info.x=list_info.x-(QuantumMargin >> 1); in XListBrowserWidget()
6988 text_info.y=QuantumMargin; in XListBrowserWidget()
7004 XDrawWidgetText(display,window_info,&text_info); in XListBrowserWidget()
8998 *text_info; in XTextViewWidget() local
9036 text_info=(XFontStruct *) NULL; in XTextViewWidget()
9038 text_info=XBestFont(display,resource_info,MagickTrue); in XTextViewWidget()
9039 if (text_info == (XFontStruct *) NULL) in XTextViewWidget()
9040 text_info=windows->widget.font_info; in XTextViewWidget()
9043 if (WidgetTextWidth(text_info,(char *) textlist[i]) > text_width) in XTextViewWidget()
9044 text_width=(unsigned int) XTextWidth(text_info,(char *) textlist[i], in XTextViewWidget()
9049 height=(unsigned int) (text_info->ascent+text_info->descent); in XTextViewWidget()
9144 (double) text_info->ascent+text_info->descent+((text_info->ascent+ in XTextViewWidget()
9145 text_info->descent) >> 3))); in XTextViewWidget()
9172 (9*(text_info->ascent+text_info->descent)) >> 3; in XTextViewWidget()
9210 windows->widget.font_info=text_info; in XTextViewWidget()
9212 text_info->fid); in XTextViewWidget()
9214 text_info->fid); in XTextViewWidget()
9653 if (text_info != windows->widget.font_info) in XTextViewWidget()
9654 (void) XFreeFont(display,text_info); in XTextViewWidget()