Class Index | Cross Index | Namespace Index |
Text widget which allows display and manipulation of arbitrary text.
Contained in: Gtk
Derived from:
Gtk::Editable
Derived by:
none
#include <gtk--/text.h>
public function member index: |
||
Text | (Adjustment& hadj, Adjustment& vadj); | |
Text | (); | |
gint | backward_delete | (guint nchars); |
gint | forward_delete | (guint nchars); |
void | freeze | (); |
Context | get_context | () const; |
Adjustment* | get_hadjustment | () const; |
guint | get_length | () const; |
guint | get_point | () const; |
Adjustment* | get_vadjustment | () const; |
GtkText* | gtkobj | (); |
const GtkText* | gtkobj | () const; |
void | insert | (const Gdk_Font& font, const Gdk_Color& fore, const Gdk_Color& back, const nstring& chars, gint length); |
void | insert | (const Context& gc, const string& text); |
void | insert | (const string& text); |
static bool | isA | (Object* object); |
void | set_adjustments | (Adjustment* hadj=0, Adjustment* vadj=0); |
void | set_adjustments | (Adjustment& hadj, Adjustment& vadj); |
void | set_context | (); |
void | set_context | (const Context& gc); |
void | set_line_wrap | (bool line_wrap); |
void | set_point | (guint index); |
emitable signal void | set_scroll_adjustments | (Adjustment*, Adjustment*); |
void | set_word_wrap | (bool word_wrap); |
void | thaw | (); |
virtual | ~Text | (); |
protected function member index: |
||
virtual void | set_scroll_adjustments_impl | (Adjustment* p0, Adjustment* p1); |
nchars: The number of characters to delete.Returns: TRUE if the operation was successful, otherwise returns FALSE.
nchars: The number of characters to delete.Returns: TRUE if the operation was successful, otherwise returns FALSE.
This is useful if a large number of changes are going to made to the text within the widget, reducing the amount of flicker seen by the user.
Returns: The length of the text.
Returns: The number of characters from the upper left corner.
font: The Gdk::Font to use.fore: The foreground color to insert with.
back: The background color to insert with.
chars: The actual text to be inserted.
length: The length of the text to be inserted, passing -1 makes it insert all the text.
hadj: The horizontal adjustment.vadj: The vertical adjustment.
hadj: The horizontal adjustment.vadj: The vertical adjustment.
If line wrap is on, the line is broken when it reaches the extent of the Gtk::Text widget viewing area and the rest is displayed on the next line. If it is not set, the line continues regardless size of current viewing area. Similar to word wrap but it disregards word boundaries.line_wrap: TRUE turns line wrap on, FALSE turns it off.
In this case a point constitutes the number of characters from the extreme upper left corner of the Gtk::Text widget. index: The number of characters from the upper left corner.
word_wrap: TRUE makes it word wrap, FALSE disables word wrapping.