CardGame
Rogue-like card videogame
Loading...
Searching...
No Matches
cardRenderer.h File Reference
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <vector>
Include dependency graph for cardRenderer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Slot
 Defines a rectangular text slot within a rendered card grid. More...
 
struct  NameLayout
 Two-line text layout produced by splitting a string to fit a slot width. More...
 
class  CardRenderer
 Renders a CardInstance as a fixed-size ASCII grid. More...
 

Enumerations

enum class  SlotAlignment { Left , Center , Right }
 Text alignment used when fitting content into a fixed-width slot. More...
 

Enumeration Type Documentation

◆ SlotAlignment

enum class SlotAlignment
strong

Text alignment used when fitting content into a fixed-width slot.

Enumerator
Left 
Center 
Right