GigaPasjans
Loading...
Searching...
No Matches
DrawContext.h
1// Plik utworzony przez Piotra ChudziƄskiego w dniu 11.04.2025
2#pragma once
3
4#include <foundation/Common.h>
5#include "Terminal.h"
6
7namespace Andromenda
8{
14 {
20
26
32
37 void Put(const String &text, Int2 position);
38
43 void Put(const WideString &text, Int2 position, bool isBorder = false);
44
49 void Fill(const Box &box);
50
55 void Border(const Box &box);
56 };
57} // namespace Andromenda
Represents a mutable sequence of characters, providing various member functions for string manipulati...
Definition String.h:16
Represents a mutable sequence of utf-16 characters, providing various member functions for string man...
Definition WideString.h:14
A utility which contains all essential class instances and functions for rendering objects.
Definition DrawContext.h:14
void Border(const Box &box)
Draws an rounded border at given position.
Definition DrawContext.cpp:58
TerminalInfo Terminal
Terminal information.
Definition DrawContext.h:19
void Put(const String &text, Int2 position)
Puts a UTF-8 text at given position and with given text.
Definition DrawContext.cpp:7
StyleStack StyleStack
Style stack.
Definition DrawContext.h:31
void Fill(const Box &box)
Draws an rectangle at given position.
Definition DrawContext.cpp:43
Framebuffer & Framebuffer
Reference to framebuffer where objects should be rendered.
Definition DrawContext.h:25
Represents a major terminal informations.
Definition Terminal.h:213
Represents a rectangular area defined by a position and size, using signed 32-bit integers.
Definition Box.h:11
Represents a two component vector. Components are 32-bit and they are signed.
Definition Int2.h:11