AbraWindow

@JsonClass(generateAdapter = true)
data class AbraWindow(val kind: String = SemanticKind.ABRA, val node: AccessibilityWindowInfoCompat? = null, val id: Int, val displayId: Int, val type: WindowType, val parentWindow: AbraWindow? = null, val rootElement: AbraElement? = null, val childCount: Int, var bounds: Bounds, var region: Bounds, val isActive: Boolean, val layer: Int, val isAccessibilityFocused: Boolean, val isFocused: Boolean, val anchor: AbraElement? = null, val title: Sequence?, val isInPictureInPictureMode: Boolean) : SemanticWindow

Constructors

Link copied to clipboard

Convenience constructor that initializes from AccessibilityWindowInfoCompat

constructor(kind: String = SemanticKind.ABRA, node: AccessibilityWindowInfoCompat? = null, id: Int, displayId: Int, type: WindowType, parentWindow: AbraWindow? = null, rootElement: AbraElement? = null, childCount: Int, bounds: Bounds, region: Bounds, isActive: Boolean, layer: Int, isAccessibilityFocused: Boolean, isFocused: Boolean, anchor: AbraElement? = null, title: Sequence?, isInPictureInPictureMode: Boolean)

Properties

Link copied to clipboard
Link copied to clipboard
open override var bounds: Bounds
Link copied to clipboard
open override val childCount: Int
Link copied to clipboard
open override val displayId: Int
Link copied to clipboard
open override val id: Int
Link copied to clipboard
open override val isAccessibilityFocused: Boolean
Link copied to clipboard
open override val isActive: Boolean
Link copied to clipboard
open override val isFocused: Boolean
Link copied to clipboard
open override val kind: String
Link copied to clipboard
open override val layer: Int
Link copied to clipboard
Link copied to clipboard
open override val parentWindow: AbraWindow? = null
Link copied to clipboard
open override var region: Bounds
Link copied to clipboard
open override val rootElement: AbraElement? = null
Link copied to clipboard
Link copied to clipboard
open override val type: WindowType

Functions

Link copied to clipboard
open override fun height(): Int

Returns the height to be used when scaling

Link copied to clipboard
open override fun scale(factor: Double): AbraWindow

Scale AbraWindow using the given factor. Affects: bounds and region

open fun scale(maxWidth: Int, maxHeight: Int): SemanticWindow

Scale T to fit within the given maxWidth and maxHeight.

Link copied to clipboard
open fun toJSON(): String

Helper method to convert an object to JSON

Link copied to clipboard
open override fun width(): Int

Returns the width to be used when scaling