1 /* $XConsortium: dtb_utils.h /main/3 1995/11/06 16:18:28 rswiston $ */
4 * CDE Application Builder General Utility Functions
6 * This file was generated by dtcodegen, from project dtmailopts
8 * ** DO NOT MODIFY BY HAND - ALL MODIFICATIONS WILL BE LOST **
14 #include <X11/Intrinsic.h>
18 * Function type for client session save callback
20 typedef Boolean (*DtbClientSessionSaveCB) (
29 char *help_locationID;
30 } DtbObjectHelpDataRec, *DtbObjectHelpData;
33 * Returns answer value for modal MessageBox
45 * Values for MessageBox default button
56 * Types/ways of centering an object
60 DTB_CENTER_POSITION_VERT,
61 DTB_CENTER_POSITION_HORIZ,
62 DTB_CENTER_POSITION_BOTH
63 } DTB_CENTERING_TYPES;
66 * Types of group layout
76 * Types/ways of aligning the children of a group
90 * Structure to store attributes of a group
93 DTB_GROUP_TYPES group_type;
94 DTB_ALIGN_TYPES row_align;
95 DTB_ALIGN_TYPES col_align;
107 * Application Builder utility functions
109 int dtb_cvt_file_to_pixmap(
112 Pixmap *pixmapReturnPtr
114 int dtb_set_label_pixmaps(
117 Pixmap labelInsensitivePixmap
119 int dtb_set_label_from_bitmap_data(
123 unsigned char *bitmapData
125 Boolean dtb_file_has_extension(
129 int dtb_cvt_filebase_to_pixmap(
135 int dtb_cvt_image_file_to_pixmap(
140 int dtb_set_label_from_image_file(
144 unsigned long dtb_cvt_resource_from_string(
147 unsigned int size_of_type,
148 String res_str_value,
149 unsigned long error_value
151 Pixmap dtb_create_greyed_pixmap(
155 void dtb_save_toplevel_widget(
158 Widget dtb_get_toplevel_widget();
159 void dtb_save_command(
162 char * dtb_get_command();
163 String dtb_get_exe_dir(void);
165 void dtb_help_dispatch(
167 XtPointer clientData,
170 #endif /* DEAD_WOOD */
171 void dtb_more_help_dispatch(
173 XtPointer clientData,
176 void dtb_help_back_hdlr(
178 XtPointer clientData,
182 void dtb_do_onitem_help();
183 #endif /* DEAD_WOOD */
184 int dtb_show_help_volume_info(
189 void dtb_call_help_callback(
191 XtPointer clientData,
194 void dtb_children_center(
196 DTB_CENTERING_TYPES type
198 void dtb_children_uncenter(
200 DTB_CENTERING_TYPES type
202 #endif /* DEAD_WOOD */
205 DTB_CENTERING_TYPES type
209 DTB_CENTERING_TYPES type
211 void dtb_children_align(
213 DTB_GROUP_TYPES group_type,
214 DTB_ALIGN_TYPES row_align,
215 DTB_ALIGN_TYPES col_align,
222 void dtb_session_save(
224 XtPointer clientData,
227 DtbClientSessionSaveCB dtb_get_client_session_saveCB();
230 #define dtb_cvt_string_to_pixel(parent, str) \
231 ((Pixel)dtb_cvt_resource_from_string( \
232 (parent), XtRPixel, sizeof(Pixel), (str), 0))
234 #endif /* _DTB_UTILS_H_ */