1 #ifndef TERMOX_WIDGET_WIDGETS_TILE_HPP
2 #define TERMOX_WIDGET_WIDGETS_TILE_HPP
5 #include <termox/painter/glyph.hpp>
6 #include <termox/painter/painter.hpp>
7 #include <termox/widget/widget.hpp>
24 void set_tile(
Glyph tile);
26 [[nodiscard]]
auto tile() ->
Glyph;
36 [[nodiscard]]
auto tile(
Glyph tile = U
' ') -> std::unique_ptr<Tile>;
39 [[nodiscard]]
auto tile(
Tile::Parameters parameters) -> std::unique_ptr<Tile>;
Contains functions to paint Glyphs to a Widget's screen area.
Definition: painter.hpp:21
A unit width/height Widget that can display a single Glyph.
Definition: tile.hpp:12
auto paint_event(Painter &p) -> bool override
Handles Paint_event objects.
Definition: tile.cpp:28
Holds a description of a paintable tile on the screen.
Definition: glyph.hpp:11