#include <sourceview.h>
Public Types | |
typedef SourceView | CppObjectType |
typedef SourceView_Class | CppClassType |
typedef GtkSourceView | BaseObjectType |
typedef GtkSourceViewClass | BaseClassType |
Public Member Functions | |
virtual | ~SourceView () |
GtkSourceView * | gobj () |
Provides access to the underlying C GtkObject. | |
const GtkSourceView * | gobj () const |
Provides access to the underlying C GtkObject. | |
SourceView () | |
default constructor | |
SourceView (Glib::RefPtr< SourceBuffer > &buffer) | |
constructor. | |
Glib::RefPtr< const SourceBuffer > | get_source_buffer () const |
get the source buffer associated to the current instance | |
Glib::RefPtr< SourceBuffer > | get_source_buffer () |
get the source buffer associated to the current instance | |
void | set_source_buffer (Glib::RefPtr< SourceBuffer > &source_buffer) |
set the source buffer to be displayed by the SourceView | |
void | set_show_line_numbers (bool show=true) |
display line numbers beside the text, or not | |
bool | get_show_line_numbers () const |
test whether line numbers are displayed beside the text | |
void | set_show_line_markers (bool show=true) |
display line markers beside the text, nor not. | |
bool | get_show_line_markers () const |
test whether if line markers are displayed beside the text | |
void | set_tabs_width (guint width) |
set tabs width | |
guint | get_tabs_width () const |
get tab width | |
void | set_auto_indent (bool enable=true) |
set automatic text indention or not | |
bool | get_auto_indent () const |
test whether automatic text indentation is activated | |
void | set_insert_spaces_instead_of_tabs (bool enable=true) |
activate (or de-activate) the replacement of any inserted tabulator character by a group of space character | |
bool | get_insert_spaces_instead_of_tabs () const |
test whether the replacement of any inserted tabulator character by a group of space character is activated | |
void | set_show_margin (bool show=true) |
activate (or de-activate) the display of a margin | |
bool | get_show_margin () const |
test if a margin is displayed | |
void | set_highlight_current_line (bool highlight=true) |
do highlight the currently selected line, or not | |
bool | get_highlight_current_line () const |
test if the currently selected line is to be hightlighted | |
void | set_margin (guint margin) |
set the position of the right margin | |
guint | get_margin () const |
get the position of the right margin | |
void | set_marker_pixbuf (const Glib::ustring &marker, Glib::RefPtr< Gdk::Pixbuf > pixbuf) |
associates a marker pixbuf with a given marker name | |
Glib::RefPtr< Gdk::Pixbuf > | get_marker_pixbuf (const Glib::ustring &marker) |
get the marker pixbuf associated to a given marker name | |
Glib::RefPtr< const Gdk::Pixbuf > | get_marker_pixbuf (const Glib::ustring &marker) const |
get the marker pixbuf associated to a given marker name | |
void | set_smart_home_end (bool enable=true) |
activate whether if HOME and END keys will move to the first/last non space character of the line before moving to the start/end | |
bool | get_smart_home_end () const |
test whether if HOME and END keys will move to the first/last non space character of the line before moving to the start/end | |
Glib::SignalProxy0< void > | signal_redo () |
Glib::SignalProxy0< void > | signal_undo () |
Static Public Member Functions | |
static GType | get_type () G_GNUC_CONST |
static GType | get_base_type () G_GNUC_CONST |
static Glib::RefPtr< SourceView > | create () |
static Glib::RefPtr< SourceView > | create (Glib::RefPtr< SourceBuffer > &buffer) |
Protected Member Functions | |
SourceView (const Glib::ConstructParams &construct_params) | |
SourceView (GtkSourceView *castitem) | |
Friends | |
class | SourceView_Class |
Related Functions | |
(Note that these are not member functions.) | |
gtksourceview::SourceView * | wrap (GtkSourceView *object, bool take_copy=false) |
It displays a Gtk::SourceBuffer.
typedef SourceView_Class gtksourceview::SourceView::CppClassType |
virtual gtksourceview::SourceView::~SourceView | ( | ) | [virtual] |
gtksourceview::SourceView::SourceView | ( | const Glib::ConstructParams & | construct_params | ) | [explicit, protected] |
gtksourceview::SourceView::SourceView | ( | GtkSourceView * | castitem | ) | [explicit, protected] |
gtksourceview::SourceView::SourceView | ( | ) | [explicit] |
default constructor
gtksourceview::SourceView::SourceView | ( | Glib::RefPtr< SourceBuffer > & | buffer | ) | [explicit] |
constructor.
create an instance of SourceView displaying a given buffer
buffer | the buffer to display in the SourceView |
static GType gtksourceview::SourceView::get_type | ( | ) | [static] |
static GType gtksourceview::SourceView::get_base_type | ( | ) | [static] |
GtkSourceView* gtksourceview::SourceView::gobj | ( | ) | [inline] |
Provides access to the underlying C GtkObject.
const GtkSourceView* gtksourceview::SourceView::gobj | ( | ) | const [inline] |
Provides access to the underlying C GtkObject.
static Glib::RefPtr<SourceView> gtksourceview::SourceView::create | ( | ) | [static] |
static Glib::RefPtr<SourceView> gtksourceview::SourceView::create | ( | Glib::RefPtr< SourceBuffer > & | buffer | ) | [static] |
Glib::RefPtr<const SourceBuffer> gtksourceview::SourceView::get_source_buffer | ( | ) | const |
get the source buffer associated to the current instance
Glib::RefPtr<SourceBuffer> gtksourceview::SourceView::get_source_buffer | ( | ) |
get the source buffer associated to the current instance
void gtksourceview::SourceView::set_source_buffer | ( | Glib::RefPtr< SourceBuffer > & | source_buffer | ) |
set the source buffer to be displayed by the SourceView
source_buffer | the source buffer to set |
void gtksourceview::SourceView::set_show_line_numbers | ( | bool | show = true |
) |
display line numbers beside the text, or not
show | if true, line numbers will be displayed beside test text. |
bool gtksourceview::SourceView::get_show_line_numbers | ( | ) | const |
test whether line numbers are displayed beside the text
void gtksourceview::SourceView::set_show_line_markers | ( | bool | show = true |
) |
display line markers beside the text, nor not.
show | if true, line markers will be displayed beside the text |
bool gtksourceview::SourceView::get_show_line_markers | ( | ) | const |
test whether if line markers are displayed beside the text
void gtksourceview::SourceView::set_tabs_width | ( | guint | width | ) |
set tabs width
width | the new tab width |
guint gtksourceview::SourceView::get_tabs_width | ( | ) | const |
get tab width
void gtksourceview::SourceView::set_auto_indent | ( | bool | enable = true |
) |
set automatic text indention or not
enable | if true, automatic text indentation is activated |
bool gtksourceview::SourceView::get_auto_indent | ( | ) | const |
test whether automatic text indentation is activated
void gtksourceview::SourceView::set_insert_spaces_instead_of_tabs | ( | bool | enable = true |
) |
activate (or de-activate) the replacement of any inserted tabulator character by a group of space character
enable | if true, any tabulator character inserted is replaced by a group of space character |
bool gtksourceview::SourceView::get_insert_spaces_instead_of_tabs | ( | ) | const |
test whether the replacement of any inserted tabulator character by a group of space character is activated
void gtksourceview::SourceView::set_show_margin | ( | bool | show = true |
) |
activate (or de-activate) the display of a margin
show | if true, activate the display of a margin |
bool gtksourceview::SourceView::get_show_margin | ( | ) | const |
test if a margin is displayed
void gtksourceview::SourceView::set_highlight_current_line | ( | bool | highlight = true |
) |
do highlight the currently selected line, or not
highlight | if true, do highlight the currently selected line |
bool gtksourceview::SourceView::get_highlight_current_line | ( | ) | const |
test if the currently selected line is to be hightlighted
void gtksourceview::SourceView::set_margin | ( | guint | margin | ) |
set the position of the right margin
margin | the position (in pixels) of the right margin |
guint gtksourceview::SourceView::get_margin | ( | ) | const |
get the position of the right margin
void gtksourceview::SourceView::set_marker_pixbuf | ( | const Glib::ustring & | marker, | |
Glib::RefPtr< Gdk::Pixbuf > | pixbuf | |||
) |
associates a marker pixbuf with a given marker name
marker | the marker name to consider | |
pixbuf | the new pixbuf |
Glib::RefPtr<Gdk::Pixbuf> gtksourceview::SourceView::get_marker_pixbuf | ( | const Glib::ustring & | marker | ) |
get the marker pixbuf associated to a given marker name
marker | the marker name to consider |
Glib::RefPtr<const Gdk::Pixbuf> gtksourceview::SourceView::get_marker_pixbuf | ( | const Glib::ustring & | marker | ) | const |
get the marker pixbuf associated to a given marker name
marker | the marker name to consider |
void gtksourceview::SourceView::set_smart_home_end | ( | bool | enable = true |
) |
activate whether if HOME and END keys will move to the first/last non space character of the line before moving to the start/end
if true, HOME and END keys will move to the first/last non space character of the line before moving to the start/end
bool gtksourceview::SourceView::get_smart_home_end | ( | ) | const |
test whether if HOME and END keys will move to the first/last non space character of the line before moving to the start/end
Glib::SignalProxy0< void > gtksourceview::SourceView::signal_redo | ( | ) |
void redo()
Glib::SignalProxy0< void > gtksourceview::SourceView::signal_undo | ( | ) |
void undo()
friend class SourceView_Class [friend] |
gtksourceview::SourceView * wrap | ( | GtkSourceView * | object, | |
bool | take_copy = false | |||
) | [related] |
object | The C instance | |
take_copy | False if the result should take ownership of the C instance. True if it should take a new copy or ref. |