-
-
Notifications
You must be signed in to change notification settings - Fork 246
Expand file tree
/
Copy pathgtk_utils.h
More file actions
18 lines (16 loc) · 771 Bytes
/
gtk_utils.h
File metadata and controls
18 lines (16 loc) · 771 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef _BDW_GTK_UTILS_
#define _BDW_GTK_UTILS_
#include <gdk/gdk.h>
#include <gtk/gtk.h>
namespace bitsdojo_window {
GList* gtk_container_get_all_children(GtkContainer* container);
GdkCursorType edgeToCursor(GdkWindowEdge edge);
const gchar* getCursorForEdge(GdkWindowEdge edge);
bool getWindowEdge(int width, int height, gdouble x, double y,
GdkWindowEdge* edge, int margin);
void getMousePositionOnScreen(GtkWindow* window, gint* x, gint* y);
void getScreenRectForWindow(GtkWindow* window, GdkRectangle* rect);
void getScaleFactorForWindow(GtkWindow* window, gint* scaleFactor);
void emitMouseMoveEvent(GtkWidget* widget, int x, int y, GdkDevice *device);
} // namespace bitsdojo_window
#endif // _BDW_GTK_UTILS_