Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
class AndroidGameWindow(val activity: KorgwActivity, val config: GameWindowCreationConfig = activity.config) : BaseAndroidGameWindow
Link copied to clipboard
class AndroidGameWindowNoActivity(val width: Int, val height: Int, val ag: AG, val androidContext: Context, val config: GameWindowCreationConfig = GameWindowCreationConfig(), val getView: () -> View) : BaseAndroidGameWindow
Link copied to clipboard
Link copied to clipboard
abstract class BaseAndroidGameWindow(val config: GameWindowCreationConfig = GameWindowCreationConfig()) : GameWindow, AndroidContextHolder
Link copied to clipboard
open class BrowserCanvasJsGameWindow(val canvas: HTMLCanvasElement = AGDefaultCanvas()) : JsGameWindow
Link copied to clipboard
interface ClipboardData
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Provides an interface with typical window dialogs and functionality.

Link copied to clipboard
class DialogInterfaceAndroid(val contextProvider: () -> Context) : DialogInterface
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Represents a class that have a reference to a dialogInterface

Link copied to clipboard
Link copied to clipboard
data class FileFilter(val entries: List<Pair<String, List<String>>>)
Link copied to clipboard

A GameWindow represents a window, canvas or headless virtual frame where a game is displayed and can receive user events, it provides:

Link copied to clipboard
Link copied to clipboard
class GameWindowCoroutineDispatcher(var nowProvider: () -> TimeSpan = { PerformanceCounter.reference }, var fast: Boolean = false) : CoroutineDispatcher, Delay, Closeable
Link copied to clipboard
data class GameWindowCreationConfig(val multithreaded: Boolean? = null, val hdr: Boolean? = null, val msaa: Int? = null, val checkGl: Boolean = false, val logGl: Boolean = false, val cacheGl: Boolean = false, val fullscreen: Boolean? = null, val decorated: Boolean = true, val transparent: Boolean = false, val resizable: Boolean = true)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class IosGameWindow(val windowProvider: () -> UIWindow?? = null, val glXViewControllerProvider: () -> MyGLKViewController?? = null) : GameWindow
Link copied to clipboard
object IosKeyMap
Link copied to clipboard
open class IosTvosToolsImpl
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
object Korgw
Link copied to clipboard
abstract class KorgwActivity(activityWithResult: ActivityWithResult.Mixin = ActivityWithResult.Mixin(), val config: GameWindowCreationConfig = GameWindowCreationConfig()) : Activity, ActivityWithResult
Link copied to clipboard
Link copied to clipboard
open class KorgwSurfaceView(val viewOrActivity: Any?, context: Context, val gameWindow: BaseAndroidGameWindow, val config: GameWindowCreationConfig = gameWindow.config) : GLSurfaceView, GLSurfaceView.Renderer
Link copied to clipboard
class MyGLKViewController(val gameWindowProvider: () -> IosGameWindow = { MyIosGameWindow }, val entry: suspend () -> Unit) : GLKViewController
Link copied to clipboard
Link copied to clipboard
class SyncEventLoopCoroutineDispatcher(val eventLoop: SyncEventLoop) : CoroutineDispatcher, Delay, Closeable
Link copied to clipboard
data class TextClipboardData(val text: String, val contentType: String? = null) : ClipboardData
Link copied to clipboard
Link copied to clipboard
class ViewController(val entry: suspend ViewController.() -> Unit) : GCEventViewController
Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun DialogInterfaceProvider.alert(message: String)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun GameWindow.configure(size: Size, title: String? = "GameWindow", icon: Bitmap? = null, fullscreen: Boolean? = null, bgcolor: RGBA = Colors.BLACK)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun DialogInterfaceProvider.openFileDialog(filter: String? = null, write: Boolean = false, multi: Boolean = false): List<VfsFile>
suspend fun DialogInterfaceProvider.openFileDialog(filter: FileFilter? = null, write: Boolean = false, multi: Boolean = false, currentDir: VfsFile? = null): List<VfsFile>
Link copied to clipboard
suspend fun DialogInterfaceProvider.prompt(message: String, default: String = ""): String
Link copied to clipboard
fun runAndroidOnUiThread(context: Context? = null, block: () -> Unit)
Link copied to clipboard
suspend fun <T> runAndroidOnUiThreadSuspend(context: Context? = null, block: () -> T): T
Link copied to clipboard
Link copied to clipboard