libxputty
0.1
Loading...
Searching...
No Matches
xputty
header
dialogs
xmessage-dialog.h
Go to the documentation of this file.
1
/*
2
* 0BSD
3
*
4
* BSD Zero Clause License
5
*
6
* Copyright (c) 2019 Hermann Meyer
7
*
8
* Permission to use, copy, modify, and/or distribute this software for any
9
* purpose with or without fee is hereby granted.
10
11
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
* AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
* INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
* LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
* PERFORMANCE OF THIS SOFTWARE.
18
*
19
*/
20
21
#pragma once
22
23
#ifndef XMESSAGE_DIALOG_H_
24
#define XMESSAGE_DIALOG_H_
25
26
#include "
xwidgets.h
"
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
32
enum
{
33
INFO_BOX
,
34
WARNING_BOX
,
35
ERROR_BOX
,
36
QUESTION_BOX
,
37
SELECTION_BOX
,
38
ENTRY_BOX
,
39
};
40
41
typedef
struct
{
42
Widget_t
*
text_entry
;
43
char
**
message
;
44
char
**
choices
;
45
Pixmap
*
icon
;
46
int
response
;
47
int
message_type
;
48
unsigned
int
width
;
49
unsigned
int
height
;
50
unsigned
int
lin
;
51
unsigned
int
sel
;
52
}
MessageDialog
;
53
76
Widget_t
*
open_message_dialog
(
Widget_t
*w,
int
style,
const
char
*title,
77
const
char
*message,
const
char
*choices);
78
79
void
radio_box_set_active
(
Widget_t
*w);
80
81
#ifdef __cplusplus
82
}
83
#endif
84
85
#endif
//XMESSAGE_DIALOG_H_
MessageDialog
Definition
xmessage-dialog.h:41
MessageDialog::response
int response
Definition
xmessage-dialog.h:46
MessageDialog::lin
unsigned int lin
Definition
xmessage-dialog.h:50
MessageDialog::choices
char ** choices
Definition
xmessage-dialog.h:44
MessageDialog::message
char ** message
Definition
xmessage-dialog.h:43
MessageDialog::text_entry
Widget_t * text_entry
Definition
xmessage-dialog.h:42
MessageDialog::icon
Pixmap * icon
Definition
xmessage-dialog.h:45
MessageDialog::message_type
int message_type
Definition
xmessage-dialog.h:47
MessageDialog::height
unsigned int height
Definition
xmessage-dialog.h:49
MessageDialog::sel
unsigned int sel
Definition
xmessage-dialog.h:51
MessageDialog::width
unsigned int width
Definition
xmessage-dialog.h:48
Widget_t
Widget_t - struct to hold the basic Widget_t info.
Definition
xwidget.h:457
QUESTION_BOX
@ QUESTION_BOX
Definition
xmessage-dialog.h:36
WARNING_BOX
@ WARNING_BOX
Definition
xmessage-dialog.h:34
ENTRY_BOX
@ ENTRY_BOX
Definition
xmessage-dialog.h:38
SELECTION_BOX
@ SELECTION_BOX
Definition
xmessage-dialog.h:37
ERROR_BOX
@ ERROR_BOX
Definition
xmessage-dialog.h:35
INFO_BOX
@ INFO_BOX
Definition
xmessage-dialog.h:33
open_message_dialog
Widget_t * open_message_dialog(Widget_t *w, int style, const char *title, const char *message, const char *choices)
open_message_dialog - open a non blocking dialog window, lines in message chould be separated by the ...
Definition
xmessage-dialog.c:386
radio_box_set_active
void radio_box_set_active(Widget_t *w)
Definition
xmessage-dialog.c:235
Pixmap
XID Pixmap
Definition
xputty-mswin.h:53
xwidgets.h
xwidgets.h include some predefined widgets for libxputty, include this to use them if you would only ...
Generated by
1.9.8