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

com.bugvm.apple.glkit.GLKView Maven / Gradle / Ivy

There is a newer version: 1.2.9
Show 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.glkit;

/**/
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.foundation.*;
import com.bugvm.apple.corefoundation.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.opengles.*;
import com.bugvm.apple.uikit.*;
import com.bugvm.apple.dispatch.*;
/**/

/**/
/**
 * @since Available in iOS 5.0 and later.
 */
/**/
/**/@Library("GLKit") @NativeClass/**/
/**/public/**/ class /**/GLKView/**/ 
    extends /**/UIView/**/ 
    /**/implements NSCoding/**/ {

    /**/public static class GLKViewPtr extends Ptr {}/**/
    /**/static { ObjCRuntime.bind(GLKView.class); }/**/
    /**//**/
    /**/
    public GLKView() {}
    protected GLKView(SkipInit skipInit) { super(skipInit); }
    public GLKView(@ByVal CGRect frame, EAGLContext context) { super((SkipInit) null); initObject(init(frame, context)); }
    /**/

    public GLKView(CGRect frame) {
        super(frame);
    }

    /**/
    @Property(selector = "delegate")
    public native GLKViewDelegate getDelegate();
    @Property(selector = "setDelegate:", strongRef = true)
    public native void setDelegate(GLKViewDelegate v);
    @Property(selector = "context")
    public native EAGLContext getContext();
    @Property(selector = "setContext:")
    public native void setContext(EAGLContext v);
    @Property(selector = "drawableWidth")
    public native @MachineSizedSInt long getDrawableWidth();
    @Property(selector = "drawableHeight")
    public native @MachineSizedSInt long getDrawableHeight();
    @Property(selector = "drawableColorFormat")
    public native GLKViewDrawableColorFormat getDrawableColorFormat();
    @Property(selector = "setDrawableColorFormat:")
    public native void setDrawableColorFormat(GLKViewDrawableColorFormat v);
    @Property(selector = "drawableDepthFormat")
    public native GLKViewDrawableDepthFormat getDrawableDepthFormat();
    @Property(selector = "setDrawableDepthFormat:")
    public native void setDrawableDepthFormat(GLKViewDrawableDepthFormat v);
    @Property(selector = "drawableStencilFormat")
    public native GLKViewDrawableStencilFormat getDrawableStencilFormat();
    @Property(selector = "setDrawableStencilFormat:")
    public native void setDrawableStencilFormat(GLKViewDrawableStencilFormat v);
    @Property(selector = "drawableMultisample")
    public native GLKViewDrawableMultisample getDrawableMultisample();
    @Property(selector = "setDrawableMultisample:")
    public native void setDrawableMultisample(GLKViewDrawableMultisample v);
    @Property(selector = "snapshot")
    public native UIImage getSnapshot();
    @Property(selector = "enableSetNeedsDisplay")
    public native boolean enablesSetNeedsDisplay();
    @Property(selector = "setEnableSetNeedsDisplay:")
    public native void setEnablesSetNeedsDisplay(boolean v);
    /**/
    /**//**/
    /**/
    @Method(selector = "initWithFrame:context:")
    protected native @Pointer long init(@ByVal CGRect frame, EAGLContext context);
    @Method(selector = "bindDrawable")
    public native void bindDrawable();
    @Method(selector = "deleteDrawable")
    public native void deleteDrawable();
    @Method(selector = "display")
    public native void display();
    /**/
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy