18#ifndef MAGICKCORE_WIDGET_PRIVATE_H
19#define MAGICKCORE_WIDGET_PRIVATE_H
21#include "MagickCore/string_.h"
22#include "MagickCore/xwindow-private.h"
24#if defined(__cplusplus) || defined(c_plusplus)
28#if defined(MAGICKCORE_X11_DELEGATE)
29extern MagickPrivate
int
30 XCommandWidget(Display *,XWindows *,
const char *
const *,XEvent *),
31 XConfirmWidget(Display *,XWindows *,
const char *,
const char *),
32 XDialogWidget(Display *,XWindows *,
const char *,
const char *,
char *),
33 XMenuWidget(Display *,XWindows *,
const char *,
const char *
const *,
char *);
35extern MagickPrivate MagickBooleanType
36 XPreferencesWidget(Display *,XResourceInfo *,XWindows *);
38extern MagickPrivate
void
40 XColorBrowserWidget(Display *,XWindows *,
const char *,
char *),
41 XFileBrowserWidget(Display *,XWindows *,
const char *,
char *),
42 XFontBrowserWidget(Display *,XWindows *,
const char *,
char *),
43 XInfoWidget(Display *,XWindows *,
const char *),
44 XListBrowserWidget(Display *,XWindows *,XWindowInfo *,
const char *
const *,
45 const char *,
const char *,
char *),
46 XNoticeWidget(Display *,XWindows *,
const char *,
const char *),
47 XProgressMonitorWidget(Display *,XWindows *,
const char *,
48 const MagickOffsetType,
const MagickSizeType),
49 XTextViewWidget(Display *,
const XResourceInfo *,XWindows *,
50 const MagickBooleanType,
const char *,
const char **);
52static inline void XTextViewHelp(Display *display,
53 const XResourceInfo *resource_info,XWindows *windows,
54 const MagickBooleanType mono,
const char *title,
const char *help)
62 help_list=StringToList(help);
63 if (help_list == (
char **) NULL)
65 XTextViewWidget(display,resource_info,windows,mono,title,(
const char **)
67 for (i=0; help_list[i] != (
char *) NULL; i++)
68 help_list[i]=DestroyString(help_list[i]);
69 help_list=(
char **) RelinquishMagickMemory(help_list);
74#if defined(__cplusplus) || defined(c_plusplus)