diff options
Diffstat (limited to 'src/confirm.h')
-rw-r--r-- | src/confirm.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/confirm.h b/src/confirm.h new file mode 100644 index 0000000..21161f2 --- /dev/null +++ b/src/confirm.h @@ -0,0 +1,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 + |