All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bugvm.apple.coregraphics.CGPDFArray Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2013-2015 RoboVM AB
 *
 * Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.bugvm.apple.coregraphics;

/**/
import java.io.*;
import java.nio.*;
import java.util.*;
import com.bugvm.objc.*;
import com.bugvm.objc.annotation.*;
import com.bugvm.objc.block.*;
import com.bugvm.rt.*;
import com.bugvm.rt.annotation.*;
import com.bugvm.rt.bro.*;
import com.bugvm.rt.bro.annotation.*;
import com.bugvm.rt.bro.ptr.*;
import com.bugvm.apple.corefoundation.*;
import com.bugvm.apple.foundation.*;
import com.bugvm.apple.uikit.*;
/**/

/**/
/**/
/**/@Library("CoreGraphics")/**/
/**/public/**/ class /**/CGPDFArray/**/ 
    extends /**/NativeObject/**/ 
    /**//**/ {

    /**/public static class CGPDFArrayPtr extends Ptr {}/**/
    /**/static { Bro.bind(CGPDFArray.class); }/**/
    /**//**/
    /**/
    protected CGPDFArray() {}
    /**/
    /**//**/
    /**//**/
    /**
     * @since Available in iOS 2.0 and later.
     */
    public CGPDFObject getObject(long index) {
        CGPDFObject.CGPDFObjectPtr ptr = new CGPDFObject.CGPDFObjectPtr();
        if (getObject(index, ptr)) {
            return ptr.get();
        }
        return null;
    }
    public boolean hasBoolean(long index) {
        BooleanPtr ptr = new BooleanPtr();
        return getBoolean(index, ptr);
    }
    /**
     * @since Available in iOS 2.0 and later.
     */
    public boolean getBoolean(long index) {
        BooleanPtr ptr = new BooleanPtr();
        if (getBoolean(index, ptr)) {
            return ptr.get();
        }
        return false;
    }
    public boolean hasLong(long index) {
        MachineSizedSIntPtr ptr = new MachineSizedSIntPtr();
        return getInteger(index, ptr);
    }
    /**
     * @since Available in iOS 2.0 and later.
     */
    public long getLong(long index) {
        MachineSizedSIntPtr ptr = new MachineSizedSIntPtr();
        if (getInteger(index, ptr)) {
            return ptr.get();
        }
        return 0;
    }
    public boolean hasDouble(long index) {
        MachineSizedFloatPtr ptr = new MachineSizedFloatPtr();
        return getNumber(index, ptr);
    }
    /**
     * @since Available in iOS 2.0 and later.
     */
    public double getDouble(long index) {
        MachineSizedFloatPtr ptr = new MachineSizedFloatPtr();
        if (getNumber(index, ptr)) {
            return ptr.get();
        }
        return 0;
    }
    public boolean hasName(long index) {
        BytePtr.BytePtrPtr ptr = new BytePtr.BytePtrPtr();
        return getName(index, ptr);
    }
    /**
     * @since Available in iOS 2.0 and later.
     */
    public String getName(long index) {
        BytePtr.BytePtrPtr ptr = new BytePtr.BytePtrPtr();
        if (getName(index, ptr)) {
            return ptr.get().toStringZ();
        }
        return null;
    }
    public boolean hasString(long index) {
        CGPDFString.CGPDFStringPtr ptr = new CGPDFString.CGPDFStringPtr();
        return getString(index, ptr);
    }
    /**
     * @since Available in iOS 2.0 and later.
     */
    public CGPDFString getString(long index) {
        CGPDFString.CGPDFStringPtr ptr = new CGPDFString.CGPDFStringPtr();
        if (getString(index, ptr)) {
            return ptr.get();
        }
        return null;
    }
    public boolean hasArray(long index) {
        CGPDFArray.CGPDFArrayPtr ptr = new CGPDFArray.CGPDFArrayPtr();
        return getArray(index, ptr);
    }
    /**
     * @since Available in iOS 2.0 and later.
     */
    public CGPDFArray getArray(long index) {
        CGPDFArray.CGPDFArrayPtr ptr = new CGPDFArray.CGPDFArrayPtr();
        if (getArray(index, ptr)) {
            return ptr.get();
        }
        return null;
    }
    public boolean hasDictionary(long index) {
        CGPDFDictionary.CGPDFDictionaryPtr ptr = new CGPDFDictionary.CGPDFDictionaryPtr();
        return getDictionary(index, ptr);
    }
    /**
     * @since Available in iOS 2.0 and later.
     */
    public CGPDFDictionary getDictionary(long index) {
        CGPDFDictionary.CGPDFDictionaryPtr ptr = new CGPDFDictionary.CGPDFDictionaryPtr();
        if (getDictionary(index, ptr)) {
            return ptr.get();
        }
        return null;
    }
    public boolean hasStream(long index) {
        CGPDFStream.CGPDFStreamPtr ptr = new CGPDFStream.CGPDFStreamPtr();
        return getStream(index, ptr);
    }
    /**
     * @since Available in iOS 2.0 and later.
     */
    public CGPDFStream getStream(long index) {
        CGPDFStream.CGPDFStreamPtr ptr = new CGPDFStream.CGPDFStreamPtr();
        if (getStream(index, ptr)) {
            return ptr.get();
        }
        return null;
    }
    /**/
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGPDFArrayGetCount", optional=true)
    public native @MachineSizedUInt long size();
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGPDFArrayGetObject", optional=true)
    private native boolean getObject(@MachineSizedUInt long index, CGPDFObject.CGPDFObjectPtr value);
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGPDFArrayGetNull", optional=true)
    public native boolean isNull(@MachineSizedUInt long index);
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGPDFArrayGetBoolean", optional=true)
    private native boolean getBoolean(@MachineSizedUInt long index, BooleanPtr value);
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGPDFArrayGetInteger", optional=true)
    private native boolean getInteger(@MachineSizedUInt long index, MachineSizedSIntPtr value);
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGPDFArrayGetNumber", optional=true)
    private native boolean getNumber(@MachineSizedUInt long index, MachineSizedFloatPtr value);
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGPDFArrayGetName", optional=true)
    private native boolean getName(@MachineSizedUInt long index, BytePtr.BytePtrPtr value);
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGPDFArrayGetString", optional=true)
    private native boolean getString(@MachineSizedUInt long index, CGPDFString.CGPDFStringPtr value);
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGPDFArrayGetArray", optional=true)
    private native boolean getArray(@MachineSizedUInt long index, CGPDFArray.CGPDFArrayPtr value);
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGPDFArrayGetDictionary", optional=true)
    private native boolean getDictionary(@MachineSizedUInt long index, CGPDFDictionary.CGPDFDictionaryPtr value);
    /**
     * @since Available in iOS 2.0 and later.
     */
    @Bridge(symbol="CGPDFArrayGetStream", optional=true)
    private native boolean getStream(@MachineSizedUInt long index, CGPDFStream.CGPDFStreamPtr value);
    /**/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy