3 #ifndef _GTKMM_TEXTVIEW_H
4 #define _GTKMM_TEXTVIEW_H
6 #include <gtkmmconfig.h>
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
42 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49 {
class TextView_Class; }
74 #ifndef DOXYGEN_SHOULD_SKIP_THIS
82 static GType value_type() G_GNUC_CONST;
107 #ifndef DOXYGEN_SHOULD_SKIP_THIS
116 #ifndef DOXYGEN_SHOULD_SKIP_THIS
120 static CppClassType textview_class_;
127 explicit TextView(
const Glib::ConstructParams& construct_params);
133 #ifndef DOXYGEN_SHOULD_SKIP_THIS
134 static GType get_type() G_GNUC_CONST;
137 static GType get_base_type() G_GNUC_CONST;
168 explicit TextView(
const Glib::RefPtr<TextBuffer>& buffer);
197 #ifndef GTKMM_DISABLE_DEPRECATED
205 void scroll_to_mark(
const Glib::RefPtr<TextBuffer::Mark>& mark,
double within_margin);
249 void scroll_to(
const Glib::RefPtr<TextBuffer::Mark>& mark,
double within_margin = 0);
260 void scroll_to(
const Glib::RefPtr<TextBuffer::Mark>& mark,
double within_margin,
double xalign,
double yalign);
TextAttributes get_default_attributes() const
void buffer_to_window_coords(TextWindowType win, int buffer_x, int buffer_y, int &window_x, int &window_y) const
int get_pixels_below_lines() const
void set_pixels_inside_wrap(int pixels_inside_wrap)
bool get_overwrite() const
Glib::RefPtr< const Gdk::Window > get_window(TextWindowType win) const
Glib::PropertyProxy_ReadOnly< Glib::ustring > property_im_module() const
Glib::RefPtr< Gdk::Window > get_window(TextWindowType win)
Glib::PropertyProxy_ReadOnly< bool > property_cursor_visible() const
virtual void on_insert_at_cursor(const Glib::ustring &str)
This is a default handler for the signal signal_insert_at_cursor().
void get_line_yrange(const TextBuffer::iterator &iter, int &y, int &height) const
void set_pixels_above_lines(int pixels_above_lines)
void scroll_to(const Glib::RefPtr< TextBuffer::Mark > &mark, double within_margin, double xalign, double yalign)
bool move_mark_onscreen(const Glib::RefPtr< TextBuffer::Mark > &mark)
Glib::SignalProxy1< void, const Glib::ustring & > signal_insert_at_cursor()
Glib::PropertyProxy_ReadOnly< int > property_left_margin() const
Glib::PropertyProxy_ReadOnly< int > property_indent() const
Glib::RefPtr< TextBuffer > get_buffer()
void add_child_in_window(Widget &child, TextWindowType which_window, int xpos, int ypos)
int get_right_margin() const
void set_pixels_below_lines(int pixels_below_lines)
Glib::PropertyProxy< bool > property_overwrite()
int get_pixels_inside_wrap() const
bool forward_display_line(TextBuffer::iterator &iter)
Glib::PropertyProxy_ReadOnly< bool > property_overwrite() const
bool im_context_filter_keypress(GdkEventKey *event)
virtual void on_populate_popup(Menu *menu)
This is a default handler for the signal signal_populate_popup().
Glib::SignalProxy1< void, Menu * > signal_populate_popup()
void scroll_to(const Glib::RefPtr< TextBuffer::Mark > &mark, double within_margin=0)
Glib::PropertyProxy< int > property_indent()
Glib::PropertyProxy< bool > property_accepts_tab()
void set_wrap_mode(WrapMode wrap_mode)
void get_iter_location(const TextBuffer::iterator &iter, Gdk::Rectangle &location) const
Gtk::Adjustment * get_hadjustment()
bool get_accepts_tab() const
Glib::PropertyProxy_ReadOnly< WrapMode > property_wrap_mode() const
Glib::PropertyProxy< WrapMode > property_wrap_mode()
void set_border_window_size(TextWindowType type, int size)
Pango::TabArray get_tabs() const
void set_right_margin(int right_margin)
Gtk::TextView * wrap(GtkTextView *object, bool take_copy=false)
void set_indent(int indent)
Glib::PropertyProxy< int > property_pixels_below_lines()
bool backward_display_line_start(TextBuffer::iterator &iter)
Glib::PropertyProxy_ReadOnly< int > property_right_margin() const
Glib::PropertyProxy_ReadOnly< Justification > property_justification() const
Glib::PropertyProxy< int > property_left_margin()
Gtk::Adjustment * get_vadjustment()
void move_child(Widget &child, int xpos, int ypos)
bool scroll_to(TextBuffer::iterator &iter, double within_margin, double xalign, double yalign)
virtual void on_set_scroll_adjustments(Adjustment *hadjustment, Adjustment *vadjustment)
This is a default handler for the signal signal_set_scroll_adjustments().
Glib::PropertyProxy< int > property_pixels_inside_wrap()
void set_left_margin(int left_margin)
Glib::PropertyProxy_ReadOnly< int > property_pixels_above_lines() const
bool move_visually(TextBuffer::iterator &iter, int count)
Glib::PropertyProxy_ReadOnly< Glib::RefPtr< TextBuffer > > property_buffer() const
const Gtk::Adjustment * get_vadjustment() const
Justification get_justification() const
bool backward_display_line(TextBuffer::iterator &iter)
const GtkTextView * gobj() const
Provides access to the underlying C GtkObject.
Glib::PropertyProxy< Pango::TabArray > property_tabs()
Glib::PropertyProxy< Glib::ustring > property_im_module()
Glib::PropertyProxy_ReadOnly< Pango::TabArray > property_tabs() const
bool scroll_to(TextBuffer::iterator &iter, double within_margin=0)
void set_accepts_tab(bool accepts_tab=true)
bool get_cursor_visible() const
bool scroll_to_iter(TextBuffer::iterator &iter, double within_margin)
Glib::PropertyProxy< bool > property_editable()
const Gtk::Adjustment * get_hadjustment() const
int get_left_margin() const
void get_visible_rect(Gdk::Rectangle &visible_rect) const
Glib::PropertyProxy< int > property_pixels_above_lines()
TextWindowType get_window_type(const Glib::RefPtr< Gdk::Window > &window)
void add_child_at_anchor(Widget &child, const Glib::RefPtr< TextBuffer::ChildAnchor > &anchor)
Glib::PropertyProxy< Justification > property_justification()
Glib::SignalProxy2< void, Adjustment *, Adjustment * > signal_set_scroll_adjustments()
void get_iter_at_position(TextBuffer::iterator &iter, int &trailing, int x, int y) const
void scroll_mark_onscreen(const Glib::RefPtr< TextBuffer::Mark > &mark)
int get_border_window_size(TextWindowType type) const
void set_editable(bool setting=true)
void window_to_buffer_coords(TextWindowType win, int window_x, int window_y, int &buffer_x, int &buffer_y) const
bool forward_display_line_end(TextBuffer::iterator &iter)
void set_overwrite(bool overwrite=true)
int get_pixels_above_lines() const
Glib::RefPtr< const TextBuffer > get_buffer() const
Glib::PropertyProxy< Glib::RefPtr< TextBuffer > > property_buffer()
void set_justification(Justification justification)
Glib::PropertyProxy_ReadOnly< int > property_pixels_inside_wrap() const
Glib::PropertyProxy_ReadOnly< bool > property_accepts_tab() const
void set_cursor_visible(bool setting=true)
Glib::PropertyProxy_ReadOnly< int > property_pixels_below_lines() const
bool get_editable() const
void get_iter_at_location(TextBuffer::iterator &iter, int x, int y) const
Glib::PropertyProxy< int > property_right_margin()
Glib::SignalProxy0< void > signal_set_anchor()
Glib::PropertyProxy< bool > property_cursor_visible()
WrapMode get_wrap_mode() const
void set_buffer(const Glib::RefPtr< TextBuffer > &buffer)
GtkTextView * gobj()
Provides access to the underlying C GtkObject.
void set_tabs(Pango::TabArray &tabs)
TextView(const Glib::RefPtr< TextBuffer > &buffer)
bool place_cursor_onscreen()
void scroll_to_mark(const Glib::RefPtr< TextBuffer::Mark > &mark, double within_margin)
virtual void on_set_anchor()
This is a default handler for the signal signal_set_anchor().
void get_line_at_y(TextBuffer::iterator &target_iter, int y, int &line_top) const
bool starts_display_line(const TextBuffer::iterator &iter)
Glib::PropertyProxy_ReadOnly< bool > property_editable() const