From 5cdf4a63792ab7979da90977cf7d36568c8fd83e Mon Sep 17 00:00:00 2001 From: Bojidar Marinov Date: Sun, 1 May 2016 17:52:42 +0300 Subject: Document Popup, PopupDialog, PopupMenu, and PopupPanel --- doc/base/classes.xml | 36 +++++++++++++++++++++++++++++------- 1 file changed, 29 insertions(+), 7 deletions(-) (limited to 'doc') diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 75f28e5c40..88274a4516 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -27518,6 +27518,7 @@ This method controls whether the position between two cached points is interpola + Popup (show the control in modal form) in the center of the screen, ensuring the size is never smaller than [code]minsize[/code]. @@ -27529,18 +27530,21 @@ This method controls whether the position between two cached points is interpola + Make the popup hide other popups when shown on the screen. + Returns whether the popup will hide other popups when shown on the screen. + This signal is emitted when a popup is hidden. @@ -27551,8 +27555,10 @@ This method controls whether the position between two cached points is interpola + Notification sent right after the popup is shown. + Notification sent right after the popup is hidden. @@ -27561,6 +27567,7 @@ This method controls whether the position between two cached points is interpola Base class for Popup Dialogs. + PopupDialog is a base class for popup dialogs, along with [WindowDialog]. @@ -27585,7 +27592,7 @@ This method controls whether the position between two cached points is interpola - Add a new item with text "label" and icon "texture". An id can optionally be provided, as well as an accelerator. If no id is provided, one will be created from the index. + Add a new item with text "label" and icon "texture". An id can optionally be provided, as well as an accelerator keybinding. If no id is provided, one will be created from the index. @@ -27596,7 +27603,7 @@ This method controls whether the position between two cached points is interpola - Add a new item with text "label". An id can optionally be provided, as well as an accelerator. If no id is provided, one will be created from the index. + Add a new item with text "label". An id can optionally be provided, as well as an accelerator keybinding. If no id is provided, one will be created from the index. @@ -27609,7 +27616,7 @@ This method controls whether the position between two cached points is interpola - Add a new check able item with text "label" and icon "texture". An id can optionally be provided, as well as an accelerator. If no id is provided, one will be created from the index. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. + Add a new checkable item with text "label" and icon "texture". An id can optionally be provided, as well as an accelerator. If no id is provided, one will be created from the index. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. @@ -27631,6 +27638,7 @@ This method controls whether the position between two cached points is interpola + Adds an item with a submenu. The submenu is the name of a child PopupMenu node that would be shown when the item is clicked. An id can optionally be provided, but if is isn't provided, one will be created from the index. @@ -27666,6 +27674,7 @@ This method controls whether the position between two cached points is interpola + Sets the metadata of an item, which might be of any type. You can later get it with [method get_item_metadata], which provides a simple way of assigning context data to items. @@ -27683,6 +27692,7 @@ This method controls whether the position between two cached points is interpola + Sets whether the item at index "idx" is disabled or not. When it is disabled it can't be selected, or its action invoked. @@ -27691,6 +27701,7 @@ This method controls whether the position between two cached points is interpola + Sets the submenu of the item at index "idx". The submenu is the name of a child PopupMenu node that would be shown when the item is clicked. @@ -27699,6 +27710,7 @@ This method controls whether the position between two cached points is interpola + Mark the item at index "idx" as a seperator, which means that it would be displayed as a mere line. @@ -27707,6 +27719,7 @@ This method controls whether the position between two cached points is interpola + Set whether the item at index "idx" has a checkbox. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. @@ -27740,6 +27753,7 @@ This method controls whether the position between two cached points is interpola + Return the metadata of an item, which might be of any type. You can set it with [method set_item_metadata], which provides a simple way of assigning context data to items. @@ -27757,6 +27771,7 @@ This method controls whether the position between two cached points is interpola + Return the submenu name of the item at index "idx". @@ -27765,6 +27780,7 @@ This method controls whether the position between two cached points is interpola + Return whether the item is a seperator. If it is, it would be displayed as a line. @@ -27773,6 +27789,7 @@ This method controls whether the position between two cached points is interpola + Return whether the item at index "idx" has a checkbox. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. @@ -27790,6 +27807,7 @@ This method controls whether the position between two cached points is interpola + Return whether the item at index "idx" is disabled. When it is disabled it can't be selected, or its action invoked. @@ -27826,11 +27844,12 @@ This method controls whether the position between two cached points is interpola + Removes the item at index "idx" from the menu. Note that the indexes of items after the removed item are going to be shifted by one. - Clear the popup menu. + Clear the popup menu, in effect removing all items. @@ -27878,9 +27897,10 @@ This method controls whether the position between two cached points is interpola - Base class for Popup Panels + Class for displaying popups with a panel background. + Class for displaying popups with a panel background. In some cases it might be simpler to use than [Popup], since it provides a configurable background. If you are making windows, better check [WindowDialog]. @@ -39638,9 +39658,11 @@ This method controls whether the position between two cached points is interpola - + - + + + -- cgit v1.2.3