wxMaxima
Data Structures | Enumerations | Functions
TextStyle.h File Reference

This file declares everything needed for the text style system used to style all the elements on the work sheet. More...

#include "precomp.h"
#include <wx/colour.h>
#include <map>
#include <wx/hashmap.h>
#include <string>
#include <ostream>
#include <wx/config.h>
#include <wx/font.h>
#include <wx/settings.h>
#include <cstdint>
#include <functional>
#include "FontAttribs.h"
#include "FontVariantCache.h"
#include <unordered_map>
Include dependency graph for TextStyle.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  Style
 Text Style Definition. More...
 

Enumerations

enum  TextStyle : int8_t {
  TS_CODE_DEFAULT , TS_CODE_VARIABLE , TS_CODE_FUNCTION , TS_CODE_COMMENT ,
  TS_CODE_NUMBER , TS_CODE_STRING , TS_CODE_OPERATOR , TS_CODE_LISP ,
  TS_CODE_ENDOFLINE , TS_ASCIIMATHS , TS_MATH , TS_TEXT ,
  TS_VARIABLE , TS_OPERATOR , TS_NUMBER , TS_FUNCTION ,
  TS_SPECIAL_CONSTANT , TS_GREEK_CONSTANT , TS_STRING , TS_OUTDATED ,
  TS_MAIN_PROMPT , TS_OTHER_PROMPT , TS_LABEL , TS_USERLABEL ,
  TS_HIGHLIGHT , TS_WARNING , TS_ERROR , TS_TITLE ,
  TS_SECTION , TS_SUBSECTION , TS_SUBSUBSECTION , TS_HEADING5 ,
  TS_HEADING6 , TS_TEXT_BACKGROUND , TS_DOCUMENT_BACKGROUND , TS_CELL_BRACKET ,
  TS_ACTIVE_CELL_BRACKET , TS_CURSOR , TS_SELECTION , TS_EQUALSSELECTION ,
  NUMBEROFSTYLES , TS_INVALID
}
 All text styles known to wxMaxima. More...
 

Functions

std::ostream & operator<< (std::ostream &out, const TextStyle textstyle)
 Allow Standard c++ streams to print out our enum values as text.
 

Detailed Description

This file declares everything needed for the text style system used to style all the elements on the work sheet.

Enumeration Type Documentation

◆ TextStyle

enum TextStyle : int8_t

All text styles known to wxMaxima.

Attention
If this list is changed, Configuration::Configuration needs to be informed what type of style which style is.
Enumerator
NUMBEROFSTYLES 

This is not a style, but its value tells us how many styles are defined.

TS_INVALID 

If a text style cannot be determined this value is used.