class_panel.rst 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the Panel.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_Panel:
  6. Panel
  7. =====
  8. **Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. Provides an opaque background for :ref:`Control<class_Control>` children.
  10. Description
  11. -----------
  12. Panel is a :ref:`Control<class_Control>` that displays an opaque background. It's commonly used as a parent and container for other types of :ref:`Control<class_Control>` nodes.
  13. Tutorials
  14. ---------
  15. - `2D Role Playing Game Demo <https://godotengine.org/asset-library/asset/520>`__
  16. - `2D Finite State Machine Demo <https://godotengine.org/asset-library/asset/516>`__
  17. - `3D Inverse Kinematics Demo <https://godotengine.org/asset-library/asset/523>`__
  18. Properties
  19. ----------
  20. +------------------------------+----------------------------------------+-------+
  21. | :ref:`Mode<enum_Panel_Mode>` | :ref:`mode<class_Panel_property_mode>` | ``0`` |
  22. +------------------------------+----------------------------------------+-------+
  23. Theme Properties
  24. ----------------
  25. +---------------------------------+---------------------------------------------------+
  26. | :ref:`StyleBox<class_StyleBox>` | :ref:`panel<class_Panel_theme_style_panel>` |
  27. +---------------------------------+---------------------------------------------------+
  28. | :ref:`StyleBox<class_StyleBox>` | :ref:`panel_fg<class_Panel_theme_style_panel_fg>` |
  29. +---------------------------------+---------------------------------------------------+
  30. Enumerations
  31. ------------
  32. .. _enum_Panel_Mode:
  33. .. _class_Panel_constant_MODE_BACKGROUND:
  34. .. _class_Panel_constant_MODE_FOREGROUND:
  35. enum **Mode**:
  36. - **MODE_BACKGROUND** = **0**
  37. - **MODE_FOREGROUND** = **1**
  38. Property Descriptions
  39. ---------------------
  40. .. _class_Panel_property_mode:
  41. - :ref:`Mode<enum_Panel_Mode>` **mode**
  42. +-----------+-----------------+
  43. | *Default* | ``0`` |
  44. +-----------+-----------------+
  45. | *Setter* | set_mode(value) |
  46. +-----------+-----------------+
  47. | *Getter* | get_mode() |
  48. +-----------+-----------------+
  49. Theme Property Descriptions
  50. ---------------------------
  51. .. _class_Panel_theme_style_panel:
  52. - :ref:`StyleBox<class_StyleBox>` **panel**
  53. The style of this ``Panel``.
  54. ----
  55. .. _class_Panel_theme_style_panel_fg:
  56. - :ref:`StyleBox<class_StyleBox>` **panel_fg**
  57. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  58. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  59. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  60. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  61. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  62. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`