diff options
Diffstat (limited to 'gdk/win32/gdkmain-win32.c')
-rw-r--r-- | gdk/win32/gdkmain-win32.c | 129 |
1 files changed, 0 insertions, 129 deletions
diff --git a/gdk/win32/gdkmain-win32.c b/gdk/win32/gdkmain-win32.c index 8c684d0223..02ab4eab31 100644 --- a/gdk/win32/gdkmain-win32.c +++ b/gdk/win32/gdkmain-win32.c @@ -389,100 +389,6 @@ _gdk_win32_print_dc (HDC hdc) } gchar * -_gdk_win32_cap_style_to_string (GdkCapStyle cap_style) -{ - switch (cap_style) - { -#define CASE(x) case GDK_CAP_##x: return #x - CASE (NOT_LAST); - CASE (BUTT); - CASE (ROUND); - CASE (PROJECTING); -#undef CASE - default: return static_printf ("illegal_%d", cap_style); - } - /* NOTREACHED */ - return NULL; -} - -gchar * -_gdk_win32_fill_style_to_string (GdkFill fill) -{ - switch (fill) - { -#define CASE(x) case GDK_##x: return #x - CASE (SOLID); - CASE (TILED); - CASE (STIPPLED); - CASE (OPAQUE_STIPPLED); -#undef CASE - default: return static_printf ("illegal_%d", fill); - } - /* NOTREACHED */ - return NULL; -} - -gchar * -_gdk_win32_function_to_string (GdkFunction function) -{ - switch (function) - { -#define CASE(x) case GDK_##x: return #x - CASE (COPY); - CASE (INVERT); - CASE (XOR); - CASE (CLEAR); - CASE (AND); - CASE (AND_REVERSE); - CASE (AND_INVERT); - CASE (NOOP); - CASE (OR); - CASE (EQUIV); - CASE (OR_REVERSE); - CASE (COPY_INVERT); - CASE (OR_INVERT); - CASE (NAND); - CASE (SET); -#undef CASE - default: return static_printf ("illegal_%d", function); - } - /* NOTREACHED */ - return NULL; -} - -gchar * -_gdk_win32_join_style_to_string (GdkJoinStyle join_style) -{ - switch (join_style) - { -#define CASE(x) case GDK_JOIN_##x: return #x - CASE (MITER); - CASE (ROUND); - CASE (BEVEL); -#undef CASE - default: return static_printf ("illegal_%d", join_style); - } - /* NOTREACHED */ - return NULL; -} - -gchar * -_gdk_win32_line_style_to_string (GdkLineStyle line_style) -{ - switch (line_style) - { -#define CASE(x) case GDK_LINE_##x: return #x - CASE(SOLID); - CASE(ON_OFF_DASH); - CASE(DOUBLE_DASH); -#undef CASE - default: return static_printf ("illegal_%d", line_style); - } - /* NOTREACHED */ - return NULL; -} - -gchar * _gdk_win32_drag_protocol_to_string (GdkDragProtocol protocol) { switch (protocol) @@ -503,41 +409,6 @@ _gdk_win32_drag_protocol_to_string (GdkDragProtocol protocol) } gchar * -_gdk_win32_gcvalues_mask_to_string (GdkGCValuesMask mask) -{ - gchar buf[400]; - gchar *bufp = buf; - gchar *s = ""; - - buf[0] = '\0'; - -#define BIT(x) \ - if (mask & GDK_GC_##x) \ - (bufp += g_sprintf (bufp, "%s" #x, s), s = "|") - - BIT (FOREGROUND); - BIT (BACKGROUND); - BIT (FUNCTION); - BIT (FILL); - BIT (TILE); - BIT (STIPPLE); - BIT (CLIP_MASK); - BIT (SUBWINDOW); - BIT (TS_X_ORIGIN); - BIT (TS_Y_ORIGIN); - BIT (CLIP_X_ORIGIN); - BIT (CLIP_Y_ORIGIN); - BIT (EXPOSURES); - BIT (LINE_WIDTH); - BIT (LINE_STYLE); - BIT (CAP_STYLE); - BIT (JOIN_STYLE); -#undef BIT - - return static_printf ("%s", buf); -} - -gchar * _gdk_win32_window_state_to_string (GdkWindowState state) { gchar buf[100]; |