GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_dialog_msg.h
Go to the documentation of this file.
1//SPDX-License-Identifier: LGPL-2.0-or-later
2
3/*
4
5 Copyright (c) 2014-2024 Cyril Hrubis <metan@ucw.cz>
6
7 */
8
14#ifndef GP_DIALOG_MSG_H
15#define GP_DIALOG_MSG_H
16
17#include <core/gp_compiler.h>
19
49
63
74 const char *title, const char *msg);
75
86int gp_dialog_msg_printf_run(enum gp_dialog_msg_type type, const char *title,
87 const char *fmt, ...) GP_FMT_PRINTF(3, 4);
88
89#endif /* GP_DIALOG_MSG_H */
A compiler dependent macros.
#define GP_FMT_PRINTF(fmt, list)
Expands to format printf attribute when supported by the compiler.
Definition gp_compiler.h:31
gp_dialog_msg_type
A message dialog type.
@ GP_DIALOG_MSG_ERR
An error dialog.
@ GP_DIALOG_MSG_QUESTION
A yes or no question dialog.
@ GP_DIALOG_MSG_INFO
An info dialog.
@ GP_DIALOG_MSG_WARN
A warning dialog.
gp_dialog_retval
A dialog return value.
@ GP_DIALOG_EXIT
@ GP_DIALOG_ERR
@ GP_DIALOG_NO
@ GP_DIALOG_YES
int gp_dialog_msg_printf_run(enum gp_dialog_msg_type type, const char *title, const char *fmt,...)
Runs a dialog.
int gp_dialog_msg_run(enum gp_dialog_msg_type type, const char *title, const char *msg)
Runs a dialog.
Common widget types.