@Bridge public static native int sysctlbyname (BytePtr name, VoidPtr oldp, MachineSizedUIntPtr oldlenp, VoidPtr newp, @MachineSizedSInt long newlen);
@Library("c") public class HWMachine { static { Bro.bind(); } @Bridge public static native int sysctlbyname (BytePtr name, VoidPtr oldp, MachineSizedUIntPtr oldlenp, VoidPtr newp, @MachineSizedSInt long newlen); public static String getMachineString () { BytePtr name = BytePtr.toBytePtrAsciiZ("hw.machine"); MachineSizedUIntPtr size = new MachineSizedUIntPtr(); sysctlbyname(name, null, size, null, 0); BytePtr machine = Struct.allocate(BytePtr.class, (int) size.get()); sysctlbyname(name, machine.as(VoidPtr.class), size, null, 0); return machine.toStringAsciiZ(); } }
/** * @since Available in iOS 7.0 and later. */ @Bridge(symbol="CGPathCreateWithRoundedRect", optional=true) public static native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGPath createWithRoundedRect(@ByVal CGRect rect, @MachineSizedFloat double cornerWidth, @MachineSizedFloat double cornerHeight, CGAffineTransform transform); /**
@Method(selector = "objectAtIndex:") public static native @Pointer long objectAtIndex$ (@Pointer long thiz, @MachineSizedUInt long index);
/** * @since Available in iOS 4.2 and later. */ @Bridge(symbol="CFStringGetHyphenationLocationBeforeIndex", optional=true) protected native @MachineSizedSInt long getHyphenationLocationBeforeIndex(@MachineSizedSInt long location, @ByVal CFRange limitRange, @MachineSizedUInt long options, CFLocale locale, IntPtr character); /**
@Library("c") public class HWMachine { static { Bro.bind(); } @Bridge public static native int sysctlbyname (BytePtr name, VoidPtr oldp, MachineSizedUIntPtr oldlenp, VoidPtr newp, @MachineSizedSInt long newlen); public static String getMachineString () { BytePtr name = BytePtr.toBytePtrAsciiZ("hw.machine"); MachineSizedUIntPtr size = new MachineSizedUIntPtr(); sysctlbyname(name, null, size, null, 0); BytePtr machine = Struct.allocate(BytePtr.class, (int) size.get()); sysctlbyname(name, machine.as(VoidPtr.class), size, null, 0); return machine.toStringAsciiZ(); } }
@Method(selector = "objectAtIndex:") public static native @Pointer long objectAtIndex$ (@Pointer long thiz, @MachineSizedUInt long index);
/** * @since Available in iOS 2.0 and later. */ @Bridge(symbol="CGShadingCreateRadial", optional=true) public static native @org.robovm.rt.bro.annotation.Marshaler(CFType.NoRetainMarshaler.class) CGShading createRadial(CGColorSpace space, @ByVal CGPoint start, @MachineSizedFloat double startRadius, @ByVal CGPoint end, @MachineSizedFloat double endRadius, CGFunction function, boolean extendStart, boolean extendEnd); /*</methods>*/
@Bridge public static native int sysctlbyname (BytePtr name, VoidPtr oldp, MachineSizedUIntPtr oldlenp, VoidPtr newp, @MachineSizedSInt long newlen);
@Library(Library.INTERNAL) @NativeClass public final class ALChannelSource extends NSObject { static { ObjCRuntime.bind(ALChannelSource.class); } @Property(selector = "sourcePool") public native ALSoundSourcePool getSourcePool (); }
@Method(selector = "count") public static native @MachineSizedUInt long count (@Pointer long thiz); }
@Library(Library.INTERNAL) @NativeClass public final class OALAudioSession extends NSObject { static { ObjCRuntime.bind(OALAudioSession.class); } @Method public native static OALAudioSession sharedInstance (); @Method public native void forceEndInterruption (); }
@Method(selector = "count") public static native @MachineSizedUInt long count (@Pointer long thiz); }
/** * @author Niklas Therning */ @Library(Library.INTERNAL) @NativeClass public class ALBuffer extends NSObject { static { ObjCRuntime.bind(ALBuffer.class); } }
@Library(Library.INTERNAL) @NativeClass public final class OALAudioSession extends NSObject { static { ObjCRuntime.bind(OALAudioSession.class); } @Method public native static OALAudioSession sharedInstance (); @Method public native void forceEndInterruption (); }
@Library(Library.INTERNAL) @NativeClass public class ALSoundSourcePool extends NSObject { static { ObjCRuntime.bind(ALSoundSourcePool.class); } @Property(selector = "sources") public native NSArray<ALSource> getSources (); }
@Library(Library.INTERNAL) @NativeClass public final class ALChannelSource extends NSObject { static { ObjCRuntime.bind(ALChannelSource.class); } @Property(selector = "sourcePool") public native ALSoundSourcePool getSourcePool (); }
/** * @author Niklas Therning */ @Library(Library.INTERNAL) @NativeClass public class ALBuffer extends NSObject { static { ObjCRuntime.bind(ALBuffer.class); } }
@Library(Library.INTERNAL) @NativeClass public class ALSoundSourcePool extends NSObject { static { ObjCRuntime.bind(ALSoundSourcePool.class); } @Property(selector = "sources") public native NSArray<ALSource> getSources (); }