GdkGCValues values = new GdkGCValues(); OS.gdk_gc_get_values(handle, values);
int line_style = OS.GDK_LINE_ON_OFF_DASH;
public void setLineStyle(int lineStyle) {	if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);	GdkGCValues values = new GdkGCValues();	OS.gdk_gc_get_values(handle, values);	switch (lineStyle) {		case SWT.LINE_SOLID:			data.lineStyle = lineStyle;			OS.gdk_gc_set_line_attributes(handle, values.line_width, OS.GDK_LINE_SOLID, OS.GDK_CAP_BUTT, OS.GDK_JOIN_MITER);			return;		case SWT.LINE_DASH:			OS.gdk_gc_set_dashes(handle, 0, new byte[] {6, 2}, 2);			break;		case SWT.LINE_DOT:			OS.gdk_gc_set_dashes(handle, 0, new byte[] {3, 1}, 2);			break;		case SWT.LINE_DASHDOT:			OS.gdk_gc_set_dashes(handle, 0, new byte[] {6, 2, 3, 1}, 4);			break;		case SWT.LINE_DASHDOTDOT:			OS.gdk_gc_set_dashes(handle, 0, new byte[] {6, 2, 3, 1, 3, 1}, 6);			break;		default:			SWT.error(SWT.ERROR_INVALID_ARGUMENT);	}	data.lineStyle = lineStyle;	OS.gdk_gc_set_line_attributes(handle, values.line_width, OS.GDK_LINE_ON_OFF_DASH, OS.GDK_CAP_BUTT, OS.GDK_JOIN_MITER);}