From a12f2434dc9811fcd4c05025b1836951e711548f Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Wed, 10 Sep 2014 22:04:17 +0000 Subject: hide private data --- widget.c | 27 +++++++++++++++++++++++++++ widget.h | 28 +--------------------------- 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); -- cgit v1.2.3