#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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
default constructor
|
|
constructor. create an instance of SourceView displaying a given buffer
|
|
|
|
|
|
test whether automatic text indentation is activated
|
|
|
|
test if the currently selected line is to be hightlighted
|
|
test whether the replacement of any inserted tabulator character by a group of space character is activated
|
|
get the position of the right margin
|
|
get the marker pixbuf associated to a given marker name
|
|
get the marker pixbuf associated to a given marker name
|
|
test whether if line markers are displayed beside the text
|
|
test whether line numbers are displayed beside the text
|
|
test if a margin is displayed
|
|
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
|
|
get the source buffer associated to the current instance
|
|
get the source buffer associated to the current instance
|
|
get tab width
|
|
|
|
Provides access to the underlying C GtkObject.
|
|
Provides access to the underlying C GtkObject.
|
|
set automatic text indention or not
|
|
do highlight the currently selected line, or not
|
|
activate (or de-activate) the replacement of any inserted tabulator character by a group of space character
|
|
set the position of the right margin
|
|
associates a marker pixbuf with a given marker name
|
|
display line markers beside the text, nor not.
|
|
display line numbers beside the text, or not
|
|
activate (or de-activate) the display of a margin
|
|
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 |
|
set the source buffer to be displayed by the SourceView
|
|
set tabs width
|
|
|
|
|
|
|
|
|