|
| Gutter (Gutter&& src) noexcept |
|
Gutter& | operator= (Gutter&& src) noexcept |
|
| ~Gutter () noexceptoverride |
|
GtkSourceGutter* | gobj () |
| Provides access to the underlying C GObject. More...
|
|
const GtkSourceGutter* | gobj () const |
| Provides access to the underlying C GObject. More...
|
|
GtkSourceGutter* | gobj_copy () |
| Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. More...
|
|
Glib::RefPtr< Gdk::Window > | get_window () |
| Get the Gdk::Window of the gutter. More...
|
|
Glib::RefPtr< const Gdk::Window > | get_window () const |
| Get the Gdk::Window of the gutter. More...
|
|
void | insert (GutterRenderer* renderer, int position) |
| Insert renderer into the gutter. More...
|
|
void | remove (GutterRenderer* renderer) |
| Removes renderer from gutter. More...
|
|
void | reorder (GutterRenderer* renderer, int position) |
| Reorders renderer in gutter to new position. More...
|
|
void | queue_draw () |
| Invalidates the drawable area of the gutter. More...
|
|
void | set_padding (int xpad, int ypad) |
| Deprecated: 3.12: Use Gtk::SourceGutterRenderer::set_padding() instead. More...
|
|
void | get_padding (int& xpad, int& ypad) const |
| Deprecated: 3.12: Use Gtk::SourceGutterRenderer::get_padding() instead. More...
|
|
GutterRenderer* | get_renderer_at_pos (int x, int y) |
| Finds the Gtk::SourceGutterRenderer at (x, y). More...
|
|
const GutterRenderer* | get_renderer_at_pos (int x, int y) const |
| Finds the Gtk::SourceGutterRenderer at (x, y). More...
|
|
Glib::PropertyProxy_ReadOnly< View* > | property_view () const |
|
Glib::PropertyProxy_ReadOnly< Gtk::TextWindowType > | property_window_type () const |
| The gutters' text window type. More...
|
|
Glib::PropertyProxy< int > | property_xpad () |
| The x-padding. More...
|
|
Glib::PropertyProxy_ReadOnly< int > | property_xpad () const |
| The x-padding. More...
|
|
Glib::PropertyProxy< int > | property_ypad () |
| The y-padding. More...
|
|
Glib::PropertyProxy_ReadOnly< int > | property_ypad () const |
| The y-padding. More...
|
|
| Object (const Object &)=delete |
|
Object & | operator= (const Object &)=delete |
|
| Object (Object &&src) noexcept |
|
Object & | operator= (Object &&src) noexcept |
|
void * | get_data (const QueryQuark &key) |
|
void | set_data (const Quark &key, void *data) |
|
void | set_data (const Quark &key, void *data, DestroyNotify notify) |
|
void | remove_data (const QueryQuark &quark) |
|
void * | steal_data (const QueryQuark &quark) |
|
Glib::RefPtr< Glib::Object > | wrap (GObject *object, bool take_copy=false) |
|
| ObjectBase (const ObjectBase &)=delete |
|
ObjectBase & | operator= (const ObjectBase &)=delete |
|
void | set_property_value (const Glib::ustring &property_name, const Glib::ValueBase &value) |
|
void | get_property_value (const Glib::ustring &property_name, Glib::ValueBase &value) const |
|
void | set_property (const Glib::ustring &property_name, const PropertyType &value) |
|
void | get_property (const Glib::ustring &property_name, PropertyType &value) const |
|
void | connect_property_changed (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
|
void | connect_property_changed (const Glib::ustring &property_name, sigc::slot< void > &&slot) |
|
sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, const sigc::slot< void > &slot) |
|
sigc::connection | connect_property_changed_with_return (const Glib::ustring &property_name, sigc::slot< void > &&slot) |
|
void | freeze_notify () |
|
void | thaw_notify () |
|
virtual void | reference () const |
|
virtual void | unreference () const |
|
GObject * | gobj () |
|
const GObject * | gobj () const |
|
GObject * | gobj_copy () const |
|
| trackable () noexcept |
|
| trackable (const trackable &src) noexcept |
|
| trackable (trackable &&src) |
|
| ~trackable () |
|
void | add_destroy_notify_callback (void *data, func_destroy_notify func) const |
|
void | notify_callbacks () |
|
trackable & | operator= (const trackable &src) |
|
trackable & | operator= (trackable &&src) |
|
void | remove_destroy_notify_callback (void *data) const |
|
Gutter object for View.
The Gutter object represents the left and right gutters of the text view. It is used by View to draw the line numbers and category marks that might be present on a line. By packing additional CellRenderer objects in the gutter, you can extend the gutter with your own custom drawings.
The gutter works very much the same way as cells rendered in a Gtk::TreeView. The concept is similar, with the exception that the gutter does not have an underlying Gtk::TreeModel. Instead, you should use set_cell_data_func() to set a callback to fill in any of the cell renderers properties, given the line for which the cell is to be rendered. Renderers are inserted into the gutter at a certain position. The builtin line number renderer is at position View::gutter_position_lines (-30) and the marks renderer is at View::gutter_position_marks (-20). You can use these values to position custom renderers accordingly. The width of a cell renderer can be specified as either fixed (using Gtk::CellRenderer::set_fixed_size()) or dynamic, in which case you must set set_cell_size_func(). This callback is used to set the properties of the renderer such that Gtk::CellRenderer::get_size() yields the maximum width of the cell.
- Since gtksourceviewmm 2.10: