GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
include
widgets
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
35
enum
gp_dialog_msg_type
{
37
GP_DIALOG_MSG_INFO
,
39
GP_DIALOG_MSG_WARN
,
41
GP_DIALOG_MSG_ERR
,
43
GP_DIALOG_MSG_QUESTION
,
44
};
45
49
enum
gp_dialog_retval
{
51
GP_DIALOG_EXIT
= 1,
53
GP_DIALOG_YES
= 1,
55
GP_DIALOG_NO
= 2,
57
GP_DIALOG_ERR
= 99,
58
};
59
69
int
gp_dialog_msg_run
(
enum
gp_dialog_msg_type
type,
70
const
char
*title,
const
char
*msg);
71
82
int
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 */
gp_compiler.h
A compiler dependent macros.
GP_FMT_PRINTF
#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
gp_dialog_msg_type
A message dialog type.
Definition
gp_dialog_msg.h:35
GP_DIALOG_MSG_ERR
@ GP_DIALOG_MSG_ERR
Definition
gp_dialog_msg.h:41
GP_DIALOG_MSG_QUESTION
@ GP_DIALOG_MSG_QUESTION
Definition
gp_dialog_msg.h:43
GP_DIALOG_MSG_INFO
@ GP_DIALOG_MSG_INFO
Definition
gp_dialog_msg.h:37
GP_DIALOG_MSG_WARN
@ GP_DIALOG_MSG_WARN
Definition
gp_dialog_msg.h:39
gp_dialog_retval
gp_dialog_retval
A dialog return value.
Definition
gp_dialog_msg.h:49
GP_DIALOG_EXIT
@ GP_DIALOG_EXIT
Definition
gp_dialog_msg.h:51
GP_DIALOG_ERR
@ GP_DIALOG_ERR
Definition
gp_dialog_msg.h:57
GP_DIALOG_NO
@ GP_DIALOG_NO
Definition
gp_dialog_msg.h:55
GP_DIALOG_YES
@ GP_DIALOG_YES
Definition
gp_dialog_msg.h:53
gp_dialog_msg_printf_run
int gp_dialog_msg_printf_run(enum gp_dialog_msg_type type, const char *title, const char *fmt,...)
Runs a dialog.
gp_dialog_msg_run
int gp_dialog_msg_run(enum gp_dialog_msg_type type, const char *title, const char *msg)
Runs a dialog.
Generated by
1.9.8