Debian Codegraph @

source/guiclass.h

raw
1 // ----------------------------------------------------------------------------
2 //
3 // Copyright (C) 2003-2013 Fons Adriaensen <[email protected]>
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 //
10 // This program 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
20
21 #ifndef __GUICLASS_H
22 #define __GUICLASS_H
23
24 #include <clxclient.h>
25
26
27 class Radiosel : public X_callback
28 {
29 public:
30
31 Radiosel (X_window *parw, X_callback *xcbh);
32 ~Radiosel (void);
33
34 void init (X_button_style *bst, X_textln_style *tst, const char **text,
35 int nbut, int xpos, int ypos, int xsize, int ystep, int cbid);
36
37 void set_stat (int stat);
38 int stat (void) const { return _stat; }
39
40 private:
41
42 void handle_callb (int k, X_window *W, _XEvent *E);
43
44 int _nbut;
45 int _stat;
46 int _cbid;
47 X_button **_butt;
48 X_window *_parw;
49 X_callback *_xcbh;
50 };
51
52
53 #endif