Example #1
0
gcc_pure
static bool
IsFullWindow(const Window &w, int width, int height)
{
    return w.IsVisible() &&
           w.GetLeft() <= 0 && w.GetRight() >= (int)width &&
           w.GetTop() <= 0 && w.GetBottom() >= (int)height;
}
Example #2
0
gcc_pure
static bool
IsAt(Window &w, PixelScalar x, PixelScalar y)
{
    return w.IsVisible() &&
           x >= w.GetLeft() && x < w.GetRight() &&
           y >= w.GetTop() && y < w.GetBottom();
}