diff options
Diffstat (limited to 'gfx/gtk_util.h')
-rw-r--r-- | gfx/gtk_util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gfx/gtk_util.h b/gfx/gtk_util.h index 8f9618d..683b80c 100644 --- a/gfx/gtk_util.h +++ b/gfx/gtk_util.h @@ -16,6 +16,7 @@ typedef struct _GdkPixbuf GdkPixbuf; typedef struct _GdkRegion GdkRegion; +typedef struct _GdkCursor GdkCursor; class CommandLine; class SkBitmap; @@ -42,6 +43,10 @@ void SubtractRectanglesFromRegion(GdkRegion* region, // resolution hasn't been set. double GetPangoResolution(); +// Returns a static instance of a GdkCursor* object, sharable across the +// process. Caller must gdk_cursor_ref() it if they want to assume ownership. +GdkCursor* GetCursor(int type); + // Change windows accelerator style to GTK style. (GTK uses _ for // accelerators. Windows uses & with && as an escape for &.) std::string ConvertAcceleratorsFromWindowsStyle(const std::string& label); |