.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_StyleBoxFlat: StyleBoxFlat ============ **Inherits:** :ref:`StyleBox` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Stylebox of a single color. Member Functions ---------------- +----------------------------+----------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_bg_color` **(** **)** const | +----------------------------+----------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_border_blend` **(** **)** const | +----------------------------+----------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_border_size` **(** **)** const | +----------------------------+----------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_dark_color` **(** **)** const | +----------------------------+----------------------------------------------------------------------------------------------------------+ | :ref:`bool` | :ref:`get_draw_center` **(** **)** const | +----------------------------+----------------------------------------------------------------------------------------------------------+ | :ref:`Color` | :ref:`get_light_color` **(** **)** const | +----------------------------+----------------------------------------------------------------------------------------------------------+ | void | :ref:`set_bg_color` **(** :ref:`Color` color **)** | +----------------------------+----------------------------------------------------------------------------------------------------------+ | void | :ref:`set_border_blend` **(** :ref:`bool` blend **)** | +----------------------------+----------------------------------------------------------------------------------------------------------+ | void | :ref:`set_border_size` **(** :ref:`int` size **)** | +----------------------------+----------------------------------------------------------------------------------------------------------+ | void | :ref:`set_dark_color` **(** :ref:`Color` color **)** | +----------------------------+----------------------------------------------------------------------------------------------------------+ | void | :ref:`set_draw_center` **(** :ref:`bool` size **)** | +----------------------------+----------------------------------------------------------------------------------------------------------+ | void | :ref:`set_light_color` **(** :ref:`Color` color **)** | +----------------------------+----------------------------------------------------------------------------------------------------------+ Description ----------- Stylebox of a single color. Displays the stylebox of a single color, alternatively a border with light/dark colors can be assigned. Member Function Description --------------------------- .. _class_StyleBoxFlat_get_bg_color: - :ref:`Color` **get_bg_color** **(** **)** const .. _class_StyleBoxFlat_get_border_blend: - :ref:`bool` **get_border_blend** **(** **)** const .. _class_StyleBoxFlat_get_border_size: - :ref:`int` **get_border_size** **(** **)** const .. _class_StyleBoxFlat_get_dark_color: - :ref:`Color` **get_dark_color** **(** **)** const .. _class_StyleBoxFlat_get_draw_center: - :ref:`bool` **get_draw_center** **(** **)** const .. _class_StyleBoxFlat_get_light_color: - :ref:`Color` **get_light_color** **(** **)** const .. _class_StyleBoxFlat_set_bg_color: - void **set_bg_color** **(** :ref:`Color` color **)** .. _class_StyleBoxFlat_set_border_blend: - void **set_border_blend** **(** :ref:`bool` blend **)** .. _class_StyleBoxFlat_set_border_size: - void **set_border_size** **(** :ref:`int` size **)** .. _class_StyleBoxFlat_set_dark_color: - void **set_dark_color** **(** :ref:`Color` color **)** .. _class_StyleBoxFlat_set_draw_center: - void **set_draw_center** **(** :ref:`bool` size **)** .. _class_StyleBoxFlat_set_light_color: - void **set_light_color** **(** :ref:`Color` color **)**