Kewt
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Kewt
kewt-ui
/
dev.kewt.ui.layout
/
Constraints
Constraints
data
class
Constraints
(
val
minWidth
:
Int
=
0
,
val
maxWidth
:
Int
=
Int.MAX_VALUE
,
val
minHeight
:
Int
=
0
,
val
maxHeight
:
Int
=
Int.MAX_VALUE
)
(
source
)
Members
Constructors
Constraints
Link copied to clipboard
constructor
(
minWidth
:
Int
=
0
,
maxWidth
:
Int
=
Int.MAX_VALUE
,
minHeight
:
Int
=
0
,
maxHeight
:
Int
=
Int.MAX_VALUE
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
max
Height
Link copied to clipboard
val
maxHeight
:
Int
max
Width
Link copied to clipboard
val
maxWidth
:
Int
min
Height
Link copied to clipboard
val
minHeight
:
Int
min
Width
Link copied to clipboard
val
minWidth
:
Int
Functions
clamp
Height
Link copied to clipboard
fun
clampHeight
(
height
:
Int
)
:
Int
clamp
Width
Link copied to clipboard
fun
clampWidth
(
width
:
Int
)
:
Int
constrain
Link copied to clipboard
fun
constrain
(
width
:
Int
,
height
:
Int
)
:
Pair
<
Int
,
Int
>