Lumiera  0.pre.03
»edit your freedom«
rectangle.hpp
Go to the documentation of this file.
1 /*
2  RECTANGLE.hpp - utility functions for GDK rectangles
3 
4  Copyright (C)
5  2008, Joel Holdsworth <joel@airwebreathe.org.uk>
6 
7   **Lumiera** is free software; you can redistribute it and/or modify it
8   under the terms of the GNU General Public License as published by the
9   Free Software Foundation; either version 2 of the License, or (at your
10   option) any later version. See the file COPYING for further details.
11 
12 * *****************************************************************/
13 
14 
22 #ifndef STAGE_DRAW_RECTANGLE_H
23 #define STAGE_DRAW_RECTANGLE_H
24 
25 #include "stage/gtk-base.hpp"
26 
27 namespace stage {
28 namespace draw {
29 
31  bool pt_in_rect(Gdk::Point const& point, Gdk::Rectangle const& rect);
32 
33 
35  bool rects_overlap(Gdk::Rectangle const& a, Gdk::Rectangle const& b);
36 
37 
38 }}// namespace stage::draw
39 #endif /*STAGE_DRAW_RECTANGLE_H*/
bool rects_overlap(Gdk::Rectangle const &a, Gdk::Rectangle const &b)
determine whether two rectangles overlap
Definition: rectangle.cpp:41
bool pt_in_rect(const Gdk::Point &point, const Gdk::Rectangle &rect)
determine whether point is within the bounding box of a rectangle
Definition: rectangle.cpp:32
Lumiera GTK UI implementation root.
Definition: guifacade.cpp:37
A set of basic GTK includes for the UI.