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; }
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(); }