123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- /* selectrectangle.hpp: Handles creating rectangles on the screen.
- *
- * Copyright (C) 2014: Dalton Nell, Slop Contributors (https://github.com/naelstrof/slop/graphs/contributors).
- *
- * This file is part of Slop.
- *
- * Slop 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 3 of the License, or
- * (at your option) any later version.
- *
- * Slop 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 Slop. If not, see <http://www.gnu.org/licenses/>.
- */
-
- #ifndef IS_SELECT_RECTANGLE_H_
- #define IS_SELECT_RECTANGLE_H_
-
- #include "x.hpp"
- #include "selectrectangle.hpp"
- #include "shader.hpp"
-
- #include <unistd.h>
-
- #include <X11/Xlib.h>
- #include <X11/extensions/shape.h>
- #include <X11/Xatom.h>
-
- #include <cstdlib>
- #include <cmath>
- #include <cstdio>
- #include <string>
- #include <vector>
-
- namespace slop {
-
- class SelectRectangle {
- public:
- virtual ~SelectRectangle();
- virtual void setGeo( int x, int y, int w, int h );
- virtual void update( double dt );
- Window m_window;
- int m_x;
- int m_y;
- int m_width;
- int m_height;
- int m_border;
- bool m_highlight;
- };
-
- bool isSelectRectangleSupported();
-
- }
-
- #endif // IS_SELECT_RECTANGLE_H_
|