Skip to content

Commit cb06489

Browse files
committed
Added property Width and Height to RECT.
1 parent f8efa3c commit cb06489

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ColorButton.ahk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ class RECT extends Buffer {
7878
super.__New(16)
7979
for i, prop in ["left", "top", "right", "bottom"]
8080
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)})
8183
}
8284
}
8385

0 commit comments

Comments
 (0)