26 #include "Alignment.h"    29 #include "ConsoleFont.h"    32 #include "Portability.h"    33 #include "StringRef.h"    35 #include "Transformable.h"    39 #ifndef DOXYGEN_SHOULD_SKIP_THIS   246       return m_data.getSize().width;
   253       return m_data.getSize().height;
   268       m_background = color;
   288       m_foreground = color;
   360     void setChar(
Vector2i position, char16_t c);
   370     char16_t getChar(
Vector2i position) 
const;
   442       m_alignment = alignment;
   470     void print(
Vector2i position, 
const char *fmt, ...) GF_FORMAT(3, 4);
   502     int printRect(
const RectI& rect, 
const char *fmt, ...) GF_FORMAT(3, 4);
   532     int getHeight(
const RectI& rect, 
const char *fmt, ...) GF_FORMAT(3, 4);
   623       m_fadingAmount = amount;
   624       m_fadingColor = color;
   633       return m_fadingAmount;
   642       return m_fadingColor;
   658     void blit(
const RectI& src, 
Console& con, 
Vector2i dst, 
float foregroundAlpha = 1.0f, 
float backgroundAlpha = 1.0f) 
const;
   667     enum class PrintOption {
   691     struct ColorControl {
   696     static constexpr 
char ColorControlCount = 5;
   697     ColorControl m_controls[ColorControlCount];
   699     float m_fadingAmount;
   703 #ifndef DOXYGEN_SHOULD_SKIP_THIS   708 #endif // GF_CONSOLE_H 
 
Definition: Console.h:144
 
PrintAction
An action when printing. 
Definition: Console.h:229
 
const Color4f & getDefaultForeground() const
Get the default foreground color. 
Definition: Console.h:297
 
void setDefaultForeground(const Color4f &color)
Set the default foreground color. 
Definition: Console.h:287
 
Kind
The kind of console effect. 
Definition: Console.h:132
 
void setDefaultConsoleEffect(ConsoleEffect effect)
Set the default console effect. 
Definition: Console.h:417
 
The button is active once. 
 
A virtual console. 
Definition: Console.h:224
 
constexpr ConsoleColorControl ConsoleColorControlStop
The constant for color control stop. 
Definition: Console.h:110
 
 
Definition: Console.h:135
 
constexpr ConsoleEffect(Kind kind)
Constructor with a kind only. 
Definition: Console.h:157
 
 
Definition: Console.h:143
 
Base class for all render targets (window, texture, ...) 
Definition: RenderTarget.h:73
 
Define the states used for drawing to a RenderTarget. 
Definition: RenderStates.h:82
 
Bitfield relying on an enumeration. 
Definition: Flags.h:46
 
const Color4f & getFadingColor() const
Get the fading color. 
Definition: Console.h:641
 
constexpr ConsoleColorControl ConsoleColorControl3
The constant for color control #3. 
Definition: Console.h:86
 
constexpr ConsoleEffect(Kind kind, float alpha)
Constructor with a kind and . 
Definition: Console.h:173
 
constexpr ConsoleColorControl ConsoleColorControl5
The constant for color control #5. 
Definition: Console.h:102
 
constexpr ConsoleColorControl ConsoleColorControl2
The constant for color control #2. 
Definition: Console.h:78
 
 
Definition: Console.h:140
 
Use the default console effect. 
Definition: Console.h:146
 
constexpr float getAlpha() const noexcept
Get the alpha value. 
Definition: Console.h:197
 
 
Definition: Console.h:139
 
constexpr bool isDefault() const noexcept
Check if the effect if Console::Default. 
Definition: Console.h:190
 
void setFade(float amount, const Color4f &color)
Set the fading parameters. 
Definition: Console.h:622
 
 
Definition: Console.h:145
 
 
Definition: Console.h:137
 
ConsoleAlignment
The alignment of the text in the console. 
Definition: Console.h:50
 
 
Definition: Console.h:138
 
Do not change the background color. 
Definition: Console.h:133
 
The namespace for gf classes. 
Definition: Action.h:35
 
ConsoleEffect getDefaultConsoleEffect() const
Get the default console effect. 
Definition: Console.h:430
 
constexpr ConsoleColorControl ConsoleColorControl1
The constant for color control #1. 
Definition: Console.h:70
 
constexpr ConsoleColorControl ConsoleColorControl4
The constant for color control #4. 
Definition: Console.h:94
 
A 4D vector. 
Definition: Vector.h:838
 
 
Definition: Console.h:141
 
void setDefaultBackground(const Color4f &color)
Set the default background color. 
Definition: Console.h:267
 
float getFadingAmount() const
Get the fading amount. 
Definition: Console.h:632
 
 
Definition: Console.h:136
 
A console font. 
Definition: ConsoleFont.h:110
 
 
Definition: Console.h:142
 
char ConsoleColorControl
A type for color controls in a console. 
Definition: Console.h:62
 
A constant reference to a string and its size. 
Definition: StringRef.h:41
 
 
Definition: Console.h:134
 
A console effect on the background color. 
Definition: Console.h:126
 
ConsoleAlignment getDefaultAlignment() const
Get the default alignment. 
Definition: Console.h:452
 
constexpr Kind getKind() const noexcept
Get the kind of effect. 
Definition: Console.h:183
 
void setDefaultAlignment(ConsoleAlignment alignment)
Set the default alignment. 
Definition: Console.h:441
 
int getHeight() const
Get the height of the console. 
Definition: Console.h:252
 
const Color4f & getDefaultBackground() const
Get the default background color. 
Definition: Console.h:277
 
int getWidth() const
Get the width of the console. 
Definition: Console.h:245