Mercurial > projects > dwt-linux
diff dwt/widgets/ToolTip.d @ 240:ce446666f5a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 12 May 2008 19:13:01 +0200 |
parents | 380bad9f6852 |
children | 5a30aa9820f3 |
line wrap: on
line diff
--- a/dwt/widgets/ToolTip.d Mon May 12 15:36:37 2008 +0200 +++ b/dwt/widgets/ToolTip.d Mon May 12 19:13:01 2008 +0200 @@ -173,6 +173,14 @@ w-1, h-6+t, w-2, h-5+t, w-2, h-4+t, w-4, h-2+t, w-5, h-2+t, w-6, h-1+t, 5, h-1+t, 4, h-2+t, 3, h-2+t, 1, h-4+t, 1, h-5+t, 0, h-6+t, 0, 5+t]; + if ((parent.style & DWT.MIRRORED) !is 0) { + x -= w - 36; + polyline[12] = w-36; + polyline[14] = w-16; + polyline[16] = w-15; + borderPolygon[12] = w-35; + borderPolygon[14] = borderPolygon[16] = w-16; + } OS.gtk_window_move (cast(GtkWindow*)handle, Math.max(0, x - 17), y); } else { polyline = [ @@ -189,6 +197,13 @@ 35, h-1, 17, h+TIP_HEIGHT-2, 17, h-1, 5, h-1, 4, h-2, 3, h-2, 1, h-4, 1, h-5, 0, h-6, 0, 5]; + if ((parent.style & DWT.MIRRORED) !is 0) { + x -= w - 36; + polyline [42] = polyline [44] = w-16; + polyline [46] = w-35; + borderPolygon[36] = borderPolygon[38] = w-17; + borderPolygon [40] = w-35; + } OS.gtk_window_move (cast(GtkWindow*)handle, Math.max(0, x - 17), y - h - TIP_HEIGHT); } } else { @@ -208,6 +223,13 @@ w-1, h-6+t, w-2, h-5+t, w-2, h-4+t, w-4, h-2+t, w-5, h-2+t, w-6, h-1+t, 5, h-1+t, 4, h-2+t, 3, h-2+t, 1, h-4+t, 1, h-5+t, 0, h-6+t, 0, 5+t]; + if ((parent.style & DWT.MIRRORED) !is 0) { + x += w - 35; + polyline [12] = polyline [14] = 16; + polyline [16] = 35; + borderPolygon[12] = borderPolygon[14] = 16; + borderPolygon [16] = 35; + } OS.gtk_window_move (cast(GtkWindow*)handle, Math.min(dest.width - w, x - w + 17), y); } else { polyline = [ @@ -224,6 +246,13 @@ w-17, h-1, w-17, h+TIP_HEIGHT-2, w-36, h-1, 5, h-1, 4, h-2, 3, h-2, 1, h-4, 1, h-5, 0, h-6, 0, 5]; + if ((parent.style & DWT.MIRRORED) !is 0) { + x += w - 35; + polyline [42] = 35; + polyline [44] = polyline [46] = 16; + borderPolygon[36] = 35; + borderPolygon[38] = borderPolygon [40] = 17; + } OS.gtk_window_move (cast(GtkWindow*)handle, Math.min(dest.width - w, x - w + 17), y - h - TIP_HEIGHT); } }