toggle menu
structures
1.4.0
common
switch theme
search in API
structures
/
ink.ui.structures.elements
/
StackElement
Stack
Element
data
class
StackElement
(
val
requireDistinct
:
Boolean
=
true
)
:
UiElement.Interactive
Element that buffers UI elements into its own layout dynamically.
Members
Members & Extensions
Constructors
Stack
Element
Link copied to clipboard
constructor
(
requireDistinct
:
Boolean
=
true
)
Properties
queue
Link copied to clipboard
val
queue
:
Flow
<
UiElement
>
require
Distinct
Link copied to clipboard
val
requireDistinct
:
Boolean
=
true
Functions
close
Link copied to clipboard
suspend
fun
close
(
)
print
Link copied to clipboard
suspend
fun
print
(
element
:
UiElement
)
println
Link copied to clipboard
suspend
fun
StackElement
.
println
(
message
:
String
,
textStyle
:
TextStyle
=
TextStyle.Body
)
render
With
Type
Link copied to clipboard
inline
fun
<
T
:
UiElement
>
UiElement
.
renderWithType
(
block
:
T
.
(
)
->
Unit
)
:
RenderResult