00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef MAGICKCORE_WIDGET_H
00019 #define MAGICKCORE_WIDGET_H
00020
00021 #if defined(MAGICKCORE_X11_DELEGATE)
00022 #include "magick/xwindow-private.h"
00023 #endif
00024
00025 #if defined(__cplusplus) || defined(c_plusplus)
00026 extern "C" {
00027 #endif
00028
00029 #if defined(MAGICKCORE_X11_DELEGATE)
00030 extern MagickExport int
00031 XCommandWidget(Display *,XWindows *,const char *const *,XEvent *),
00032 XConfirmWidget(Display *,XWindows *,const char *,const char *),
00033 XDialogWidget(Display *,XWindows *,const char *,const char *,char *),
00034 XMenuWidget(Display *,XWindows *,const char *,const char *const *,char *);
00035
00036 extern MagickExport MagickBooleanType
00037 XPreferencesWidget(Display *,XResourceInfo *,XWindows *);
00038
00039 extern MagickExport void
00040 DestroyXWidget(void),
00041 XColorBrowserWidget(Display *,XWindows *,const char *,char *),
00042 XFileBrowserWidget(Display *,XWindows *,const char *,char *),
00043 XFontBrowserWidget(Display *,XWindows *,const char *,char *),
00044 XInfoWidget(Display *,XWindows *,const char *),
00045 XListBrowserWidget(Display *,XWindows *,XWindowInfo *,const char *const *,
00046 const char *,const char *,char *),
00047 XNoticeWidget(Display *,XWindows *,const char *,const char *),
00048 XProgressMonitorWidget(Display *,XWindows *,const char *,
00049 const MagickOffsetType,const MagickSizeType),
00050 XTextViewWidget(Display *,const XResourceInfo *,XWindows *,
00051 const MagickBooleanType,const char *,const char **);
00052
00053 static inline void XTextViewHelp(Display *display,
00054 const XResourceInfo *resource_info,XWindows *windows,
00055 const MagickBooleanType mono,const char *title,const char *help)
00056 {
00057 char
00058 **help_list;
00059
00060 ssize_t
00061 i;
00062
00063 help_list=StringToList(help);
00064 if (help_list == (char **) NULL)
00065 return;
00066 XTextViewWidget(display,resource_info,windows,mono,title,(const char **)
00067 help_list);
00068 for (i=0; help_list[i] != (char *) NULL; i++)
00069 help_list[i]=DestroyString(help_list[i]);
00070 help_list=(char **) RelinquishMagickMemory(help_list);
00071 }
00072
00073 #endif
00074
00075 #if defined(__cplusplus) || defined(c_plusplus)
00076 }
00077 #endif
00078
00079 #endif