GridCore
class GridCore : VirtualLayout
The Grid Helper in the Core library that helps to enable Grid in Compose
Summary
Public functions |
|
|---|---|
Unit |
addToSolver(system: LinearSystem?, optimize: Boolean)Add this widget to the solver |
String? |
get the string value of columnWeights |
ConstraintWidgetContainer? |
get the parent ConstraintWidgetContainer |
Int |
getFlags()Get all the flags of a Grid |
Float |
get the value of horizontalGaps |
Int |
get the value of orientation |
String? |
get the string value of rowWeights |
Float |
get the value of verticalGaps |
Unit |
|
Unit |
setColumnWeights(columnWeights: String)set new columnWeights value and also invoke invalidate |
Unit |
setColumns(columns: Int)set new columns value |
Unit |
setContainer(container: ConstraintWidgetContainer)Set the parent ConstraintWidgetContainer |
Unit |
Set flags of a Grid |
Unit |
setHorizontalGaps(horizontalGaps: Float)set new horizontalGaps value and also invoke invalidate |
Unit |
setOrientation(orientation: Int)set new orientation value |
Unit |
setRowWeights(rowWeights: String)set new rowWeights value and also invoke invalidate |
Unit |
set new rows value |
Unit |
set new skips value |
Unit |
setSpans(spans: CharSequence)set new spans value |
Unit |
setVerticalGaps(verticalGaps: Float)set new verticalGaps value and also invoke invalidate |
Inherited Constants |
||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Inherited functions |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Inherited properties |
|---|
Constants
Public constructors
Public functions
addToSolver
fun addToSolver(system: LinearSystem?, optimize: Boolean): Unit
Add this widget to the solver
| Parameters | |
|---|---|
system: LinearSystem? |
the solver we want to add the widget to |
optimize: Boolean |
true if |
getColumnWeights
fun getColumnWeights(): String?
get the string value of columnWeights
| Returns | |
|---|---|
String? |
the string value of columnWeights |
getContainer
fun getContainer(): ConstraintWidgetContainer?
get the parent ConstraintWidgetContainer
| Returns | |
|---|---|
ConstraintWidgetContainer? |
the parent ConstraintWidgetContainer |
getFlags
fun getFlags(): Int
Get all the flags of a Grid
| Returns | |
|---|---|
Int |
an int value containing flag information |
getHorizontalGaps
fun getHorizontalGaps(): Float
get the value of horizontalGaps
| Returns | |
|---|---|
Float |
the value of horizontalGaps |
getOrientation
fun getOrientation(): Int
get the value of orientation
| Returns | |
|---|---|
Int |
the value of orientation |
getRowWeights
fun getRowWeights(): String?
get the string value of rowWeights
| Returns | |
|---|---|
String? |
the string value of rowWeights |
getVerticalGaps
fun getVerticalGaps(): Float
get the value of verticalGaps
| Returns | |
|---|---|
Float |
the value of verticalGaps |
setColumnWeights
fun setColumnWeights(columnWeights: String): Unit
set new columnWeights value and also invoke invalidate
| Parameters | |
|---|---|
columnWeights: String |
new columnWeights value |
setColumns
fun setColumns(columns: Int): Unit
set new columns value
| Parameters | |
|---|---|
columns: Int |
new rows value |
setContainer
fun setContainer(container: ConstraintWidgetContainer): Unit
Set the parent ConstraintWidgetContainer
| Parameters | |
|---|---|
container: ConstraintWidgetContainer |
the parent ConstraintWidgetContainer |
setFlags
fun setFlags(flags: Int): Unit
Set flags of a Grid
| Parameters | |
|---|---|
flags: Int |
an int value containing flag information |
setHorizontalGaps
fun setHorizontalGaps(horizontalGaps: Float): Unit
set new horizontalGaps value and also invoke invalidate
| Parameters | |
|---|---|
horizontalGaps: Float |
new horizontalGaps value |
setOrientation
fun setOrientation(orientation: Int): Unit
set new orientation value
| Parameters | |
|---|---|
orientation: Int |
new orientation value |
setRowWeights
fun setRowWeights(rowWeights: String): Unit
set new rowWeights value and also invoke invalidate
| Parameters | |
|---|---|
rowWeights: String |
new rowWeights value |
setRows
fun setRows(rows: Int): Unit
set new rows value
| Parameters | |
|---|---|
rows: Int |
new rows value |
setSkips
fun setSkips(skips: String): Unit
set new skips value
| Parameters | |
|---|---|
skips: String |
new spans value |
setSpans
fun setSpans(spans: CharSequence): Unit
set new spans value
| Parameters | |
|---|---|
spans: CharSequence |
new spans value |
setVerticalGaps
fun setVerticalGaps(verticalGaps: Float): Unit
set new verticalGaps value and also invoke invalidate
| Parameters | |
|---|---|
verticalGaps: Float |
new verticalGaps value |