1 // Generated by gtkmmproc -- DO NOT MODIFY!
4 #include <gtkmm/textview.h>
5 #include <gtkmm/private/textview_p.h>
7 #include <gtk/gtktypebuiltins.h>
11 /* Copyright 2002 The gtkmm Development Team
13 * This library is free software; you can redistribute it and/or
14 * modify it under the terms of the GNU Library General Public
15 * License as published by the Free Software Foundation; either
16 * version 2 of the License, or (at your option) any later version.
18 * This library is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21 * Library General Public License for more details.
23 * You should have received a copy of the GNU Library General Public
24 * License along with this library; if not, write to the Free
25 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
28 #include <gtk/gtktextview.h>
33 TextView::TextView(const Glib::RefPtr<TextBuffer>& buffer)
35 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
37 Gtk::Container(Glib::ConstructParams(textview_class_.init()))
42 bool TextView::scroll_to(TextBuffer::iterator& iter, double within_margin)
44 //The last 2 arguments are ignored if use_align is FALSE.
45 return gtk_text_view_scroll_to_iter(gobj(), (iter).gobj(), within_margin, FALSE, 0.0, 0.0);
48 bool TextView::scroll_to(TextBuffer::iterator& iter, double within_margin, double xalign, double yalign)
50 return gtk_text_view_scroll_to_iter(gobj(), (iter).gobj(), within_margin, TRUE /* use_align */, xalign, yalign);
53 void TextView::scroll_to(const Glib::RefPtr<TextBuffer::Mark>& mark, double within_margin)
55 //The last 2 arguments are ignored if use_align is FALSE.
56 gtk_text_view_scroll_to_mark(gobj(), Glib::unwrap(mark), within_margin, FALSE, 0.0, 0.0);
59 void TextView::scroll_to(const Glib::RefPtr<TextBuffer::Mark>& mark, double within_margin, double xalign, double yalign)
61 gtk_text_view_scroll_to_mark(gobj(), Glib::unwrap(mark), within_margin, TRUE /* use_align */, xalign, yalign);
64 #ifndef GTKMM_DISABLE_DEPRECATED
66 bool TextView::scroll_to_iter(TextBuffer::iterator& iter, double within_margin)
68 return scroll_to(iter, within_margin);
71 void TextView::scroll_to_mark(const Glib::RefPtr<TextBuffer::Mark>& mark, double within_margin)
73 scroll_to(mark, within_margin);
76 void TextView::scroll_mark_onscreen(const Glib::RefPtr<TextBuffer::Mark>& mark)
80 #endif // GTKMM_DISABLE_DEPRECATED
90 static void TextView_signal_set_scroll_adjustments_callback(GtkTextView* self, GtkAdjustment* p0,GtkAdjustment* p1,void* data)
93 typedef sigc::slot< void,Adjustment*,Adjustment* > SlotType;
95 // Do not try to call a signal on a disassociated wrapper.
96 if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
98 #ifdef GLIBMM_EXCEPTIONS_ENABLED
101 #endif //GLIBMM_EXCEPTIONS_ENABLED
102 if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
103 (*static_cast<SlotType*>(slot))(Glib::wrap(p0)
106 #ifdef GLIBMM_EXCEPTIONS_ENABLED
110 Glib::exception_handlers_invoke();
112 #endif //GLIBMM_EXCEPTIONS_ENABLED
116 static const Glib::SignalProxyInfo TextView_signal_set_scroll_adjustments_info =
118 "set_scroll_adjustments",
119 (GCallback) &TextView_signal_set_scroll_adjustments_callback,
120 (GCallback) &TextView_signal_set_scroll_adjustments_callback
124 static void TextView_signal_populate_popup_callback(GtkTextView* self, GtkMenu* p0,void* data)
127 typedef sigc::slot< void,Menu* > SlotType;
129 // Do not try to call a signal on a disassociated wrapper.
130 if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
132 #ifdef GLIBMM_EXCEPTIONS_ENABLED
135 #endif //GLIBMM_EXCEPTIONS_ENABLED
136 if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
137 (*static_cast<SlotType*>(slot))(Glib::wrap(p0)
139 #ifdef GLIBMM_EXCEPTIONS_ENABLED
143 Glib::exception_handlers_invoke();
145 #endif //GLIBMM_EXCEPTIONS_ENABLED
149 static const Glib::SignalProxyInfo TextView_signal_populate_popup_info =
152 (GCallback) &TextView_signal_populate_popup_callback,
153 (GCallback) &TextView_signal_populate_popup_callback
157 static const Glib::SignalProxyInfo TextView_signal_set_anchor_info =
160 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback,
161 (GCallback) &Glib::SignalProxyNormal::slot0_void_callback
165 static void TextView_signal_insert_at_cursor_callback(GtkTextView* self, const gchar* p0,void* data)
168 typedef sigc::slot< void,const Glib::ustring& > SlotType;
170 // Do not try to call a signal on a disassociated wrapper.
171 if(Glib::ObjectBase::_get_current_wrapper((GObject*) self))
173 #ifdef GLIBMM_EXCEPTIONS_ENABLED
176 #endif //GLIBMM_EXCEPTIONS_ENABLED
177 if(sigc::slot_base *const slot = Glib::SignalProxyNormal::data_to_slot(data))
178 (*static_cast<SlotType*>(slot))(Glib::convert_const_gchar_ptr_to_ustring(p0)
180 #ifdef GLIBMM_EXCEPTIONS_ENABLED
184 Glib::exception_handlers_invoke();
186 #endif //GLIBMM_EXCEPTIONS_ENABLED
190 static const Glib::SignalProxyInfo TextView_signal_insert_at_cursor_info =
193 (GCallback) &TextView_signal_insert_at_cursor_callback,
194 (GCallback) &TextView_signal_insert_at_cursor_callback
198 } // anonymous namespace
201 GType Glib::Value<Gtk::TextWindowType>::value_type()
203 return gtk_text_window_type_get_type();
210 Gtk::TextView* wrap(GtkTextView* object, bool take_copy)
212 return dynamic_cast<Gtk::TextView *> (Glib::wrap_auto ((GObject*)(object), take_copy));
215 } /* namespace Glib */
221 /* The *_Class implementation: */
223 const Glib::Class& TextView_Class::init()
225 if(!gtype_) // create the GType if necessary
227 // Glib::Class has to know the class init function to clone custom types.
228 class_init_func_ = &TextView_Class::class_init_function;
230 // This is actually just optimized away, apparently with no harm.
231 // Make sure that the parent type has been created.
232 //CppClassParent::CppObjectType::get_type();
234 // Create the wrapper type, with the same class/instance size as the base type.
235 register_derived_type(gtk_text_view_get_type());
237 // Add derived versions of interfaces, if the C type implements any interfaces:
243 void TextView_Class::class_init_function(void* g_class, void* class_data)
245 BaseClassType *const klass = static_cast<BaseClassType*>(g_class);
246 CppClassParent::class_init_function(klass, class_data);
248 #ifdef GLIBMM_VFUNCS_ENABLED
249 #endif //GLIBMM_VFUNCS_ENABLED
251 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
252 klass->set_scroll_adjustments = &set_scroll_adjustments_callback;
253 klass->populate_popup = &populate_popup_callback;
254 klass->set_anchor = &set_anchor_callback;
255 klass->insert_at_cursor = &insert_at_cursor_callback;
256 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
259 #ifdef GLIBMM_VFUNCS_ENABLED
260 #endif //GLIBMM_VFUNCS_ENABLED
262 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
263 void TextView_Class::set_scroll_adjustments_callback(GtkTextView* self, GtkAdjustment* p0, GtkAdjustment* p1)
265 Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
266 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
268 // Non-gtkmmproc-generated custom classes implicitly call the default
269 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
270 // generated classes can use this optimisation, which avoids the unnecessary
271 // parameter conversions if there is no possibility of the virtual function
273 if(obj_base && obj_base->is_derived_())
275 CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
276 if(obj) // This can be NULL during destruction.
278 #ifdef GLIBMM_EXCEPTIONS_ENABLED
279 try // Trap C++ exceptions which would normally be lost because this is a C callback.
281 #endif //GLIBMM_EXCEPTIONS_ENABLED
282 // Call the virtual member method, which derived classes might override.
283 obj->on_set_scroll_adjustments(Glib::wrap(p0)
287 #ifdef GLIBMM_EXCEPTIONS_ENABLED
291 Glib::exception_handlers_invoke();
293 #endif //GLIBMM_EXCEPTIONS_ENABLED
297 BaseClassType *const base = static_cast<BaseClassType*>(
298 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
301 // Call the original underlying C function:
302 if(base && base->set_scroll_adjustments)
303 (*base->set_scroll_adjustments)(self, p0, p1);
305 void TextView_Class::populate_popup_callback(GtkTextView* self, GtkMenu* p0)
307 Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
308 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
310 // Non-gtkmmproc-generated custom classes implicitly call the default
311 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
312 // generated classes can use this optimisation, which avoids the unnecessary
313 // parameter conversions if there is no possibility of the virtual function
315 if(obj_base && obj_base->is_derived_())
317 CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
318 if(obj) // This can be NULL during destruction.
320 #ifdef GLIBMM_EXCEPTIONS_ENABLED
321 try // Trap C++ exceptions which would normally be lost because this is a C callback.
323 #endif //GLIBMM_EXCEPTIONS_ENABLED
324 // Call the virtual member method, which derived classes might override.
325 obj->on_populate_popup(Glib::wrap(p0)
328 #ifdef GLIBMM_EXCEPTIONS_ENABLED
332 Glib::exception_handlers_invoke();
334 #endif //GLIBMM_EXCEPTIONS_ENABLED
338 BaseClassType *const base = static_cast<BaseClassType*>(
339 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
342 // Call the original underlying C function:
343 if(base && base->populate_popup)
344 (*base->populate_popup)(self, p0);
346 void TextView_Class::set_anchor_callback(GtkTextView* self)
348 Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
349 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
351 // Non-gtkmmproc-generated custom classes implicitly call the default
352 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
353 // generated classes can use this optimisation, which avoids the unnecessary
354 // parameter conversions if there is no possibility of the virtual function
356 if(obj_base && obj_base->is_derived_())
358 CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
359 if(obj) // This can be NULL during destruction.
361 #ifdef GLIBMM_EXCEPTIONS_ENABLED
362 try // Trap C++ exceptions which would normally be lost because this is a C callback.
364 #endif //GLIBMM_EXCEPTIONS_ENABLED
365 // Call the virtual member method, which derived classes might override.
366 obj->on_set_anchor();
368 #ifdef GLIBMM_EXCEPTIONS_ENABLED
372 Glib::exception_handlers_invoke();
374 #endif //GLIBMM_EXCEPTIONS_ENABLED
378 BaseClassType *const base = static_cast<BaseClassType*>(
379 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
382 // Call the original underlying C function:
383 if(base && base->set_anchor)
384 (*base->set_anchor)(self);
386 void TextView_Class::insert_at_cursor_callback(GtkTextView* self, const gchar* p0)
388 Glib::ObjectBase *const obj_base = static_cast<Glib::ObjectBase*>(
389 Glib::ObjectBase::_get_current_wrapper((GObject*)self));
391 // Non-gtkmmproc-generated custom classes implicitly call the default
392 // Glib::ObjectBase constructor, which sets is_derived_. But gtkmmproc-
393 // generated classes can use this optimisation, which avoids the unnecessary
394 // parameter conversions if there is no possibility of the virtual function
396 if(obj_base && obj_base->is_derived_())
398 CppObjectType *const obj = dynamic_cast<CppObjectType* const>(obj_base);
399 if(obj) // This can be NULL during destruction.
401 #ifdef GLIBMM_EXCEPTIONS_ENABLED
402 try // Trap C++ exceptions which would normally be lost because this is a C callback.
404 #endif //GLIBMM_EXCEPTIONS_ENABLED
405 // Call the virtual member method, which derived classes might override.
406 obj->on_insert_at_cursor(Glib::convert_const_gchar_ptr_to_ustring(p0)
409 #ifdef GLIBMM_EXCEPTIONS_ENABLED
413 Glib::exception_handlers_invoke();
415 #endif //GLIBMM_EXCEPTIONS_ENABLED
419 BaseClassType *const base = static_cast<BaseClassType*>(
420 g_type_class_peek_parent(G_OBJECT_GET_CLASS(self)) // Get the parent class of the object class (The original underlying C class).
423 // Call the original underlying C function:
424 if(base && base->insert_at_cursor)
425 (*base->insert_at_cursor)(self, p0);
427 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
430 Glib::ObjectBase* TextView_Class::wrap_new(GObject* o)
432 return manage(new TextView((GtkTextView*)(o)));
437 /* The implementation: */
439 TextView::TextView(const Glib::ConstructParams& construct_params)
441 Gtk::Container(construct_params)
445 TextView::TextView(GtkTextView* castitem)
447 Gtk::Container((GtkContainer*)(castitem))
451 TextView::~TextView()
456 TextView::CppClassType TextView::textview_class_; // initialize static member
458 GType TextView::get_type()
460 return textview_class_.init().get_type();
463 GType TextView::get_base_type()
465 return gtk_text_view_get_type();
471 // Mark this class as non-derived to allow C++ vfuncs to be skipped.
473 Gtk::Container(Glib::ConstructParams(textview_class_.init()))
477 void TextView::set_buffer(const Glib::RefPtr<TextBuffer>& buffer)
479 gtk_text_view_set_buffer(gobj(), Glib::unwrap(buffer));
482 Glib::RefPtr<TextBuffer> TextView::get_buffer()
485 Glib::RefPtr<TextBuffer> retvalue = Glib::wrap(gtk_text_view_get_buffer(gobj()));
487 retvalue->reference(); //The function does not do a ref for us.
492 Glib::RefPtr<const TextBuffer> TextView::get_buffer() const
494 return const_cast<TextView*>(this)->get_buffer();
497 bool TextView::move_mark_onscreen(const Glib::RefPtr<TextBuffer::Mark>& mark)
499 return gtk_text_view_move_mark_onscreen(gobj(), Glib::unwrap(mark));
502 bool TextView::place_cursor_onscreen()
504 return gtk_text_view_place_cursor_onscreen(gobj());
507 void TextView::get_visible_rect(Gdk::Rectangle& visible_rect) const
509 gtk_text_view_get_visible_rect(const_cast<GtkTextView*>(gobj()), (visible_rect).gobj());
512 void TextView::set_cursor_visible(bool setting)
514 gtk_text_view_set_cursor_visible(gobj(), static_cast<int>(setting));
517 bool TextView::get_cursor_visible() const
519 return gtk_text_view_get_cursor_visible(const_cast<GtkTextView*>(gobj()));
522 void TextView::get_iter_location(const TextBuffer::iterator& iter, Gdk::Rectangle& location) const
524 gtk_text_view_get_iter_location(const_cast<GtkTextView*>(gobj()), (iter).gobj(), (location).gobj());
527 void TextView::get_iter_at_location(TextBuffer::iterator& iter, int x, int y) const
529 gtk_text_view_get_iter_at_location(const_cast<GtkTextView*>(gobj()), (iter).gobj(), x, y);
532 void TextView::get_iter_at_position(TextBuffer::iterator& iter, int& trailing, int x, int y) const
534 gtk_text_view_get_iter_at_position(const_cast<GtkTextView*>(gobj()), (iter).gobj(), &trailing, x, y);
537 void TextView::get_line_yrange(const TextBuffer::iterator& iter, int& y, int& height) const
539 gtk_text_view_get_line_yrange(const_cast<GtkTextView*>(gobj()), (iter).gobj(), &y, &height);
542 void TextView::get_line_at_y(TextBuffer::iterator& target_iter, int y, int& line_top) const
544 gtk_text_view_get_line_at_y(const_cast<GtkTextView*>(gobj()), (target_iter).gobj(), y, &line_top);
547 void TextView::buffer_to_window_coords(TextWindowType win, int buffer_x, int buffer_y, int& window_x, int& window_y) const
549 gtk_text_view_buffer_to_window_coords(const_cast<GtkTextView*>(gobj()), ((GtkTextWindowType)(win)), buffer_x, buffer_y, &window_x, &window_y);
552 void TextView::window_to_buffer_coords(TextWindowType win, int window_x, int window_y, int& buffer_x, int& buffer_y) const
554 gtk_text_view_window_to_buffer_coords(const_cast<GtkTextView*>(gobj()), ((GtkTextWindowType)(win)), window_x, window_y, &buffer_x, &buffer_y);
557 Glib::RefPtr<Gdk::Window> TextView::get_window(TextWindowType win)
560 Glib::RefPtr<Gdk::Window> retvalue = Glib::wrap((GdkWindowObject*)(gtk_text_view_get_window(gobj(), ((GtkTextWindowType)(win)))));
562 retvalue->reference(); //The function does not do a ref for us.
567 Glib::RefPtr<const Gdk::Window> TextView::get_window(TextWindowType win) const
569 return const_cast<TextView*>(this)->get_window(win);
572 TextWindowType TextView::get_window_type(const Glib::RefPtr<Gdk::Window>& window)
574 return ((TextWindowType)(gtk_text_view_get_window_type(gobj(), Glib::unwrap(window))));
577 void TextView::set_border_window_size(TextWindowType type, int size)
579 gtk_text_view_set_border_window_size(gobj(), ((GtkTextWindowType)(type)), size);
582 int TextView::get_border_window_size(TextWindowType type) const
584 return gtk_text_view_get_border_window_size(const_cast<GtkTextView*>(gobj()), ((GtkTextWindowType)(type)));
587 bool TextView::forward_display_line(TextBuffer::iterator& iter)
589 return gtk_text_view_forward_display_line(gobj(), (iter).gobj());
592 bool TextView::backward_display_line(TextBuffer::iterator& iter)
594 return gtk_text_view_backward_display_line(gobj(), (iter).gobj());
597 bool TextView::forward_display_line_end(TextBuffer::iterator& iter)
599 return gtk_text_view_forward_display_line_end(gobj(), (iter).gobj());
602 bool TextView::backward_display_line_start(TextBuffer::iterator& iter)
604 return gtk_text_view_backward_display_line_start(gobj(), (iter).gobj());
607 bool TextView::starts_display_line(const TextBuffer::iterator& iter)
609 return gtk_text_view_starts_display_line(gobj(), (iter).gobj());
612 bool TextView::move_visually(TextBuffer::iterator& iter, int count)
614 return gtk_text_view_move_visually(gobj(), (iter).gobj(), count);
617 void TextView::add_child_at_anchor(Widget& child, const Glib::RefPtr<TextBuffer::ChildAnchor>& anchor)
619 gtk_text_view_add_child_at_anchor(gobj(), (child).gobj(), Glib::unwrap(anchor));
622 void TextView::add_child_in_window(Widget& child, TextWindowType which_window, int xpos, int ypos)
624 gtk_text_view_add_child_in_window(gobj(), (child).gobj(), ((GtkTextWindowType)(which_window)), xpos, ypos);
627 void TextView::move_child(Widget& child, int xpos, int ypos)
629 gtk_text_view_move_child(gobj(), (child).gobj(), xpos, ypos);
632 void TextView::set_wrap_mode(WrapMode wrap_mode)
634 gtk_text_view_set_wrap_mode(gobj(), ((GtkWrapMode)(wrap_mode)));
637 WrapMode TextView::get_wrap_mode() const
639 return ((WrapMode)(gtk_text_view_get_wrap_mode(const_cast<GtkTextView*>(gobj()))));
642 void TextView::set_editable(bool setting)
644 gtk_text_view_set_editable(gobj(), static_cast<int>(setting));
647 bool TextView::get_editable() const
649 return gtk_text_view_get_editable(const_cast<GtkTextView*>(gobj()));
652 void TextView::set_pixels_above_lines(int pixels_above_lines)
654 gtk_text_view_set_pixels_above_lines(gobj(), pixels_above_lines);
657 int TextView::get_pixels_above_lines() const
659 return gtk_text_view_get_pixels_above_lines(const_cast<GtkTextView*>(gobj()));
662 void TextView::set_pixels_below_lines(int pixels_below_lines)
664 gtk_text_view_set_pixels_below_lines(gobj(), pixels_below_lines);
667 int TextView::get_pixels_below_lines() const
669 return gtk_text_view_get_pixels_below_lines(const_cast<GtkTextView*>(gobj()));
672 void TextView::set_pixels_inside_wrap(int pixels_inside_wrap)
674 gtk_text_view_set_pixels_inside_wrap(gobj(), pixels_inside_wrap);
677 int TextView::get_pixels_inside_wrap() const
679 return gtk_text_view_get_pixels_inside_wrap(const_cast<GtkTextView*>(gobj()));
682 void TextView::set_justification(Justification justification)
684 gtk_text_view_set_justification(gobj(), ((GtkJustification)(justification)));
687 Justification TextView::get_justification() const
689 return ((Justification)(gtk_text_view_get_justification(const_cast<GtkTextView*>(gobj()))));
692 void TextView::set_left_margin(int left_margin)
694 gtk_text_view_set_left_margin(gobj(), left_margin);
697 int TextView::get_left_margin() const
699 return gtk_text_view_get_left_margin(const_cast<GtkTextView*>(gobj()));
702 void TextView::set_right_margin(int right_margin)
704 gtk_text_view_set_right_margin(gobj(), right_margin);
707 int TextView::get_right_margin() const
709 return gtk_text_view_get_right_margin(const_cast<GtkTextView*>(gobj()));
712 void TextView::set_indent(int indent)
714 gtk_text_view_set_indent(gobj(), indent);
717 int TextView::get_indent() const
719 return gtk_text_view_get_indent(const_cast<GtkTextView*>(gobj()));
722 void TextView::set_tabs(Pango::TabArray& tabs)
724 gtk_text_view_set_tabs(gobj(), (tabs).gobj());
727 Pango::TabArray TextView::get_tabs() const
729 return Pango::TabArray((gtk_text_view_get_tabs(const_cast<GtkTextView*>(gobj()))));
732 TextAttributes TextView::get_default_attributes() const
734 return TextAttributes(gtk_text_view_get_default_attributes(const_cast<GtkTextView*>(gobj())));
737 void TextView::set_overwrite(bool overwrite)
739 gtk_text_view_set_overwrite(gobj(), static_cast<int>(overwrite));
742 bool TextView::get_overwrite() const
744 return gtk_text_view_get_overwrite(const_cast<GtkTextView*>(gobj()));
747 void TextView::set_accepts_tab(bool accepts_tab)
749 gtk_text_view_set_accepts_tab(gobj(), static_cast<int>(accepts_tab));
752 bool TextView::get_accepts_tab() const
754 return gtk_text_view_get_accepts_tab(const_cast<GtkTextView*>(gobj()));
758 Glib::SignalProxy2< void,Adjustment*,Adjustment* > TextView::signal_set_scroll_adjustments()
760 return Glib::SignalProxy2< void,Adjustment*,Adjustment* >(this, &TextView_signal_set_scroll_adjustments_info);
764 Glib::SignalProxy1< void,Menu* > TextView::signal_populate_popup()
766 return Glib::SignalProxy1< void,Menu* >(this, &TextView_signal_populate_popup_info);
770 Glib::SignalProxy0< void > TextView::signal_set_anchor()
772 return Glib::SignalProxy0< void >(this, &TextView_signal_set_anchor_info);
776 Glib::SignalProxy1< void,const Glib::ustring& > TextView::signal_insert_at_cursor()
778 return Glib::SignalProxy1< void,const Glib::ustring& >(this, &TextView_signal_insert_at_cursor_info);
782 #ifdef GLIBMM_PROPERTIES_ENABLED
783 Glib::PropertyProxy<int> TextView::property_pixels_above_lines()
785 return Glib::PropertyProxy<int>(this, "pixels-above-lines");
787 #endif //GLIBMM_PROPERTIES_ENABLED
789 #ifdef GLIBMM_PROPERTIES_ENABLED
790 Glib::PropertyProxy_ReadOnly<int> TextView::property_pixels_above_lines() const
792 return Glib::PropertyProxy_ReadOnly<int>(this, "pixels-above-lines");
794 #endif //GLIBMM_PROPERTIES_ENABLED
796 #ifdef GLIBMM_PROPERTIES_ENABLED
797 Glib::PropertyProxy<int> TextView::property_pixels_below_lines()
799 return Glib::PropertyProxy<int>(this, "pixels-below-lines");
801 #endif //GLIBMM_PROPERTIES_ENABLED
803 #ifdef GLIBMM_PROPERTIES_ENABLED
804 Glib::PropertyProxy_ReadOnly<int> TextView::property_pixels_below_lines() const
806 return Glib::PropertyProxy_ReadOnly<int>(this, "pixels-below-lines");
808 #endif //GLIBMM_PROPERTIES_ENABLED
810 #ifdef GLIBMM_PROPERTIES_ENABLED
811 Glib::PropertyProxy<int> TextView::property_pixels_inside_wrap()
813 return Glib::PropertyProxy<int>(this, "pixels-inside-wrap");
815 #endif //GLIBMM_PROPERTIES_ENABLED
817 #ifdef GLIBMM_PROPERTIES_ENABLED
818 Glib::PropertyProxy_ReadOnly<int> TextView::property_pixels_inside_wrap() const
820 return Glib::PropertyProxy_ReadOnly<int>(this, "pixels-inside-wrap");
822 #endif //GLIBMM_PROPERTIES_ENABLED
824 #ifdef GLIBMM_PROPERTIES_ENABLED
825 Glib::PropertyProxy<bool> TextView::property_editable()
827 return Glib::PropertyProxy<bool>(this, "editable");
829 #endif //GLIBMM_PROPERTIES_ENABLED
831 #ifdef GLIBMM_PROPERTIES_ENABLED
832 Glib::PropertyProxy_ReadOnly<bool> TextView::property_editable() const
834 return Glib::PropertyProxy_ReadOnly<bool>(this, "editable");
836 #endif //GLIBMM_PROPERTIES_ENABLED
838 #ifdef GLIBMM_PROPERTIES_ENABLED
839 Glib::PropertyProxy<WrapMode> TextView::property_wrap_mode()
841 return Glib::PropertyProxy<WrapMode>(this, "wrap-mode");
843 #endif //GLIBMM_PROPERTIES_ENABLED
845 #ifdef GLIBMM_PROPERTIES_ENABLED
846 Glib::PropertyProxy_ReadOnly<WrapMode> TextView::property_wrap_mode() const
848 return Glib::PropertyProxy_ReadOnly<WrapMode>(this, "wrap-mode");
850 #endif //GLIBMM_PROPERTIES_ENABLED
852 #ifdef GLIBMM_PROPERTIES_ENABLED
853 Glib::PropertyProxy<Justification> TextView::property_justification()
855 return Glib::PropertyProxy<Justification>(this, "justification");
857 #endif //GLIBMM_PROPERTIES_ENABLED
859 #ifdef GLIBMM_PROPERTIES_ENABLED
860 Glib::PropertyProxy_ReadOnly<Justification> TextView::property_justification() const
862 return Glib::PropertyProxy_ReadOnly<Justification>(this, "justification");
864 #endif //GLIBMM_PROPERTIES_ENABLED
866 #ifdef GLIBMM_PROPERTIES_ENABLED
867 Glib::PropertyProxy<int> TextView::property_left_margin()
869 return Glib::PropertyProxy<int>(this, "left-margin");
871 #endif //GLIBMM_PROPERTIES_ENABLED
873 #ifdef GLIBMM_PROPERTIES_ENABLED
874 Glib::PropertyProxy_ReadOnly<int> TextView::property_left_margin() const
876 return Glib::PropertyProxy_ReadOnly<int>(this, "left-margin");
878 #endif //GLIBMM_PROPERTIES_ENABLED
880 #ifdef GLIBMM_PROPERTIES_ENABLED
881 Glib::PropertyProxy<int> TextView::property_right_margin()
883 return Glib::PropertyProxy<int>(this, "right-margin");
885 #endif //GLIBMM_PROPERTIES_ENABLED
887 #ifdef GLIBMM_PROPERTIES_ENABLED
888 Glib::PropertyProxy_ReadOnly<int> TextView::property_right_margin() const
890 return Glib::PropertyProxy_ReadOnly<int>(this, "right-margin");
892 #endif //GLIBMM_PROPERTIES_ENABLED
894 #ifdef GLIBMM_PROPERTIES_ENABLED
895 Glib::PropertyProxy<int> TextView::property_indent()
897 return Glib::PropertyProxy<int>(this, "indent");
899 #endif //GLIBMM_PROPERTIES_ENABLED
901 #ifdef GLIBMM_PROPERTIES_ENABLED
902 Glib::PropertyProxy_ReadOnly<int> TextView::property_indent() const
904 return Glib::PropertyProxy_ReadOnly<int>(this, "indent");
906 #endif //GLIBMM_PROPERTIES_ENABLED
908 #ifdef GLIBMM_PROPERTIES_ENABLED
909 Glib::PropertyProxy<Pango::TabArray> TextView::property_tabs()
911 return Glib::PropertyProxy<Pango::TabArray>(this, "tabs");
913 #endif //GLIBMM_PROPERTIES_ENABLED
915 #ifdef GLIBMM_PROPERTIES_ENABLED
916 Glib::PropertyProxy_ReadOnly<Pango::TabArray> TextView::property_tabs() const
918 return Glib::PropertyProxy_ReadOnly<Pango::TabArray>(this, "tabs");
920 #endif //GLIBMM_PROPERTIES_ENABLED
922 #ifdef GLIBMM_PROPERTIES_ENABLED
923 Glib::PropertyProxy<bool> TextView::property_cursor_visible()
925 return Glib::PropertyProxy<bool>(this, "cursor-visible");
927 #endif //GLIBMM_PROPERTIES_ENABLED
929 #ifdef GLIBMM_PROPERTIES_ENABLED
930 Glib::PropertyProxy_ReadOnly<bool> TextView::property_cursor_visible() const
932 return Glib::PropertyProxy_ReadOnly<bool>(this, "cursor-visible");
934 #endif //GLIBMM_PROPERTIES_ENABLED
936 #ifdef GLIBMM_PROPERTIES_ENABLED
937 Glib::PropertyProxy< Glib::RefPtr<TextBuffer> > TextView::property_buffer()
939 return Glib::PropertyProxy< Glib::RefPtr<TextBuffer> >(this, "buffer");
941 #endif //GLIBMM_PROPERTIES_ENABLED
943 #ifdef GLIBMM_PROPERTIES_ENABLED
944 Glib::PropertyProxy_ReadOnly< Glib::RefPtr<TextBuffer> > TextView::property_buffer() const
946 return Glib::PropertyProxy_ReadOnly< Glib::RefPtr<TextBuffer> >(this, "buffer");
948 #endif //GLIBMM_PROPERTIES_ENABLED
950 #ifdef GLIBMM_PROPERTIES_ENABLED
951 Glib::PropertyProxy<bool> TextView::property_overwrite()
953 return Glib::PropertyProxy<bool>(this, "overwrite");
955 #endif //GLIBMM_PROPERTIES_ENABLED
957 #ifdef GLIBMM_PROPERTIES_ENABLED
958 Glib::PropertyProxy_ReadOnly<bool> TextView::property_overwrite() const
960 return Glib::PropertyProxy_ReadOnly<bool>(this, "overwrite");
962 #endif //GLIBMM_PROPERTIES_ENABLED
964 #ifdef GLIBMM_PROPERTIES_ENABLED
965 Glib::PropertyProxy<bool> TextView::property_accepts_tab()
967 return Glib::PropertyProxy<bool>(this, "accepts-tab");
969 #endif //GLIBMM_PROPERTIES_ENABLED
971 #ifdef GLIBMM_PROPERTIES_ENABLED
972 Glib::PropertyProxy_ReadOnly<bool> TextView::property_accepts_tab() const
974 return Glib::PropertyProxy_ReadOnly<bool>(this, "accepts-tab");
976 #endif //GLIBMM_PROPERTIES_ENABLED
979 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
980 void Gtk::TextView::on_set_scroll_adjustments(Adjustment* hadjustment, Adjustment* vadjustment)
982 BaseClassType *const base = static_cast<BaseClassType*>(
983 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
986 if(base && base->set_scroll_adjustments)
987 (*base->set_scroll_adjustments)(gobj(),(GtkAdjustment*)Glib::unwrap(hadjustment),(GtkAdjustment*)Glib::unwrap(vadjustment));
989 void Gtk::TextView::on_populate_popup(Menu* menu)
991 BaseClassType *const base = static_cast<BaseClassType*>(
992 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
995 if(base && base->populate_popup)
996 (*base->populate_popup)(gobj(),(GtkMenu*)Glib::unwrap(menu));
998 void Gtk::TextView::on_set_anchor()
1000 BaseClassType *const base = static_cast<BaseClassType*>(
1001 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
1004 if(base && base->set_anchor)
1005 (*base->set_anchor)(gobj());
1007 void Gtk::TextView::on_insert_at_cursor(const Glib::ustring& str)
1009 BaseClassType *const base = static_cast<BaseClassType*>(
1010 g_type_class_peek_parent(G_OBJECT_GET_CLASS(gobject_)) // Get the parent class of the object class (The original underlying C class).
1013 if(base && base->insert_at_cursor)
1014 (*base->insert_at_cursor)(gobj(),str.c_str());
1016 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
1018 #ifdef GLIBMM_VFUNCS_ENABLED
1019 #endif //GLIBMM_VFUNCS_ENABLED