Browse Source
* Add macOS native target to visual-effects-ny benchmark * handle width/height with expect/actualspull/3193/head
Nikita Lipsky
2 years ago
committed by
GitHub
9 changed files with 64 additions and 3 deletions
@ -1,5 +1,10 @@
|
||||
package org.jetbrains.compose.demo.visuals |
||||
|
||||
import androidx.compose.runtime.Composable |
||||
import org.jetbrains.compose.demo.visuals.NYContent |
||||
|
||||
actual fun width(): Int = 400 |
||||
actual fun height(): Int = 800 |
||||
|
||||
@Composable |
||||
fun MainView() = NYContent() |
@ -0,0 +1,4 @@
|
||||
package org.jetbrains.compose.demo.visuals |
||||
|
||||
actual fun width(): Int = 400 |
||||
actual fun height(): Int = 800 |
@ -0,0 +1,4 @@
|
||||
package org.jetbrains.compose.demo.visuals |
||||
|
||||
actual fun width(): Int = 640 |
||||
actual fun height(): Int = 480 |
@ -0,0 +1,19 @@
|
||||
/* |
||||
* Copyright 2020-2021 JetBrains s.r.o. and respective authors and developers. |
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file. |
||||
*/ |
||||
|
||||
import androidx.compose.ui.window.Window |
||||
import androidx.compose.runtime.remember |
||||
import androidx.compose.ui.unit.dp |
||||
import org.jetbrains.compose.demo.visuals.NYContent |
||||
import platform.AppKit.NSApp |
||||
import platform.AppKit.NSApplication |
||||
|
||||
fun main() { |
||||
NSApplication.sharedApplication() |
||||
Window("Visual Effects") { |
||||
NYContent() |
||||
} |
||||
NSApp?.run() |
||||
} |
Loading…
Reference in new issue