diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse')
3 files changed, 0 insertions, 128 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/Cairo.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/Cairo.java index 896e139138..0b50f6fd09 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/Cairo.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/Cairo.java @@ -90,10 +90,8 @@ public class Cairo extends Platform { public static final int CAIRO_PATH_CLOSE_PATH = 3; /** 64*/ -public static final native int cairo_font_extents_t_sizeof (); public static final native int cairo_path_data_t_sizeof (); public static final native int cairo_path_t_sizeof (); -public static final native int cairo_text_extents_t_sizeof (); /** Natives */ public static final native int CAIRO_VERSION_ENCODE(int major, int minor, int micro); @@ -270,16 +268,6 @@ public static final void cairo_fill_preserve(long /*int*/ cr) { lock.unlock(); } } -/** @param cr cast=(cairo_t *) */ -public static final native void _cairo_font_extents(long /*int*/ cr, cairo_font_extents_t extents); -public static final void cairo_font_extents(long /*int*/ cr, cairo_font_extents_t extents) { - lock.lock(); - try { - _cairo_font_extents(cr, extents); - } finally { - lock.unlock(); - } -} public static final native long /*int*/ _cairo_font_options_create(); public static final long /*int*/ cairo_font_options_create() { lock.lock(); @@ -382,19 +370,6 @@ public static final void cairo_get_font_matrix(long /*int*/ cr, double[] matrix) lock.unlock(); } } -/** - * @param cr cast=(cairo_t *) - * @param options cast=(cairo_font_options_t *) - */ -public static final native void _cairo_get_font_options(long /*int*/ cr, long /*int*/ options); -public static final void cairo_get_font_options(long /*int*/ cr, long /*int*/ options) { - lock.lock(); - try { - _cairo_get_font_options(cr, options); - } finally { - lock.unlock(); - } -} /** @param cr cast=(cairo_t *) */ public static final native int _cairo_get_line_cap(long /*int*/ cr); public static final int cairo_get_line_cap(long /*int*/ cr) { @@ -1353,19 +1328,6 @@ public static final void cairo_show_page(long /*int*/ cr) { lock.unlock(); } } -/** - * @param cr cast=(cairo_t *) - * @param utf8 cast=(const char *) - */ -public static final native void _cairo_show_text(long /*int*/ cr, byte[] utf8); -public static final void cairo_show_text(long /*int*/ cr, byte[] utf8) { - lock.lock(); - try { - _cairo_show_text(cr, utf8); - } finally { - lock.unlock(); - } -} /** @param cr cast=(cairo_t *) */ public static final native int _cairo_status(long /*int*/ cr); public static final int cairo_status(long /*int*/ cr) { @@ -1551,33 +1513,6 @@ public static final int cairo_surface_set_user_data(long /*int*/ surface, long / } /** * @param cr cast=(cairo_t *) - * @param utf8 cast=(const char *) - * @param extents cast=(cairo_text_extents_t *) - */ -public static final native void _cairo_text_extents(long /*int*/ cr, byte[] utf8, cairo_text_extents_t extents); -public static final void cairo_text_extents(long /*int*/ cr, byte[] utf8, cairo_text_extents_t extents) { - lock.lock(); - try { - _cairo_text_extents(cr, utf8, extents); - } finally { - lock.unlock(); - } -} -/** - * @param cr cast=(cairo_t *) - * @param utf8 cast=(const char *) - */ -public static final native void _cairo_text_path(long /*int*/ cr, byte[] utf8); -public static final void cairo_text_path(long /*int*/ cr, byte[] utf8) { - lock.lock(); - try { - _cairo_text_path(cr, utf8); - } finally { - lock.unlock(); - } -} -/** - * @param cr cast=(cairo_t *) * @param matrix cast=(cairo_matrix_t *) */ public static final native void _cairo_transform(long /*int*/ cr, double[] matrix); diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/cairo_font_extents_t.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/cairo_font_extents_t.java deleted file mode 100644 index 72562b8423..0000000000 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/cairo_font_extents_t.java +++ /dev/null @@ -1,31 +0,0 @@ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: MPL 1.1 - * - * The contents of this file are subject to the Mozilla Public License Version - * 1.1 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * Contributor(s): - * - * IBM - * - Binding to permit interfacing between Cairo and SWT - * - Copyright (C) 2005, 2006 IBM Corp. All Rights Reserved. - * - * ***** END LICENSE BLOCK ***** */ -package org.eclipse.swt.internal.cairo; - - -public class cairo_font_extents_t { - public double ascent; - public double descent; - public double height; - public double max_x_advance; - public double max_y_advance; - public static final int sizeof = Cairo.cairo_font_extents_t_sizeof(); -} diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/cairo_text_extents_t.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/cairo_text_extents_t.java deleted file mode 100644 index 7408d29ab4..0000000000 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/cairo_text_extents_t.java +++ /dev/null @@ -1,32 +0,0 @@ -/* ***** BEGIN LICENSE BLOCK ***** - * Version: MPL 1.1 - * - * The contents of this file are subject to the Mozilla Public License Version - * 1.1 (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" basis, - * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License - * for the specific language governing rights and limitations under the - * License. - * - * Contributor(s): - * - * IBM - * - Binding to permit interfacing between Cairo and SWT - * - Copyright (C) 2005, 2006 IBM Corp. All Rights Reserved. - * - * ***** END LICENSE BLOCK ***** */ -package org.eclipse.swt.internal.cairo; - - -public class cairo_text_extents_t { - public double x_bearing; - public double y_bearing; - public double width; - public double height; - public double x_advance; - public double y_advance; - public static final int sizeof = Cairo.cairo_text_extents_t_sizeof(); -} |