• Home
  • Raw
  • Download

Lines Matching refs:widget

1327   if (event->xany.window == windows->widget.id)  in XScreenEvent()
1330 windows->widget.mapped=MagickTrue; in XScreenEvent()
1332 windows->widget.mapped=MagickFalse; in XScreenEvent()
1712 font_info=windows->widget.font_info; in XColorBrowserWidget()
1733 windows->widget.width=(unsigned int) in XColorBrowserWidget()
1735 windows->widget.min_width=(unsigned int) in XColorBrowserWidget()
1737 if (windows->widget.width < windows->widget.min_width) in XColorBrowserWidget()
1738 windows->widget.width=windows->widget.min_width; in XColorBrowserWidget()
1739 windows->widget.height=(unsigned int) in XColorBrowserWidget()
1741 windows->widget.min_height=(unsigned int) in XColorBrowserWidget()
1743 if (windows->widget.height < windows->widget.min_height) in XColorBrowserWidget()
1744 windows->widget.height=windows->widget.min_height; in XColorBrowserWidget()
1745 XConstrainWindowPosition(display,&windows->widget); in XColorBrowserWidget()
1749 (void) CopyMagickString(windows->widget.name,"Browse and Select a Color", in XColorBrowserWidget()
1751 status=XStringListToTextProperty(&windows->widget.name,1,&window_name); in XColorBrowserWidget()
1754 XSetWMName(display,windows->widget.id,&window_name); in XColorBrowserWidget()
1755 XSetWMIconName(display,windows->widget.id,&window_name); in XColorBrowserWidget()
1758 window_changes.width=(int) windows->widget.width; in XColorBrowserWidget()
1759 window_changes.height=(int) windows->widget.height; in XColorBrowserWidget()
1760 window_changes.x=windows->widget.x; in XColorBrowserWidget()
1761 window_changes.y=windows->widget.y; in XColorBrowserWidget()
1762 (void) XReconfigureWMWindow(display,windows->widget.id,windows->widget.screen, in XColorBrowserWidget()
1764 (void) XMapRaised(display,windows->widget.id); in XColorBrowserWidget()
1765 windows->widget.mapped=MagickFalse; in XColorBrowserWidget()
1792 (windows->widget.width-cancel_info.width-QuantumMargin-2); in XColorBrowserWidget()
1794 (windows->widget.height-cancel_info.height-QuantumMargin); in XColorBrowserWidget()
1817 reply_info.width=windows->widget.width-width-((6*QuantumMargin) >> 1); in XColorBrowserWidget()
1881 if (windows->widget.mapped == MagickFalse) in XColorBrowserWidget()
1910 (void) XDrawString(display,windows->widget.id, in XColorBrowserWidget()
1911 windows->widget.annotate_context,x,y,ColorPatternText, in XColorBrowserWidget()
1914 XDrawWidgetText(display,&windows->widget,&text_info); in XColorBrowserWidget()
1915 XDrawBeveledButton(display,&windows->widget,&grab_info); in XColorBrowserWidget()
1916 XDrawBeveledButton(display,&windows->widget,&reset_info); in XColorBrowserWidget()
1917 XDrawBeveledMatte(display,&windows->widget,&list_info); in XColorBrowserWidget()
1918 XDrawBeveledMatte(display,&windows->widget,&scroll_info); in XColorBrowserWidget()
1919 XDrawTriangleNorth(display,&windows->widget,&north_info); in XColorBrowserWidget()
1920 XDrawBeveledButton(display,&windows->widget,&slider_info); in XColorBrowserWidget()
1921 XDrawTriangleSouth(display,&windows->widget,&south_info); in XColorBrowserWidget()
1924 (void) XDrawString(display,windows->widget.id, in XColorBrowserWidget()
1925 windows->widget.annotate_context,x,y,ColornameText, in XColorBrowserWidget()
1927 XDrawBeveledMatte(display,&windows->widget,&reply_info); in XColorBrowserWidget()
1928 XDrawMatteText(display,&windows->widget,&reply_info); in XColorBrowserWidget()
1929 XDrawBeveledButton(display,&windows->widget,&action_info); in XColorBrowserWidget()
1930 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XColorBrowserWidget()
1931 XHighlightWidget(display,&windows->widget,BorderOffset,BorderOffset); in XColorBrowserWidget()
1945 status=XParseColor(display,windows->widget.map_info->colormap, in XColorBrowserWidget()
1955 XDrawBeveledButton(display,&windows->widget,&action_info); in XColorBrowserWidget()
1998 XDrawWidgetText(display,&windows->widget,&text_info); in XColorBrowserWidget()
1999 XDrawMatteText(display,&windows->widget,&reply_info); in XColorBrowserWidget()
2000 XDrawBeveledMatte(display,&windows->widget,&scroll_info); in XColorBrowserWidget()
2001 XDrawTriangleNorth(display,&windows->widget,&north_info); in XColorBrowserWidget()
2002 XDrawBeveledButton(display,&windows->widget,&slider_info); in XColorBrowserWidget()
2003 XDrawTriangleSouth(display,&windows->widget,&south_info); in XColorBrowserWidget()
2004 XHighlightWidget(display,&windows->widget,BorderOffset,BorderOffset); in XColorBrowserWidget()
2053 XDrawWidgetText(display,&windows->widget,&selection_info); in XColorBrowserWidget()
2071 XDrawTriangleNorth(display,&windows->widget,&north_info); in XColorBrowserWidget()
2072 XDrawMatte(display,&windows->widget,&expose_info); in XColorBrowserWidget()
2073 XDrawBeveledButton(display,&windows->widget,&slider_info); in XColorBrowserWidget()
2074 XDrawTriangleSouth(display,&windows->widget,&south_info); in XColorBrowserWidget()
2087 color=windows->widget.pixel_info->matte_color; in XColorBrowserWidget()
2088 (void) XParseColor(display,windows->widget.map_info->colormap, in XColorBrowserWidget()
2089 reply_info.text,&windows->widget.pixel_info->matte_color); in XColorBrowserWidget()
2090 XBestPixel(display,windows->widget.map_info->colormap,(XColor *) NULL, in XColorBrowserWidget()
2091 (unsigned int) windows->widget.visual_info->colormap_size, in XColorBrowserWidget()
2092 &windows->widget.pixel_info->matte_color); in XColorBrowserWidget()
2095 "#%02x%02x%02x",windows->widget.pixel_info->matte_color.red, in XColorBrowserWidget()
2096 windows->widget.pixel_info->matte_color.green, in XColorBrowserWidget()
2097 windows->widget.pixel_info->matte_color.blue); in XColorBrowserWidget()
2098 XDrawBeveledButton(display,&windows->widget,&mode_info); in XColorBrowserWidget()
2099 windows->widget.pixel_info->matte_color=color; in XColorBrowserWidget()
2199 XDrawMatteText(display,&windows->widget,&reply_info); in XColorBrowserWidget()
2218 XDrawBeveledButton(display,&windows->widget,&grab_info); in XColorBrowserWidget()
2227 XDrawBeveledButton(display,&windows->widget,&reset_info); in XColorBrowserWidget()
2240 (void) XSetSelectionOwner(display,XA_PRIMARY,windows->widget.id, in XColorBrowserWidget()
2243 windows->widget.id ? MagickTrue : MagickFalse; in XColorBrowserWidget()
2246 XDrawMatteText(display,&windows->widget,&reply_info); in XColorBrowserWidget()
2255 XDrawBeveledButton(display,&windows->widget,&action_info); in XColorBrowserWidget()
2264 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XColorBrowserWidget()
2291 (void) XSetSelectionOwner(display,XA_PRIMARY,windows->widget.id, in XColorBrowserWidget()
2294 windows->widget.id ? MagickTrue : MagickFalse; in XColorBrowserWidget()
2296 XDrawMatteText(display,&windows->widget,&reply_info); in XColorBrowserWidget()
2304 windows->widget.id,event.xbutton.time); in XColorBrowserWidget()
2309 if (windows->widget.mapped == MagickFalse) in XColorBrowserWidget()
2318 XDrawTriangleNorth(display,&windows->widget,&north_info); in XColorBrowserWidget()
2327 XDrawTriangleSouth(display,&windows->widget,&south_info); in XColorBrowserWidget()
2339 if (event.xbutton.window == windows->widget.id) in XColorBrowserWidget()
2349 XDrawMatteText(display,&windows->widget,&reply_info); in XColorBrowserWidget()
2353 XDrawBeveledButton(display,&windows->widget,&grab_info); in XColorBrowserWidget()
2357 if (event.xbutton.window == windows->widget.id) in XColorBrowserWidget()
2365 XDrawBeveledButton(display,&windows->widget,&reset_info); in XColorBrowserWidget()
2369 if (event.xbutton.window == windows->widget.id) in XColorBrowserWidget()
2380 XDrawBeveledButton(display,&windows->widget,&action_info); in XColorBrowserWidget()
2384 if (event.xbutton.window == windows->widget.id) in XColorBrowserWidget()
2391 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XColorBrowserWidget()
2412 if (event.xclient.window == windows->widget.id) in XColorBrowserWidget()
2425 if (event.xconfigure.window != windows->widget.id) in XColorBrowserWidget()
2427 if ((event.xconfigure.width == (int) windows->widget.width) && in XColorBrowserWidget()
2428 (event.xconfigure.height == (int) windows->widget.height)) in XColorBrowserWidget()
2430 windows->widget.width=(unsigned int) in XColorBrowserWidget()
2431 MagickMax(event.xconfigure.width,(int) windows->widget.min_width); in XColorBrowserWidget()
2432 windows->widget.height=(unsigned int) in XColorBrowserWidget()
2433 MagickMax(event.xconfigure.height,(int) windows->widget.min_height); in XColorBrowserWidget()
2439 if (event.xcrossing.window != windows->widget.id) in XColorBrowserWidget()
2446 if (event.xexpose.window != windows->widget.id) in XColorBrowserWidget()
2467 if (event.xkey.window != windows->widget.id) in XColorBrowserWidget()
2554 XDrawMatteText(display,&windows->widget,&reply_info); in XColorBrowserWidget()
2556 status=XParseColor(display,windows->widget.map_info->colormap, in XColorBrowserWidget()
2573 if (event.xkey.window != windows->widget.id) in XColorBrowserWidget()
2583 if (event.xcrossing.window != windows->widget.id) in XColorBrowserWidget()
2626 XDrawBeveledButton(display,&windows->widget,&grab_info); in XColorBrowserWidget()
2635 XDrawBeveledButton(display,&windows->widget,&reset_info); in XColorBrowserWidget()
2645 XDrawBeveledButton(display,&windows->widget,&action_info); in XColorBrowserWidget()
2655 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XColorBrowserWidget()
2663 XDrawMatteText(display,&windows->widget,&reply_info); in XColorBrowserWidget()
2702 XDrawMatteText(display,&windows->widget,&reply_info); in XColorBrowserWidget()
2745 (void) XWithdrawWindow(display,windows->widget.id,windows->widget.screen); in XColorBrowserWidget()
2757 status=XParseColor(display,windows->widget.map_info->colormap,reply,&color); in XColorBrowserWidget()
3009 (void) XCheckWindowEvent(display,windows->widget.id,LeaveWindowMask, in XCommandWidget()
3273 font_info=windows->widget.font_info; in XConfirmWidget()
3287 windows->widget.width=(unsigned int) (width+9*QuantumMargin); in XConfirmWidget()
3288 windows->widget.min_width=(unsigned int) (9*QuantumMargin+ in XConfirmWidget()
3292 if (windows->widget.width < windows->widget.min_width) in XConfirmWidget()
3293 windows->widget.width=windows->widget.min_width; in XConfirmWidget()
3294 windows->widget.height=(unsigned int) (12*height); in XConfirmWidget()
3295 windows->widget.min_height=(unsigned int) (7*height); in XConfirmWidget()
3296 if (windows->widget.height < windows->widget.min_height) in XConfirmWidget()
3297 windows->widget.height=windows->widget.min_height; in XConfirmWidget()
3298 XConstrainWindowPosition(display,&windows->widget); in XConfirmWidget()
3302 (void) CopyMagickString(windows->widget.name,"Confirm",MagickPathExtent); in XConfirmWidget()
3303 status=XStringListToTextProperty(&windows->widget.name,1,&window_name); in XConfirmWidget()
3306 XSetWMName(display,windows->widget.id,&window_name); in XConfirmWidget()
3307 XSetWMIconName(display,windows->widget.id,&window_name); in XConfirmWidget()
3310 window_changes.width=(int) windows->widget.width; in XConfirmWidget()
3311 window_changes.height=(int) windows->widget.height; in XConfirmWidget()
3312 window_changes.x=windows->widget.x; in XConfirmWidget()
3313 window_changes.y=windows->widget.y; in XConfirmWidget()
3314 (void) XReconfigureWMWindow(display,windows->widget.id,windows->widget.screen, in XConfirmWidget()
3316 (void) XMapRaised(display,windows->widget.id); in XConfirmWidget()
3317 windows->widget.mapped=MagickFalse; in XConfirmWidget()
3335 cancel_info.x=(int) (windows->widget.width-cancel_info.width- in XConfirmWidget()
3337 cancel_info.y=(int) (windows->widget.height-(cancel_info.height << 1)); in XConfirmWidget()
3345 ((windows->widget.width >> 1)-(dismiss_info.width >> 1)); in XConfirmWidget()
3363 x=(int) ((windows->widget.width >> 1)-(width >> 1)); in XConfirmWidget()
3364 y=(int) ((windows->widget.height >> 1)-(height << 1)); in XConfirmWidget()
3365 (void) XDrawString(display,windows->widget.id, in XConfirmWidget()
3366 windows->widget.annotate_context,x,y,(char *) reason,Extent(reason)); in XConfirmWidget()
3375 x=(int) ((windows->widget.width >> 1)-(width >> 1)); in XConfirmWidget()
3377 (void) XDrawString(display,windows->widget.id, in XConfirmWidget()
3378 windows->widget.annotate_context,x,y,question,Extent(question)); in XConfirmWidget()
3380 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XConfirmWidget()
3381 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XConfirmWidget()
3382 XDrawBeveledButton(display,&windows->widget,&yes_info); in XConfirmWidget()
3383 XHighlightWidget(display,&windows->widget,BorderOffset,BorderOffset); in XConfirmWidget()
3400 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XConfirmWidget()
3409 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XConfirmWidget()
3418 XDrawBeveledButton(display,&windows->widget,&yes_info); in XConfirmWidget()
3425 if (windows->widget.mapped == MagickFalse) in XConfirmWidget()
3429 if (event.xbutton.window == windows->widget.id) in XConfirmWidget()
3436 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XConfirmWidget()
3440 if (event.xbutton.window == windows->widget.id) in XConfirmWidget()
3447 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XConfirmWidget()
3451 if (event.xbutton.window == windows->widget.id) in XConfirmWidget()
3458 XDrawBeveledButton(display,&windows->widget,&yes_info); in XConfirmWidget()
3477 if (event.xclient.window == windows->widget.id) in XConfirmWidget()
3489 if (event.xconfigure.window != windows->widget.id) in XConfirmWidget()
3491 if ((event.xconfigure.width == (int) windows->widget.width) && in XConfirmWidget()
3492 (event.xconfigure.height == (int) windows->widget.height)) in XConfirmWidget()
3494 windows->widget.width=(unsigned int) in XConfirmWidget()
3495 MagickMax(event.xconfigure.width,(int) windows->widget.min_width); in XConfirmWidget()
3496 windows->widget.height=(unsigned int) in XConfirmWidget()
3497 MagickMax(event.xconfigure.height,(int) windows->widget.min_height); in XConfirmWidget()
3503 if (event.xcrossing.window != windows->widget.id) in XConfirmWidget()
3510 if (event.xexpose.window != windows->widget.id) in XConfirmWidget()
3528 if (event.xkey.window != windows->widget.id) in XConfirmWidget()
3535 XDrawBeveledButton(display,&windows->widget,&yes_info); in XConfirmWidget()
3544 if (event.xcrossing.window != windows->widget.id) in XConfirmWidget()
3564 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XConfirmWidget()
3574 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XConfirmWidget()
3584 XDrawBeveledButton(display,&windows->widget,&yes_info); in XConfirmWidget()
3594 (void) XWithdrawWindow(display,windows->widget.id,windows->widget.screen); in XConfirmWidget()
3690 font_info=windows->widget.font_info; in XDialogWidget()
3699 windows->widget.width=(unsigned int) MagickMax((int) (2*width),(int) in XDialogWidget()
3701 if (windows->widget.width < WidgetTextWidth(font_info,reply)) in XDialogWidget()
3702 windows->widget.width=WidgetTextWidth(font_info,reply); in XDialogWidget()
3703 windows->widget.width+=6*QuantumMargin; in XDialogWidget()
3704 windows->widget.min_width=(unsigned int) in XDialogWidget()
3706 if (windows->widget.width < windows->widget.min_width) in XDialogWidget()
3707 windows->widget.width=windows->widget.min_width; in XDialogWidget()
3708 windows->widget.height=(unsigned int) (7*height+(QuantumMargin << 1)); in XDialogWidget()
3709 windows->widget.min_height=windows->widget.height; in XDialogWidget()
3710 if (windows->widget.height < windows->widget.min_height) in XDialogWidget()
3711 windows->widget.height=windows->widget.min_height; in XDialogWidget()
3712 XConstrainWindowPosition(display,&windows->widget); in XDialogWidget()
3716 (void) CopyMagickString(windows->widget.name,"Dialog",MagickPathExtent); in XDialogWidget()
3717 status=XStringListToTextProperty(&windows->widget.name,1,&window_name); in XDialogWidget()
3720 XSetWMName(display,windows->widget.id,&window_name); in XDialogWidget()
3721 XSetWMIconName(display,windows->widget.id,&window_name); in XDialogWidget()
3724 window_changes.width=(int) windows->widget.width; in XDialogWidget()
3725 window_changes.height=(int) windows->widget.height; in XDialogWidget()
3726 window_changes.x=windows->widget.x; in XDialogWidget()
3727 window_changes.y=windows->widget.y; in XDialogWidget()
3728 (void) XReconfigureWMWindow(display,windows->widget.id,windows->widget.screen, in XDialogWidget()
3730 (void) XMapRaised(display,windows->widget.id); in XDialogWidget()
3731 windows->widget.mapped=MagickFalse; in XDialogWidget()
3754 (windows->widget.width-cancel_info.width-((3*QuantumMargin) >> 1)); in XDialogWidget()
3756 (windows->widget.height-cancel_info.height-((3*QuantumMargin) >> 1)); in XDialogWidget()
3769 reply_info.width=windows->widget.width-(3*QuantumMargin); in XDialogWidget()
3809 XDrawWidgetText(display,&windows->widget,&text_info); in XDialogWidget()
3810 XDrawBeveledMatte(display,&windows->widget,&reply_info); in XDialogWidget()
3811 XDrawMatteText(display,&windows->widget,&reply_info); in XDialogWidget()
3813 XDrawBeveledButton(display,&windows->widget,&special_info); in XDialogWidget()
3814 XDrawBeveledButton(display,&windows->widget,&action_info); in XDialogWidget()
3815 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XDialogWidget()
3816 XHighlightWidget(display,&windows->widget,BorderOffset,BorderOffset); in XDialogWidget()
3834 XDrawBeveledButton(display,&windows->widget,&special_info); in XDialogWidget()
3843 XDrawBeveledButton(display,&windows->widget,&action_info); in XDialogWidget()
3852 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XDialogWidget()
3879 (void) XSetSelectionOwner(display,XA_PRIMARY,windows->widget.id, in XDialogWidget()
3882 windows->widget.id ? MagickTrue : MagickFalse; in XDialogWidget()
3884 XDrawMatteText(display,&windows->widget,&reply_info); in XDialogWidget()
3892 windows->widget.id,event.xbutton.time); in XDialogWidget()
3897 if (windows->widget.mapped == MagickFalse) in XDialogWidget()
3901 if (event.xbutton.window == windows->widget.id) in XDialogWidget()
3905 XDrawBeveledButton(display,&windows->widget,&action_info); in XDialogWidget()
3909 if (event.xbutton.window == windows->widget.id) in XDialogWidget()
3916 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XDialogWidget()
3935 if (event.xclient.window == windows->widget.id) in XDialogWidget()
3948 if (event.xconfigure.window != windows->widget.id) in XDialogWidget()
3950 if ((event.xconfigure.width == (int) windows->widget.width) && in XDialogWidget()
3951 (event.xconfigure.height == (int) windows->widget.height)) in XDialogWidget()
3953 windows->widget.width=(unsigned int) in XDialogWidget()
3954 MagickMax(event.xconfigure.width,(int) windows->widget.min_width); in XDialogWidget()
3955 windows->widget.height=(unsigned int) in XDialogWidget()
3956 MagickMax(event.xconfigure.height,(int) windows->widget.min_height); in XDialogWidget()
3962 if (event.xcrossing.window != windows->widget.id) in XDialogWidget()
3969 if (event.xexpose.window != windows->widget.id) in XDialogWidget()
3990 if (event.xkey.window != windows->widget.id) in XDialogWidget()
3998 XDrawBeveledButton(display,&windows->widget,&action_info); in XDialogWidget()
4026 XDrawMatteText(display,&windows->widget,&reply_info); in XDialogWidget()
4040 if (event.xkey.window != windows->widget.id) in XDialogWidget()
4050 if (event.xcrossing.window != windows->widget.id) in XDialogWidget()
4070 XDrawBeveledButton(display,&windows->widget,&action_info); in XDialogWidget()
4080 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XDialogWidget()
4088 XDrawMatteText(display,&windows->widget,&reply_info); in XDialogWidget()
4127 XDrawMatteText(display,&windows->widget,&reply_info); in XDialogWidget()
4167 (void) XWithdrawWindow(display,windows->widget.id,windows->widget.screen); in XDialogWidget()
4310 font_info=windows->widget.font_info; in XFileBrowserWidget()
4335 windows->widget.width=width+MagickMin((int) text_width,(int) MaxTextWidth)+ in XFileBrowserWidget()
4337 windows->widget.min_width=width+MinTextWidth+4*QuantumMargin; in XFileBrowserWidget()
4338 if (windows->widget.width < windows->widget.min_width) in XFileBrowserWidget()
4339 windows->widget.width=windows->widget.min_width; in XFileBrowserWidget()
4340 windows->widget.height=(unsigned int) in XFileBrowserWidget()
4342 windows->widget.min_height=(unsigned int) in XFileBrowserWidget()
4344 if (windows->widget.height < windows->widget.min_height) in XFileBrowserWidget()
4345 windows->widget.height=windows->widget.min_height; in XFileBrowserWidget()
4346 XConstrainWindowPosition(display,&windows->widget); in XFileBrowserWidget()
4350 (void) CopyMagickString(windows->widget.name,"Browse and Select a File", in XFileBrowserWidget()
4352 status=XStringListToTextProperty(&windows->widget.name,1,&window_name); in XFileBrowserWidget()
4355 XSetWMName(display,windows->widget.id,&window_name); in XFileBrowserWidget()
4356 XSetWMIconName(display,windows->widget.id,&window_name); in XFileBrowserWidget()
4359 window_changes.width=(int) windows->widget.width; in XFileBrowserWidget()
4360 window_changes.height=(int) windows->widget.height; in XFileBrowserWidget()
4361 window_changes.x=windows->widget.x; in XFileBrowserWidget()
4362 window_changes.y=windows->widget.y; in XFileBrowserWidget()
4363 (void) XReconfigureWMWindow(display,windows->widget.id, in XFileBrowserWidget()
4364 windows->widget.screen,mask,&window_changes); in XFileBrowserWidget()
4365 (void) XMapRaised(display,windows->widget.id); in XFileBrowserWidget()
4366 windows->widget.mapped=MagickFalse; in XFileBrowserWidget()
4394 (windows->widget.width-cancel_info.width-QuantumMargin-2); in XFileBrowserWidget()
4396 (windows->widget.height-cancel_info.height-QuantumMargin); in XFileBrowserWidget()
4437 reply_info.width=windows->widget.width-width-((6*QuantumMargin) >> 1); in XFileBrowserWidget()
4491 if (windows->widget.mapped == MagickFalse) in XFileBrowserWidget()
4520 (void) XDrawString(display,windows->widget.id, in XFileBrowserWidget()
4521 windows->widget.annotate_context,x,y,DirectoryText, in XFileBrowserWidget()
4528 XDrawWidgetText(display,&windows->widget,&text_info); in XFileBrowserWidget()
4529 XDrawBeveledButton(display,&windows->widget,&up_info); in XFileBrowserWidget()
4530 XDrawBeveledButton(display,&windows->widget,&home_info); in XFileBrowserWidget()
4531 XDrawBeveledMatte(display,&windows->widget,&list_info); in XFileBrowserWidget()
4532 XDrawBeveledMatte(display,&windows->widget,&scroll_info); in XFileBrowserWidget()
4533 XDrawTriangleNorth(display,&windows->widget,&north_info); in XFileBrowserWidget()
4534 XDrawBeveledButton(display,&windows->widget,&slider_info); in XFileBrowserWidget()
4535 XDrawTriangleSouth(display,&windows->widget,&south_info); in XFileBrowserWidget()
4538 (void) XDrawString(display,windows->widget.id, in XFileBrowserWidget()
4539 windows->widget.annotate_context,x,y,FilenameText, in XFileBrowserWidget()
4541 XDrawBeveledMatte(display,&windows->widget,&reply_info); in XFileBrowserWidget()
4542 XDrawMatteText(display,&windows->widget,&reply_info); in XFileBrowserWidget()
4543 XDrawBeveledButton(display,&windows->widget,&special_info); in XFileBrowserWidget()
4544 XDrawBeveledButton(display,&windows->widget,&action_info); in XFileBrowserWidget()
4545 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XFileBrowserWidget()
4546 XHighlightWidget(display,&windows->widget,BorderOffset,BorderOffset); in XFileBrowserWidget()
4569 XDrawBeveledButton(display,&windows->widget,&action_info); in XFileBrowserWidget()
4607 XDrawWidgetText(display,&windows->widget,&text_info); in XFileBrowserWidget()
4608 XDrawMatteText(display,&windows->widget,&reply_info); in XFileBrowserWidget()
4609 XDrawBeveledMatte(display,&windows->widget,&scroll_info); in XFileBrowserWidget()
4610 XDrawTriangleNorth(display,&windows->widget,&north_info); in XFileBrowserWidget()
4611 XDrawBeveledButton(display,&windows->widget,&slider_info); in XFileBrowserWidget()
4612 XDrawTriangleSouth(display,&windows->widget,&south_info); in XFileBrowserWidget()
4613 XHighlightWidget(display,&windows->widget,BorderOffset,BorderOffset); in XFileBrowserWidget()
4663 XDrawWidgetText(display,&windows->widget,&selection_info); in XFileBrowserWidget()
4681 XDrawTriangleNorth(display,&windows->widget,&north_info); in XFileBrowserWidget()
4682 XDrawMatte(display,&windows->widget,&expose_info); in XFileBrowserWidget()
4683 XDrawBeveledButton(display,&windows->widget,&slider_info); in XFileBrowserWidget()
4684 XDrawTriangleSouth(display,&windows->widget,&south_info); in XFileBrowserWidget()
4785 XDrawMatteText(display,&windows->widget,&reply_info); in XFileBrowserWidget()
4812 XDrawBeveledButton(display,&windows->widget,&up_info); in XFileBrowserWidget()
4821 XDrawBeveledButton(display,&windows->widget,&home_info); in XFileBrowserWidget()
4830 XDrawBeveledButton(display,&windows->widget,&special_info); in XFileBrowserWidget()
4839 XDrawBeveledButton(display,&windows->widget,&action_info); in XFileBrowserWidget()
4848 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XFileBrowserWidget()
4875 (void) XSetSelectionOwner(display,XA_PRIMARY,windows->widget.id, in XFileBrowserWidget()
4878 windows->widget.id ? MagickTrue : MagickFalse; in XFileBrowserWidget()
4880 XDrawMatteText(display,&windows->widget,&reply_info); in XFileBrowserWidget()
4888 windows->widget.id,event.xbutton.time); in XFileBrowserWidget()
4893 if (windows->widget.mapped == MagickFalse) in XFileBrowserWidget()
4902 XDrawTriangleNorth(display,&windows->widget,&north_info); in XFileBrowserWidget()
4911 XDrawTriangleSouth(display,&windows->widget,&south_info); in XFileBrowserWidget()
4923 if (event.xbutton.window == windows->widget.id) in XFileBrowserWidget()
4933 XDrawBeveledButton(display,&windows->widget,&up_info); in XFileBrowserWidget()
4937 if (event.xbutton.window == windows->widget.id) in XFileBrowserWidget()
4945 XDrawBeveledButton(display,&windows->widget,&home_info); in XFileBrowserWidget()
4968 (void) XCheckDefineCursor(display,windows->widget.id, in XFileBrowserWidget()
4969 windows->widget.busy_cursor); in XFileBrowserWidget()
4970 windows->popup.x=windows->widget.x+60; in XFileBrowserWidget()
4971 windows->popup.y=windows->widget.y+60; in XFileBrowserWidget()
4976 (void) XCheckDefineCursor(display,windows->widget.id, in XFileBrowserWidget()
4977 windows->widget.cursor); in XFileBrowserWidget()
4981 XDrawMatteText(display,&windows->widget,&reply_info); in XFileBrowserWidget()
4983 XDrawBeveledButton(display,&windows->widget,&special_info); in XFileBrowserWidget()
4989 if (event.xbutton.window == windows->widget.id) in XFileBrowserWidget()
4996 XDrawBeveledButton(display,&windows->widget,&special_info); in XFileBrowserWidget()
5000 if (event.xbutton.window == windows->widget.id) in XFileBrowserWidget()
5011 XDrawBeveledButton(display,&windows->widget,&action_info); in XFileBrowserWidget()
5015 if (event.xbutton.window == windows->widget.id) in XFileBrowserWidget()
5023 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XFileBrowserWidget()
5042 if (event.xclient.window == windows->widget.id) in XFileBrowserWidget()
5055 if (event.xconfigure.window != windows->widget.id) in XFileBrowserWidget()
5057 if ((event.xconfigure.width == (int) windows->widget.width) && in XFileBrowserWidget()
5058 (event.xconfigure.height == (int) windows->widget.height)) in XFileBrowserWidget()
5060 windows->widget.width=(unsigned int) in XFileBrowserWidget()
5061 MagickMax(event.xconfigure.width,(int) windows->widget.min_width); in XFileBrowserWidget()
5062 windows->widget.height=(unsigned int) in XFileBrowserWidget()
5063 MagickMax(event.xconfigure.height,(int) windows->widget.min_height); in XFileBrowserWidget()
5069 if (event.xcrossing.window != windows->widget.id) in XFileBrowserWidget()
5076 if (event.xexpose.window != windows->widget.id) in XFileBrowserWidget()
5097 if (event.xkey.window != windows->widget.id) in XFileBrowserWidget()
5196 XDrawMatteText(display,&windows->widget,&reply_info); in XFileBrowserWidget()
5211 if (event.xkey.window != windows->widget.id) in XFileBrowserWidget()
5221 if (event.xcrossing.window != windows->widget.id) in XFileBrowserWidget()
5264 XDrawBeveledButton(display,&windows->widget,&up_info); in XFileBrowserWidget()
5273 XDrawBeveledButton(display,&windows->widget,&home_info); in XFileBrowserWidget()
5282 XDrawBeveledButton(display,&windows->widget,&special_info); in XFileBrowserWidget()
5292 XDrawBeveledButton(display,&windows->widget,&action_info); in XFileBrowserWidget()
5302 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XFileBrowserWidget()
5310 XDrawMatteText(display,&windows->widget,&reply_info); in XFileBrowserWidget()
5349 XDrawMatteText(display,&windows->widget,&reply_info); in XFileBrowserWidget()
5391 (void) XWithdrawWindow(display,windows->widget.id,windows->widget.screen); in XFileBrowserWidget()
5587 font_info=windows->widget.font_info; in XFontBrowserWidget()
5608 windows->widget.width=width+MagickMin((int) text_width,(int) MaxTextWidth)+ in XFontBrowserWidget()
5610 windows->widget.min_width=width+MinTextWidth+4*QuantumMargin; in XFontBrowserWidget()
5611 if (windows->widget.width < windows->widget.min_width) in XFontBrowserWidget()
5612 windows->widget.width=windows->widget.min_width; in XFontBrowserWidget()
5613 windows->widget.height=(unsigned int) in XFontBrowserWidget()
5615 windows->widget.min_height=(unsigned int) in XFontBrowserWidget()
5617 if (windows->widget.height < windows->widget.min_height) in XFontBrowserWidget()
5618 windows->widget.height=windows->widget.min_height; in XFontBrowserWidget()
5619 XConstrainWindowPosition(display,&windows->widget); in XFontBrowserWidget()
5623 (void) CopyMagickString(windows->widget.name,"Browse and Select a Font", in XFontBrowserWidget()
5625 status=XStringListToTextProperty(&windows->widget.name,1,&window_name); in XFontBrowserWidget()
5628 XSetWMName(display,windows->widget.id,&window_name); in XFontBrowserWidget()
5629 XSetWMIconName(display,windows->widget.id,&window_name); in XFontBrowserWidget()
5632 window_changes.width=(int) windows->widget.width; in XFontBrowserWidget()
5633 window_changes.height=(int) windows->widget.height; in XFontBrowserWidget()
5634 window_changes.x=windows->widget.x; in XFontBrowserWidget()
5635 window_changes.y=windows->widget.y; in XFontBrowserWidget()
5636 (void) XReconfigureWMWindow(display,windows->widget.id, in XFontBrowserWidget()
5637 windows->widget.screen,mask,&window_changes); in XFontBrowserWidget()
5638 (void) XMapRaised(display,windows->widget.id); in XFontBrowserWidget()
5639 windows->widget.mapped=MagickFalse; in XFontBrowserWidget()
5665 (windows->widget.width-cancel_info.width-QuantumMargin-2); in XFontBrowserWidget()
5667 (windows->widget.height-cancel_info.height-QuantumMargin); in XFontBrowserWidget()
5690 reply_info.width=windows->widget.width-width-((6*QuantumMargin) >> 1); in XFontBrowserWidget()
5753 if (windows->widget.mapped == MagickFalse) in XFontBrowserWidget()
5782 (void) XDrawString(display,windows->widget.id, in XFontBrowserWidget()
5783 windows->widget.annotate_context,x,y,FontPatternText, in XFontBrowserWidget()
5786 XDrawWidgetText(display,&windows->widget,&text_info); in XFontBrowserWidget()
5787 XDrawBeveledButton(display,&windows->widget,&back_info); in XFontBrowserWidget()
5788 XDrawBeveledButton(display,&windows->widget,&reset_info); in XFontBrowserWidget()
5789 XDrawBeveledMatte(display,&windows->widget,&list_info); in XFontBrowserWidget()
5790 XDrawBeveledMatte(display,&windows->widget,&scroll_info); in XFontBrowserWidget()
5791 XDrawTriangleNorth(display,&windows->widget,&north_info); in XFontBrowserWidget()
5792 XDrawBeveledButton(display,&windows->widget,&slider_info); in XFontBrowserWidget()
5793 XDrawTriangleSouth(display,&windows->widget,&south_info); in XFontBrowserWidget()
5796 (void) XDrawString(display,windows->widget.id, in XFontBrowserWidget()
5797 windows->widget.annotate_context,x,y,FontnameText, in XFontBrowserWidget()
5799 XDrawBeveledMatte(display,&windows->widget,&reply_info); in XFontBrowserWidget()
5800 XDrawMatteText(display,&windows->widget,&reply_info); in XFontBrowserWidget()
5801 XDrawBeveledButton(display,&windows->widget,&action_info); in XFontBrowserWidget()
5802 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XFontBrowserWidget()
5803 XHighlightWidget(display,&windows->widget,BorderOffset,BorderOffset); in XFontBrowserWidget()
5832 XDrawBeveledButton(display,&windows->widget,&action_info); in XFontBrowserWidget()
5848 XDrawBeveledButton(display,&windows->widget,&action_info); in XFontBrowserWidget()
5891 XDrawWidgetText(display,&windows->widget,&text_info); in XFontBrowserWidget()
5892 XDrawMatteText(display,&windows->widget,&reply_info); in XFontBrowserWidget()
5893 XDrawBeveledMatte(display,&windows->widget,&scroll_info); in XFontBrowserWidget()
5894 XDrawTriangleNorth(display,&windows->widget,&north_info); in XFontBrowserWidget()
5895 XDrawBeveledButton(display,&windows->widget,&slider_info); in XFontBrowserWidget()
5896 XDrawTriangleSouth(display,&windows->widget,&south_info); in XFontBrowserWidget()
5897 XHighlightWidget(display,&windows->widget,BorderOffset,BorderOffset); in XFontBrowserWidget()
5945 XDrawWidgetText(display,&windows->widget,&selection_info); in XFontBrowserWidget()
5963 XDrawTriangleNorth(display,&windows->widget,&north_info); in XFontBrowserWidget()
5964 XDrawMatte(display,&windows->widget,&expose_info); in XFontBrowserWidget()
5965 XDrawBeveledButton(display,&windows->widget,&slider_info); in XFontBrowserWidget()
5966 XDrawTriangleSouth(display,&windows->widget,&south_info); in XFontBrowserWidget()
5979 save_info=windows->widget.font_info; in XFontBrowserWidget()
5983 windows->widget.font_info=font_info; in XFontBrowserWidget()
5984 (void) XSetFont(display,windows->widget.widget_context, in XFontBrowserWidget()
5987 XDrawBeveledButton(display,&windows->widget,&mode_info); in XFontBrowserWidget()
5988 windows->widget.font_info=save_info; in XFontBrowserWidget()
5991 (void) XSetFont(display,windows->widget.widget_context, in XFontBrowserWidget()
5992 windows->widget.font_info->fid); in XFontBrowserWidget()
5995 XHighlightWidget(display,&windows->widget,BorderOffset,BorderOffset); in XFontBrowserWidget()
5996 XDrawMatteText(display,&windows->widget,&reply_info); in XFontBrowserWidget()
6095 XDrawMatteText(display,&windows->widget,&reply_info); in XFontBrowserWidget()
6114 XDrawBeveledButton(display,&windows->widget,&back_info); in XFontBrowserWidget()
6123 XDrawBeveledButton(display,&windows->widget,&reset_info); in XFontBrowserWidget()
6132 XDrawBeveledButton(display,&windows->widget,&action_info); in XFontBrowserWidget()
6141 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XFontBrowserWidget()
6168 (void) XSetSelectionOwner(display,XA_PRIMARY,windows->widget.id, in XFontBrowserWidget()
6171 windows->widget.id ? MagickTrue : MagickFalse; in XFontBrowserWidget()
6173 XDrawMatteText(display,&windows->widget,&reply_info); in XFontBrowserWidget()
6181 windows->widget.id,event.xbutton.time); in XFontBrowserWidget()
6186 if (windows->widget.mapped == MagickFalse) in XFontBrowserWidget()
6195 XDrawTriangleNorth(display,&windows->widget,&north_info); in XFontBrowserWidget()
6204 XDrawTriangleSouth(display,&windows->widget,&south_info); in XFontBrowserWidget()
6216 if (event.xbutton.window == windows->widget.id) in XFontBrowserWidget()
6224 XDrawBeveledButton(display,&windows->widget,&back_info); in XFontBrowserWidget()
6228 if (event.xbutton.window == windows->widget.id) in XFontBrowserWidget()
6236 XDrawBeveledButton(display,&windows->widget,&reset_info); in XFontBrowserWidget()
6240 if (event.xbutton.window == windows->widget.id) in XFontBrowserWidget()
6251 XDrawBeveledButton(display,&windows->widget,&action_info); in XFontBrowserWidget()
6255 if (event.xbutton.window == windows->widget.id) in XFontBrowserWidget()
6262 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XFontBrowserWidget()
6281 if (event.xclient.window == windows->widget.id) in XFontBrowserWidget()
6294 if (event.xconfigure.window != windows->widget.id) in XFontBrowserWidget()
6296 if ((event.xconfigure.width == (int) windows->widget.width) && in XFontBrowserWidget()
6297 (event.xconfigure.height == (int) windows->widget.height)) in XFontBrowserWidget()
6299 windows->widget.width=(unsigned int) in XFontBrowserWidget()
6300 MagickMax(event.xconfigure.width,(int) windows->widget.min_width); in XFontBrowserWidget()
6301 windows->widget.height=(unsigned int) in XFontBrowserWidget()
6302 MagickMax(event.xconfigure.height,(int) windows->widget.min_height); in XFontBrowserWidget()
6308 if (event.xcrossing.window != windows->widget.id) in XFontBrowserWidget()
6315 if (event.xexpose.window != windows->widget.id) in XFontBrowserWidget()
6336 if (event.xkey.window != windows->widget.id) in XFontBrowserWidget()
6424 XDrawMatteText(display,&windows->widget,&reply_info); in XFontBrowserWidget()
6439 if (event.xkey.window != windows->widget.id) in XFontBrowserWidget()
6449 if (event.xcrossing.window != windows->widget.id) in XFontBrowserWidget()
6492 XDrawBeveledButton(display,&windows->widget,&back_info); in XFontBrowserWidget()
6501 XDrawBeveledButton(display,&windows->widget,&reset_info); in XFontBrowserWidget()
6511 XDrawBeveledButton(display,&windows->widget,&action_info); in XFontBrowserWidget()
6521 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XFontBrowserWidget()
6529 XDrawMatteText(display,&windows->widget,&reply_info); in XFontBrowserWidget()
6568 XDrawMatteText(display,&windows->widget,&reply_info); in XFontBrowserWidget()
6608 (void) XWithdrawWindow(display,windows->widget.id,windows->widget.screen); in XFontBrowserWidget()
6862 XSetWMIconName(display,windows->widget.id,&window_name); in XListBrowserWidget()
7707 font_info=windows->widget.font_info; in XMenuWidget()
7708 windows->widget.width=submenu_info.active == 0 ? in XMenuWidget()
7713 if (width > windows->widget.width) in XMenuWidget()
7714 windows->widget.width=width; in XMenuWidget()
7725 windows->widget.width+=QuantumMargin+(menu_info.bevel_width << 1); in XMenuWidget()
7727 windows->widget.height=top_offset+number_selections*height+4; in XMenuWidget()
7728 windows->widget.min_width=windows->widget.width; in XMenuWidget()
7729 windows->widget.min_height=windows->widget.height; in XMenuWidget()
7730 XQueryPosition(display,windows->widget.root,&x,&y); in XMenuWidget()
7731 windows->widget.x=x-(QuantumMargin >> 1); in XMenuWidget()
7734 windows->widget.x= in XMenuWidget()
7739 windows->widget.y=submenu_info.active == 0 ? y-(int) in XMenuWidget()
7742 windows->widget.y=windows->command.y+submenu_info.y; in XMenuWidget()
7743 XConstrainWindowPosition(display,&windows->widget); in XMenuWidget()
7748 (void) XChangeWindowAttributes(display,windows->widget.id, in XMenuWidget()
7750 window_changes.width=(int) windows->widget.width; in XMenuWidget()
7751 window_changes.height=(int) windows->widget.height; in XMenuWidget()
7752 window_changes.x=windows->widget.x; in XMenuWidget()
7753 window_changes.y=windows->widget.y; in XMenuWidget()
7754 (void) XReconfigureWMWindow(display,windows->widget.id,windows->widget.screen, in XMenuWidget()
7756 (void) XMapRaised(display,windows->widget.id); in XMenuWidget()
7757 windows->widget.mapped=MagickFalse; in XMenuWidget()
7765 (void) XCheckDefineCursor(display,windows->widget.id,cursor); in XMenuWidget()
7776 menu_info.width=windows->widget.width-((menu_info.bevel_width) << 1); in XMenuWidget()
7777 menu_info.height=windows->widget.height-((menu_info.bevel_width) << 1); in XMenuWidget()
7800 XSetBevelColor(display,&windows->widget,MagickFalse); in XMenuWidget()
7801 (void) XDrawLine(display,windows->widget.id, in XMenuWidget()
7802 windows->widget.widget_context,selection_info.x,y-1, in XMenuWidget()
7804 XSetBevelColor(display,&windows->widget,MagickTrue); in XMenuWidget()
7805 (void) XDrawLine(display,windows->widget.id, in XMenuWidget()
7806 windows->widget.widget_context,selection_info.x,y, in XMenuWidget()
7808 (void) XSetFillStyle(display,windows->widget.widget_context, in XMenuWidget()
7818 XDrawWidgetText(display,&windows->widget,&selection_info); in XMenuWidget()
7824 XDrawWidgetText(display,&windows->widget,&selection_info); in XMenuWidget()
7827 XDrawBevel(display,&windows->widget,&highlight_info); in XMenuWidget()
7830 XDrawBevel(display,&windows->widget,&menu_info); in XMenuWidget()
7839 XSetBevelColor(display,&windows->widget,MagickFalse); in XMenuWidget()
7840 (void) XDrawLine(display,windows->widget.id, in XMenuWidget()
7841 windows->widget.widget_context,selection_info.x,y-1, in XMenuWidget()
7843 XSetBevelColor(display,&windows->widget,MagickTrue); in XMenuWidget()
7844 (void) XDrawLine(display,windows->widget.id, in XMenuWidget()
7845 windows->widget.widget_context,selection_info.x,y, in XMenuWidget()
7847 (void) XSetFillStyle(display,windows->widget.widget_context,FillSolid); in XMenuWidget()
7857 if (event.xbutton.window != windows->widget.id) in XMenuWidget()
7879 XDrawWidgetText(display,&windows->widget,&selection_info); in XMenuWidget()
7881 XDrawBevel(display,&windows->widget,&highlight_info); in XMenuWidget()
7886 if (windows->widget.mapped == MagickFalse) in XMenuWidget()
7904 if (event.xconfigure.window != windows->widget.id) in XMenuWidget()
7906 if ((event.xconfigure.width == (int) windows->widget.width) && in XMenuWidget()
7907 (event.xconfigure.height == (int) windows->widget.height)) in XMenuWidget()
7909 windows->widget.width=(unsigned int) in XMenuWidget()
7910 MagickMax(event.xconfigure.width,(int) windows->widget.min_width); in XMenuWidget()
7911 windows->widget.height=(unsigned int) in XMenuWidget()
7912 MagickMax(event.xconfigure.height,(int) windows->widget.min_height); in XMenuWidget()
7918 if (event.xcrossing.window != windows->widget.id) in XMenuWidget()
7935 XDrawWidgetText(display,&windows->widget,&selection_info); in XMenuWidget()
7946 XDrawWidgetText(display,&windows->widget,&selection_info); in XMenuWidget()
7948 XDrawBevel(display,&windows->widget,&highlight_info); in XMenuWidget()
7953 if (event.xexpose.window != windows->widget.id) in XMenuWidget()
7962 if (event.xcrossing.window != windows->widget.id) in XMenuWidget()
7974 XDrawWidgetText(display,&windows->widget,&selection_info); in XMenuWidget()
8005 if (event.xmotion.window != windows->widget.id) in XMenuWidget()
8021 XDrawWidgetText(display,&windows->widget,&selection_info); in XMenuWidget()
8031 XDrawWidgetText(display,&windows->widget,&selection_info); in XMenuWidget()
8033 XDrawBevel(display,&windows->widget,&highlight_info); in XMenuWidget()
8042 (void) XChangeWindowAttributes(display,windows->widget.id, in XMenuWidget()
8044 (void) XWithdrawWindow(display,windows->widget.id,windows->widget.screen); in XMenuWidget()
8141 font_info=windows->widget.font_info; in XNoticeWidget()
8158 windows->widget.width=width+4*QuantumMargin; in XNoticeWidget()
8159 windows->widget.min_width=width+QuantumMargin; in XNoticeWidget()
8160 if (windows->widget.width < windows->widget.min_width) in XNoticeWidget()
8161 windows->widget.width=windows->widget.min_width; in XNoticeWidget()
8162 windows->widget.height=(unsigned int) (12*height); in XNoticeWidget()
8163 windows->widget.min_height=(unsigned int) (7*height); in XNoticeWidget()
8164 if (windows->widget.height < windows->widget.min_height) in XNoticeWidget()
8165 windows->widget.height=windows->widget.min_height; in XNoticeWidget()
8166 XConstrainWindowPosition(display,&windows->widget); in XNoticeWidget()
8170 (void) CopyMagickString(windows->widget.name,"Notice",MagickPathExtent); in XNoticeWidget()
8171 status=XStringListToTextProperty(&windows->widget.name,1,&window_name); in XNoticeWidget()
8174 XSetWMName(display,windows->widget.id,&window_name); in XNoticeWidget()
8175 XSetWMIconName(display,windows->widget.id,&window_name); in XNoticeWidget()
8178 window_changes.width=(int) windows->widget.width; in XNoticeWidget()
8179 window_changes.height=(int) windows->widget.height; in XNoticeWidget()
8180 window_changes.x=windows->widget.x; in XNoticeWidget()
8181 window_changes.y=windows->widget.y; in XNoticeWidget()
8182 (void) XReconfigureWMWindow(display,windows->widget.id,windows->widget.screen, in XNoticeWidget()
8184 (void) XMapRaised(display,windows->widget.id); in XNoticeWidget()
8185 windows->widget.mapped=MagickFalse; in XNoticeWidget()
8206 ((windows->widget.width >> 1)-(dismiss_info.width >> 1)); in XNoticeWidget()
8208 (windows->widget.height-(dismiss_info.height << 1)); in XNoticeWidget()
8217 x=(int) ((windows->widget.width >> 1)-(width >> 1)); in XNoticeWidget()
8218 y=(int) ((windows->widget.height >> 1)-(height << 1)); in XNoticeWidget()
8219 (void) XDrawString(display,windows->widget.id, in XNoticeWidget()
8220 windows->widget.annotate_context,x,y,(char *) reason,Extent(reason)); in XNoticeWidget()
8224 x=(int) ((windows->widget.width >> 1)-(width >> 1)); in XNoticeWidget()
8226 (void) XDrawString(display,windows->widget.id, in XNoticeWidget()
8227 windows->widget.annotate_context,x,y,(char *) description, in XNoticeWidget()
8230 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XNoticeWidget()
8231 XHighlightWidget(display,&windows->widget,BorderOffset,BorderOffset); in XNoticeWidget()
8255 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XNoticeWidget()
8262 if (windows->widget.mapped == MagickFalse) in XNoticeWidget()
8266 if (event.xbutton.window == windows->widget.id) in XNoticeWidget()
8270 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XNoticeWidget()
8289 if (event.xclient.window == windows->widget.id) in XNoticeWidget()
8301 if (event.xconfigure.window != windows->widget.id) in XNoticeWidget()
8303 if ((event.xconfigure.width == (int) windows->widget.width) && in XNoticeWidget()
8304 (event.xconfigure.height == (int) windows->widget.height)) in XNoticeWidget()
8306 windows->widget.width=(unsigned int) in XNoticeWidget()
8307 MagickMax(event.xconfigure.width,(int) windows->widget.min_width); in XNoticeWidget()
8308 windows->widget.height=(unsigned int) in XNoticeWidget()
8309 MagickMax(event.xconfigure.height,(int) windows->widget.min_height); in XNoticeWidget()
8315 if (event.xcrossing.window != windows->widget.id) in XNoticeWidget()
8322 if (event.xexpose.window != windows->widget.id) in XNoticeWidget()
8340 if (event.xkey.window != windows->widget.id) in XNoticeWidget()
8347 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XNoticeWidget()
8355 if (event.xcrossing.window != windows->widget.id) in XNoticeWidget()
8375 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XNoticeWidget()
8385 (void) XWithdrawWindow(display,windows->widget.id,windows->widget.screen); in XNoticeWidget()
8487 font_info=windows->widget.font_info; in XPreferencesWidget()
8500 windows->widget.width=(unsigned int) (MagickMax((int) (width << 1), in XPreferencesWidget()
8502 windows->widget.min_width=(width << 1)+QuantumMargin; in XPreferencesWidget()
8503 if (windows->widget.width < windows->widget.min_width) in XPreferencesWidget()
8504 windows->widget.width=windows->widget.min_width; in XPreferencesWidget()
8505 windows->widget.height=(unsigned int) in XPreferencesWidget()
8507 windows->widget.min_height=(unsigned int) in XPreferencesWidget()
8509 if (windows->widget.height < windows->widget.min_height) in XPreferencesWidget()
8510 windows->widget.height=windows->widget.min_height; in XPreferencesWidget()
8511 XConstrainWindowPosition(display,&windows->widget); in XPreferencesWidget()
8515 (void) CopyMagickString(windows->widget.name,"Preferences",MagickPathExtent); in XPreferencesWidget()
8516 status=XStringListToTextProperty(&windows->widget.name,1,&window_name); in XPreferencesWidget()
8519 XSetWMName(display,windows->widget.id,&window_name); in XPreferencesWidget()
8520 XSetWMIconName(display,windows->widget.id,&window_name); in XPreferencesWidget()
8523 window_changes.width=(int) windows->widget.width; in XPreferencesWidget()
8524 window_changes.height=(int) windows->widget.height; in XPreferencesWidget()
8525 window_changes.x=windows->widget.x; in XPreferencesWidget()
8526 window_changes.y=windows->widget.y; in XPreferencesWidget()
8527 (void) XReconfigureWMWindow(display,windows->widget.id,windows->widget.screen, in XPreferencesWidget()
8529 (void) XMapRaised(display,windows->widget.id); in XPreferencesWidget()
8530 windows->widget.mapped=MagickFalse; in XPreferencesWidget()
8546 cancel_info.x=(int) windows->widget.width-cancel_info.width- in XPreferencesWidget()
8548 cancel_info.y=(int) windows->widget.height- in XPreferencesWidget()
8598 XDrawBeveledButton(display,&windows->widget,&apply_info); in XPreferencesWidget()
8599 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XPreferencesWidget()
8601 XDrawBeveledButton(display,&windows->widget,&preferences_info[i]); in XPreferencesWidget()
8602 XDrawTriangleEast(display,&windows->widget,&cache_info); in XPreferencesWidget()
8603 XHighlightWidget(display,&windows->widget,BorderOffset,BorderOffset); in XPreferencesWidget()
8620 XDrawBeveledButton(display,&windows->widget,&apply_info); in XPreferencesWidget()
8629 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XPreferencesWidget()
8640 XDrawBeveledButton(display,&windows->widget,&preferences_info[i]); in XPreferencesWidget()
8652 (void) XClearArea(display,windows->widget.id,x,y,width,height, in XPreferencesWidget()
8660 XDrawTriangleEast(display,&windows->widget,&cache_info); in XPreferencesWidget()
8667 if (windows->widget.mapped == MagickFalse) in XPreferencesWidget()
8671 if (event.xbutton.window == windows->widget.id) in XPreferencesWidget()
8675 XDrawBeveledButton(display,&windows->widget,&apply_info); in XPreferencesWidget()
8680 if (event.xbutton.window == windows->widget.id) in XPreferencesWidget()
8684 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XPreferencesWidget()
8689 XDrawTriangleEast(display,&windows->widget,&cache_info); in XPreferencesWidget()
8708 if (event.xclient.window == windows->widget.id) in XPreferencesWidget()
8720 if (event.xconfigure.window != windows->widget.id) in XPreferencesWidget()
8722 if ((event.xconfigure.width == (int) windows->widget.width) && in XPreferencesWidget()
8723 (event.xconfigure.height == (int) windows->widget.height)) in XPreferencesWidget()
8725 windows->widget.width=(unsigned int) in XPreferencesWidget()
8726 MagickMax(event.xconfigure.width,(int) windows->widget.min_width); in XPreferencesWidget()
8727 windows->widget.height=(unsigned int) in XPreferencesWidget()
8728 MagickMax(event.xconfigure.height,(int) windows->widget.min_height); in XPreferencesWidget()
8734 if (event.xcrossing.window != windows->widget.id) in XPreferencesWidget()
8741 if (event.xexpose.window != windows->widget.id) in XPreferencesWidget()
8759 if (event.xkey.window != windows->widget.id) in XPreferencesWidget()
8766 XDrawBeveledButton(display,&windows->widget,&apply_info); in XPreferencesWidget()
8774 if (event.xcrossing.window != windows->widget.id) in XPreferencesWidget()
8794 XDrawBeveledButton(display,&windows->widget,&apply_info); in XPreferencesWidget()
8804 XDrawBeveledButton(display,&windows->widget,&cancel_info); in XPreferencesWidget()
8814 (void) XWithdrawWindow(display,windows->widget.id,windows->widget.screen); in XPreferencesWidget()
9029 font_info=windows->widget.font_info; in XTextViewWidget()
9034 text_info=windows->widget.font_info; in XTextViewWidget()
9047 windows->widget.width=(unsigned int) (MagickMin((int) text_width, in XTextViewWidget()
9049 windows->widget.min_width=(unsigned int) (MinTextWidth+4*QuantumMargin); in XTextViewWidget()
9050 if (windows->widget.width < windows->widget.min_width) in XTextViewWidget()
9051 windows->widget.width=windows->widget.min_width; in XTextViewWidget()
9052 windows->widget.height=(unsigned int) (MagickMin(MagickMax((int) lines,3),32)* in XTextViewWidget()
9054 windows->widget.min_height=(unsigned int) (3*height+((13*height) >> 1)+((9* in XTextViewWidget()
9056 if (windows->widget.height < windows->widget.min_height) in XTextViewWidget()
9057 windows->widget.height=windows->widget.min_height; in XTextViewWidget()
9058 XConstrainWindowPosition(display,&windows->widget); in XTextViewWidget()
9062 (void) CopyMagickString(windows->widget.name,title,MagickPathExtent); in XTextViewWidget()
9063 status=XStringListToTextProperty(&windows->widget.name,1,&window_name); in XTextViewWidget()
9066 XSetWMName(display,windows->widget.id,&window_name); in XTextViewWidget()
9067 XSetWMIconName(display,windows->widget.id,&window_name); in XTextViewWidget()
9070 window_changes.width=(int) windows->widget.width; in XTextViewWidget()
9071 window_changes.height=(int) windows->widget.height; in XTextViewWidget()
9072 window_changes.x=windows->widget.x; in XTextViewWidget()
9073 window_changes.y=windows->widget.y; in XTextViewWidget()
9074 (void) XReconfigureWMWindow(display,windows->widget.id, in XTextViewWidget()
9075 windows->widget.screen,(unsigned int) mask,&window_changes); in XTextViewWidget()
9076 (void) XMapRaised(display,windows->widget.id); in XTextViewWidget()
9077 windows->widget.mapped=MagickFalse; in XTextViewWidget()
9103 dismiss_info.x=(int) windows->widget.width-dismiss_info.width- in XTextViewWidget()
9105 dismiss_info.y=(int) windows->widget.height-dismiss_info.height- in XTextViewWidget()
9115 scroll_info.x=(int) windows->widget.width-QuantumMargin- in XTextViewWidget()
9174 XDrawBeveledMatte(display,&windows->widget,&list_info); in XTextViewWidget()
9175 XDrawBeveledMatte(display,&windows->widget,&scroll_info); in XTextViewWidget()
9176 XDrawTriangleNorth(display,&windows->widget,&north_info); in XTextViewWidget()
9177 XDrawBeveledButton(display,&windows->widget,&slider_info); in XTextViewWidget()
9178 XDrawTriangleSouth(display,&windows->widget,&south_info); in XTextViewWidget()
9179 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XTextViewWidget()
9180 XHighlightWidget(display,&windows->widget,BorderOffset,BorderOffset); in XTextViewWidget()
9203 windows->widget.font_info=text_info; in XTextViewWidget()
9204 (void) XSetFont(display,windows->widget.annotate_context, in XTextViewWidget()
9206 (void) XSetFont(display,windows->widget.highlight_context, in XTextViewWidget()
9217 XDrawWidgetText(display,&windows->widget,&selection_info); in XTextViewWidget()
9220 windows->widget.font_info=font_info; in XTextViewWidget()
9221 (void) XSetFont(display,windows->widget.annotate_context, in XTextViewWidget()
9223 (void) XSetFont(display,windows->widget.highlight_context, in XTextViewWidget()
9240 XDrawTriangleNorth(display,&windows->widget,&north_info); in XTextViewWidget()
9241 XDrawMatte(display,&windows->widget,&expose_info); in XTextViewWidget()
9242 XDrawBeveledButton(display,&windows->widget,&slider_info); in XTextViewWidget()
9243 XDrawTriangleSouth(display,&windows->widget,&south_info); in XTextViewWidget()
9334 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XTextViewWidget()
9370 (void) XSetSelectionOwner(display,XA_PRIMARY,windows->widget.id, in XTextViewWidget()
9372 if (XGetSelectionOwner(display,XA_PRIMARY) != windows->widget.id) in XTextViewWidget()
9383 if (windows->widget.mapped == MagickFalse) in XTextViewWidget()
9392 XDrawTriangleNorth(display,&windows->widget,&north_info); in XTextViewWidget()
9401 XDrawTriangleSouth(display,&windows->widget,&south_info); in XTextViewWidget()
9413 if (event.xbutton.window == windows->widget.id) in XTextViewWidget()
9417 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XTextViewWidget()
9436 if (event.xclient.window == windows->widget.id) in XTextViewWidget()
9448 if (event.xconfigure.window != windows->widget.id) in XTextViewWidget()
9450 if ((event.xconfigure.width == (int) windows->widget.width) && in XTextViewWidget()
9451 (event.xconfigure.height == (int) windows->widget.height)) in XTextViewWidget()
9453 windows->widget.width=(unsigned int) in XTextViewWidget()
9454 MagickMax(event.xconfigure.width,(int) windows->widget.min_width); in XTextViewWidget()
9455 windows->widget.height=(unsigned int) in XTextViewWidget()
9456 MagickMax(event.xconfigure.height,(int) windows->widget.min_height); in XTextViewWidget()
9462 if (event.xcrossing.window != windows->widget.id) in XTextViewWidget()
9469 if (event.xexpose.window != windows->widget.id) in XTextViewWidget()
9490 if (event.xkey.window != windows->widget.id) in XTextViewWidget()
9498 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XTextViewWidget()
9555 if (event.xcrossing.window != windows->widget.id) in XTextViewWidget()
9599 XDrawBeveledButton(display,&windows->widget,&dismiss_info); in XTextViewWidget()
9646 if (text_info != windows->widget.font_info) in XTextViewWidget()
9649 (void) XWithdrawWindow(display,windows->widget.id,windows->widget.screen); in XTextViewWidget()