Lumiera  0.pre.03
»edit your freedom«
rectangle.cpp File Reference

Go to the source code of this file.

Description

Implementation of functions to work with rectangular screen ranges.

Todo:
3/23 this is leftover code from the old GKT-2 Lumiera GUI.

This code should be consolidated into some kind of Cairo drawing utils!

Definition in file rectangle.cpp.

#include "stage/draw/rectangle.hpp"
#include <algorithm>

Functions

bool pt_in_rect (Gdk::Point const &point, Gdk::Rectangle const &rect)
 determine whether point is within the bounding box of a rectangle
 
bool rects_overlap (Gdk::Rectangle const &a, Gdk::Rectangle const &b)
 determine whether two rectangles overlap
 

Namespaces

 stage
 Lumiera GTK UI implementation root.
 
 stage::draw
 Display and drawing helpers and utilities.