class DependencyGraph


Summary

Public constructors

Public functions

Unit
Unit
Unit
defineTerminalWidgets(
    horizontalBehavior: ConstraintWidget.DimensionBehaviour!,
    verticalBehavior: ConstraintWidget.DimensionBehaviour!
)

Find and mark terminal widgets (trailing widgets) -- they are the only ones we need to care for wrap_content checks

Boolean
directMeasure(optimizeWrap: Boolean)

Try to measure the layout by solving the graph of constraints directly

Boolean
directMeasureSetup(optimizeWrap: Boolean)
Boolean
directMeasureWithOrientation(optimizeWrap: Boolean, orientation: Int)
Unit

Invalidate the graph of constraints

Unit

Mark the widgets as needing to be remeasured

Unit
Unit

Public constructors

DependencyGraph

Added in 1.1.0
DependencyGraph(container: ConstraintWidgetContainer!)

Public functions

buildGraph

Added in 1.1.0
fun buildGraph(): Unit

buildGraph

Added in 1.1.0
fun buildGraph(runs: ArrayList<WidgetRun!>!): Unit

defineTerminalWidgets

Added in 1.1.0
fun defineTerminalWidgets(
    horizontalBehavior: ConstraintWidget.DimensionBehaviour!,
    verticalBehavior: ConstraintWidget.DimensionBehaviour!
): Unit

Find and mark terminal widgets (trailing widgets) -- they are the only ones we need to care for wrap_content checks

directMeasure

Added in 1.1.0
fun directMeasure(optimizeWrap: Boolean): Boolean

Try to measure the layout by solving the graph of constraints directly

Parameters
optimizeWrap: Boolean

use the wrap_content optimizer

Returns
Boolean

true if all widgets have been resolved

directMeasureSetup

Added in 1.1.0
fun directMeasureSetup(optimizeWrap: Boolean): Boolean

directMeasureWithOrientation

Added in 1.1.0
fun directMeasureWithOrientation(optimizeWrap: Boolean, orientation: Int): Boolean

invalidateGraph

Added in 1.1.0
fun invalidateGraph(): Unit

Invalidate the graph of constraints

invalidateMeasures

Added in 1.1.0
fun invalidateMeasures(): Unit

Mark the widgets as needing to be remeasured

measureWidgets

Added in 1.1.0
fun measureWidgets(): Unit

setMeasurer

Added in 1.1.0
fun setMeasurer(measurer: BasicMeasure.Measurer!): Unit