Skip to content

Commit 59c9428

Browse files
Add missing opt-in annotations on experiment provider properties
1 parent cee4658 commit 59c9428

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

invui-kotlin/src/main/kotlin/xyz/xenondevs/invui/gui/PagedGuiExtensions.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ fun <C : Any> PagedGui.Builder<C>.setContent(content: Provider<List<C>>): PagedG
4141
* - Otherwise, each invocation returns a new instance of a [MutableProvider] that is [weakly][WeakReference]
4242
* linked to the [PagedGui.contentProperty].
4343
*/
44+
@ExperimentalReactiveApi
4445
val <C : Any> PagedGui<C>.contentProvider: MutableProvider<List<C>>
4546
get() = contentProperty.toProvider()
4647

@@ -53,6 +54,7 @@ val <C : Any> PagedGui<C>.contentProvider: MutableProvider<List<C>>
5354
* - Otherwise, each invocation returns a new instance of a [MutableProvider] that is [weakly][WeakReference]
5455
* linked to the [PagedGui.pageProperty].
5556
*/
57+
@ExperimentalReactiveApi
5658
val PagedGui<*>.pageProvider: MutableProvider<Int>
5759
get() = pageProperty.toProvider()
5860

@@ -62,5 +64,6 @@ val PagedGui<*>.pageProvider: MutableProvider<Int>
6264
* Each invocation returns a new instance of a [MutableProvider] that is [weakly][WeakReference]
6365
* linked to the [PagedGui.getPageCountProperty].
6466
*/
67+
@ExperimentalReactiveApi
6568
val PagedGui<*>.pageCountProvider: Provider<Int>
6669
get() = pageCountProperty.toProvider()

invui-kotlin/src/main/kotlin/xyz/xenondevs/invui/gui/ScrollGuiExtensions.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ fun <C : Any> ScrollGui.Builder<C>.setContent(content: Provider<List<C>>): Scrol
4141
* - Otherwise, each invocation returns a new instance of a [MutableProvider] that is [weakly][WeakReference]
4242
* linked to the [ScrollGui.contentProperty].
4343
*/
44+
@ExperimentalReactiveApi
4445
val <C : Any> ScrollGui<C>.contentProvider: MutableProvider<List<C>>
4546
get() = contentProperty.toProvider()
4647

@@ -53,6 +54,7 @@ val <C : Any> ScrollGui<C>.contentProvider: MutableProvider<List<C>>
5354
* - Otherwise, each invocation returns a new instance of a [MutableProvider] that is [weakly][WeakReference]
5455
* linked to the [ScrollGui.lineProperty].
5556
*/
57+
@ExperimentalReactiveApi
5658
val ScrollGui<*>.lineProvider: MutableProvider<Int>
5759
get() = lineProperty.toProvider()
5860

@@ -62,6 +64,7 @@ val ScrollGui<*>.lineProvider: MutableProvider<Int>
6264
* Each invocation returns a new instance of a [MutableProvider] that is [weakly][WeakReference]
6365
* linked to the [ScrollGui.getLineCountProperty].
6466
*/
67+
@ExperimentalReactiveApi
6568
val ScrollGui<*>.lineCountProvider: Provider<Int>
6669
get() = lineCountProperty.toProvider()
6770

@@ -71,5 +74,6 @@ val ScrollGui<*>.lineCountProvider: Provider<Int>
7174
* Each invocation returns a new instance of a [MutableProvider] that is [weakly][WeakReference]
7275
* linked to the [ScrollGui.getMaxLineProperty].
7376
*/
77+
@ExperimentalReactiveApi
7478
val ScrollGui<*>.maxLineProvider: Provider<Int>
7579
get() = maxLineProperty.toProvider()

invui-kotlin/src/main/kotlin/xyz/xenondevs/invui/gui/TabGuiExtensions.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ fun TabGui.Builder.setTabs(tabs: Provider<List<Gui?>>): TabGui.Builder =
4242
* - Otherwise, each invocation returns a new instance of a [MutableProvider] that is [weakly][WeakReference]
4343
* linked to the [TabGui.tabsProperty].
4444
*/
45+
@ExperimentalReactiveApi
4546
val TabGui.tabsProvider: MutableProvider<List<Gui?>>
4647
get() = tabsProperty.toProvider()
4748

@@ -54,6 +55,7 @@ val TabGui.tabsProvider: MutableProvider<List<Gui?>>
5455
* - Otherwise, each invocation returns a new instance of a [MutableProvider] that is [weakly][WeakReference]
5556
* linked to the [TabGui.tabProperty].
5657
*/
58+
@ExperimentalReactiveApi
5759
val TabGui.tabProvider: MutableProvider<Int>
5860
get() = tabProperty.toProvider()
5961

@@ -63,5 +65,6 @@ val TabGui.tabProvider: MutableProvider<Int>
6365
*
6466
* Equivalent to `tabsProvider.getOrNull(tabProvider)`.
6567
*/
68+
@ExperimentalReactiveApi
6669
val TabGui.activeTabProvider: Provider<Gui?>
6770
get() = tabsProvider.getOrNull(tabProvider)

0 commit comments

Comments
 (0)