2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
23 /* $XConsortium: dtb_utils.h /main/3 1995/11/06 16:18:28 rswiston $ */
26 * CDE Application Builder General Utility Functions
28 * This file was generated by dtcodegen, from project dtmailopts
30 * ** DO NOT MODIFY BY HAND - ALL MODIFICATIONS WILL BE LOST **
36 #include <X11/Intrinsic.h>
40 * Function type for client session save callback
42 typedef Boolean (*DtbClientSessionSaveCB) (
51 char *help_locationID;
52 } DtbObjectHelpDataRec, *DtbObjectHelpData;
55 * Returns answer value for modal MessageBox
67 * Values for MessageBox default button
78 * Types/ways of centering an object
82 DTB_CENTER_POSITION_VERT,
83 DTB_CENTER_POSITION_HORIZ,
84 DTB_CENTER_POSITION_BOTH
85 } DTB_CENTERING_TYPES;
88 * Types of group layout
98 * Types/ways of aligning the children of a group
112 * Structure to store attributes of a group
115 DTB_GROUP_TYPES group_type;
116 DTB_ALIGN_TYPES row_align;
117 DTB_ALIGN_TYPES col_align;
129 * Application Builder utility functions
131 int dtb_cvt_file_to_pixmap(
134 Pixmap *pixmapReturnPtr
136 int dtb_set_label_pixmaps(
139 Pixmap labelInsensitivePixmap
141 int dtb_set_label_from_bitmap_data(
145 unsigned char *bitmapData
147 Boolean dtb_file_has_extension(
151 int dtb_cvt_filebase_to_pixmap(
157 int dtb_cvt_image_file_to_pixmap(
162 int dtb_set_label_from_image_file(
166 unsigned long dtb_cvt_resource_from_string(
169 unsigned int size_of_type,
170 String res_str_value,
171 unsigned long error_value
173 Pixmap dtb_create_greyed_pixmap(
177 void dtb_save_toplevel_widget(
180 Widget dtb_get_toplevel_widget();
181 void dtb_save_command(
184 char * dtb_get_command();
185 String dtb_get_exe_dir(void);
187 void dtb_help_dispatch(
189 XtPointer clientData,
192 #endif /* DEAD_WOOD */
193 void dtb_more_help_dispatch(
195 XtPointer clientData,
198 void dtb_help_back_hdlr(
200 XtPointer clientData,
204 void dtb_do_onitem_help();
205 #endif /* DEAD_WOOD */
206 int dtb_show_help_volume_info(
211 void dtb_call_help_callback(
213 XtPointer clientData,
216 void dtb_children_center(
218 DTB_CENTERING_TYPES type
220 void dtb_children_uncenter(
222 DTB_CENTERING_TYPES type
224 #endif /* DEAD_WOOD */
227 DTB_CENTERING_TYPES type
231 DTB_CENTERING_TYPES type
233 void dtb_children_align(
235 DTB_GROUP_TYPES group_type,
236 DTB_ALIGN_TYPES row_align,
237 DTB_ALIGN_TYPES col_align,
244 void dtb_session_save(
246 XtPointer clientData,
249 DtbClientSessionSaveCB dtb_get_client_session_saveCB();
252 #define dtb_cvt_string_to_pixel(parent, str) \
253 ((Pixel)dtb_cvt_resource_from_string( \
254 (parent), XtRPixel, sizeof(Pixel), (str), 0))
256 #endif /* _DTB_UTILS_H_ */