This is a class for storing part of the DebugDraw2D configuration. More...
#include <config_2d.h>
 
 | Public Types | |
| enum | BlockPosition : int { POSITION_LEFT_TOP = 0 , POSITION_RIGHT_TOP = 1 , POSITION_LEFT_BOTTOM = 2 , POSITION_RIGHT_BOTTOM = 3 } | 
| Public Member Functions | |
| void | set_text_block_position (BlockPosition _position) | 
| BlockPosition | get_text_block_position () const | 
| void | set_text_block_offset (const Vector2i &_offset) | 
| Vector2i | get_text_block_offset () const | 
| void | set_text_padding (const Vector2i &_padding) | 
| Vector2i | get_text_padding () const | 
| void | set_text_default_duration (const real_t &_duration) | 
| real_t | get_text_default_duration () const | 
| void | set_text_default_size (const int &_size) | 
| int | get_text_default_size () const | 
| void | set_text_foreground_color (const Color &_new_color) | 
| Color | get_text_foreground_color () const | 
| void | set_text_background_color (const Color &_new_color) | 
| Color | get_text_background_color () const | 
| void | set_text_custom_font (const Ref< Font > &_custom_font) | 
| Ref< Font > | get_text_custom_font () const | 
This is a class for storing part of the DebugDraw2D configuration.
You can use DebugDraw2D.get_config to get the current instance of the configuration.
| enum DebugDraw2DConfig::BlockPosition : int | 
Available positions for placing text blocks.
| void DebugDraw2DConfig::set_text_block_position | ( | BlockPosition | _position | ) | 
Position of the text block
| void DebugDraw2DConfig::set_text_block_offset | ( | const Vector2i & | _offset | ) | 
Offset from the corner selected in 'set_text_block_position'
| void DebugDraw2DConfig::set_text_padding | ( | const Vector2i & | _padding | ) | 
Text padding for each line
| void DebugDraw2DConfig::set_text_default_duration | ( | const real_t & | _duration | ) | 
How long the text remains visible after creation.
| void DebugDraw2DConfig::set_text_default_size | ( | const int & | _size | ) | 
Default text size
| void DebugDraw2DConfig::set_text_foreground_color | ( | const Color & | _new_color | ) | 
Default color of the text
| void DebugDraw2DConfig::set_text_background_color | ( | const Color & | _new_color | ) | 
Background color of the text
| void DebugDraw2DConfig::set_text_custom_font | ( | const Ref< Font > & | _custom_font | ) | 
Custom text Font