File: gui.h

package info (click to toggle)
qxw 20200708-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 1,160 kB
  • sloc: ansic: 11,130; makefile: 56
file content (60 lines) | stat: -rw-r--r-- 1,603 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
Qxw is a program to help construct and publish crosswords.

Copyright 2011-2020 Mark Owen; Windows port by Peter Flippant
http://www.quinapalus.com
E-mail: qxw@quinapalus.com

This file is part of Qxw.

Qxw is free software: you can redistribute it and/or modify
it under the terms of version 2 of the GNU General Public License
as published by the Free Software Foundation.

Qxw is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with Qxw.  If not, see <http://www.gnu.org/licenses/> or
write to the Free Software Foundation, Inc., 51 Franklin Street,
Fifth Floor, Boston, MA  02110-1301, USA.
*/





#ifndef __GUI_H__
#define __GUI_H__

#define PXEDGE .2  // size of edge of box for clicking bar
#define BAWD .139    // width of bar

extern int selmode;
extern int nsel;
extern int pxsq; // pixels per square on display

extern void setfilenamebase(char*s);

extern void startgtk(void);
extern void stopgtk(void);

// all externally-callable functions respect the global variable usegui
extern void invaldarect(int x0,int y0,int x1,int y1);
extern void invaldaall(void);

extern void stats_upd(void);
extern void syncgui(void);
extern void fserror(void);
extern void fsgerr(void);
extern void reperr(const char*s);
extern void repwarn(const char*s);

extern void killfipdia(void);
extern void setposslabel(char*s);
extern void updatefeas(void);


#endif