wex v24.04.0
Public Types | Public Member Functions | List of all members
wex::presentation Class Reference

This class defines our scintilla presentations. More...

#include <wex/syntax/presentation.h>

Inheritance diagram for wex::presentation:
Inheritance graph
[legend]

Public Types

enum  presentation_t { INDICATOR , MARKER }
 The presentation types. More...
 

Public Member Functions

 presentation (presentation_t t, const pugi::xml_node &node=pugi::xml_node())
 Constructor from xml node.
 
 presentation (presentation_t t, int no, int style=-1)
 Constructor.
 
auto operator<=> (presentation const &rhs) const
 Spaceship operator.
 
bool operator== (const presentation &) const =default
 == Operator.
 
void apply (wxStyledTextCtrl *stc) const
 Applies this presentation to stc component.
 
const auto & background_colour () const
 Returns background colour.
 
const auto & foreground_colour () const
 Returns foreground colour.
 
bool is_ok () const
 Returns true if this presentation is valid.
 
bool is_underlined () const
 Returns underlined.
 
const std::string name () const
 Returns name of presentation.
 
int number () const
 Returns the no.
 
int style () const
 Returns the style.
 

Detailed Description

This class defines our scintilla presentations.

Member Enumeration Documentation

◆ presentation_t

The presentation types.

Enumerator
INDICATOR 

presents an indicator

MARKER 

presents a marker

Constructor & Destructor Documentation

◆ presentation()

wex::presentation::presentation ( presentation_t t,
int no,
int style = -1 )

Constructor.

Sets no and style as specified.