| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_BASE_GTK_GTK_SCREEN_UTILS_H_ | |
| 6 #define UI_BASE_GTK_GTK_SCREEN_UTILS_H_ | |
| 7 | |
| 8 #include <gtk/gtk.h> | |
| 9 | |
| 10 #include "ui/base/ui_export.h" | |
| 11 #include "ui/gfx/point.h" | |
| 12 | |
| 13 namespace ui { | |
| 14 | |
| 15 // Returns true if the screen is composited, false otherwise. | |
| 16 UI_EXPORT bool IsScreenComposited(); | |
| 17 | |
| 18 // Get the current location of the mouse cursor relative to the screen. | |
| 19 UI_EXPORT gfx::Point ScreenPoint(GtkWidget* widget); | |
| 20 | |
| 21 // Get the current location of the mouse cursor relative to the widget. | |
| 22 UI_EXPORT gfx::Point ClientPoint(GtkWidget* widget); | |
| 23 | |
| 24 } // namespace ui | |
| 25 | |
| 26 #endif // UI_BASE_GTK_GTK_SCREEN_UTILS_H_ | |
| OLD | NEW |