summaryrefslogtreecommitdiffstats
path: root/base/gfx/gtk_util.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/gfx/gtk_util.h')
-rwxr-xr-xbase/gfx/gtk_util.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/base/gfx/gtk_util.h b/base/gfx/gtk_util.h
new file mode 100755
index 0000000..7062d59
--- /dev/null
+++ b/base/gfx/gtk_util.h
@@ -0,0 +1,22 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BASE_GFX_GTK_UTIL_H_
+#define BASE_GFX_GTK_UTIL_H_
+
+#include <vector>
+
+typedef struct _GdkRegion GdkRegion;
+
+namespace gfx {
+
+class Rect;
+
+// Modify the given region by subtracting the given rectangles.
+void SubtractRectanglesFromRegion(GdkRegion* region,
+ const std::vector<gfx::Rect>& cutouts);
+
+} // namespace gfx
+
+#endif // BASE_GFX_GTK_UTIL_H_