NetSurf
query.h
Go to the documentation of this file.
1/*
2 * Copyright 2005 Adrian Lees <adrianl@users.sourceforge.net>
3 *
4 * This file is part of NetSurf, http://www.netsurf-browser.org/
5 *
6 * NetSurf is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * NetSurf is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19#ifndef _NETSURF_RISCOS_QUERY_H
20#define _NETSURF_RISCOS_QUERY_H
21
22#include <stdbool.h>
23#include "oslib/wimp.h"
24
30};
31
32typedef int query_id;
33
34#define QUERY_INVALID ((query_id)-1)
35
36typedef struct
37{
38 void (*confirm)(query_id id, enum query_response res, void *pw);
39 void (*cancel)(query_id, enum query_response res, void *pw);
41
42
43query_id query_user_xy(const char *query, const char *detail,
44 const query_callback *cb, void *pw, const char *yes, const char *no,
45 int x, int y);
46void ro_gui_query_init(void);
48
49query_id query_user(const char *query, const char *detail,
50 const query_callback *cb, void *pw, const char *yes, const char *no);
52
53#endif
void ro_gui_query_init(void)
Definition: query.c:76
void query_close(query_id)
Close a query window without waiting for a response from the user.
Definition: query.c:293
query_response
Definition: query.h:25
@ QUERY_YES
Definition: query.h:27
@ QUERY_CONTINUE
Definition: query.h:26
@ QUERY_NO
Definition: query.h:28
@ QUERY_ESCAPE
Definition: query.h:29
void ro_gui_query_window_bring_to_front(query_id id)
Definition: query.c:303
int query_id
Definition: query.h:32
query_id query_user_xy(const char *query, const char *detail, const query_callback *cb, void *pw, const char *yes, const char *no, int x, int y)
Display a query to the user, requesting a response, at a specified screen position (x,...
Definition: query.c:142
query_id query_user(const char *query, const char *detail, const query_callback *cb, void *pw, const char *yes, const char *no)
Display a query to the user, requesting a response, near the current pointer position to keep the req...
Definition: query.c:112