/usr/include/oglappth/base_wnd.h is in liboglappth-dev 1.0.0-1.
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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | // BASE_WND.H : an OpenGL window base class.
// Copyright (C) 2005 Tommi Hassinen.
// This package is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
// This package 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 package; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
/*################################################################################################*/
//#include "config.h"
#ifndef BASE_WND_H
#define BASE_WND_H
/*################################################################################################*/
class base_wnd;
#include "base_wcl.h"
#include "ogl_camera.h"
/*################################################################################################*/
// base_wnd class defines the properties common to all wnd (window) classes.
// a window class is always an OpenGL window. it should implement a pop-up
// menu which is always operated using the right mouse button.
// a window is (normally) linked to a window client object, which knows how
// to display the information and how to process the user inputs (mouse
// movements and clicks other than popup-menu-operation related ones).
class base_wnd
{
private:
base_wcl * wcl; // link/unlink will handle this...
bool is_realized; // true if SetCurrent() etc works...
bool is_initialized; // true if InitGL() is called...
int size[2]; // size of the window, in pixels.
friend class base_wcl;
public:
base_wnd(void);
virtual ~base_wnd(void);
base_wcl * GetClient(void);
bool GetRealized(void);
bool GetInitialized(void);
int GetWidth(void);
int GetHeight(void);
virtual void RequestUpdate(bool) = 0;
virtual void RequestResize(int, int) = 0;
virtual bool SetCurrent(void) = 0;
virtual bool IsTimerON(void);
virtual void SetTimerON(int);
virtual void SetTimerOFF(void);
protected:
void SetRealized(void);
void SetInitialized(void);
void SetWidth(int);
void SetHeight(int);
virtual void TitleChanged(void) = 0;
};
/*################################################################################################*/
#endif // BASE_WND_H
// eof
|