140 lines
3.4 KiB
JSON
140 lines
3.4 KiB
JSON
{
|
|
"name": "QsMenuEntry",
|
|
"module": "Quickshell",
|
|
"type": "class",
|
|
"super": {
|
|
"type": "local",
|
|
"module": "Quickshell",
|
|
"name": "QsMenuHandle"
|
|
},
|
|
"description": null,
|
|
"details": null,
|
|
"flags": [
|
|
"uncreatable"
|
|
],
|
|
"properties": {
|
|
"enabled": {
|
|
"type": {
|
|
"type": "qt",
|
|
"module": "qml",
|
|
"name": "bool"
|
|
},
|
|
"details": null,
|
|
"flags": [
|
|
"readonly"
|
|
]
|
|
},
|
|
"hasChildren": {
|
|
"type": {
|
|
"type": "qt",
|
|
"module": "qml",
|
|
"name": "bool"
|
|
},
|
|
"details": "If this menu item has children that can be accessed through a TYPE99MQS_Quickshell99NQsMenuOpener99TYPE.\n",
|
|
"flags": [
|
|
"readonly"
|
|
]
|
|
},
|
|
"isSeparator": {
|
|
"type": {
|
|
"type": "qt",
|
|
"module": "qml",
|
|
"name": "bool"
|
|
},
|
|
"details": "If this menu item should be rendered as a separator between other items.\n\nNo other properties have a meaningful value when TYPE99VisSeparator99Tprop99TYPE is true.\n",
|
|
"flags": [
|
|
"readonly"
|
|
]
|
|
},
|
|
"buttonType": {
|
|
"type": {
|
|
"type": "local",
|
|
"module": "Quickshell",
|
|
"name": "QsMenuButtonType"
|
|
},
|
|
"details": "If this menu item has an associated checkbox or radiobutton.\n",
|
|
"flags": [
|
|
"readonly"
|
|
]
|
|
},
|
|
"icon": {
|
|
"type": {
|
|
"type": "qt",
|
|
"module": "qml",
|
|
"name": "string"
|
|
},
|
|
"details": "Url of the menu item's icon or `\"\"` if it doesn't have one.\n\nThis can be passed to [Image.source](https://doc.qt.io/qt-6/qml-qtquick-image.html#source-prop)\nas shown below.\n\n```qml\nImage {\n source: menuItem.icon\n // To get the best image quality, set the image source size to the same size\n // as the rendered image.\n sourceSize.width: width\n sourceSize.height: height\n}\n```\n",
|
|
"flags": [
|
|
"readonly"
|
|
]
|
|
},
|
|
"checkState": {
|
|
"type": {
|
|
"type": "unknown",
|
|
"module": "",
|
|
"name": ""
|
|
},
|
|
"details": "The check state of the checkbox or radiobutton if applicable, as a\n[Qt.CheckState](https://doc.qt.io/qt-6/qt.html#CheckState-enum).\n",
|
|
"flags": [
|
|
"readonly"
|
|
]
|
|
},
|
|
"text": {
|
|
"type": {
|
|
"type": "qt",
|
|
"module": "qml",
|
|
"name": "string"
|
|
},
|
|
"details": "Text of the menu item.\n",
|
|
"flags": [
|
|
"readonly"
|
|
]
|
|
}
|
|
},
|
|
"functions": [
|
|
{
|
|
"ret": {
|
|
"type": "qt",
|
|
"module": "qml",
|
|
"name": "void"
|
|
},
|
|
"name": "display",
|
|
"id": "display",
|
|
"details": "Display a platform menu at the given location relative to the parent window.\n",
|
|
"params": [
|
|
{
|
|
"name": "parentWindow",
|
|
"type": {
|
|
"type": "qt",
|
|
"module": "qml.QtQml",
|
|
"name": "QtObject"
|
|
}
|
|
},
|
|
{
|
|
"name": "relativeX",
|
|
"type": {
|
|
"type": "qt",
|
|
"module": "qml",
|
|
"name": "int"
|
|
}
|
|
},
|
|
{
|
|
"name": "relativeY",
|
|
"type": {
|
|
"type": "qt",
|
|
"module": "qml",
|
|
"name": "int"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"signals": {
|
|
"triggered": {
|
|
"name": "triggered",
|
|
"details": "Send a trigger/click signal to the menu entry.\n",
|
|
"params": []
|
|
}
|
|
},
|
|
"variants": {}
|
|
} |