MagickCore  6.9.12-43
Convert, Edit, Or Compose Bitmap Images
widget.h
Go to the documentation of this file.
1 /*
2  Copyright 1999-2021 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 X11 widget methods.
17 */
18 #ifndef MAGICKCORE_WIDGET_H
19 #define MAGICKCORE_WIDGET_H
20 
21 #if defined(MAGICKCORE_X11_DELEGATE)
22 #include "magick/xwindow-private.h"
23 #endif
24 
25 #if defined(__cplusplus) || defined(c_plusplus)
26 extern "C" {
27 #endif
28 
29 #if defined(MAGICKCORE_X11_DELEGATE)
30 extern MagickExport int
31  XCommandWidget(Display *,XWindows *,const char *const *,XEvent *),
32  XConfirmWidget(Display *,XWindows *,const char *,const char *),
33  XDialogWidget(Display *,XWindows *,const char *,const char *,char *),
34  XMenuWidget(Display *,XWindows *,const char *,const char *const *,char *);
35 
37  XPreferencesWidget(Display *,XResourceInfo *,XWindows *);
38 
39 extern MagickExport void
40  DestroyXWidget(void),
41  XColorBrowserWidget(Display *,XWindows *,const char *,char *),
42  XFileBrowserWidget(Display *,XWindows *,const char *,char *),
43  XFontBrowserWidget(Display *,XWindows *,const char *,char *),
44  XInfoWidget(Display *,XWindows *,const char *),
45  XListBrowserWidget(Display *,XWindows *,XWindowInfo *,const char *const *,
46  const char *,const char *,char *),
47  XNoticeWidget(Display *,XWindows *,const char *,const char *),
48  XProgressMonitorWidget(Display *,XWindows *,const char *,
49  const MagickOffsetType,const MagickSizeType),
50  XTextViewWidget(Display *,const XResourceInfo *,XWindows *,
51  const MagickBooleanType,const char *,const char **);
52 
53 static inline void XTextViewHelp(Display *display,
54  const XResourceInfo *resource_info,XWindows *windows,
55  const MagickBooleanType mono,const char *title,const char *help)
56 {
57  char
58  **help_list;
59 
60  ssize_t
61  i;
62 
63  help_list=StringToList(help);
64  if (help_list == (char **) NULL)
65  return;
66  XTextViewWidget(display,resource_info,windows,mono,title,(const char **)
67  help_list);
68  for (i=0; help_list[i] != (char *) NULL; i++)
69  help_list[i]=DestroyString(help_list[i]);
70  help_list=(char **) RelinquishMagickMemory(help_list);
71 }
72 
73 #endif
74 
75 #if defined(__cplusplus) || defined(c_plusplus)
76 }
77 #endif
78 
79 #endif
static ResourceInfo resource_info
Definition: resource.c:115
ssize_t MagickOffsetType
Definition: magick-type.h:135
MagickBooleanType
Definition: magick-type.h:198
MagickExport char ** StringToList(const char *text)
Definition: string.c:2279
size_t MagickSizeType
Definition: magick-type.h:136
MagickExport char * DestroyString(char *string)
Definition: string.c:821
MagickExport void * RelinquishMagickMemory(void *memory)
Definition: memory.c:1162
#define MagickExport
Definition: method-attribute.h:80