ArcLayoutWidget
interface ArcLayoutWidget
androidx.wear.widget.WearArcLayout.ArcLayoutWidget |
Interface for a widget which knows it is being rendered inside an arc, and will draw itself accordingly. Any widget implementing this interface will receive the full-sized canvas, pre-rotated, in its draw call.
Summary
Public methods | |
---|---|
abstract Unit |
Check whether the widget contains invalid attributes as a child of WearArcLayout |
abstract Float |
Returns the sweep angle that this widget is drawn with. |
abstract Int |
Returns the thickness of this widget inside the arc. |
abstract Boolean |
insideClickArea(x: Float, y: Float) Return true when the given point is in the clickable area of the child widget. |
Public methods
checkInvalidAttributeAsChild
abstract fun checkInvalidAttributeAsChild(): Unit
Check whether the widget contains invalid attributes as a child of WearArcLayout
getSweepAngleDegrees
abstract fun getSweepAngleDegrees(): Float
Returns the sweep angle that this widget is drawn with.
getThicknessPx
abstract fun getThicknessPx(): Int
Returns the thickness of this widget inside the arc.