|
|
|
|
|
|
public IntPtr data; |
|
|
|
public int length; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
internal static int[] _encodeTextStyle( |
|
|
|
Color color, |
|
|
|
TextDecoration decoration, |
|
|
|
|
|
|
IntPtr callbackHandle, |
|
|
|
string fontFamily); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static float[] toFloatArrayAndFree(this Float32List data) { |
|
|
|
float[] result = new float[data.length]; |
|
|
|
Marshal.Copy(data.data, result, 0, data.length); |
|
|
|
|
|
|
|
|
|
|
public class Paragraph : NativeWrapper { |
|
|
|
internal Paragraph(IntPtr ptr) { |
|
|
|
_ptr = ptr; |
|
|
|
_setPtr(ptr); |
|
|
|
} |
|
|
|
|
|
|
|
[DllImport(NativeBindings.dllName)] |
|
|
|
|
|
|
strutFontFamilies.AddRange(strutStyle._fontFamilyFallback); |
|
|
|
} |
|
|
|
|
|
|
|
_ptr = _constructor( |
|
|
|
_setPtr(_constructor( |
|
|
|
style._encoded.ToArray(), |
|
|
|
strutStyle?._encoded.ToArray(), |
|
|
|
style._fontFamily, |
|
|
|
|
|
|
style._ellipsis, |
|
|
|
_encodeLocale(style._locale) |
|
|
|
); |
|
|
|
)); |
|
|
|
} |
|
|
|
|
|
|
|
IntPtr _constructor( |
|
|
|