Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse')
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras14
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CFRange.java17
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CGAffineTransform.java21
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreFoundationFull.bridgesupport.extras28
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreGraphicsFull.bridgesupport.extras36
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreTextFull.bridgesupport.extras47
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java132
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/WebKitFull.bridgesupport.extras8
8 files changed, 292 insertions, 11 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
index 8ae3872646..b76dc91492 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/AppKitFull.bridgesupport.extras
@@ -4753,26 +4753,26 @@
</informal_protocol>
<class name="NSSecureTextField" swt_gen="true" swt_superclass="NSTextField"></class>
<informal_protocol name="NSTextInput" swt_gen="true">
- <method selector="markedRange" swt_gen="true" swt_gen_custom_callback="true"></method>
+ <method selector="hasMarkedText" swt_gen="true"></method>
<method selector="insertText:" swt_gen="true">
<arg name="aString" swt_gen="true"></arg>
</method>
<method selector="unmarkText" swt_gen="true"></method>
- <method selector="hasMarkedText" swt_gen="true"></method>
- <method selector="validAttributesForMarkedText" swt_gen="true"></method>
+ <method selector="selectedRange" swt_gen="true" swt_gen_custom_callback="true"></method>
<method selector="characterIndexForPoint:" swt_gen="true" swt_gen_custom_callback="true">
<arg name="thePoint" swt_gen="true"></arg>
</method>
+ <method selector="firstRectForCharacterRange:" swt_gen="true" swt_gen_custom_callback="true">
+ <arg name="theRange" swt_gen="true"></arg>
+ </method>
+ <method selector="validAttributesForMarkedText" swt_gen="true"></method>
<method selector="attributedSubstringFromRange:" swt_gen="true" swt_gen_custom_callback="true">
<arg name="theRange" swt_gen="true"></arg>
</method>
- <method selector="selectedRange" swt_gen="true" swt_gen_custom_callback="true"></method>
<method selector="setMarkedText:selectedRange:" swt_gen="true" swt_gen_custom_callback="true">
<arg name="selRange" swt_gen="true"></arg>
<arg name="aString" swt_gen="true"></arg>
</method>
- <method selector="firstRectForCharacterRange:" swt_gen="true" swt_gen_custom_callback="true">
- <arg name="theRange" swt_gen="true"></arg>
- </method>
+ <method selector="markedRange" swt_gen="true" swt_gen_custom_callback="true"></method>
</informal_protocol>
</signatures>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CFRange.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CFRange.java
new file mode 100644
index 0000000000..0c38c3819b
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CFRange.java
@@ -0,0 +1,17 @@
+/*******************************************************************************
+ * Copyright (c) 2007 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.internal.cocoa;
+
+public class CFRange {
+ public int /*long*/ location;
+ public int /*long*/ length;
+ public static int sizeof = OS.CFRange_sizeof();
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CGAffineTransform.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CGAffineTransform.java
new file mode 100644
index 0000000000..7d17d9386e
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CGAffineTransform.java
@@ -0,0 +1,21 @@
+/*******************************************************************************
+ * Copyright (c) 2007 IBM Corporation and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * IBM Corporation - initial API and implementation
+ *******************************************************************************/
+package org.eclipse.swt.internal.cocoa;
+
+public class CGAffineTransform {
+ public float /*double*/ a;
+ public float /*double*/ b;
+ public float /*double*/ c;
+ public float /*double*/ d;
+ public float /*double*/ tx;
+ public float /*double*/ ty;
+ public static int sizeof = OS.CGAffineTransform_sizeof();
+}
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreFoundationFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreFoundationFull.bridgesupport.extras
index 556ef896ca..76d691df5a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreFoundationFull.bridgesupport.extras
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreFoundationFull.bridgesupport.extras
@@ -1,8 +1,18 @@
<?xml version="1.0" encoding="UTF8"?>
<signatures swt_gen="mixed">
+ <struct name="CFRange" swt_gen="true">
+ <field name="location" swt_gen="true"></field>
+ <field name="length" swt_gen="true"></field>
+ </struct>
<constant name="kCFRunLoopCommonModes" swt_gen="true"></constant>
<enum name="kCFRunLoopBeforeWaiting" swt_gen="true"></enum>
<enum name="kCFStringEncodingUTF8" swt_gen="true"></enum>
+ <function name="CFAttributedStringCreate" swt_gen="true">
+ <arg name="alloc" swt_gen="true"></arg>
+ <arg name="str" swt_gen="true"></arg>
+ <arg name="attributes" swt_gen="true"></arg>
+ <retval swt_gen="true"></retval>
+ </function>
<function name="CFDataGetBytePtr" swt_gen="true">
<arg name="theData" swt_gen="true"></arg>
<retval swt_gen="true"></retval>
@@ -11,6 +21,18 @@
<arg name="theData" swt_gen="true"></arg>
<retval swt_gen="true"></retval>
</function>
+ <function name="CFDictionaryAddValue" swt_gen="true">
+ <arg name="theDict" swt_gen="true"></arg>
+ <arg name="key" swt_gen="true"></arg>
+ <arg name="value" swt_gen="true"></arg>
+ </function>
+ <function name="CFDictionaryCreateMutable" swt_gen="true">
+ <arg name="allocator" swt_gen="true"></arg>
+ <arg name="capacity" swt_gen="true"></arg>
+ <arg name="keyCallBacks" swt_gen="true"></arg>
+ <arg name="valueCallBacks" swt_gen="true"></arg>
+ <retval swt_gen="true"></retval>
+ </function>
<function name="CFRelease" swt_gen="true">
<arg name="cf" swt_gen="true"></arg>
</function>
@@ -39,6 +61,12 @@
<function name="CFRunLoopObserverInvalidate" swt_gen="true">
<arg name="observer" swt_gen="true"></arg>
</function>
+ <function name="CFStringCreateWithCharacters" swt_gen="true">
+ <arg name="alloc" swt_gen="true"></arg>
+ <arg name="chars" swt_gen="true" swt_java_type="char[]"></arg>
+ <arg name="numChars" swt_gen="true"></arg>
+ <retval swt_gen="true"></retval>
+ </function>
<function name="CFURLCreateStringByAddingPercentEscapes" swt_gen="true">
<arg name="allocator" swt_gen="true"></arg>
<arg name="originalString" swt_gen="true"></arg>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreGraphicsFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreGraphicsFull.bridgesupport.extras
index 9a493c1ac5..9e34373ab4 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreGraphicsFull.bridgesupport.extras
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreGraphicsFull.bridgesupport.extras
@@ -1,5 +1,13 @@
<?xml version="1.0" encoding="UTF8"?>
<signatures swt_gen="mixed">
+ <struct name="CGAffineTransform" swt_gen="true">
+ <field name="a" swt_gen="true"></field>
+ <field name="b" swt_gen="true"></field>
+ <field name="c" swt_gen="true"></field>
+ <field name="d" swt_gen="true"></field>
+ <field name="tx" swt_gen="true"></field>
+ <field name="ty" swt_gen="true"></field>
+ </struct>
<struct name="CGPathElement" swt_gen="true">
<field name="type" swt_gen="true"></field>
<field name="points" swt_gen="true"></field>
@@ -42,6 +50,7 @@
<enum name="kCGPathElementMoveToPoint" swt_gen="true"></enum>
<enum name="kCGPathStroke" swt_gen="true"></enum>
<enum name="kCGSessionEventTap" swt_gen="true"></enum>
+ <enum name="kCGTextFillStroke" swt_gen="true"></enum>
<function name="CGBitmapContextCreate" swt_gen="true">
<arg name="data" swt_gen="true"></arg>
<arg name="width" swt_gen="true"></arg>
@@ -60,6 +69,11 @@
<arg name="c" swt_gen="true"></arg>
<retval swt_gen="true"></retval>
</function>
+ <function name="CGColorCreate" swt_gen="true">
+ <arg name="space" swt_gen="true"></arg>
+ <arg name="components" swt_gen="true" swt_java_type="float[]" swt_java_type64="double[]"></arg>
+ <retval swt_gen="true"></retval>
+ </function>
<function name="CGColorSpaceCreateDeviceRGB" swt_gen="true">
<retval swt_gen="true"></retval>
</function>
@@ -130,6 +144,23 @@
<arg name="c" swt_gen="true"></arg>
<arg name="limit" swt_gen="true"></arg>
</function>
+ <function name="CGContextSetShouldAntialias" swt_gen="true">
+ <arg name="c" swt_gen="true"></arg>
+ <arg name="shouldAntialias" swt_gen="true"></arg>
+ </function>
+ <function name="CGContextSetTextDrawingMode" swt_gen="true">
+ <arg name="c" swt_gen="true"></arg>
+ <arg name="mode" swt_gen="true"></arg>
+ </function>
+ <function name="CGContextSetTextMatrix" swt_gen="true">
+ <arg name="c" swt_gen="true"></arg>
+ <arg name="t" swt_gen="true"></arg>
+ </function>
+ <function name="CGContextSetTextPosition" swt_gen="true">
+ <arg name="c" swt_gen="true"></arg>
+ <arg name="x" swt_gen="true"></arg>
+ <arg name="y" swt_gen="true"></arg>
+ </function>
<function name="CGContextStrokePath" swt_gen="true">
<arg name="c" swt_gen="true"></arg>
</function>
@@ -249,6 +280,11 @@
<arg name="x" swt_gen="true"></arg>
<arg name="y" swt_gen="true"></arg>
</function>
+ <function name="CGPathAddRect" swt_gen="true">
+ <arg name="path" swt_gen="true"></arg>
+ <arg name="m" swt_gen="true"></arg>
+ <arg name="rect" swt_gen="true"></arg>
+ </function>
<function name="CGPathApply" swt_gen="true">
<arg name="path" swt_gen="true"></arg>
<arg name="info" swt_gen="true"></arg>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreTextFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreTextFull.bridgesupport.extras
new file mode 100644
index 0000000000..e1280b68f1
--- /dev/null
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/CoreTextFull.bridgesupport.extras
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="UTF8"?>
+<signatures swt_gen="mixed">
+ <constant name="kCTFontAttributeName" swt_gen="true"></constant>
+ <constant name="kCTForegroundColorAttributeName" swt_gen="true"></constant>
+ <function name="CTFontGetAscent" swt_gen="true">
+ <arg name="font" swt_gen="true"></arg>
+ <retval swt_gen="true"></retval>
+ </function>
+ <function name="CTFontGetDescent" swt_gen="true">
+ <arg name="font" swt_gen="true"></arg>
+ <retval swt_gen="true"></retval>
+ </function>
+ <function name="CTFontGetLeading" swt_gen="true">
+ <arg name="font" swt_gen="true"></arg>
+ <retval swt_gen="true"></retval>
+ </function>
+ <function name="CTLineCreateWithAttributedString" swt_gen="true">
+ <arg name="string" swt_gen="true"></arg>
+ <retval swt_gen="true"></retval>
+ </function>
+ <function name="CTLineDraw" swt_gen="true">
+ <arg name="line" swt_gen="true"></arg>
+ <arg name="context" swt_gen="true"></arg>
+ </function>
+ <function name="CTLineGetTypographicBounds" swt_gen="true">
+ <arg name="line" swt_gen="true"></arg>
+ <arg name="ascent" swt_gen="true" swt_java_type="float[]" swt_java_type64="double[]"></arg>
+ <arg name="descent" swt_gen="true" swt_java_type="float[]" swt_java_type64="double[]"></arg>
+ <arg name="leading" swt_gen="true" swt_java_type="float[]" swt_java_type64="double[]"></arg>
+ <retval swt_gen="true"></retval>
+ </function>
+ <function name="CTTypesetterCreateLine" swt_gen="true">
+ <arg name="typesetter" swt_gen="true"></arg>
+ <arg name="stringRange" swt_gen="true"></arg>
+ <retval swt_gen="true"></retval>
+ </function>
+ <function name="CTTypesetterCreateWithAttributedString" swt_gen="true">
+ <arg name="string" swt_gen="true"></arg>
+ <retval swt_gen="true"></retval>
+ </function>
+ <function name="CTTypesetterSuggestLineBreak" swt_gen="true">
+ <arg name="typesetter" swt_gen="true"></arg>
+ <arg name="startIndex" swt_gen="true"></arg>
+ <arg name="width" swt_gen="true"></arg>
+ <retval swt_gen="true"></retval>
+ </function>
+</signatures>
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
index 9323a32299..6d33c6631a 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/OS.java
@@ -269,6 +269,11 @@ public static final native void NSIntersectionRect (NSRect result, NSRect aRect,
*/
public static final native void CGDisplayBounds(int display, CGRect rect);
+/** @method flags=const address*/
+public static final native int /*long*/ kCFTypeDictionaryKeyCallBacks();
+/** @method flags=const address*/
+public static final native int /*long*/ kCFTypeDictionaryValueCallBacks();
+
/** Objective-C runtime */
/**
@@ -2008,6 +2013,7 @@ public static final int kCGPathElementCloseSubpath = 4;
public static final int kCGPathElementMoveToPoint = 0;
public static final int kCGPathStroke = 2;
public static final int kCGSessionEventTap = 1;
+public static final int kCGTextFillStroke = 2;
public static final int NSAllApplicationsDirectory = 100;
public static final int NSAllDomainsMask = 65535;
public static final int NSNotFound = 2147483647;
@@ -2450,6 +2456,10 @@ public static final NSString NSViewGlobalFrameDidChangeNotification = new NSStri
/** @method flags=const */
public static final native int /*long*/ kCFRunLoopCommonModes();
/** @method flags=const */
+public static final native int /*long*/ kCTFontAttributeName();
+/** @method flags=const */
+public static final native int /*long*/ kCTForegroundColorAttributeName();
+/** @method flags=const */
public static final native int /*long*/ NSDefaultRunLoopMode();
public static final NSString NSDefaultRunLoopMode = new NSString(NSDefaultRunLoopMode());
/** @method flags=const */
@@ -2514,6 +2524,12 @@ public static final native void NSCopyBits(int /*long*/ srcGState, NSRect srcRec
*/
public static final native int /*long*/ NSNumberOfColorComponents(int /*long*/ colorSpaceName);
/**
+ * @param alloc cast=(CFAllocatorRef)
+ * @param str cast=(CFStringRef)
+ * @param attributes cast=(CFDictionaryRef)
+ */
+public static final native int /*long*/ CFAttributedStringCreate(int /*long*/ alloc, int /*long*/ str, int /*long*/ attributes);
+/**
* @param theData cast=(CFDataRef)
*/
public static final native int /*long*/ CFDataGetBytePtr(int /*long*/ theData);
@@ -2522,6 +2538,19 @@ public static final native int /*long*/ CFDataGetBytePtr(int /*long*/ theData);
*/
public static final native int /*long*/ CFDataGetLength(int /*long*/ theData);
/**
+ * @param theDict cast=(CFMutableDictionaryRef)
+ * @param key cast=(void*)
+ * @param value cast=(void*)
+ */
+public static final native void CFDictionaryAddValue(int /*long*/ theDict, int /*long*/ key, int /*long*/ value);
+/**
+ * @param allocator cast=(CFAllocatorRef)
+ * @param capacity cast=(CFIndex)
+ * @param keyCallBacks cast=(CFDictionaryKeyCallBacks*)
+ * @param valueCallBacks cast=(CFDictionaryValueCallBacks*)
+ */
+public static final native int /*long*/ CFDictionaryCreateMutable(int /*long*/ allocator, int /*long*/ capacity, int /*long*/ keyCallBacks, int /*long*/ valueCallBacks);
+/**
* @param cf cast=(CFTypeRef)
*/
public static final native void CFRelease(int /*long*/ cf);
@@ -2546,6 +2575,12 @@ public static final native int /*long*/ CFRunLoopObserverCreate(int /*long*/ all
*/
public static final native void CFRunLoopObserverInvalidate(int /*long*/ observer);
/**
+ * @param alloc cast=(CFAllocatorRef)
+ * @param chars cast=(UniChar*)
+ * @param numChars cast=(CFIndex)
+ */
+public static final native int /*long*/ CFStringCreateWithCharacters(int /*long*/ alloc, char[] chars, int /*long*/ numChars);
+/**
* @param allocator cast=(CFAllocatorRef)
* @param originalString cast=(CFStringRef)
* @param charactersToLeaveUnescaped cast=(CFStringRef)
@@ -2571,6 +2606,11 @@ public static final native int /*long*/ CGBitmapContextCreateImage(int /*long*/
* @param c cast=(CGContextRef)
*/
public static final native int /*long*/ CGBitmapContextGetData(int /*long*/ c);
+/**
+ * @param space cast=(CGColorSpaceRef)
+ * @param components cast=(CGFloat*)
+ */
+public static final native int /*long*/ CGColorCreate(int /*long*/ space, float[] /*double[]*/ components);
public static final native int /*long*/ CGColorSpaceCreateDeviceRGB();
/**
* @param space cast=(CGColorSpaceRef)
@@ -2658,6 +2698,27 @@ public static final native void CGContextSetLineWidth(int /*long*/ c, float /*do
public static final native void CGContextSetMiterLimit(int /*long*/ c, float /*double*/ limit);
/**
* @param c cast=(CGContextRef)
+ * @param shouldAntialias cast=(_Bool)
+ */
+public static final native void CGContextSetShouldAntialias(int /*long*/ c, boolean shouldAntialias);
+/**
+ * @param c cast=(CGContextRef)
+ * @param mode cast=(CGTextDrawingMode)
+ */
+public static final native void CGContextSetTextDrawingMode(int /*long*/ c, int mode);
+/**
+ * @param c cast=(CGContextRef)
+ * @param t flags=struct
+ */
+public static final native void CGContextSetTextMatrix(int /*long*/ c, CGAffineTransform t);
+/**
+ * @param c cast=(CGContextRef)
+ * @param x cast=(CGFloat)
+ * @param y cast=(CGFloat)
+ */
+public static final native void CGContextSetTextPosition(int /*long*/ c, float /*double*/ x, float /*double*/ y);
+/**
+ * @param c cast=(CGContextRef)
*/
public static final native void CGContextStrokePath(int /*long*/ c);
/**
@@ -2779,6 +2840,12 @@ public static final native void CGPathAddCurveToPoint(int /*long*/ path, int /*l
*/
public static final native void CGPathAddLineToPoint(int /*long*/ path, int /*long*/ m, float /*double*/ x, float /*double*/ y);
/**
+ * @param path cast=(CGMutablePathRef)
+ * @param m cast=(CGAffineTransform*)
+ * @param rect flags=struct
+ */
+public static final native void CGPathAddRect(int /*long*/ path, int /*long*/ m, CGRect rect);
+/**
* @param path cast=(CGPathRef)
* @param info cast=(void*)
* @param function cast=(CGPathApplierFunction)
@@ -2836,6 +2903,49 @@ public static final native int CGSetLocalEventsSuppressionInterval(double second
*/
public static final native int CGWarpMouseCursorPosition(CGPoint newCursorPosition);
/**
+ * @param font cast=(CTFontRef)
+ */
+public static final native float /*double*/ CTFontGetAscent(int /*long*/ font);
+/**
+ * @param font cast=(CTFontRef)
+ */
+public static final native float /*double*/ CTFontGetDescent(int /*long*/ font);
+/**
+ * @param font cast=(CTFontRef)
+ */
+public static final native float /*double*/ CTFontGetLeading(int /*long*/ font);
+/**
+ * @param string cast=(CFAttributedStringRef)
+ */
+public static final native int /*long*/ CTLineCreateWithAttributedString(int /*long*/ string);
+/**
+ * @param line cast=(CTLineRef)
+ * @param context cast=(CGContextRef)
+ */
+public static final native void CTLineDraw(int /*long*/ line, int /*long*/ context);
+/**
+ * @param line cast=(CTLineRef)
+ * @param ascent cast=(CGFloat*)
+ * @param descent cast=(CGFloat*)
+ * @param leading cast=(CGFloat*)
+ */
+public static final native double CTLineGetTypographicBounds(int /*long*/ line, float[] /*double[]*/ ascent, float[] /*double[]*/ descent, float[] /*double[]*/ leading);
+/**
+ * @param typesetter cast=(CTTypesetterRef)
+ * @param stringRange flags=struct
+ */
+public static final native int /*long*/ CTTypesetterCreateLine(int /*long*/ typesetter, CFRange stringRange);
+/**
+ * @param string cast=(CFAttributedStringRef)
+ */
+public static final native int /*long*/ CTTypesetterCreateWithAttributedString(int /*long*/ string);
+/**
+ * @param typesetter cast=(CTTypesetterRef)
+ * @param startIndex cast=(CFIndex)
+ * @param width cast=(double)
+ */
+public static final native int /*long*/ CTTypesetterSuggestLineBreak(int /*long*/ typesetter, int /*long*/ startIndex, double width);
+/**
* @param aRect flags=struct
* @param bRect flags=struct
*/
@@ -3327,6 +3437,8 @@ public static final native void objc_msgSend_stret(NSSize result, int /*long*/ i
public static final native void objc_msgSend_stret(NSSize result, int /*long*/ id, int /*long*/ sel, boolean arg0);
/** Sizeof natives */
+public static final native int CFRange_sizeof();
+public static final native int CGAffineTransform_sizeof();
public static final native int CGPathElement_sizeof();
public static final native int CGPoint_sizeof();
public static final native int CGRect_sizeof();
@@ -3343,6 +3455,26 @@ public static final native int NSSize_sizeof();
* @param dest cast=(void *),flags=no_in critical
* @param src cast=(void *),flags=critical
*/
+public static final native void memmove(int /*long*/ dest, CFRange src, int /*long*/ size);
+/**
+ * @param dest cast=(void *),flags=no_in critical
+ * @param src cast=(void *),flags=critical
+ */
+public static final native void memmove(CFRange dest, int /*long*/ src, int /*long*/ size);
+/**
+ * @param dest cast=(void *),flags=no_in critical
+ * @param src cast=(void *),flags=critical
+ */
+public static final native void memmove(int /*long*/ dest, CGAffineTransform src, int /*long*/ size);
+/**
+ * @param dest cast=(void *),flags=no_in critical
+ * @param src cast=(void *),flags=critical
+ */
+public static final native void memmove(CGAffineTransform dest, int /*long*/ src, int /*long*/ size);
+/**
+ * @param dest cast=(void *),flags=no_in critical
+ * @param src cast=(void *),flags=critical
+ */
public static final native void memmove(int /*long*/ dest, CGPathElement src, int /*long*/ size);
/**
* @param dest cast=(void *),flags=no_in critical
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/WebKitFull.bridgesupport.extras b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/WebKitFull.bridgesupport.extras
index 2d1617c9b9..4dee3064e8 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/WebKitFull.bridgesupport.extras
+++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/WebKitFull.bridgesupport.extras
@@ -394,17 +394,17 @@
<arg name="sender" swt_gen="true"></arg>
</method>
</informal_protocol>
+ <informal_protocol name="WebDocumentRepresentation" swt_gen="true">
+ <method selector="documentSource" swt_gen="true"></method>
+ </informal_protocol>
<informal_protocol name="WebOpenPanelResultListener" swt_gen="true">
<method selector="chooseFilename:" swt_gen="true">
<arg name="theRange" swt_gen="true"></arg>
</method>
</informal_protocol>
- <informal_protocol name="WebDocumentRepresentation" swt_gen="true">
- <method selector="documentSource" swt_gen="true"></method>
- </informal_protocol>
<informal_protocol name="WebPolicyDecisionListener" swt_gen="true">
+ <method selector="ignore" swt_gen="true"></method>
<method selector="use" swt_gen="true"></method>
<method selector="download" swt_gen="true"></method>
- <method selector="ignore" swt_gen="true"></method>
</informal_protocol>
</signatures>

Back to the top