com.bugvm.apple.spritekit.SKView Maven / Gradle / Ivy
/*
* 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.spritekit;
/**/
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.uikit.*;
import com.bugvm.apple.coregraphics.*;
import com.bugvm.apple.dispatch.*;
import com.bugvm.apple.coreimage.*;
import com.bugvm.apple.avfoundation.*;
import com.bugvm.apple.glkit.*;
import com.bugvm.apple.scenekit.*;
import com.bugvm.apple.gameplaykit.*;
/* */
/**/
/* */
/**/@Library("SpriteKit") @NativeClass/* */
/**/public/* */ class /**/SKView/* */
extends /**/UIView/* */
/**//* */ {
/**/public static class SKViewPtr extends Ptr {}/* */
/**/static { ObjCRuntime.bind(SKView.class); }/* */
/**//* */
/**/
public SKView() {}
protected SKView(SkipInit skipInit) { super(skipInit); }
/* */
public SKView(CGRect frame) {
super(frame);
}
/**/
@Property(selector = "isPaused")
public native boolean isPaused();
@Property(selector = "setPaused:")
public native void setPaused(boolean v);
@Property(selector = "showsFPS")
public native boolean showsFPS();
@Property(selector = "setShowsFPS:")
public native void setShowsFPS(boolean v);
@Property(selector = "showsDrawCount")
public native boolean showsDrawCount();
@Property(selector = "setShowsDrawCount:")
public native void setShowsDrawCount(boolean v);
@Property(selector = "showsNodeCount")
public native boolean showsNodeCount();
@Property(selector = "setShowsNodeCount:")
public native void setShowsNodeCount(boolean v);
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "showsQuadCount")
public native boolean showsQuadCount();
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "setShowsQuadCount:")
public native void setShowsQuadCount(boolean v);
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "showsPhysics")
public native boolean showsPhysics();
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "setShowsPhysics:")
public native void setShowsPhysics(boolean v);
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "showsFields")
public native boolean showsFields();
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "setShowsFields:")
public native void setShowsFields(boolean v);
@Property(selector = "isAsynchronous")
public native boolean isAsynchronous();
@Property(selector = "setAsynchronous:")
public native void setAsynchronous(boolean v);
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "allowsTransparency")
public native boolean allowsTransparency();
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "setAllowsTransparency:")
public native void setAllowsTransparency(boolean v);
@Property(selector = "ignoresSiblingOrder")
public native boolean ignoresSiblingOrder();
@Property(selector = "setIgnoresSiblingOrder:")
public native void setIgnoresSiblingOrder(boolean v);
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "shouldCullNonVisibleNodes")
public native boolean shouldCullNonVisibleNodes();
/**
* @since Available in iOS 8.0 and later.
*/
@Property(selector = "setShouldCullNonVisibleNodes:")
public native void setShouldCullNonVisibleNodes(boolean v);
@Property(selector = "frameInterval")
public native @MachineSizedSInt long getFrameInterval();
@Property(selector = "setFrameInterval:")
public native void setFrameInterval(@MachineSizedSInt long v);
@Property(selector = "scene")
public native SKScene getScene();
/* */
/**//* */
/**/
@Method(selector = "presentScene:")
public native void presentScene(SKScene scene);
@Method(selector = "presentScene:transition:")
public native void presentScene(SKScene scene, SKTransition transition);
@Method(selector = "textureFromNode:")
public native SKTexture getTextureFromNode(SKNode node);
@Method(selector = "textureFromNode:crop:")
public native SKTexture getTextureFromNode(SKNode node, @ByVal CGRect crop);
@Method(selector = "convertPoint:toScene:")
public native @ByVal CGPoint convertPointToScene(@ByVal CGPoint point, SKScene scene);
@Method(selector = "convertPoint:fromScene:")
public native @ByVal CGPoint convertPointFromScene(@ByVal CGPoint point, SKScene scene);
/* */
}