FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
processing4/app/src/processing/app/ui/ExamplesLibrary.kt at main · processing/processing4 · GitHub
processing
processing4
Repository navigation
Code
Issues
259
(259)
Pull requests
31
(31)
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
processing4
/
app
/
src
/
processing
/
app
/
ui
/
ExamplesLibrary.kt
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (23 loc) · 703 Bytes
Breadcrumbs
processing4
/
app
/
src
/
processing
/
app
/
ui
/
ExamplesLibrary.kt
Copy path
File metadata and controls
28 lines (23 loc) · 703 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package
processing.app.ui
import
androidx.compose.runtime.mutableStateOf
import
androidx.compose.runtime.remember
import
androidx.compose.ui.window.Window
import
androidx.compose.ui.window.application
class
ExamplesLibrary
{
companion
object
{
@JvmStatic
fun
main
(
args
:
Array
<
String
>)
=
application {
val
active
=
remember { mutableStateOf(
true
) }
if
(
!
active.value){
Window
(onCloseRequest
=
::exitApplication) {
}
return
@application
}
Window
(
onCloseRequest
=
{ active.value
=
false
},
) {
ExamplesLibrary
()
}
}
}
}
Back
|
FazBrowse Home
|
New Git URL