wex
v21.04.0
|
This class defines our scintilla styles. More...
#include <wex/style.h>
Public Member Functions | |
style () | |
Default constructor. | |
style (const pugi::xml_node &node, const std::string ¯o) | |
Constructor using xml node (sets no from the no attribute). | |
style (const std::string &no, const std::string &value, const std::string ¯o="global") | |
Constructor using no and value. | |
void | apply (wxStyledTextCtrl *stc) const |
Applies this style to stc component. More... | |
void | clear () |
Clears style. | |
bool | contains_default_style () const |
Is the default style part of these styles. | |
const auto & | define () const |
Returns the original define. | |
bool | is_ok () const |
Returns true if this style is valid. | |
const std::string | number () const |
Returns the numbers ('s). | |
const auto & | value () const |
Returns the value. | |
This class defines our scintilla styles.
The no as in xml or in the string can be a single style, or several styles separated by a comma. E.g. 1,2,3=fore:light steel blue,italic,size:8 1,2,3 are the scintilla styles numbers, and the rest is spec
void wex::style::apply | ( | wxStyledTextCtrl * | stc | ) | const |
Applies this style to stc component.
If no style is present, stc StyleResetDefault is invoked.