We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Width
Height
RECT
1 parent f8efa3c commit cb06489Copy full SHA for cb06489
ColorButton.ahk
@@ -78,6 +78,8 @@ class RECT extends Buffer {
78
super.__New(16)
79
for i, prop in ["left", "top", "right", "bottom"]
80
this.PropDesc(prop, 4 * (i-1), "int", ptr?)
81
+ this.DefineProp("Width", {Get: rc => (rc.right - rc.left)})
82
+ this.DefineProp("Height", {Get: rc => (rc.bottom - rc.top)})
83
}
84
85
0 commit comments