.. index:: pair: class; EE::UI::Doc::SyntaxColorScheme .. _doxid-class_e_e_1_1_u_i_1_1_doc_1_1_syntax_color_scheme: class EE::UI::Doc::SyntaxColorScheme ==================================== .. toctree:: :hidden: struct_EE_UI_Doc_SyntaxColorScheme_Style.rst Syntax colors types accepted/used are: "normal", "symbol", "comment", "keyword", "keyword2", "number", "literal", "string", "operator", "function", "link" Editor colors types accepted/used are: "background", "text", "caret" "selection", "gutter_background", "line_number", "line_number2", "line_highlight", "gutter_background", "whitespace", "line_break_column", "matching_bracket", "matching_selection", "suggestion", "suggestion_selected" Following the lite editor syntax colors (`https://github.com/rxi/lite `__). .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class SyntaxColorScheme { public: // structs struct :ref:`Style`; // construction :target:`SyntaxColorScheme`(); :target:`SyntaxColorScheme`(const std::string& name, const :ref:`UnorderedMap`<:ref:`SyntaxStyleType`, :ref:`Style`>& syntaxColors, const :ref:`UnorderedMap`<:ref:`SyntaxStyleType`, :ref:`Style`>& editorColors); // methods static SyntaxColorScheme :target:`getDefault`(); static std::vector :target:`loadFromStream`(:ref:`IOStream`& stream); static std::vector :target:`loadFromFile`(const std::string& path); static std::vector :target:`loadFromMemory`(const void* data, std::size_t sizeInBytes); static std::vector :target:`loadFromPack`(:ref:`Pack`* pack, std::string filePackPath); const :ref:`Style`& :target:`getSyntaxStyle`(const :ref:`SyntaxStyleType`& type) const; bool :target:`hasSyntaxStyle`(const :ref:`SyntaxStyleType`& type) const; void :target:`setSyntaxStyles`(const :ref:`UnorderedMap`<:ref:`SyntaxStyleType`, :ref:`Style`>& styles); void :target:`setSyntaxStyle`(const :ref:`SyntaxStyleType`& type, const :ref:`Style`& style); const :ref:`Style`& :target:`getEditorSyntaxStyle`(const :ref:`SyntaxStyleType`& type) const; const :ref:`Color`& :target:`getEditorColor`(const :ref:`SyntaxStyleType`& type) const; void :target:`setEditorSyntaxStyles`(const :ref:`UnorderedMap`<:ref:`SyntaxStyleType`, :ref:`Style`>& styles); void :target:`setEditorSyntaxStyle`(const :ref:`SyntaxStyleType`& type, const :ref:`Style`& style); const std::string& :target:`getName`() const; void :target:`setName`(const std::string& name); };