diff options
author | Silenio Quarti <Silenio_Quarti@ca.ibm.com> | 2011-10-21 10:05:24 -0400 |
---|---|---|
committer | Silenio Quarti <Silenio_Quarti@ca.ibm.com> | 2011-10-21 10:05:24 -0400 |
commit | b7b4e1057fbda36ea8206b61ea0ecd34b053c4a9 (patch) | |
tree | 043ae6129d8820eed5d1ca4c3af77e87c7c77f6c /bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/Cairo.java | |
parent | d03ee3ef48d55db63b28ee70d6aa938a064ef2bb (diff) | |
download | eclipse.platform.swt-b7b4e1057fbda36ea8206b61ea0ecd34b053c4a9.tar.gz eclipse.platform.swt-b7b4e1057fbda36ea8206b61ea0ecd34b053c4a9.tar.xz eclipse.platform.swt-b7b4e1057fbda36ea8206b61ea0ecd34b053c4a9.zip |
make GC handle a cairo object, fix clipping, rename USE_CAIRO flag
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/Cairo.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/cairo/org/eclipse/swt/internal/cairo/Cairo.java | 26 |
1 files changed, 26 insertions, 0 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 465b2dab73..9365caa07a 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 @@ -1608,6 +1608,32 @@ public static final void cairo_xlib_surface_set_size(int /*long*/ surface, int w } } /** + * @method flags=dynamic + * @param surface cast=(cairo_surface_t *) + */ +public static final native int _cairo_xlib_surface_get_height(int /*long*/ surface); +public static final int cairo_xlib_surface_get_height(int /*long*/ surface) { + lock.lock(); + try { + return _cairo_xlib_surface_get_height(surface); + } finally { + lock.unlock(); + } +} +/** + * @method flags=dynamic + * @param surface cast=(cairo_surface_t *) + */ +public static final native int _cairo_xlib_surface_get_width(int /*long*/ surface); +public static final int cairo_xlib_surface_get_width(int /*long*/ surface) { + lock.lock(); + try { + return _cairo_xlib_surface_get_width(surface); + } finally { + lock.unlock(); + } +} +/** * @param dest cast=(void *) * @param src cast=(const void *) * @param size cast=(size_t) |