widget.h

Go to the documentation of this file.
00001 /*
00002   Copyright 1999-2020 ImageMagick Studio LLC, a non-profit organization
00003   dedicated to making software imaging solutions freely available.
00004   
00005   You may not use this file except in compliance with the License.  You may
00006   obtain a copy of the License at
00007   
00008     https://imagemagick.org/script/license.php
00009   
00010   Unless required by applicable law or agreed to in writing, software
00011   distributed under the License is distributed on an "AS IS" BASIS,
00012   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013   See the License for the specific language governing permissions and
00014   limitations under the License.
00015 
00016   MagickCore X11 widget methods.
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

Generated on 28 Apr 2020 for MagickCore by  doxygen 1.6.1