BoundsRule
class BoundsRule
This class contains the rules for updating the bounds of a CompositeDrawable.ChildDrawable. It contains four rules, one for each value of the rectangular bound - left/top/right/bottom.
Summary
Nested types |
|---|
class BoundsRule.ValueRuleThis class represents individual rules for updating the bounds. |
Public constructors |
|---|
BoundsRule(boundsRule: BoundsRule) |
Public functions |
|
|---|---|
Unit |
calculateBounds(rect: Rect, result: Rect)Takes in the current bounds and sets the final values based on the individual rules in the result object. |
Public properties |
|
|---|---|
BoundsRule.ValueRule? |
|
BoundsRule.ValueRule? |
|
BoundsRule.ValueRule? |
|
BoundsRule.ValueRule? |
|
Public constructors
Public functions
Public properties
bottom
val bottom: BoundsRule.ValueRule?
ValueRule for bottom attribute of BoundsRule