/usr/include/ibtk/iintbox.h is in libibtk-dev 0.0.14-12ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 61 62 63 64 65 66 | /**************************************************************************\
ibtk (Insomnia's Basic ToolKit)
By Insomnia (Steaphan Greene)
(insomnia@core.binghamton.edu)
Copyright (C) 1999 Steaphan Greene
This program 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 this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
\**************************************************************************/
#ifndef IINTBOX_H
#define IINTBOX_H
#include <X11/X.h>
#include <X11/Xlib.h>
#include "ibox.h"
#include "iwindow.h"
#include "ibutton.h"
#define ELEMENT_SKIP 1
class IIntBox : public IBox {
public:
IIntBox(int v, IWindow *w, int xp, int yp, int xs, int ys);
virtual ~IIntBox();
virtual int Type() { return DODAD_INTBOX; };
void Disable();
void Enable();
virtual int KeyDown(XKeyEvent ev);
virtual int KeyUp(XKeyEvent ev);
virtual void Rebuild();
virtual void Redraw();
char *GetText() { return text; };
int GetVal() { return val; };
void SetText(char *txt);
virtual void SetVal(int v);
void SetNextFocus(IDoDad *in) { nextfocus = in; };
void SetMax(int mx);
void SetMin(int mn);
int ElementFlag(int, int);
void SetElementFlag(int, int);
void ClearElementFlag(int, int);
void Increment();
void Decrement();
protected:
IIntBox() {};
int val, vmax, vmin;
unsigned long int *elfl;
IButton *upb, *dnb;
void Increment(IDoDad *wb, int mb);
void Decrement(IDoDad *wb, int mb);
friend class IButton;
friend void __Callback__IIntBox__Increment(IDoDad *p, IDoDad *d, int v);
friend void __Callback__IIntBox__Decrement(IDoDad *p, IDoDad *d, int v);
};
#endif
|