widget-private.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 private X11 widget methods.
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

Generated on 6 Jan 2020 for MagickCore by  doxygen 1.6.1