scoop:scoop.window:0.1.0
src/accessibility/properties_builder.scoop
Selected production source · src/accessibility/properties_builder.scoop
1
package scoop.window.accessibility3
import scoop.window.Utf8Selection5
/** Copies a complete immutable snapshot without publishing it or executing actions. */6
public fun SemanticProperties.copy(7
configure: SemanticPropertiesBuilder.() -> Unit8
): SemanticProperties {9
val builder = SemanticPropertiesBuilder(this)10
builder.configure()11
return builder.snapshot()12
}14
/** Mutable staging for one property copy; node update validates the resulting snapshot. */15
public class SemanticPropertiesBuilder internal constructor(source: SemanticProperties) {16
public var name: String? = source.name17
public var description: String? = source.description18
public var automationId: String? = source.automationId19
public var value: String? = source.value20
public var enabled: Boolean = source.enabled21
public var readOnly: Boolean = source.readOnly22
public var protectedText: Boolean = source.protectedText23
public var checked: SemanticChecked? = source.checked24
public var hidden: Boolean = source.hidden25
public var error: String? = source.error26
public var ignored: Boolean = source.ignored27
public var selection: Utf8Selection? = source.selection28
public var required: Boolean = source.required29
public var scroll: SemanticScrollRange? = source.scroll30
public var cursorAffinity: SemanticTextAffinity = source.cursorAffinity31
public var selected: Boolean? = source.selected32
public var expanded: Boolean? = source.expanded33
public var invalid: Boolean = source.invalid34
public var busy: Boolean = source.busy35
public var modal: Boolean = source.modal36
public var headingLevel: Int? = source.headingLevel37
public var range: SemanticValueRange? = source.range38
public var url: String? = source.url39
public var live: SemanticLive = source.live40
public var table: SemanticTableSize? = source.table41
public var cell: SemanticTableCell? = source.cell42
public var orientation: SemanticOrientation? = source.orientation43
public var selectionMode: SemanticSelectionMode? = source.selectionMode44
public var multiline: Boolean = source.multiline45
internal fun snapshot(): SemanticProperties =46
SemanticProperties(47
name,48
description,49
automationId,50
value,51
enabled,52
readOnly,53
protectedText,54
checked,55
hidden,56
error,57
ignored,58
selection,59
required,60
scroll,61
cursorAffinity,62
selected,63
expanded,64
invalid,65
busy,66
modal,67
headingLevel,68
range,69
url,70
live,71
table,72
cell,73
orientation,74
selectionMode,75
multiline76
)77
}