aboutsummaryrefslogtreecommitdiff
path: root/src/confirm.h
blob: 21161f2cbc4c518130c05d6144444d5f0800b348 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
 * @file confirm.h
 * @author Joe Wingbermuehle
 * @date 2004-2006
 *
 * @brief Header for the confirm dialog functions.
 *
 */

#ifndef CONFIRM_H
#define CONFIRM_H

struct ClientNode;

/*@{*/
void InitializeDialogs();
void StartupDialogs();
void ShutdownDialogs();
void DestroyDialogs();
/*@}*/

/** Handle an event on a dialog window.
 * @param event The event.
 * @return 1 if handled, 0 if not handled.
 */
int ProcessDialogEvent(const XEvent *event);

/** Show a confirm dialog.
 * @param np A client window associated with the dialog.
 * @param action A callback to run if "OK" is clicked.
 */
void ShowConfirmDialog(struct ClientNode *np,
	void (*action)(struct ClientNode*), ...);

#endif