.. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/master/docs/gdscript/doc/classes/StyleBox.xml. .. _class_StyleBox: StyleBox ======== **Inherits:** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` **Inherited By:** :ref:`StyleBoxEmpty`, :ref:`StyleBoxFlat`, :ref:`StyleBoxLine`, :ref:`StyleBoxTexture` .. container:: contribute There is currently no description for this class. Please help us by :ref:`contributing one `! .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +---------------------------+-----------------------------------------------------------------------------+----------+ | :ref:`float` | :ref:`content_margin_bottom` | ``-1.0`` | +---------------------------+-----------------------------------------------------------------------------+----------+ | :ref:`float` | :ref:`content_margin_left` | ``-1.0`` | +---------------------------+-----------------------------------------------------------------------------+----------+ | :ref:`float` | :ref:`content_margin_right` | ``-1.0`` | +---------------------------+-----------------------------------------------------------------------------+----------+ | :ref:`float` | :ref:`content_margin_top` | ``-1.0`` | +---------------------------+-----------------------------------------------------------------------------+----------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`_draw` **(** :ref:`RID` to_canvas_item, :ref:`Rect2` rect **)** |virtual| |const| | +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Rect2` | :ref:`_get_draw_rect` **(** :ref:`Rect2` rect **)** |virtual| |const| | +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`_get_minimum_size` **(** **)** |virtual| |const| | +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`_test_mask` **(** :ref:`Vector2` point, :ref:`Rect2` rect **)** |virtual| |const| | +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`draw` **(** :ref:`RID` canvas_item, :ref:`Rect2` rect **)** |const| | +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_content_margin` **(** :ref:`Side` margin **)** |const| | +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`CanvasItem` | :ref:`get_current_item_drawn` **(** **)** |const| | +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_margin` **(** :ref:`Side` margin **)** |const| | +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`get_minimum_size` **(** **)** |const| | +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`Vector2` | :ref:`get_offset` **(** **)** |const| | +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_content_margin` **(** :ref:`Side` margin, :ref:`float` offset **)** | +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_content_margin_all` **(** :ref:`float` offset **)** | +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`test_mask` **(** :ref:`Vector2` point, :ref:`Rect2` rect **)** |const| | +-------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_StyleBox_property_content_margin_bottom: .. rst-class:: classref-property :ref:`float` **content_margin_bottom** = ``-1.0`` .. rst-class:: classref-property-setget - void **set_content_margin** **(** :ref:`Side` margin, :ref:`float` offset **)** - :ref:`float` **get_content_margin** **(** :ref:`Side` margin **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_property_content_margin_left: .. rst-class:: classref-property :ref:`float` **content_margin_left** = ``-1.0`` .. rst-class:: classref-property-setget - void **set_content_margin** **(** :ref:`Side` margin, :ref:`float` offset **)** - :ref:`float` **get_content_margin** **(** :ref:`Side` margin **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_property_content_margin_right: .. rst-class:: classref-property :ref:`float` **content_margin_right** = ``-1.0`` .. rst-class:: classref-property-setget - void **set_content_margin** **(** :ref:`Side` margin, :ref:`float` offset **)** - :ref:`float` **get_content_margin** **(** :ref:`Side` margin **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_property_content_margin_top: .. rst-class:: classref-property :ref:`float` **content_margin_top** = ``-1.0`` .. rst-class:: classref-property-setget - void **set_content_margin** **(** :ref:`Side` margin, :ref:`float` offset **)** - :ref:`float` **get_content_margin** **(** :ref:`Side` margin **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Method Descriptions ------------------- .. _class_StyleBox_private_method__draw: .. rst-class:: classref-method void **_draw** **(** :ref:`RID` to_canvas_item, :ref:`Rect2` rect **)** |virtual| |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_private_method__get_draw_rect: .. rst-class:: classref-method :ref:`Rect2` **_get_draw_rect** **(** :ref:`Rect2` rect **)** |virtual| |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_private_method__get_minimum_size: .. rst-class:: classref-method :ref:`Vector2` **_get_minimum_size** **(** **)** |virtual| |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_private_method__test_mask: .. rst-class:: classref-method :ref:`bool` **_test_mask** **(** :ref:`Vector2` point, :ref:`Rect2` rect **)** |virtual| |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_method_draw: .. rst-class:: classref-method void **draw** **(** :ref:`RID` canvas_item, :ref:`Rect2` rect **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_method_get_content_margin: .. rst-class:: classref-method :ref:`float` **get_content_margin** **(** :ref:`Side` margin **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_method_get_current_item_drawn: .. rst-class:: classref-method :ref:`CanvasItem` **get_current_item_drawn** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_method_get_margin: .. rst-class:: classref-method :ref:`float` **get_margin** **(** :ref:`Side` margin **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_method_get_minimum_size: .. rst-class:: classref-method :ref:`Vector2` **get_minimum_size** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_method_get_offset: .. rst-class:: classref-method :ref:`Vector2` **get_offset** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_method_set_content_margin: .. rst-class:: classref-method void **set_content_margin** **(** :ref:`Side` margin, :ref:`float` offset **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_method_set_content_margin_all: .. rst-class:: classref-method void **set_content_margin_all** **(** :ref:`float` offset **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBox_method_test_mask: .. rst-class:: classref-method :ref:`bool` **test_mask** **(** :ref:`Vector2` point, :ref:`Rect2` rect **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)` .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`