StyleBoxFlat

Inherits: StyleBox < Resource < Reference < Object

Category: Core

Brief Description

Stylebox of a single color.

Member Functions

int get_aa_size ( ) const
Color get_bg_color ( ) const
bool get_border_blend ( ) const
Color get_border_color ( ) const
int get_border_width ( int margin ) const
int get_border_width_min ( ) const
int get_corner_detail ( ) const
int get_corner_radius ( int corner ) const
float get_expand_margin ( int margin ) const
Color get_shadow_color ( ) const
int get_shadow_size ( ) const
bool is_anti_aliased ( ) const
bool is_draw_center_enabled ( ) const
void set_aa_size ( int size )
void set_anti_aliased ( bool anti_aliased )
void set_bg_color ( Color color )
void set_border_blend ( bool blend )
void set_border_color ( Color color )
void set_border_width ( int margin, int width )
void set_border_width_all ( int width )
void set_corner_detail ( int detail )
void set_corner_radius ( int corner, int radius )
void set_corner_radius_all ( int radius )
void set_corner_radius_individual ( int radius_top_left, int radius_top_right, int radius_botton_right, int radius_bottom_left )
void set_draw_center ( bool draw_center )
void set_expand_margin ( int margin, float size )
void set_expand_margin_all ( float size )
void set_expand_margin_individual ( float size_left, float size_top, float size_right, float size_bottom )
void set_shadow_color ( Color color )
void set_shadow_size ( int size )

Member Variables

  • bool anti_aliasing
  • int anti_aliasing_size
  • Color bg_color
  • bool border_blend
  • Color border_color
  • int border_width_bottom
  • int border_width_left
  • int border_width_right
  • int border_width_top
  • int corner_detail
  • int corner_radius_bottom_left
  • int corner_radius_bottom_right
  • int corner_radius_top_left
  • int corner_radius_top_right
  • bool draw_center
  • float expand_margin_bottom
  • float expand_margin_left
  • float expand_margin_right
  • float expand_margin_top
  • Color shadow_color
  • int shadow_size

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

  • int get_aa_size ( ) const
  • Color get_bg_color ( ) const
  • bool get_border_blend ( ) const
  • Color get_border_color ( ) const
  • int get_border_width ( int margin ) const
  • int get_border_width_min ( ) const
  • int get_corner_detail ( ) const
  • int get_corner_radius ( int corner ) const
  • float get_expand_margin ( int margin ) const
  • Color get_shadow_color ( ) const
  • int get_shadow_size ( ) const
  • bool is_anti_aliased ( ) const
  • bool is_draw_center_enabled ( ) const
  • void set_aa_size ( int size )
  • void set_anti_aliased ( bool anti_aliased )
  • void set_bg_color ( Color color )
  • void set_border_blend ( bool blend )
  • void set_border_color ( Color color )
  • void set_border_width ( int margin, int width )
  • void set_border_width_all ( int width )
  • void set_corner_detail ( int detail )
  • void set_corner_radius ( int corner, int radius )
  • void set_corner_radius_all ( int radius )
  • void set_corner_radius_individual ( int radius_top_left, int radius_top_right, int radius_botton_right, int radius_bottom_left )
  • void set_draw_center ( bool draw_center )
  • void set_expand_margin ( int margin, float size )
  • void set_expand_margin_all ( float size )
  • void set_expand_margin_individual ( float size_left, float size_top, float size_right, float size_bottom )
  • void set_shadow_color ( Color color )
  • void set_shadow_size ( int size )