.. 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/StyleBoxFlat.xml. .. _class_StyleBoxFlat: StyleBoxFlat ============ **Inherits:** :ref:`StyleBox` **<** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` .. 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:`bool` | :ref:`anti_aliasing` | ``true`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`float` | :ref:`anti_aliasing_size` | ``1.0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`Color` | :ref:`bg_color` | ``Color(0.6, 0.6, 0.6, 1)`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`bool` | :ref:`border_blend` | ``false`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`Color` | :ref:`border_color` | ``Color(0.8, 0.8, 0.8, 1)`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`int` | :ref:`border_width_bottom` | ``0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`int` | :ref:`border_width_left` | ``0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`int` | :ref:`border_width_right` | ``0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`int` | :ref:`border_width_top` | ``0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`int` | :ref:`corner_detail` | ``8`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`int` | :ref:`corner_radius_bottom_left` | ``0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`int` | :ref:`corner_radius_bottom_right` | ``0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`int` | :ref:`corner_radius_top_left` | ``0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`int` | :ref:`corner_radius_top_right` | ``0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`bool` | :ref:`draw_center` | ``true`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`float` | :ref:`expand_margin_bottom` | ``0.0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`float` | :ref:`expand_margin_left` | ``0.0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`float` | :ref:`expand_margin_right` | ``0.0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`float` | :ref:`expand_margin_top` | ``0.0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`Color` | :ref:`shadow_color` | ``Color(0, 0, 0, 0.6)`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`Vector2` | :ref:`shadow_offset` | ``Vector2(0, 0)`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`int` | :ref:`shadow_size` | ``0`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ | :ref:`Vector2` | :ref:`skew` | ``Vector2(0, 0)`` | +-------------------------------+-------------------------------------------------------------------------------------------+-----------------------------+ .. rst-class:: classref-reftable-group Methods ------- .. table:: :widths: auto +---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_border_width` **(** :ref:`Side` margin **)** |const| | +---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_border_width_min` **(** **)** |const| | +---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_corner_radius` **(** :ref:`Corner` corner **)** |const| | +---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | :ref:`float` | :ref:`get_expand_margin` **(** :ref:`Side` margin **)** |const| | +---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_border_width` **(** :ref:`Side` margin, :ref:`int` width **)** | +---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_border_width_all` **(** :ref:`int` width **)** | +---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_corner_radius` **(** :ref:`Corner` corner, :ref:`int` radius **)** | +---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_corner_radius_all` **(** :ref:`int` radius **)** | +---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_expand_margin` **(** :ref:`Side` margin, :ref:`float` size **)** | +---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_expand_margin_all` **(** :ref:`float` size **)** | +---------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_StyleBoxFlat_property_anti_aliasing: .. rst-class:: classref-property :ref:`bool` **anti_aliasing** = ``true`` .. rst-class:: classref-property-setget - void **set_anti_aliased** **(** :ref:`bool` value **)** - :ref:`bool` **is_anti_aliased** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_anti_aliasing_size: .. rst-class:: classref-property :ref:`float` **anti_aliasing_size** = ``1.0`` .. rst-class:: classref-property-setget - void **set_aa_size** **(** :ref:`float` value **)** - :ref:`float` **get_aa_size** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_bg_color: .. rst-class:: classref-property :ref:`Color` **bg_color** = ``Color(0.6, 0.6, 0.6, 1)`` .. rst-class:: classref-property-setget - void **set_bg_color** **(** :ref:`Color` value **)** - :ref:`Color` **get_bg_color** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_border_blend: .. rst-class:: classref-property :ref:`bool` **border_blend** = ``false`` .. rst-class:: classref-property-setget - void **set_border_blend** **(** :ref:`bool` value **)** - :ref:`bool` **get_border_blend** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_border_color: .. rst-class:: classref-property :ref:`Color` **border_color** = ``Color(0.8, 0.8, 0.8, 1)`` .. rst-class:: classref-property-setget - void **set_border_color** **(** :ref:`Color` value **)** - :ref:`Color` **get_border_color** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_border_width_bottom: .. rst-class:: classref-property :ref:`int` **border_width_bottom** = ``0`` .. rst-class:: classref-property-setget - void **set_border_width** **(** :ref:`Side` margin, :ref:`int` width **)** - :ref:`int` **get_border_width** **(** :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_StyleBoxFlat_property_border_width_left: .. rst-class:: classref-property :ref:`int` **border_width_left** = ``0`` .. rst-class:: classref-property-setget - void **set_border_width** **(** :ref:`Side` margin, :ref:`int` width **)** - :ref:`int` **get_border_width** **(** :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_StyleBoxFlat_property_border_width_right: .. rst-class:: classref-property :ref:`int` **border_width_right** = ``0`` .. rst-class:: classref-property-setget - void **set_border_width** **(** :ref:`Side` margin, :ref:`int` width **)** - :ref:`int` **get_border_width** **(** :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_StyleBoxFlat_property_border_width_top: .. rst-class:: classref-property :ref:`int` **border_width_top** = ``0`` .. rst-class:: classref-property-setget - void **set_border_width** **(** :ref:`Side` margin, :ref:`int` width **)** - :ref:`int` **get_border_width** **(** :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_StyleBoxFlat_property_corner_detail: .. rst-class:: classref-property :ref:`int` **corner_detail** = ``8`` .. rst-class:: classref-property-setget - void **set_corner_detail** **(** :ref:`int` value **)** - :ref:`int` **get_corner_detail** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_corner_radius_bottom_left: .. rst-class:: classref-property :ref:`int` **corner_radius_bottom_left** = ``0`` .. rst-class:: classref-property-setget - void **set_corner_radius** **(** :ref:`Corner` corner, :ref:`int` radius **)** - :ref:`int` **get_corner_radius** **(** :ref:`Corner` corner **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_corner_radius_bottom_right: .. rst-class:: classref-property :ref:`int` **corner_radius_bottom_right** = ``0`` .. rst-class:: classref-property-setget - void **set_corner_radius** **(** :ref:`Corner` corner, :ref:`int` radius **)** - :ref:`int` **get_corner_radius** **(** :ref:`Corner` corner **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_corner_radius_top_left: .. rst-class:: classref-property :ref:`int` **corner_radius_top_left** = ``0`` .. rst-class:: classref-property-setget - void **set_corner_radius** **(** :ref:`Corner` corner, :ref:`int` radius **)** - :ref:`int` **get_corner_radius** **(** :ref:`Corner` corner **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_corner_radius_top_right: .. rst-class:: classref-property :ref:`int` **corner_radius_top_right** = ``0`` .. rst-class:: classref-property-setget - void **set_corner_radius** **(** :ref:`Corner` corner, :ref:`int` radius **)** - :ref:`int` **get_corner_radius** **(** :ref:`Corner` corner **)** |const| .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_draw_center: .. rst-class:: classref-property :ref:`bool` **draw_center** = ``true`` .. rst-class:: classref-property-setget - void **set_draw_center** **(** :ref:`bool` value **)** - :ref:`bool` **is_draw_center_enabled** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_expand_margin_bottom: .. rst-class:: classref-property :ref:`float` **expand_margin_bottom** = ``0.0`` .. rst-class:: classref-property-setget - void **set_expand_margin** **(** :ref:`Side` margin, :ref:`float` size **)** - :ref:`float` **get_expand_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_StyleBoxFlat_property_expand_margin_left: .. rst-class:: classref-property :ref:`float` **expand_margin_left** = ``0.0`` .. rst-class:: classref-property-setget - void **set_expand_margin** **(** :ref:`Side` margin, :ref:`float` size **)** - :ref:`float` **get_expand_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_StyleBoxFlat_property_expand_margin_right: .. rst-class:: classref-property :ref:`float` **expand_margin_right** = ``0.0`` .. rst-class:: classref-property-setget - void **set_expand_margin** **(** :ref:`Side` margin, :ref:`float` size **)** - :ref:`float` **get_expand_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_StyleBoxFlat_property_expand_margin_top: .. rst-class:: classref-property :ref:`float` **expand_margin_top** = ``0.0`` .. rst-class:: classref-property-setget - void **set_expand_margin** **(** :ref:`Side` margin, :ref:`float` size **)** - :ref:`float` **get_expand_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_StyleBoxFlat_property_shadow_color: .. rst-class:: classref-property :ref:`Color` **shadow_color** = ``Color(0, 0, 0, 0.6)`` .. rst-class:: classref-property-setget - void **set_shadow_color** **(** :ref:`Color` value **)** - :ref:`Color` **get_shadow_color** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_shadow_offset: .. rst-class:: classref-property :ref:`Vector2` **shadow_offset** = ``Vector2(0, 0)`` .. rst-class:: classref-property-setget - void **set_shadow_offset** **(** :ref:`Vector2` value **)** - :ref:`Vector2` **get_shadow_offset** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_shadow_size: .. rst-class:: classref-property :ref:`int` **shadow_size** = ``0`` .. rst-class:: classref-property-setget - void **set_shadow_size** **(** :ref:`int` value **)** - :ref:`int` **get_shadow_size** **(** **)** .. container:: contribute There is currently no description for this property. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_property_skew: .. rst-class:: classref-property :ref:`Vector2` **skew** = ``Vector2(0, 0)`` .. rst-class:: classref-property-setget - void **set_skew** **(** :ref:`Vector2` value **)** - :ref:`Vector2` **get_skew** **(** **)** .. 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_StyleBoxFlat_method_get_border_width: .. rst-class:: classref-method :ref:`int` **get_border_width** **(** :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_StyleBoxFlat_method_get_border_width_min: .. rst-class:: classref-method :ref:`int` **get_border_width_min** **(** **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_method_get_corner_radius: .. rst-class:: classref-method :ref:`int` **get_corner_radius** **(** :ref:`Corner` corner **)** |const| .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_method_get_expand_margin: .. rst-class:: classref-method :ref:`float` **get_expand_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_StyleBoxFlat_method_set_border_width: .. rst-class:: classref-method void **set_border_width** **(** :ref:`Side` margin, :ref:`int` width **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_method_set_border_width_all: .. rst-class:: classref-method void **set_border_width_all** **(** :ref:`int` width **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_method_set_corner_radius: .. rst-class:: classref-method void **set_corner_radius** **(** :ref:`Corner` corner, :ref:`int` radius **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_method_set_corner_radius_all: .. rst-class:: classref-method void **set_corner_radius_all** **(** :ref:`int` radius **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_method_set_expand_margin: .. rst-class:: classref-method void **set_expand_margin** **(** :ref:`Side` margin, :ref:`float` size **)** .. container:: contribute There is currently no description for this method. Please help us by :ref:`contributing one `! .. rst-class:: classref-item-separator ---- .. _class_StyleBoxFlat_method_set_expand_margin_all: .. rst-class:: classref-method void **set_expand_margin_all** **(** :ref:`float` size **)** .. 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.)`