NDK class that represents a console to help development with Lua scripting.
More...
Inherits Nz::Node, and Nz::HandledObject< T >.
NDK class that represents a console to help development with Lua scripting.
◆ Console()
Ndk::Console::Console |
( |
World & |
world, |
|
|
const Nz::Vector2f & |
size, |
|
|
Nz::LuaState & |
state |
|
) |
| |
Constructs a Console object with a world to interact with.
- Parameters
-
world | World to interact with |
size | (Width, Height) of the console |
instance | Lua instance that will interact with the world |
◆ AddLine()
void Ndk::Console::AddLine |
( |
const Nz::String & |
text, |
|
|
const Nz::Color & |
color = Nz::Color::White |
|
) |
| |
Adds a line to the console.
- Parameters
-
text | New line of text |
color | Color for the text |
◆ GetCharacterSize()
unsigned int Ndk::Console::GetCharacterSize |
( |
| ) |
const |
|
inline |
Gets the character size.
- Returns
- Height of the character
◆ GetHistory()
Gets the entity representing the history of the console.
- Returns
- History of the console
◆ GetHistoryBackground()
const EntityHandle & Ndk::Console::GetHistoryBackground |
( |
| ) |
const |
|
inline |
Gets the entity representing the background of the console's history.
- Returns
- Background history of the console
◆ GetInput()
Gets the entity representing the input of the console.
- Returns
- Input of the console
◆ GetInputBackground()
const EntityHandle & Ndk::Console::GetInputBackground |
( |
| ) |
const |
|
inline |
Gets the entity representing the background of the console's input.
- Returns
- Background input of the console
◆ GetSize()
Gets the size of the console.
- Returns
- Size (Width, Height) of the console
◆ GetTextFont()
const Nz::FontRef & Ndk::Console::GetTextFont |
( |
| ) |
const |
|
inline |
Gets the font used by the console.
- Returns
- A reference to the font currenty used
◆ IsVisible()
bool Ndk::Console::IsVisible |
( |
| ) |
const |
|
inline |
Checks whether the console is visible.
- Returns
- true If it is the case
◆ SendCharacter()
void Ndk::Console::SendCharacter |
( |
char32_t |
character | ) |
|
Sends a character to the console.
- Parameters
-
character | Character that will be added to the console |
◆ SendEvent()
void Ndk::Console::SendEvent |
( |
const Nz::WindowEvent & |
event | ) |
|
Sends an event to the console.
- Parameters
-
event | Event to be takin into consideration by the console |
◆ SetCharacterSize()
void Ndk::Console::SetCharacterSize |
( |
unsigned int |
size | ) |
|
Sets the character size.
- Parameters
-
◆ SetSize()
Sets the console size.
- Parameters
-
size | (Width, Height) of the console |
◆ SetTextFont()
Sets the text font.
- Parameters
-
font | Reference to a valid font |
◆ Show()
void Ndk::Console::Show |
( |
bool |
show = true | ) |
|
Shows the console.
- Parameters
-
show | Should the console be showed |
The documentation for this class was generated from the following files:
- SDK/include/NDK/Console.hpp
- SDK/include/NDK/Console.inl
- SDK/src/NDK/Console.cpp