logo top
Main Page   Widgets   Namespaces   Book  

Gtk::TextView Class Reference
[WidgetsContainer WidgetsTextView Classes]

Multi-line text editing widget. More...

Inheritance diagram for Gtk::TextView:

Inheritance graph
[legend]
List of all members.

Public Member Functions

virtual ~TextView ()
GtkTextView* gobj ()
 Provides access to the underlying C GtkObject.

const GtkTextView* gobj () const
 Provides access to the underlying C GtkObject.

 TextView ()
 TextView (const Glib::RefPtr<TextBuffer>& buffer)
void set_buffer (const Glib::RefPtr<TextBuffer>& buffer)
Glib::RefPtr<TextBufferget_buffer ()
Glib::RefPtr<const TextBufferget_buffer () const
bool scroll_to_iter (TextBuffer::iterator& iter, double within_margin)
bool scroll_to_iter (TextBuffer::iterator& iter, double within_margin, double xalign, double yalign)
void scroll_to_mark (const Glib::RefPtr<TextBuffer::Mark>& mark, double within_margin)
void scroll_to_mark (const Glib::RefPtr<TextBuffer::Mark>& mark, double within_margin, double xalign, double yalign)
void scroll_mark_onscreen (const Glib::RefPtr<TextBuffer::Mark>& mark)
bool move_mark_onscreen (const Glib::RefPtr<TextBuffer::Mark>& mark)
bool place_cursor_onscreen ()
void get_visible_rect (Gdk::Rectangle& visible_rect)
void set_cursor_visible (bool setting=true)
bool get_cursor_visible () const
void get_iter_location (const TextBuffer::iterator& iter, Gdk::Rectangle& location)
void get_iter_at_location (TextBuffer::iterator& iter, int x, int y)
void get_line_yrange (const TextBuffer::iterator& iter, int& y, int& height)
void get_line_at_y (TextBuffer::iterator& target_iter, int y, int& line_top)
void buffer_to_window_coords (TextWindowType win, int buffer_x, int buffer_y, int& window_x, int& window_y)
void window_to_buffer_coords (TextWindowType win, int window_x, int window_y, int& buffer_x, int& buffer_y)
Glib::RefPtr<Gdk::Windowget_window (TextWindowType win)
Glib::RefPtr<const Gdk::Windowget_window (TextWindowType win) const
TextWindowType get_window_type (const Glib::RefPtr<Gdk::Window>& window)
void set_border_window_size (TextWindowType type, int size)
int get_border_window_size (TextWindowType type)
bool forward_display_line (TextBuffer::iterator& iter)
bool backward_display_line (TextBuffer::iterator& iter)
bool forward_display_line_end (TextBuffer::iterator& iter)
bool backward_display_line_start (TextBuffer::iterator& iter)
bool starts_display_line (const TextBuffer::iterator& iter)
bool move_visually (TextBuffer::iterator& iter, int count)
void add_child_at_anchor (Widget& child, const Glib::RefPtr<TextChildAnchor>& anchor)
void add_child_in_window (Widget& child, TextWindowType which_window, int xpos, int ypos)
void move_child (Widget& child, int xpos, int ypos)
void set_wrap_mode (WrapMode wrap_mode)
WrapMode get_wrap_mode ()
void set_editable (bool setting=true)
bool get_editable () const
void set_pixels_above_lines (int pixels_above_lines)
int get_pixels_above_lines ()
void set_pixels_below_lines (int pixels_below_lines)
int get_pixels_below_lines ()
void set_pixels_inside_wrap (int pixels_inside_wrap)
int get_pixels_inside_wrap ()
void set_justification (Justification justification)
Justification get_justification ()
void set_left_margin (int left_margin)
int get_left_margin ()
void set_right_margin (int right_margin)
int get_right_margin ()
void set_indent (int indent)
int get_indent ()
void set_tabs (Pango::TabArray& tabs)
Pango::TabArray get_tabs ()
TextAttributes get_default_attributes ()
Glib::SignalProxy2< void,
Adjustment*, Adjustment* > 
signal_set_scroll_adjustments ()
Glib::SignalProxy1< void,
Menu* > 
signal_populate_popup ()
Glib::SignalProxy0<void> signal_set_anchor ()
Glib::SignalProxy1< void,
const Glib::ustring& > 
signal_insert_at_cursor ()
Glib::PropertyProxy<int> property_pixels_above_lines ()
Glib::PropertyProxy<int> property_pixels_below_lines ()
Glib::PropertyProxy<int> property_pixels_inside_wrap ()
Glib::PropertyProxy<bool> property_editable ()
Glib::PropertyProxy<WrapModeproperty_wrap_mode ()
Glib::PropertyProxy<Justificationproperty_justification ()
Glib::PropertyProxy<int> property_left_margin ()
Glib::PropertyProxy<int> property_right_margin ()
Glib::PropertyProxy<int> property_indent ()
Glib::PropertyProxy<Pango::TabArrayproperty_tabs ()
Glib::PropertyProxy<bool> property_cursor_visible ()

Protected Member Functions

virtual void on_set_scroll_adjustments (Adjustment* hadjustment, Adjustment* vadjustment)
virtual void on_populate_popup (Menu* menu)
virtual void on_set_anchor ()
virtual void on_insert_at_cursor (const Glib::ustring& str)

Related Functions

(Note that these are not member functions.)

Gtk::TextViewwrap (GtkTextView* object, bool take_copy=false)

Detailed Description

Multi-line text editing widget.

It displays a Gtk::TextBuffer.


Constructor & Destructor Documentation

virtual Gtk::TextView::~TextView (  )  [virtual]
 

Gtk::TextView::TextView (  ) 
 

Gtk::TextView::TextView ( const Glib::RefPtr<TextBuffer>&  buffer  )  [explicit]
 


Member Function Documentation

void Gtk::TextView::add_child_at_anchor ( Widget child,
const Glib::RefPtr<TextChildAnchor>&  anchor
 

void Gtk::TextView::add_child_in_window ( Widget child,
TextWindowType  which_window,
int  xpos,
int  ypos
 

bool Gtk::TextView::backward_display_line ( TextBuffer::iterator iter  ) 
 

bool Gtk::TextView::backward_display_line_start ( TextBuffer::iterator iter  ) 
 

void Gtk::TextView::buffer_to_window_coords ( TextWindowType  win,
int  buffer_x,
int  buffer_y,
int&  window_x,
int&  window_y
 

bool Gtk::TextView::forward_display_line ( TextBuffer::iterator iter  ) 
 

bool Gtk::TextView::forward_display_line_end ( TextBuffer::iterator iter  ) 
 

int Gtk::TextView::get_border_window_size ( TextWindowType  type  ) 
 

Glib::RefPtr<const TextBuffer> Gtk::TextView::get_buffer (  )  const
 

Glib::RefPtr<TextBuffer> Gtk::TextView::get_buffer (  ) 
 

bool Gtk::TextView::get_cursor_visible (  )  const
 

TextAttributes Gtk::TextView::get_default_attributes (  ) 
 

bool Gtk::TextView::get_editable (  )  const
 

int Gtk::TextView::get_indent (  ) 
 

void Gtk::TextView::get_iter_at_location ( TextBuffer::iterator iter,
int  x,
int  y
 

void Gtk::TextView::get_iter_location ( const TextBuffer::iterator iter,
Gdk::Rectangle location
 

Justification Gtk::TextView::get_justification (  ) 
 

int Gtk::TextView::get_left_margin (  ) 
 

void Gtk::TextView::get_line_at_y ( TextBuffer::iterator target_iter,
int  y,
int&  line_top
 

void Gtk::TextView::get_line_yrange ( const TextBuffer::iterator iter,
int&  y,
int&  height
 

int Gtk::TextView::get_pixels_above_lines (  ) 
 

int Gtk::TextView::get_pixels_below_lines (  ) 
 

int Gtk::TextView::get_pixels_inside_wrap (  ) 
 

int Gtk::TextView::get_right_margin (  ) 
 

Pango::TabArray Gtk::TextView::get_tabs (  ) 
 

void Gtk::TextView::get_visible_rect ( Gdk::Rectangle visible_rect  ) 
 

Glib::RefPtr<const Gdk::Window> Gtk::TextView::get_window ( TextWindowType  win  )  const
 

Glib::RefPtr<Gdk::Window> Gtk::TextView::get_window ( TextWindowType  win  ) 
 

TextWindowType Gtk::TextView::get_window_type ( const Glib::RefPtr<Gdk::Window>&  window  ) 
 

WrapMode Gtk::TextView::get_wrap_mode (  ) 
 

const GtkTextView* Gtk::TextView::gobj (  )  const [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Container.

GtkTextView* Gtk::TextView::gobj (  )  [inline]
 

Provides access to the underlying C GtkObject.

Reimplemented from Gtk::Container.

void Gtk::TextView::move_child ( Widget child,
int  xpos,
int  ypos
 

bool Gtk::TextView::move_mark_onscreen ( const Glib::RefPtr<TextBuffer::Mark>&  mark  ) 
 

bool Gtk::TextView::move_visually ( TextBuffer::iterator iter,
int  count
 

virtual void Gtk::TextView::on_insert_at_cursor ( const Glib::ustring&  str  )  [protected, virtual]
 

virtual void Gtk::TextView::on_populate_popup ( Menu menu  )  [protected, virtual]
 

virtual void Gtk::TextView::on_set_anchor (  )  [protected, virtual]
 

virtual void Gtk::TextView::on_set_scroll_adjustments ( Adjustment hadjustment,
Adjustment vadjustment
[protected, virtual]
 

bool Gtk::TextView::place_cursor_onscreen (  ) 
 

Glib::PropertyProxy<bool> Gtk::TextView::property_cursor_visible (  ) 
 

Glib::PropertyProxy<bool> Gtk::TextView::property_editable (  ) 
 

Glib::PropertyProxy<int> Gtk::TextView::property_indent (  ) 
 

Glib::PropertyProxy<Justification> Gtk::TextView::property_justification (  ) 
 

Glib::PropertyProxy<int> Gtk::TextView::property_left_margin (  ) 
 

Glib::PropertyProxy<int> Gtk::TextView::property_pixels_above_lines (  ) 
 

Glib::PropertyProxy<int> Gtk::TextView::property_pixels_below_lines (  ) 
 

Glib::PropertyProxy<int> Gtk::TextView::property_pixels_inside_wrap (  ) 
 

Glib::PropertyProxy<int> Gtk::TextView::property_right_margin (  ) 
 

Glib::PropertyProxy<Pango::TabArray> Gtk::TextView::property_tabs (  ) 
 

Glib::PropertyProxy<WrapMode> Gtk::TextView::property_wrap_mode (  ) 
 

void Gtk::TextView::scroll_mark_onscreen ( const Glib::RefPtr<TextBuffer::Mark>&  mark  ) 
 

bool Gtk::TextView::scroll_to_iter ( TextBuffer::iterator iter,
double  within_margin,
double  xalign,
double  yalign
 

bool Gtk::TextView::scroll_to_iter ( TextBuffer::iterator iter,
double  within_margin
 

void Gtk::TextView::scroll_to_mark ( const Glib::RefPtr<TextBuffer::Mark>&  mark,
double  within_margin,
double  xalign,
double  yalign
 

void Gtk::TextView::scroll_to_mark ( const Glib::RefPtr<TextBuffer::Mark>&  mark,
double  within_margin
 

void Gtk::TextView::set_border_window_size ( TextWindowType  type,
int  size
 

void Gtk::TextView::set_buffer ( const Glib::RefPtr<TextBuffer>&  buffer  ) 
 

void Gtk::TextView::set_cursor_visible ( bool  setting = true  ) 
 

void Gtk::TextView::set_editable ( bool  setting = true  ) 
 

void Gtk::TextView::set_indent ( int  indent  ) 
 

void Gtk::TextView::set_justification ( Justification  justification  ) 
 

void Gtk::TextView::set_left_margin ( int  left_margin  ) 
 

void Gtk::TextView::set_pixels_above_lines ( int  pixels_above_lines  ) 
 

void Gtk::TextView::set_pixels_below_lines ( int  pixels_below_lines  ) 
 

void Gtk::TextView::set_pixels_inside_wrap ( int  pixels_inside_wrap  ) 
 

void Gtk::TextView::set_right_margin ( int  right_margin  ) 
 

void Gtk::TextView::set_tabs ( Pango::TabArray tabs  ) 
 

void Gtk::TextView::set_wrap_mode ( WrapMode  wrap_mode  ) 
 

Glib::SignalProxy1<void,const Glib::ustring&> Gtk::TextView::signal_insert_at_cursor (  ) 
 

Prototype:
void insert_at_cursor(const Glib::ustring& str)

Glib::SignalProxy1<void,Menu*> Gtk::TextView::signal_populate_popup (  ) 
 

Prototype:
void populate_popup(Menu* menu)

Glib::SignalProxy0<void> Gtk::TextView::signal_set_anchor (  ) 
 

Prototype:
void set_anchor()

Glib::SignalProxy2<void,Adjustment*,Adjustment*> Gtk::TextView::signal_set_scroll_adjustments (  ) 
 

Prototype:
void set_scroll_adjustments(Adjustment* hadjustment, Adjustment* vadjustment)

bool Gtk::TextView::starts_display_line ( const TextBuffer::iterator iter  ) 
 

void Gtk::TextView::window_to_buffer_coords ( TextWindowType  win,
int  window_x,
int  window_y,
int&  buffer_x,
int&  buffer_y
 


Friends And Related Function Documentation

Gtk::TextView* wrap ( GtkTextView*  object,
bool  take_copy = false
[related]
 


The documentation for this class was generated from the following file:
Generated for gtkmm2.2 by Doxygen 1.3.3 © 1997-2001