Reference Manual
Inti Logo
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members

Inti::Gtk::SourceLanguage Class Reference

A GtkSourceLanguage C++ wrapper class. More...

#include <inti/gtk-sourceview/sourcelanguage.h>

List of all members.

Public Member Functions

Constructors
Accessors
Accessors
Methods
Signal Proxies

Protected Member Functions

Constructors
Signal Handlers

Detailed Description

A GtkSourceLanguage C++ wrapper class.

SourceLanguage is an object that represents a SourceBuffer's language.


Constructor & Destructor Documentation

Inti::Gtk::SourceLanguage::SourceLanguage GtkSourceLanguage *  language,
bool  reference = false
[explicit, protected]
 

Construct a new SourceLanguage from an existing GtkSourceLanguage.

Parameters:
language A pointer to a GtkSourceLanguage.
reference Set false if the initial reference count is floating, set true if it's not.

The language can be a newly created GtkSourceLanguage or an existing GtkSourceLanguage (see G::Object::Object).


Member Function Documentation

bool Inti::Gtk::SourceLanguage::get_mime_types std::vector< String > &  mime_types  )  const
 

Gets a list of the mime types set by set_mime_types().

Parameters:
mime_types A vector of String to hold the mime types.
Returns:
true if mime_types is not empty.

SourceTagStyle* Inti::Gtk::SourceLanguage::get_tag_default_style const String &  tag_id  )  const
 

Get the default style for tag_id.

Parameters:
tag_id The tag ID.
Returns:
A pointer to the default SourceTagStyle.

SourceTagStyle* Inti::Gtk::SourceLanguage::get_tag_style const String &  tag_id  )  const
 

Gets the SourceTagStyle used by tag_id.

Parameters:
tag_id The tag ID.
Returns:
A pointer to the SourceTagStyle.

bool Inti::Gtk::SourceLanguage::get_tags std::vector< Pointer< TextTag > > &  tags  )  const
 

Gets a list of the available source tags.

Parameters:
tags A vector of TextTag smart pointers to hold the source tags.
Returns:
true if tags is not empty.

virtual void Inti::Gtk::SourceLanguage::on_tag_style_changed const String &  name  )  [protected, virtual]
 

Called when a tag style is changed.

Parameters:
name The name of the new tag style.

void Inti::Gtk::SourceLanguage::set_mime_types const std::vector< String > &  mime_types  ) 
 

Set the mime types.

Parameters:
mime_types A vector of String holding the mime types

void Inti::Gtk::SourceLanguage::set_style_scheme SourceStyleScheme scheme  ) 
 

Set the style scheme used by the language.

Parameters:
scheme The new SourceStyleScheme.

void Inti::Gtk::SourceLanguage::set_tag_style const String &  tag_id,
const SourceTagStyle style
 

Set the style of the tag whose ID is tag_id.

Parameters:
tag_id The ID identifying the source tag.
style The new SourceTagStyle.


The documentation for this class was generated from the following file: Main Page - Footer


Generated on Wed Aug 27 21:17:27 2003 for Inti-SourceView by doxygen 1.3.2 written by Dimitri van Heesch, © 1997-2002