TUI
Terminal user interface library
Public Member Functions | List of all members
tui::box Struct Reference
Inheritance diagram for tui::box:
tui::surface tui::box_appearance tui::appearance

Public Member Functions

 box (surface_size size=surface_size())
 
void setTitle (const symbol_string &str)
 
symbol_string getTitle () const
 
void setTitlePosition (int position)
 
int getTitlePosition () const
 
- Public Member Functions inherited from tui::surface
 surface (surface_size size={{ 1, 1 }, { 0, 0 }})
 
 surface (const symbol_string &str)
 
surfaceoperator= (const symbol_string &str)
 
array_proxy< surfaceoperator[] (size_t x)
 
const array_proxy< const surfaceoperator[] (size_t x) const
 
bool isResized () const
 
void setSymbolAt (const symbol &character, vec2i position)
 
symbol getSymbolAt (vec2i position) const
 
void move (vec2i offset)
 
void setPositionInfo (surface_position pos)
 
surface_position getPositionInfo () const
 
vec2i getPosition () const
 
vec2i getGlobalPosition () const
 
void setAnchor (surface *surf)
 
surfacegetAnchor () const
 
void setAnchorPositionInfo (anchor_position anchor_pos)
 
anchor_position getAnchorPositionInfo () const
 
void setSizeInfo (surface_size size, bool update_fixed=true)
 
surface_size getSizeInfo () const
 
vec2i getSize () const
 
void setSizeFunction (std::function< vec2i()> f_size)
 
std::function< vec2i()> getSizeFunction ()
 
void setPositionFunction (std::function< vec2i()> f_position)
 
std::function< vec2i()> getPositionFunction ()
 
void updateSurfaceSize (surface &surf) const
 
void updateSurfacePosition (surface &surf) const
 
void insertSurface (surface &surf, bool update=true)
 
void insertSurface (surface &surf, color_override c_override, bool update=true)
 
void insertSurface (surface &surf, color_transparency_override c_t_override, bool update=true)
 
void insertSurface (surface &surf, color_override c_override, color_transparency_override c_t_override, bool update=true)
 
void fill (const symbol &Symbol)
 
void makeTransparent ()
 
void makeBlank ()
 
void fillColorTransparency (COLOR_TRANSPARENCY c_t)
 
void fillColor (color c)
 
void setClearSymbol (const symbol &sym)
 
symbol getClearSymbol () const
 
void invert ()
 
- Public Member Functions inherited from tui::box_appearance
 box_appearance (symbol s)
 
 box_appearance (symbol ht_line, symbol hb_line, symbol vl_line, symbol vr_line, symbol top_l, symbol top_r, symbol bottom_l, symbol bottom_r)
 
void setColor (color Color) override
 
void setAppearance (box_appearance appearance)
 
box_appearance getAppearance () const
 
void setHorizontalTopLineSymbol (symbol h_line)
 
symbol getHorizontalTopLineSymbol () const
 
void setHorizontalBottomLineSymbol (symbol h_line)
 
symbol getHorizontalBottomLineSymbol () const
 
void setVerticalLeftLineSymbol (symbol v_line)
 
symbol getVerticalLeftLineSymbol () const
 
void setVerticalRightLineSymbol (symbol v_line)
 
symbol getVerticalRightLineSymbol () const
 
void setTopLeftSymbol (symbol top_l)
 
symbol getTopLeftSymbol () const
 
void setTopRightSymbol (symbol top_r)
 
symbol getTopRightSymbol () const
 
void setBottomLeftSymbol (symbol bottom_l)
 
symbol getBottomLeftSymbol () const
 
void setBottomRightSymbol (symbol bottom_r)
 
symbol getBottomRightSymbol () const
 

Additional Inherited Members

- Public Types inherited from tui::surface
using color_override = property_override< color >
 
using color_transparency_override = property_override< COLOR_TRANSPARENCY >
 
- Static Public Attributes inherited from tui::box_appearance
static const box_appearance thin_line = { U'\x2500', U'\x2500', U'\x2502', U'\x2502', U'\x250C', U'\x2510', U'\x2514', U'\x2518' }
 
static const box_appearance double_line = { U'\x2550', U'\x2550', U'\x2551', U'\x2551', U'\x2554', U'\x2557', U'\x255A', U'\x255D' }
 
static const box_appearance medium_line = { U'\x2580', U'\x2584', U'\x258C', U'\x2590', U'\x259B', U'\x259C', U'\x2599', U'\x259F' }
 
static const box_appearance thick_line = { U'\x2588' }
 
- Protected Member Functions inherited from tui::surface
virtual void updateAction ()
 
void clear ()
 
- Protected Member Functions inherited from tui::appearance
template<typename T >
void setElement (T &elem_to_set, T elem)
 
- Protected Attributes inherited from tui::box_appearance
symbol horizontal_top_line
 
symbol horizontal_bottom_line
 
symbol vertical_left_line
 
symbol vertical_right_line
 
symbol top_left
 
symbol top_right
 
symbol bottom_left
 
symbol bottom_right