Skip to content

Commit 907906d

Browse files
committed
onDraw handler takes a DrawState argument
1 parent 67bcaf7 commit 907906d

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

shared/ScriptUI.d.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -836,7 +836,7 @@ declare class StaticText extends _Control {
836836
* An event-handler callback function, called when the window is about to be drawn.
837837
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
838838
*/
839-
onDraw(): void
839+
onDraw(drawState: DrawState): void
840840

841841
/**
842842
* An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.
@@ -914,7 +914,7 @@ declare class Button extends _Control {
914914
* An event-handler callback function, called when the window is about to be drawn.
915915
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
916916
*/
917-
onDraw(): void
917+
onDraw(drawState: DrawState): void
918918

919919
/**
920920
* An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.
@@ -990,7 +990,7 @@ declare class IconButton extends _Control {
990990
* An event-handler callback function, called when the window is about to be drawn.
991991
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
992992
*/
993-
onDraw(): void
993+
onDraw(drawState: DrawState): void
994994

995995
/**
996996
* An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.
@@ -1048,7 +1048,7 @@ declare class Image extends _Control {
10481048
* An event-handler callback function, called when the window is about to be drawn.
10491049
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
10501050
*/
1051-
onDraw(): void
1051+
onDraw(drawState: DrawState): void
10521052

10531053
/**
10541054
* An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.
@@ -1139,7 +1139,7 @@ declare class EditText extends _Control {
11391139
* An event-handler callback function, called when the window is about to be drawn.
11401140
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
11411141
*/
1142-
onDraw(): void
1142+
onDraw(drawState: DrawState): void
11431143

11441144
/**
11451145
* An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.
@@ -1251,7 +1251,7 @@ declare class ListBox extends _Control {
12511251
* An event-handler callback function, called when the window is about to be drawn.
12521252
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
12531253
*/
1254-
onDraw(): void
1254+
onDraw(drawState: DrawState): void
12551255

12561256
/**
12571257
* An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.
@@ -1361,7 +1361,7 @@ declare class DropDownList extends _Control {
13611361
* An event-handler callback function, called when the window is about to be drawn.
13621362
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
13631363
*/
1364-
onDraw(): void
1364+
onDraw(drawState: DrawState): void
13651365

13661366
/**
13671367
* An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.
@@ -1525,7 +1525,7 @@ declare class Checkbox extends _Control {
15251525
* An event-handler callback function, called when the window is about to be drawn.
15261526
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
15271527
*/
1528-
onDraw(): void
1528+
onDraw(drawState: DrawState): void
15291529

15301530
/**
15311531
* An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.
@@ -1623,7 +1623,7 @@ declare class Scrollbar extends _Control {
16231623
* An event-handler callback function, called when the window is about to be drawn.
16241624
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
16251625
*/
1626-
onDraw(): void
1626+
onDraw(drawState: DrawState): void
16271627

16281628
/**
16291629
* An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.
@@ -1706,7 +1706,7 @@ declare class RadioButton extends _Control {
17061706
* An event-handler callback function, called when the window is about to be drawn.
17071707
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
17081708
*/
1709-
onDraw(): void
1709+
onDraw(drawState: DrawState): void
17101710

17111711
/**
17121712
* An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.
@@ -1792,7 +1792,7 @@ declare class Slider extends _Control {
17921792
* An event-handler callback function, called when the window is about to be drawn.
17931793
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
17941794
*/
1795-
onDraw(): void
1795+
onDraw(drawState: DrawState): void
17961796

17971797
/**
17981798
* An event-handler callback function, called when the element's shortcutKey sequence is typed in the active window.
@@ -1836,7 +1836,7 @@ declare class Progressbar extends _Control {
18361836
* An event-handler callback function, called when the window is about to be drawn.
18371837
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
18381838
*/
1839-
onDraw(): void
1839+
onDraw(drawState: DrawState): void
18401840
}
18411841

18421842
/**
@@ -1931,7 +1931,7 @@ declare class TreeView extends _Control {
19311931
* An event-handler callback function, called when the window is about to be drawn.
19321932
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
19331933
*/
1934-
onDraw(): void
1934+
onDraw(drawState: DrawState): void
19351935

19361936
/**
19371937
* An event-handler callback function, called when the user expands (opens) a collapsed node in the treeview.
@@ -2070,7 +2070,7 @@ declare class Group extends _Control {
20702070
* An event-handler callback function, called when the group is about to be drawn.
20712071
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
20722072
*/
2073-
onDraw(): void
2073+
onDraw(drawState: DrawState): void
20742074

20752075
/**
20762076
* Removes the specified child control from this group's children array.
@@ -2154,7 +2154,7 @@ declare class Panel extends _Control {
21542154
* An event-handler callback function, called when the panel is about to be drawn.
21552155
* Allows the script to modify or control the appearance, using the control’s associated ScriptUIGraphics object. Handler takes one argument, a DrawState object.
21562156
*/
2157-
onDraw(): void
2157+
onDraw(drawState: DrawState): void
21582158

21592159
/**
21602160
* Removes the specified child control from this group's children array.

0 commit comments

Comments
 (0)