aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-10 22:04:17 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-10 22:04:17 +0000
commita12f2434dc9811fcd4c05025b1836951e711548f (patch)
tree1293aa09601306858e9914a4dae03b99ec8ee31c
parent0627865a8be5ccc4754e524ecbef8fe42c78e325 (diff)
hide private data
-rw-r--r--widget.c27
-rw-r--r--widget.h28
2 files changed, 28 insertions, 27 deletions
diff --git a/widget.c b/widget.c
index 3bdb49a..3c26589 100644
--- a/widget.c
+++ b/widget.c
@@ -23,6 +23,33 @@
#include "widget.h"
#include "cms.h"
+struct background {
+ Pixmap pix;
+ Pixmap mask;
+ GC gc;
+ XRectangle geo;
+};
+
+struct subwin {
+ Window win;
+ Pixmap pix; /* buffer */
+ GC gc;
+ XRectangle geo;
+};
+
+struct panel {
+ Display *dsp;
+ Window win; /* container */
+ struct subwin *wf;
+ struct subwin *sp;
+ struct background *bg;
+ struct background *shadow;
+ int mirror;
+ int maxval;
+ double *data;
+ unsigned long *palette;
+};
+
struct palette p_spectr = {{ 120.0, 100.0, 75.0 }, { 0.0, 100.0, 25.0 }};
struct palette p_shadow = {{ 120.0, 100.0, 10.0 }, { 0.0, 100.0, 10.0 }};
struct palette p_waterfall = {{ 210.0, 75.0, 0.0 }, { 180.0, 100.0, 100.0 }};
diff --git a/widget.h b/widget.h
index 193462e..08998bf 100644
--- a/widget.h
+++ b/widget.h
@@ -21,34 +21,8 @@
#define HGAP 4
#define VGAP 1
-struct background {
- Pixmap pix;
- Pixmap mask;
- GC gc;
- XRectangle geo;
-};
-
-struct subwin {
- Window win;
- Pixmap pix; /* buffer */
- GC gc;
- XRectangle geo;
-};
-
-struct panel {
- Display *dsp;
- Window win; /* container */
- struct subwin *wf;
- struct subwin *sp;
- struct background *bg;
- struct background *shadow;
- int mirror;
- int maxval;
- double *data;
- unsigned long *palette;
-};
-
enum mirror { LTR, RTL };
+struct panel;
__BEGIN_DECLS
struct panel *init_panel(Display *, Window, XRectangle, enum mirror);