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