BoundsRule
open class BoundsRule
kotlin.Any | |
↳ | androidx.leanback.graphics.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 classes | |
---|---|
This class represents individual rules for updating the bounds. |
Public constructors | |
---|---|
<init>() |
|
<init>(boundsRule: BoundsRule!) |
Public methods | |
---|---|
open 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. |
Properties | |
---|---|
BoundsRule.ValueRule! |
|
BoundsRule.ValueRule! |
|
BoundsRule.ValueRule! |
|
BoundsRule.ValueRule! |
|
Public constructors
<init>
BoundsRule()
<init>
BoundsRule(boundsRule: BoundsRule!)
Public methods
calculateBounds
open fun calculateBounds(
rect: Rect!,
result: Rect!
): Unit
Takes in the current bounds and sets the final values based on the individual rules in the result object.
Parameters | |
---|---|
rect |
Rect!: Represents the current bounds. |
result |
Rect!: Represents the final bounds. |