|
Public Types |
typedef SourceTag | CppObjectType |
typedef SourceTag_Class | CppClassType |
typedef GtkSourceTag | BaseObjectType |
typedef GtkSourceTagClass | BaseClassType |
Public Member Functions |
virtual | ~SourceTag () |
GtkSourceTag * | gobj () |
| Provides access to the underlying C GObject.
|
const GtkSourceTag * | gobj () const |
| Provides access to the underlying C GObject.
|
GtkSourceTag * | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
Glib::ustring | get_id () const |
| getter of the tag ID.
|
SourceTagStyle | get_style () const |
| getter of the tag style.
|
void | set_style (const SourceTagStyle &a_style) |
| setter of the tag style.
|
Static Public Member Functions |
static GType | get_type () G_GNUC_CONST |
static GType | get_base_type () G_GNUC_CONST |
static Glib::RefPtr< SourceTag > | create_syntax_tag (const Glib::ustring &a_id, const Glib::ustring &a_name, const Glib::ustring &a_pat_start, const Glib::ustring &a_pat_end) |
| create a syntax tag.
|
static Glib::RefPtr< SourceTag > | create_pattern_tag (const Glib::ustring &a_id, const Glib::ustring &a_name, const Glib::ustring &a_pattern) |
| create a pattern tag.
|
static Glib::RefPtr< SourceTag > | create_keyword_list_tag (const Glib::ustring &a_id, const Glib::ustring &a_name, const Glib::SListHandle< const Glib::ustring > &a_keywords, bool a_case_sensitive=true, bool a_match_empty_string_at_beginning=true, bool a_match_empty_string_at_end=true, const Glib::ustring &a_beginning_regex="", const Glib::ustring &a_end_regex="") |
| create a tag for a list of keywords.
|
static Glib::RefPtr< SourceTag > | create_line_comment_tag_new (const Glib::ustring &a_id, const Glib::ustring &a_name, const Glib::ustring &a_pattern_start) |
| create a tag for a comment.
|
static Glib::RefPtr< SourceTag > | create_string_tag_new (const Glib::ustring &a_id, const Glib::ustring &a_name, const Glib::ustring &a_pattern_start, const Glib::ustring &a_pattern_end, bool a_end_at_line_end=true) |
| create a tag for a string delimited by two patterns.
|
Protected Member Functions |
| SourceTag (const Glib::ConstructParams &construct_params) |
| SourceTag (GtkSourceTag *castitem) |
| SourceTag () |
Friends |
class | SourceTag_Class |
Related Functions |
(Note that these are not member functions.)
|
Glib::RefPtr< gtksourceview::SourceTag > | wrap (GtkSourceTag *object, bool take_copy=false) |
A tag is a an attribute that can be applied to a range of text One can associate style information to a given Tag. For example, a tag might be called "bold" and might make the text inside the tag bold. GtkSourceView uses SourceTag to perform syntax highlighting.