1 // Generated by gtkmmproc -- DO NOT MODIFY!
3 #include <gtkmm/textview.h>
4 #include <gtkmm/private/textview_p.h>
6 #include <gtk/gtktypebuiltins.h>
10 /* Copyright 2002 The gtkmm Development Team
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this library; if not, write to the Free
24 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #include <gtk/gtktextview.h>
32 TextView::TextView(const Glib::RefPtr<TextBuffer>& buffer)
34 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
35 Gtk::Container(Glib::ConstructParams(textview_class_.init(), (char*) 0))
40 bool TextView::scroll_to(TextBuffer::iterator& iter, double within_margin)
42 //The last 2 arguments are ignored if use_align is FALSE.
43 return gtk_text_view_scroll_to_iter(gobj(), (iter).gobj(), within_margin, FALSE, 0.0, 0.0);
46 bool TextView::scroll_to(TextBuffer::iterator& iter, double within_margin, double xalign, double yalign)
48 return gtk_text_view_scroll_to_iter(gobj(), (iter).gobj(), within_margin, TRUE /* use_align */, xalign, yalign);
51 void TextView::scroll_to(const Glib::RefPtr<TextBuffer::Mark>& mark, double within_margin)
53 //The last 2 arguments are ignored if use_align is FALSE.
54 gtk_text_view_scroll_to_mark(gobj(), Glib::unwrap(mark), within_margin, FALSE, 0.0, 0.0);
57 void TextView::scroll_to(const Glib::RefPtr<TextBuffer::Mark>& mark, double within_margin, double xalign, double yalign)
59 gtk_text_view_scroll_to_mark(gobj(), Glib::unwrap(mark), within_margin, TRUE /* use_align */, xalign, yalign);
63 bool TextView::scroll_to_iter(TextBuffer::iterator& iter, double within_margin)
65 return scroll_to(iter, within_margin);
69 void TextView::scroll_to_mark(const Glib::RefPtr<TextBuffer::Mark>& mark, double within_margin)
71 scroll_to(mark, within_margin);
74 void TextView::scroll_mark_onscreen(const Glib::RefPtr<TextBuffer::Mark>& mark)
85 void TextView_signal_set_scroll_adjustments_callback(GtkTextView* self, GtkAdjustment* p0,GtkAdjustment* p1,void* data)
88 typedef sigc::slot< void,Adjustment*,Adjustment* > SlotType;
90 // Do not try to call a signal on a disassociated wrapper.
91 if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
95 if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
96 (*static_cast<SlotType*>(slot))(Glib::wrap(p0)
102 Glib::exception_handlers_invoke();
107 const Glib::SignalProxyInfo TextView_signal_set_scroll_adjustments_info =
109 "set_scroll_adjustments",
110 (GCallback) &TextView_signal_set_scroll_adjustments_callback,
111 (GCallback) &TextView_signal_set_scroll_adjustments_callback
115 void TextView_signal_populate_popup_callback(GtkTextView* self, GtkMenu* p0,void* data)
118 typedef sigc::slot< void,Menu* > SlotType;
120 // Do not try to call a signal on a disassociated wrapper.
121 if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
125 if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
126 (*static_cast<SlotType*>(slot))(Glib::wrap(p0)
131 Glib::exception_handlers_invoke();
136 const Glib::SignalProxyInfo TextView_signal_populate_popup_info =
139 (GCallback) &TextView_signal_populate_popup_callback,
140 (GCallback) &TextView_signal_populate_popup_callback
144 const Glib::SignalProxyInfo TextView_signal_set_anchor_info =
147 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
148 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
152 void TextView_signal_insert_at_cursor_callback(GtkTextView* self, const gchar* p0,void* data)
155 typedef sigc::slot< void,const Glib::ustring& > SlotType;
157 // Do not try to call a signal on a disassociated wrapper.
158 if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
162 if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
163 (*static_cast<SlotType*>(slot))(Glib::convert_const_gchar_ptr_to_ustring(p0)
168 Glib::exception_handlers_invoke();
173 const Glib::SignalProxyInfo TextView_signal_insert_at_cursor_info =
176 (GCallback) &TextView_signal_insert_at_cursor_callback,
177 (GCallback) &TextView_signal_insert_at_cursor_callback
180 } // anonymous namespace
183 GType Glib::Value<Gtk::TextWindowType>::value_type()
185 return gtk_text_window_type_get_type();
192 Gtk::TextView* wrap(GtkTextView* object, bool take_copy)
194 return dynamic_cast<Gtk::TextView *> (Glib::wrap_auto ((GObject*)(object), take_copy));
197 } /* namespace Glib */
203 /* The *_Class implementation: */
205 const Glib::Class& TextView_Class::init()
207 if(!gtype_) // create the GType if necessary
209 // Glib::Class has to know the class init function to clone custom types.
210 class_init_func_ = &TextView_Class::class_init_function;
212 // This is actually just optimized away, apparently with no harm.
213 // Make sure that the parent type has been created.
214 //CppClassParent::CppObjectType::get_type();
216 // Create the wrapper type, with the same class/instance size as the base type.
217 register_derived_type(gtk_text_view_get_type());
219 // Add derived versions of interfaces, if the C type implements any interfaces:
225 void TextView_Class::class_init_function(void* g_class, void* class_data)
227 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
228 CppClassParent::class_init_function(klass, class_data);
230 klass->set_scroll_adjustments = &set_scroll_adjustments_callback;
231 klass->populate_popup = &populate_popup_callback;
232 klass->set_anchor = &set_anchor_callback;
233 klass->insert_at_cursor = &insert_at_cursor_callback;
237 void TextView_Class::set_scroll_adjustments_callback(GtkTextView* self, GtkAdjustment* p0, GtkAdjustment* p1)
239 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
240 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
242 // Non-gtkmmproc-generated custom classes implicitly call the default
243 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
244 // generated classes can use this optimisation, which avoids the unnecessary
245 // parameter conversions if there is no possibility of the virtual function
247 if(obj && obj->is_derived_())
249 try // Trap C++ exceptions which would normally be lost because this is a C callback.
251 // Call the virtual member method, which derived classes might override.
252 obj->on_set_scroll_adjustments(Glib::wrap(p0)
258 Glib::exception_handlers_invoke();
263 BaseClassType *const base = static_cast<BaseClassType*>(
264 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
267 // Call the original underlying C function:
268 if(base && base->set_scroll_adjustments)
269 (*base->set_scroll_adjustments)(self, p0, p1);
273 void TextView_Class::populate_popup_callback(GtkTextView* self, GtkMenu* p0)
275 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
276 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
278 // Non-gtkmmproc-generated custom classes implicitly call the default
279 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
280 // generated classes can use this optimisation, which avoids the unnecessary
281 // parameter conversions if there is no possibility of the virtual function
283 if(obj && obj->is_derived_())
285 try // Trap C++ exceptions which would normally be lost because this is a C callback.
287 // Call the virtual member method, which derived classes might override.
288 obj->on_populate_popup(Glib::wrap(p0)
293 Glib::exception_handlers_invoke();
298 BaseClassType *const base = static_cast<BaseClassType*>(
299 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
302 // Call the original underlying C function:
303 if(base && base->populate_popup)
304 (*base->populate_popup)(self, p0);
308 void TextView_Class::set_anchor_callback(GtkTextView* self)
310 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
311 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
313 // Non-gtkmmproc-generated custom classes implicitly call the default
314 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
315 // generated classes can use this optimisation, which avoids the unnecessary
316 // parameter conversions if there is no possibility of the virtual function
318 if(obj && obj->is_derived_())
320 try // Trap C++ exceptions which would normally be lost because this is a C callback.
322 // Call the virtual member method, which derived classes might override.
323 obj->on_set_anchor();
327 Glib::exception_handlers_invoke();
332 BaseClassType *const base = static_cast<BaseClassType*>(
333 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
336 // Call the original underlying C function:
337 if(base && base->set_anchor)
338 (*base->set_anchor)(self);
342 void TextView_Class::insert_at_cursor_callback(GtkTextView* self, const gchar* p0)
344 CppObjectType *const obj = dynamic_cast<CppObjectType*>(
345 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
347 // Non-gtkmmproc-generated custom classes implicitly call the default
348 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
349 // generated classes can use this optimisation, which avoids the unnecessary
350 // parameter conversions if there is no possibility of the virtual function
352 if(obj && obj->is_derived_())
354 try // Trap C++ exceptions which would normally be lost because this is a C callback.
356 // Call the virtual member method, which derived classes might override.
357 obj->on_insert_at_cursor(Glib::convert_const_gchar_ptr_to_ustring(p0)
362 Glib::exception_handlers_invoke();
367 BaseClassType *const base = static_cast<BaseClassType*>(
368 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
371 // Call the original underlying C function:
372 if(base && base->insert_at_cursor)
373 (*base->insert_at_cursor)(self, p0);
378 Glib::ObjectBase* TextView_Class::wrap_new(GObject* o)
380 return manage(new TextView((GtkTextView*)(o)));
385 /* The implementation: */
387 TextView::TextView(const Glib::ConstructParams& construct_params)
389 Gtk::Container(construct_params)
393 TextView::TextView(GtkTextView* castitem)
395 Gtk::Container((GtkContainer*)(castitem))
399 TextView::~TextView()
404 TextView::CppClassType TextView::textview_class_; // initialize static member
406 GType TextView::get_type()
408 return textview_class_.init().get_type();
411 GType TextView::get_base_type()
413 return gtk_text_view_get_type();
419 Glib::ObjectBase(0), //Mark this class as gtkmmproc-generated, rather than a custom class, to allow vfunc optimisations.
420 Gtk::Container(Glib::ConstructParams(textview_class_.init()))
424 void TextView::set_buffer(const Glib::RefPtr<TextBuffer>& buffer)
426 gtk_text_view_set_buffer(gobj(), Glib::unwrap(buffer));
429 Glib::RefPtr<TextBuffer> TextView::get_buffer()
432 Glib::RefPtr<TextBuffer> retvalue = Glib::wrap(gtk_text_view_get_buffer(gobj()));
435 retvalue->reference(); //The function does not do a ref for us.
439 Glib::RefPtr<const TextBuffer> TextView::get_buffer() const
442 Glib::RefPtr<const TextBuffer> retvalue = Glib::wrap(gtk_text_view_get_buffer(const_cast<GtkTextView*>(gobj())));
445 retvalue->reference(); //The function does not do a ref for us.
449 bool TextView::move_mark_onscreen(const Glib::RefPtr<TextBuffer::Mark>& mark)
451 return gtk_text_view_move_mark_onscreen(gobj(), Glib::unwrap(mark));
454 bool TextView::place_cursor_onscreen()
456 return gtk_text_view_place_cursor_onscreen(gobj());
459 void TextView::get_visible_rect(Gdk::Rectangle& visible_rect) const
461 gtk_text_view_get_visible_rect(const_cast<GtkTextView*>(gobj()), (visible_rect).gobj());
464 void TextView::set_cursor_visible(bool setting)
466 gtk_text_view_set_cursor_visible(gobj(), static_cast<int>(setting));
469 bool TextView::get_cursor_visible() const
471 return gtk_text_view_get_cursor_visible(const_cast<GtkTextView*>(gobj()));
474 void TextView::get_iter_location(const TextBuffer::iterator& iter, Gdk::Rectangle& location) const
476 gtk_text_view_get_iter_location(const_cast<GtkTextView*>(gobj()), (iter).gobj(), (location).gobj());
479 void TextView::get_iter_at_location(TextBuffer::iterator& iter, int x, int y) const
481 gtk_text_view_get_iter_at_location(const_cast<GtkTextView*>(gobj()), (iter).gobj(), x, y);
484 void TextView::get_iter_at_position(TextBuffer::iterator& iter, int& trailing, int x, int y) const
486 gtk_text_view_get_iter_at_position(const_cast<GtkTextView*>(gobj()), (iter).gobj(), &trailing, x, y);
489 void TextView::get_line_yrange(const TextBuffer::iterator& iter, int& y, int& height) const
491 gtk_text_view_get_line_yrange(const_cast<GtkTextView*>(gobj()), (iter).gobj(), &y, &height);
494 void TextView::get_line_at_y(TextBuffer::iterator& target_iter, int y, int& line_top) const
496 gtk_text_view_get_line_at_y(const_cast<GtkTextView*>(gobj()), (target_iter).gobj(), y, &line_top);
499 void TextView::buffer_to_window_coords(TextWindowType win, int buffer_x, int buffer_y, int& window_x, int& window_y) const
501 gtk_text_view_buffer_to_window_coords(const_cast<GtkTextView*>(gobj()), ((GtkTextWindowType)(win)), buffer_x, buffer_y, &window_x, &window_y);
504 void TextView::window_to_buffer_coords(TextWindowType win, int window_x, int window_y, int& buffer_x, int& buffer_y) const
506 gtk_text_view_window_to_buffer_coords(const_cast<GtkTextView*>(gobj()), ((GtkTextWindowType)(win)), window_x, window_y, &buffer_x, &buffer_y);
509 Glib::RefPtr<Gdk::Window> TextView::get_window(TextWindowType win)
512 Glib::RefPtr<Gdk::Window> retvalue = Glib::wrap((GdkWindowObject*)(gtk_text_view_get_window(gobj(), ((GtkTextWindowType)(win)))));
515 retvalue->reference(); //The function does not do a ref for us.
519 Glib::RefPtr<const Gdk::Window> TextView::get_window(TextWindowType win) const
522 Glib::RefPtr<const Gdk::Window> retvalue = Glib::wrap((GdkWindowObject*)(gtk_text_view_get_window(const_cast<GtkTextView*>(gobj()), ((GtkTextWindowType)(win)))));
525 retvalue->reference(); //The function does not do a ref for us.
529 TextWindowType TextView::get_window_type(const Glib::RefPtr<Gdk::Window>& window)
531 return ((TextWindowType)(gtk_text_view_get_window_type(gobj(), Glib::unwrap(window))));
534 void TextView::set_border_window_size(TextWindowType type, int size)
536 gtk_text_view_set_border_window_size(gobj(), ((GtkTextWindowType)(type)), size);
539 int TextView::get_border_window_size(TextWindowType type) const
541 return gtk_text_view_get_border_window_size(const_cast<GtkTextView*>(gobj()), ((GtkTextWindowType)(type)));
544 bool TextView::forward_display_line(TextBuffer::iterator& iter)
546 return gtk_text_view_forward_display_line(gobj(), (iter).gobj());
549 bool TextView::backward_display_line(TextBuffer::iterator& iter)
551 return gtk_text_view_backward_display_line(gobj(), (iter).gobj());
554 bool TextView::forward_display_line_end(TextBuffer::iterator& iter)
556 return gtk_text_view_forward_display_line_end(gobj(), (iter).gobj());
559 bool TextView::backward_display_line_start(TextBuffer::iterator& iter)
561 return gtk_text_view_backward_display_line_start(gobj(), (iter).gobj());
564 bool TextView::starts_display_line(const TextBuffer::iterator& iter)
566 return gtk_text_view_starts_display_line(gobj(), (iter).gobj());
569 bool TextView::move_visually(TextBuffer::iterator& iter, int count)
571 return gtk_text_view_move_visually(gobj(), (iter).gobj(), count);
574 void TextView::add_child_at_anchor(Widget& child, const Glib::RefPtr<TextBuffer::ChildAnchor>& anchor)
576 gtk_text_view_add_child_at_anchor(gobj(), (child).gobj(), Glib::unwrap(anchor));
579 void TextView::add_child_in_window(Widget& child, TextWindowType which_window, int xpos, int ypos)
581 gtk_text_view_add_child_in_window(gobj(), (child).gobj(), ((GtkTextWindowType)(which_window)), xpos, ypos);
584 void TextView::move_child(Widget& child, int xpos, int ypos)
586 gtk_text_view_move_child(gobj(), (child).gobj(), xpos, ypos);
589 void TextView::set_wrap_mode(WrapMode wrap_mode)
591 gtk_text_view_set_wrap_mode(gobj(), ((GtkWrapMode)(wrap_mode)));
594 WrapMode TextView::get_wrap_mode() const
596 return ((WrapMode)(gtk_text_view_get_wrap_mode(const_cast<GtkTextView*>(gobj()))));
599 void TextView::set_editable(bool setting)
601 gtk_text_view_set_editable(gobj(), static_cast<int>(setting));
604 bool TextView::get_editable() const
606 return gtk_text_view_get_editable(const_cast<GtkTextView*>(gobj()));
609 void TextView::set_pixels_above_lines(int pixels_above_lines)
611 gtk_text_view_set_pixels_above_lines(gobj(), pixels_above_lines);
614 int TextView::get_pixels_above_lines() const
616 return gtk_text_view_get_pixels_above_lines(const_cast<GtkTextView*>(gobj()));
619 void TextView::set_pixels_below_lines(int pixels_below_lines)
621 gtk_text_view_set_pixels_below_lines(gobj(), pixels_below_lines);
624 int TextView::get_pixels_below_lines() const
626 return gtk_text_view_get_pixels_below_lines(const_cast<GtkTextView*>(gobj()));
629 void TextView::set_pixels_inside_wrap(int pixels_inside_wrap)
631 gtk_text_view_set_pixels_inside_wrap(gobj(), pixels_inside_wrap);
634 int TextView::get_pixels_inside_wrap() const
636 return gtk_text_view_get_pixels_inside_wrap(const_cast<GtkTextView*>(gobj()));
639 void TextView::set_justification(Justification justification)
641 gtk_text_view_set_justification(gobj(), ((GtkJustification)(justification)));
644 Justification TextView::get_justification() const
646 return ((Justification)(gtk_text_view_get_justification(const_cast<GtkTextView*>(gobj()))));
649 void TextView::set_left_margin(int left_margin)
651 gtk_text_view_set_left_margin(gobj(), left_margin);
654 int TextView::get_left_margin() const
656 return gtk_text_view_get_left_margin(const_cast<GtkTextView*>(gobj()));
659 void TextView::set_right_margin(int right_margin)
661 gtk_text_view_set_right_margin(gobj(), right_margin);
664 int TextView::get_right_margin() const
666 return gtk_text_view_get_right_margin(const_cast<GtkTextView*>(gobj()));
669 void TextView::set_indent(int indent)
671 gtk_text_view_set_indent(gobj(), indent);
674 int TextView::get_indent() const
676 return gtk_text_view_get_indent(const_cast<GtkTextView*>(gobj()));
679 void TextView::set_tabs(Pango::TabArray& tabs)
681 gtk_text_view_set_tabs(gobj(), (tabs).gobj());
684 Pango::TabArray TextView::get_tabs() const
686 return Pango::TabArray((gtk_text_view_get_tabs(const_cast<GtkTextView*>(gobj()))));
689 TextAttributes TextView::get_default_attributes() const
691 return TextAttributes(gtk_text_view_get_default_attributes(const_cast<GtkTextView*>(gobj())));
694 void TextView::set_overwrite(bool overwrite)
696 gtk_text_view_set_overwrite(gobj(), static_cast<int>(overwrite));
699 bool TextView::get_overwrite() const
701 return gtk_text_view_get_overwrite(const_cast<GtkTextView*>(gobj()));
704 void TextView::set_accepts_tab(bool accepts_tab)
706 gtk_text_view_set_accepts_tab(gobj(), static_cast<int>(accepts_tab));
709 bool TextView::get_accepts_tab() const
711 return gtk_text_view_get_accepts_tab(const_cast<GtkTextView*>(gobj()));
715 Glib::SignalProxy2< void,Adjustment*,Adjustment* > TextView::signal_set_scroll_adjustments()
717 return Glib::SignalProxy2< void,Adjustment*,Adjustment* >(this, &TextView_signal_set_scroll_adjustments_info);
720 Glib::SignalProxy1< void,Menu* > TextView::signal_populate_popup()
722 return Glib::SignalProxy1< void,Menu* >(this, &TextView_signal_populate_popup_info);
725 Glib::SignalProxy0< void > TextView::signal_set_anchor()
727 return Glib::SignalProxy0< void >(this, &TextView_signal_set_anchor_info);
730 Glib::SignalProxy1< void,const Glib::ustring& > TextView::signal_insert_at_cursor()
732 return Glib::SignalProxy1< void,const Glib::ustring& >(this, &TextView_signal_insert_at_cursor_info);
736 Glib::PropertyProxy<int> TextView::property_pixels_above_lines()
738 return Glib::PropertyProxy<int>(this, "pixels-above-lines");
741 Glib::PropertyProxy_ReadOnly<int> TextView::property_pixels_above_lines() const
743 return Glib::PropertyProxy_ReadOnly<int>(this, "pixels-above-lines");
746 Glib::PropertyProxy<int> TextView::property_pixels_below_lines()
748 return Glib::PropertyProxy<int>(this, "pixels-below-lines");
751 Glib::PropertyProxy_ReadOnly<int> TextView::property_pixels_below_lines() const
753 return Glib::PropertyProxy_ReadOnly<int>(this, "pixels-below-lines");
756 Glib::PropertyProxy<int> TextView::property_pixels_inside_wrap()
758 return Glib::PropertyProxy<int>(this, "pixels-inside-wrap");
761 Glib::PropertyProxy_ReadOnly<int> TextView::property_pixels_inside_wrap() const
763 return Glib::PropertyProxy_ReadOnly<int>(this, "pixels-inside-wrap");
766 Glib::PropertyProxy<bool> TextView::property_editable()
768 return Glib::PropertyProxy<bool>(this, "editable");
771 Glib::PropertyProxy_ReadOnly<bool> TextView::property_editable() const
773 return Glib::PropertyProxy_ReadOnly<bool>(this, "editable");
776 Glib::PropertyProxy<WrapMode> TextView::property_wrap_mode()
778 return Glib::PropertyProxy<WrapMode>(this, "wrap-mode");
781 Glib::PropertyProxy_ReadOnly<WrapMode> TextView::property_wrap_mode() const
783 return Glib::PropertyProxy_ReadOnly<WrapMode>(this, "wrap-mode");
786 Glib::PropertyProxy<Justification> TextView::property_justification()
788 return Glib::PropertyProxy<Justification>(this, "justification");
791 Glib::PropertyProxy_ReadOnly<Justification> TextView::property_justification() const
793 return Glib::PropertyProxy_ReadOnly<Justification>(this, "justification");
796 Glib::PropertyProxy<int> TextView::property_left_margin()
798 return Glib::PropertyProxy<int>(this, "left-margin");
801 Glib::PropertyProxy_ReadOnly<int> TextView::property_left_margin() const
803 return Glib::PropertyProxy_ReadOnly<int>(this, "left-margin");
806 Glib::PropertyProxy<int> TextView::property_right_margin()
808 return Glib::PropertyProxy<int>(this, "right-margin");
811 Glib::PropertyProxy_ReadOnly<int> TextView::property_right_margin() const
813 return Glib::PropertyProxy_ReadOnly<int>(this, "right-margin");
816 Glib::PropertyProxy<int> TextView::property_indent()
818 return Glib::PropertyProxy<int>(this, "indent");
821 Glib::PropertyProxy_ReadOnly<int> TextView::property_indent() const
823 return Glib::PropertyProxy_ReadOnly<int>(this, "indent");
826 Glib::PropertyProxy<Pango::TabArray> TextView::property_tabs()
828 return Glib::PropertyProxy<Pango::TabArray>(this, "tabs");
831 Glib::PropertyProxy_ReadOnly<Pango::TabArray> TextView::property_tabs() const
833 return Glib::PropertyProxy_ReadOnly<Pango::TabArray>(this, "tabs");
836 Glib::PropertyProxy<bool> TextView::property_cursor_visible()
838 return Glib::PropertyProxy<bool>(this, "cursor-visible");
841 Glib::PropertyProxy_ReadOnly<bool> TextView::property_cursor_visible() const
843 return Glib::PropertyProxy_ReadOnly<bool>(this, "cursor-visible");
846 Glib::PropertyProxy< Glib::RefPtr<TextBuffer> > TextView::property_buffer()
848 return Glib::PropertyProxy< Glib::RefPtr<TextBuffer> >(this, "buffer");
851 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<TextBuffer> > TextView::property_buffer() const
853 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<TextBuffer> >(this, "buffer");
856 Glib::PropertyProxy<bool> TextView::property_overwrite()
858 return Glib::PropertyProxy<bool>(this, "overwrite");
861 Glib::PropertyProxy_ReadOnly<bool> TextView::property_overwrite() const
863 return Glib::PropertyProxy_ReadOnly<bool>(this, "overwrite");
866 Glib::PropertyProxy<bool> TextView::property_accepts_tab()
868 return Glib::PropertyProxy<bool>(this, "accepts-tab");
871 Glib::PropertyProxy_ReadOnly<bool> TextView::property_accepts_tab() const
873 return Glib::PropertyProxy_ReadOnly<bool>(this, "accepts-tab");
877 void Gtk::TextView::on_set_scroll_adjustments(Adjustment* hadjustment, Adjustment* vadjustment)
879 BaseClassType *const base = static_cast<BaseClassType*>(
880 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
883 if(base && base->set_scroll_adjustments)
884 (*base->set_scroll_adjustments)(gobj(),(GtkAdjustment*)Glib::unwrap(hadjustment),(GtkAdjustment*)Glib::unwrap(vadjustment));
887 void Gtk::TextView::on_populate_popup(Menu* menu)
889 BaseClassType *const base = static_cast<BaseClassType*>(
890 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
893 if(base && base->populate_popup)
894 (*base->populate_popup)(gobj(),(GtkMenu*)Glib::unwrap(menu));
897 void Gtk::TextView::on_set_anchor()
899 BaseClassType *const base = static_cast<BaseClassType*>(
900 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
903 if(base && base->set_anchor)
904 (*base->set_anchor)(gobj());
907 void Gtk::TextView::on_insert_at_cursor(const Glib::ustring& str)
909 BaseClassType *const base = static_cast<BaseClassType*>(
910 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
913 if(base && base->insert_at_cursor)
914 (*base->insert_at_cursor)(gobj(),str.c_str());