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-2021 Cyril Hrubis <metan@ucw.cz>
6
7 */
8
26#ifndef GP_DIALOG_MSG_H
27#define GP_DIALOG_MSG_H
28
29#include <core/gp_compiler.h>
30#include <widgets/gp_widget_types.h>
31
45
59
70 const char *title, const char *msg);
71
82int gp_dialog_msg_printf_run(enum gp_dialog_msg_type type, const char *title,
83 const char *fmt, ...) GP_FMT_PRINTF(3, 4);
84
85#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:30
gp_dialog_msg_type
A message dialog type.
@ GP_DIALOG_MSG_ERR
@ GP_DIALOG_MSG_QUESTION
@ GP_DIALOG_MSG_INFO
@ GP_DIALOG_MSG_WARN
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.