1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the Button.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_Button:
- Button
- ======
- **Inherits:** :ref:`BaseButton<class_basebutton>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
- **Inherited By:** :ref:`OptionButton<class_optionbutton>`, :ref:`ColorPickerButton<class_colorpickerbutton>`, :ref:`CheckButton<class_checkbutton>`, :ref:`MenuButton<class_menubutton>`, :ref:`ToolButton<class_toolbutton>`, :ref:`CheckBox<class_checkbox>`
- **Category:** Core
- Brief Description
- -----------------
- Standard themed Button.
- Member Variables
- ----------------
- .. _class_Button_align:
- - :ref:`TextAlign<enum_button_textalign>` **align** - Text alignment policy for the button's text, use one of the ALIGN\_\* constants.
- .. _class_Button_clip_text:
- - :ref:`bool<class_bool>` **clip_text** - When this property is enabled, text that is too large to fit the button is clipped, when disabled the Button will always be wide enough to hold the text. This property is disabled by default.
- .. _class_Button_flat:
- - :ref:`bool<class_bool>` **flat** - Flat buttons don't display decoration.
- .. _class_Button_icon:
- - :ref:`Texture<class_texture>` **icon** - Button's icon, if text is present the icon will be placed before the text.
- .. _class_Button_text:
- - :ref:`String<class_string>` **text** - The button's text that will be displayed inside the button's area.
- Enums
- -----
- .. _enum_Button_TextAlign:
- enum **TextAlign**
- - **ALIGN_LEFT** = **0** --- Align the text to the left.
- - **ALIGN_CENTER** = **1** --- Align the text to the center.
- - **ALIGN_RIGHT** = **2** --- Align the text to the right.
- Description
- -----------
- Button is the standard themed button. It can contain text and an icon, and will display them according to the current :ref:`Theme<class_theme>`.
|