return icon;
}
-HICON
-_gdk_win32_texture_to_hicon (GdkTexture *texture)
-{
- cairo_surface_t *surface;
- GdkPixbuf *pixbuf;
- int width, height;
- HICON icon;
-
- surface = gdk_texture_download_surface (texture);
- width = cairo_image_surface_get_width (surface);
- height = cairo_image_surface_get_height (surface);
-
- pixbuf = gdk_pixbuf_get_from_surface (surface, 0, 0, width, height);
-
- icon = pixbuf_to_hicon (pixbuf, TRUE, 0, 0);
-
- g_object_unref (pixbuf);
-
- return icon;
-}
-
/**
* gdk_win32_display_get_win32hcursor:
* @display: (type GdkWin32Display): a `GdkDisplay`
return result;
}
-
-/* keypad decimal mark depends on active keyboard layout
- * return current decimal mark as unicode character
- */
-guint32
-_gdk_win32_keymap_get_decimal_mark (GdkWin32Keymap *keymap)
-{
- guint32 c = MapVirtualKeyW (VK_DECIMAL, MAPVK_VK_TO_CHAR);
- if (!c)
- c = (guint32) '.';
- return c;
-}
-
static void
update_keymap (GdkWin32Keymap *keymap)
{
void _gdk_win32_begin_modal_call (GdkWin32ModalOpKind kind);
void _gdk_win32_end_modal_call (GdkWin32ModalOpKind kind);
-/* Convert a pixbuf to an HICON (or HCURSOR). Supports alpha under
- * Windows XP, thresholds alpha otherwise.
- */
-HICON _gdk_win32_texture_to_hicon (GdkTexture *texture);
-
void _gdk_win32_display_init_cursors (GdkWin32Display *display);
void _gdk_win32_display_finalize_cursors (GdkWin32Display *display);
void _gdk_win32_display_update_cursors (GdkWin32Display *display);
GdkDisplay *_gdk_win32_display_open (const char *display_name);
void _gdk_win32_append_event (GdkEvent *event);
-
-guint32 _gdk_win32_keymap_get_decimal_mark (GdkWin32Keymap *keymap);
-
void _gdk_win32_surface_handle_aerosnap (GdkSurface *window,
GdkWin32AeroSnapCombo combo);