mirror of
https://github.com/Ximi1970/systray-x.git
synced 2025-10-26 07:46:09 +01:00
60 lines
1.3 KiB
JSON
60 lines
1.3 KiB
JSON
[
|
|
{
|
|
"namespace": "windowEvent",
|
|
"functions": [
|
|
{
|
|
"name": "setCloseType",
|
|
"type": "function",
|
|
"description": "Set the close type.",
|
|
"async": true,
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"name": "type",
|
|
"minimum": 0,
|
|
"maximum": 4
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "setMainWindowId",
|
|
"type": "function",
|
|
"description": "Set the main window id.",
|
|
"async": true,
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"name": "type"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"name": "forceClose",
|
|
"type": "function",
|
|
"description": "Really close the window.",
|
|
"async": true,
|
|
"parameters": [
|
|
{
|
|
"type": "integer",
|
|
"name": "type"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"events": [
|
|
{
|
|
"name": "onNewWindow",
|
|
"type": "function",
|
|
"description": "Fires when the user opens a new window.",
|
|
"parameters": []
|
|
},
|
|
{
|
|
"name": "onCloseButtonClick",
|
|
"type": "function",
|
|
"description": "Fires when the user clicks on the close button of a window.",
|
|
"parameters": []
|
|
}
|
|
]
|
|
}
|
|
]
|