aboutsummaryrefslogtreecommitdiff
path: root/hcalc.h
diff options
context:
space:
mode:
Diffstat (limited to 'hcalc.h')
-rw-r--r--hcalc.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/hcalc.h b/hcalc.h
new file mode 100644
index 0000000..db70249
--- /dev/null
+++ b/hcalc.h
@@ -0,0 +1,62 @@
+/* Copyright 1998 DJ Delorie <dj@delorie.com>
+ Distributed under the terms of the GNU GPL
+ http://www.delorie.com/store/hcalc/
+ Revisions copyright 2007,
+ Theodore Kilgore <kilgota@auburn.edu>
+ More revisions copyright 2023, B. Watson <urchlay@slackware.uk>
+*/
+
+#define SELF "HCalc"
+#define VERSION "1.2u1"
+
+#include <stdio.h>
+#include <X11/Xlib.h>
+#include <X11/Xutil.h>
+#include <X11/keysym.h>
+#include <X11/Xatom.h>
+
+extern Display *display;
+extern int screen;
+extern Visual *visual;
+extern Colormap cmap;
+extern Window window;
+extern Window rootwin;
+extern GC gc;
+extern Atom wm_protocols_atom;
+extern Atom delete_atom;
+extern Atom paste_atom;
+extern XEvent event;
+
+extern Pixmap face;
+extern Pixmap chars;
+
+extern int base;
+extern int bit_on;
+extern int bit_off;
+
+extern int char_to_x[256];
+extern char charmap[];
+
+extern int widths[3];
+extern int heights[3];
+extern int winsize;
+extern int scale_factor;
+
+extern double value, saved, stored;
+extern int quiet;
+
+void set_bits(int b);
+void set_string(char *s);
+void redraw();
+void key(char c);
+void button(int b, int x, int y);
+void complete_paste(unsigned char *s, int n);
+void send_current_display();
+void setup_x(void);
+void load_pixmaps(void);
+void process_input();
+void load_config(void);
+void save_config(void);
+void show_value();
+
+#define MAXCHARS 15