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>(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!

ValueRule for bottom attribute of BoundsRule

BoundsRule.ValueRule!

ValueRule for left attribute of BoundsRule

BoundsRule.ValueRule!

ValueRule for right attribute of BoundsRule

BoundsRule.ValueRule!

ValueRule for top attribute of BoundsRule

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.

Properties

bottom

var bottom: BoundsRule.ValueRule!

ValueRule for bottom attribute of BoundsRule

left

var left: BoundsRule.ValueRule!

ValueRule for left attribute of BoundsRule

right

var right: BoundsRule.ValueRule!

ValueRule for right attribute of BoundsRule

top

var top: BoundsRule.ValueRule!

ValueRule for top attribute of BoundsRule