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 librararies 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: tttk.h /main/3 1995/10/23 10:33:00 rswiston $ */
24 /*%% (c) Copyright 1993, 1994 Hewlett-Packard Company */
25 /*%% (c) Copyright 1993, 1994 International Business Machines Corp. */
26 /*%% (c) Copyright 1993, 1994 Sun Microsystems, Inc. */
27 /*%% (c) Copyright 1993, 1994 Novell, Inc. */
30 * @(#)tttk.h 1.11 93/09/29
37 #include <X11/Intrinsic.h>
39 #if defined(__cplusplus)
96 * Standard vtype names
98 extern const char *Tttk_integer;
99 extern const char *Tttk_string;
100 extern const char *Tttk_boolean;
101 extern const char *Tttk_file;
102 extern const char *Tttk_message_id;
103 extern const char *Tttk_title;
104 extern const char *Tttk_width;
105 extern const char *Tttk_height;
106 extern const char *Tttk_xoffset;
107 extern const char *Tttk_yoffset;
110 **********************************************************************
114 **********************************************************************
118 const char *toolname,
123 Tt_status ttdt_sender_imprint_on(
125 Tt_message commission,
131 XtAppContext app2run,
134 Tt_status ttdt_close(
136 const char *newprocid,
140 **********************************************************************
144 **********************************************************************
146 typedef Tt_message (*Ttdt_contract_cb)(
151 Tt_pattern *ttdt_session_join(
158 Tt_status ttdt_session_quit(
160 Tt_pattern *sess_pats,
164 **********************************************************************
168 **********************************************************************
170 Tt_pattern *ttdt_message_accept(
178 Tt_pattern *ttdt_subcontract_manage(
179 Tt_message subcontract,
185 **********************************************************************
189 **********************************************************************
191 typedef Tt_message (*Ttdt_file_cb)(
199 Tt_pattern *ttdt_file_join(
200 const char *pathname,
206 Tt_status ttdt_file_event(
209 Tt_pattern *patterns,
212 Tt_status ttdt_file_quit(
213 Tt_pattern *patterns,
216 int ttdt_Get_Modified(
218 const char *pathname,
220 XtAppContext app2run,
225 const char *pathname,
227 XtAppContext app2run,
230 Tt_status ttdt_Revert(
232 const char *pathname,
234 XtAppContext app2run,
237 Tt_message ttdt_file_notice(
244 Tt_message ttdt_file_request(
254 **********************************************************************
258 **********************************************************************
260 typedef Tt_message (*Ttmedia_load_pat_cb)(
265 unsigned char *contents,
270 Tt_status ttmedia_ptype_declare(
273 Ttmedia_load_pat_cb cb,
277 typedef Tt_message (*Ttmedia_load_msg_cb)(
281 unsigned char *contents,
285 Tt_message ttmedia_load(
287 Ttmedia_load_msg_cb cb,
290 const char *media_type,
291 const unsigned char *contents,
297 Tt_status ttmedia_load_reply(
299 const unsigned char *new_contents,
301 int reply_and_destroy
303 Tt_status ttmedia_Deposit(
305 const char *buffer_id,
306 const char *media_type,
307 const unsigned char *new_contents,
310 XtAppContext app2run,
314 **********************************************************************
318 **********************************************************************
320 void tttk_Xt_input_handler(
325 Tt_status tttk_block_while(
326 XtAppContext app2run,
330 Tt_message tttk_message_create(
336 Tt_message_callback callback
338 Tt_status tttk_message_destroy(
341 Tt_status tttk_message_reject(
344 const char *status_string,
347 Tt_status tttk_message_fail(
350 const char *status_string,
353 Tt_status tttk_message_abandon(
356 Tttk_op tttk_string_op(
359 char *tttk_op_string(
362 #if defined(__cplusplus)