class_menubutton.rst 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_MenuButton:
  4. MenuButton
  5. ==========
  6. **Inherits:** :ref:`Button<class_button>` **<** :ref:`BaseButton<class_basebutton>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Special button that brings up a :ref:`PopupMenu<class_popupmenu>` when clicked.
  11. Member Functions
  12. ----------------
  13. +------------------------------------+-----------------------------------------------------------+
  14. | :ref:`PopupMenu<class_popupmenu>` | :ref:`get_popup<class_MenuButton_get_popup>` **(** **)** |
  15. +------------------------------------+-----------------------------------------------------------+
  16. Signals
  17. -------
  18. - **about_to_show** **(** **)**
  19. Description
  20. -----------
  21. Special button that brings up a :ref:`PopupMenu<class_popupmenu>` when clicked. That's pretty much all it does, as it's just a helper class when building GUIs.
  22. Member Function Description
  23. ---------------------------
  24. .. _class_MenuButton_get_popup:
  25. - :ref:`PopupMenu<class_popupmenu>` **get_popup** **(** **)**
  26. Return the :ref:`PopupMenu<class_popupmenu>` contained in this button.