/usr/include/ibtk/igbox.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 | /**************************************************************************\
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 IGBOX_H
#define IGBOX_H
#include <X11/X.h>
#include <X11/Xlib.h>
#include "idodad.h"
#include "iwindow.h"
class IGBox : public IDoDad {
public:
IGBox(IWindow *w, int xp, int yp, int xs, int ys);
virtual ~IGBox();
virtual int Type() { return DODAD_BOX; };
void Disable();
void Enable();
virtual void Redraw();
virtual void Rebuild();
virtual void Resize(int, int);
virtual void Move(int, int);
virtual void MoveAndResize(int, int, int, int);
virtual int Press(int b, int x, int y);
virtual int Release(int b, int x, int y);
void SetClickCallback(void (*cb)(IDoDad *, IDoDad *, int, int));
void SetDragCallback(void (*cb)(IDoDad *, IDoDad *, int, int, int, int));
void DrawPoint(int x, int y, int r, int g, int b);
void DrawLine(int x1, int y1, int x2, int y2, int r, int g, int b);
void DrawRect(int x1, int y1, int x2, int y2, int r, int g, int b);
void FillRect(int xp, int yp, int xs, int ys, int r, int g, int b);
protected:
IGBox() {};
void Init(IWindow *w, int xp, int yp, int xs, int ys);
void Create();
Pixmap Img;
int xpos, ypos, xsize, ysize;
int lastx, lasty;
void (*clickcallback)(IDoDad *, IDoDad *, int, int);
void (*dragcallback)(IDoDad *, IDoDad *, int, int, int, int);
};
#endif
|