MagickCore  7.1.0
Convert, Edit, Or Compose Bitmap Images
widget-private.h
1 /*
2  Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization
3  dedicated to making software imaging solutions freely available.
4 
5  You may not use this file except in compliance with the License. You may
6  obtain a copy of the License at
7 
8  https://imagemagick.org/script/license.php
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 
16  MagickCore private X11 widget methods.
17 */
18 #ifndef MAGICKCORE_WIDGET_PRIVATE_H
19 #define MAGICKCORE_WIDGET_PRIVATE_H
20 
21 #include "MagickCore/string_.h"
22 #include "MagickCore/xwindow-private.h"
23 
24 #if defined(__cplusplus) || defined(c_plusplus)
25 extern "C" {
26 #endif
27 
28 #if defined(MAGICKCORE_X11_DELEGATE)
29 extern 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 *);
34 
35 extern MagickPrivate MagickBooleanType
36  XPreferencesWidget(Display *,XResourceInfo *,XWindows *);
37 
38 extern MagickPrivate void
39  DestroyXWidget(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 **);
51 
52 static inline void XTextViewHelp(Display *display,
53  const XResourceInfo *resource_info,XWindows *windows,
54  const MagickBooleanType mono,const char *title,const char *help)
55 {
56  char
57  **help_list;
58 
59  ssize_t
60  i;
61 
62  help_list=StringToList(help);
63  if (help_list == (char **) NULL)
64  return;
65  XTextViewWidget(display,resource_info,windows,mono,title,(const char **)
66  help_list);
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);
70 }
71 
72 #endif
73 
74 #if defined(__cplusplus) || defined(c_plusplus)
75 }
76 #endif
77 
78 #endif