[773] | 1 | // "$Id: Monitor.h 3961 2005-01-24 08:07:59Z spitzak $" |
---|
| 2 | // |
---|
| 3 | // Copyright 1998-2004 by Bill Spitzak and others. |
---|
| 4 | // |
---|
| 5 | // This library is free software; you can redistribute it and/or |
---|
| 6 | // modify it under the terms of the GNU Library General Public |
---|
| 7 | // License as published by the Free Software Foundation; either |
---|
| 8 | // version 2 of the License, or (at your option) any later version. |
---|
| 9 | // |
---|
| 10 | // This library 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 GNU |
---|
| 13 | // Library General Public License for more details. |
---|
| 14 | // |
---|
| 15 | // You should have received a copy of the GNU Library General Public |
---|
| 16 | // License along with this library; if not, write to the Free Software |
---|
| 17 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 |
---|
| 18 | // USA. |
---|
| 19 | // |
---|
| 20 | // Please report all bugs and problems to "fltk-bugs@fltk.org". |
---|
| 21 | |
---|
| 22 | #ifndef fltk_Monitor_h |
---|
| 23 | #define fltk_Monitor_h |
---|
| 24 | |
---|
| 25 | #include "Rectangle.h" |
---|
| 26 | |
---|
| 27 | namespace fltk { |
---|
| 28 | |
---|
| 29 | class FL_API Monitor : public Rectangle { |
---|
| 30 | int depth_; |
---|
| 31 | float dpi_x_; |
---|
| 32 | float dpi_y_; |
---|
| 33 | public: |
---|
| 34 | Rectangle work; // Allows you to do rect->work.x(), etc. |
---|
| 35 | int depth() const {return depth_;} |
---|
| 36 | float dpi_x() const {return dpi_x_;} |
---|
| 37 | float dpi_y() const {return dpi_y_;} |
---|
| 38 | float dpi() const {return dpi_y_;} |
---|
| 39 | static int list(const Monitor**); |
---|
| 40 | static const Monitor& all(); |
---|
| 41 | static const Monitor& find(int x, int y); |
---|
| 42 | }; |
---|
| 43 | |
---|
| 44 | } |
---|
| 45 | |
---|
| 46 | #endif |
---|