-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
94 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version=1.1.71 | ||
version=1.1.72 | ||
|
||
# target Kotlin version for the project. | ||
kotlin.target=1.9 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.polyfrost.polyui.event | ||
|
||
import org.jetbrains.annotations.ApiStatus | ||
|
||
/** | ||
* An annotation to mark a function or property as dispatching events. | ||
* @param `when` condition under which the events are dispatched. | ||
* @param event the events that are dispatched. | ||
*/ | ||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY) | ||
@MustBeDocumented | ||
@Repeatable | ||
@Retention(AnnotationRetention.SOURCE) | ||
@ApiStatus.Experimental | ||
annotation class Dispatches(val event: String = "", val `when`: String = "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package org.polyfrost.polyui.utils | ||
|
||
import org.jetbrains.annotations.ApiStatus | ||
|
||
/** | ||
* An annotation to mark a function or property as having side effects. | ||
* @param `when` condition under which the side effects occur. | ||
* @param values the side effects that occur. | ||
*/ | ||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY) | ||
@MustBeDocumented | ||
@Repeatable | ||
@Retention(AnnotationRetention.SOURCE) | ||
@ApiStatus.Experimental | ||
annotation class SideEffects(val values: Array<String> = [], val `when`: String = "") |