psychic-ui 0.0.0
Loading...
Searching...
No Matches
psychic_ui::Atom Class Reference

#include <Atom.hpp>

Public Member Functions

 Atom (std::string_view string)
const std::string & str () const
const char * c_str () const
bool empty () const
bool operator== (const Atom &other) const
bool operator== (std::string_view other) const

Detailed Description

An interned string, for the open sets of values (font family, skin name). Copying and comparing are pointer operations, and only the first use of a spelling allocates. Interned strings are never freed; like the rest of the UI, Atoms are for the UI thread only.


The documentation for this class was generated from the following files: