man Gtk2::TextView () - Gtk2::TextView
NAME
Gtk2::TextView
HIERARCHY
Glib::Object +----Glib::Object::_Unregistered::GInitiallyUnowned +----Gtk2::Object +----Gtk2::Widget +----Gtk2::Container +----Gtk2::TextView
INTERFACES
Gtk2::Atk::ImplementorIface
METHODS
widget = Gtk2::TextView->new
widget = Gtk2::TextView->new_with_buffer ($buffer)
$text_view->set_accepts_tab ($accepts_tab)
$text_view->set_buffer ($buffer)
$text_view->set_cursor_visible ($setting)
$text_view->set_editable ($setting)
$text_view->set_indent ($indent)
Retrieves the iterator pointing to the character at buffer coordinates x and y. Buffer coordinates are coordinates for the entire buffer, not just the currently-displayed portion. If you have coordinates from an event, you have to convert those to buffer coordinates with CW$text_view->window_to_buffer_coords(). Note that this is different from CW$text_view->get_iter_at_location(), which returns cursor locations, i.e. positions between characters.
$text_view->set_justification ($justification)
$text_view->set_left_margin ($left_margin)
$text_view->set_overwrite ($overwrite)
$text_view->set_pixels_above_lines ($pixels_above_lines)
$text_view->set_pixels_below_lines ($pixels_below_lines)
$text_view->set_pixels_inside_wrap ($pixels_inside_wrap)
$text_view->set_right_margin ($right_margin)
$text_view->scroll_mark_onscreen ($mark)
$text_view->set_tabs ($tabs)
$text_view->set_wrap_mode ($wrap_mode)
PROPERTIES
- 'accepts-tab' (boolean : readable / writable / private)
- Whether Tab will result in a tab character being entered
- 'buffer' (Gtk2::TextBuffer : readable / writable / private)
- The buffer which is displayed
- 'cursor-visible' (boolean : readable / writable / private)
- If the insertion cursor is shown
- 'editable' (boolean : readable / writable / private)
- Whether the text can be modified by the user
- 'indent' (integer : readable / writable / private)
- Amount to indent the paragraph, in pixels
- 'justification' (Gtk2::Justification : readable / writable / private)
- Left, right, or center justification
- 'left-margin' (integer : readable / writable / private)
- Width of the left margin in pixels
- 'overwrite' (boolean : readable / writable / private)
- Whether entered text overwrites existing contents
- 'pixels-above-lines' (integer : readable / writable / private)
- Pixels of blank space above paragraphs
- 'pixels-below-lines' (integer : readable / writable / private)
- Pixels of blank space below paragraphs
- 'pixels-inside-wrap' (integer : readable / writable / private)
- Pixels of blank space between wrapped lines in a paragraph
- 'right-margin' (integer : readable / writable / private)
- Width of the right margin in pixels
- 'tabs' (Gtk2::Pango::TabArray : readable / writable / private)
- Custom tabs for this text
- 'wrap-mode' (Gtk2::WrapMode : readable / writable / private)
- Whether to wrap lines never, at word boundaries, or at character boundaries
SIGNALS
- set-scroll-adjustments (Gtk2::TextView, Gtk2::Adjustment, Gtk2::Adjustment)
- move-cursor (Gtk2::TextView, Gtk2::MovementStep, integer, boolean)
- select-all (Gtk2::TextView, boolean)
- move-focus (Gtk2::TextView, Gtk2::DirectionType)
- copy-clipboard (Gtk2::TextView)
- populate-popup (Gtk2::TextView, Gtk2::Menu)
- insert-at-cursor (Gtk2::TextView, string)
- delete-from-cursor (Gtk2::TextView, Gtk2::DeleteType, integer)
- backspace (Gtk2::TextView)
- cut-clipboard (Gtk2::TextView)
- paste-clipboard (Gtk2::TextView)
- toggle-overwrite (Gtk2::TextView)
- page-horizontally (Gtk2::TextView, integer, boolean)
- move-viewport (Gtk2::TextView, GtkScrollStep, integer)
- set-anchor (Gtk2::TextView)
ENUMS AND FLAGS
enum Gtk2::DeleteType
- * 'chars' / 'GTK_DELETE_CHARS'
- * 'word-ends' / 'GTK_DELETE_WORD_ENDS'
- * 'words' / 'GTK_DELETE_WORDS'
- * 'display-lines' / 'GTK_DELETE_DISPLAY_LINES'
- * 'display-line-ends' / 'GTK_DELETE_DISPLAY_LINE_ENDS'
- * 'paragraph-ends' / 'GTK_DELETE_PARAGRAPH_ENDS'
- * 'paragraphs' / 'GTK_DELETE_PARAGRAPHS'
- * 'whitespace' / 'GTK_DELETE_WHITESPACE'
enum Gtk2::DirectionType
- * 'tab-forward' / 'GTK_DIR_TAB_FORWARD'
- * 'tab-backward' / 'GTK_DIR_TAB_BACKWARD'
- * 'up' / 'GTK_DIR_UP'
- * 'down' / 'GTK_DIR_DOWN'
- * 'left' / 'GTK_DIR_LEFT'
- * 'right' / 'GTK_DIR_RIGHT'
enum Gtk2::Justification
- * 'left' / 'GTK_JUSTIFY_LEFT'
- * 'right' / 'GTK_JUSTIFY_RIGHT'
- * 'center' / 'GTK_JUSTIFY_CENTER'
- * 'fill' / 'GTK_JUSTIFY_FILL'
enum Gtk2::MovementStep
- * 'logical-positions' / 'GTK_MOVEMENT_LOGICAL_POSITIONS'
- * 'visual-positions' / 'GTK_MOVEMENT_VISUAL_POSITIONS'
- * 'words' / 'GTK_MOVEMENT_WORDS'
- * 'display-lines' / 'GTK_MOVEMENT_DISPLAY_LINES'
- * 'display-line-ends' / 'GTK_MOVEMENT_DISPLAY_LINE_ENDS'
- * 'paragraphs' / 'GTK_MOVEMENT_PARAGRAPHS'
- * 'paragraph-ends' / 'GTK_MOVEMENT_PARAGRAPH_ENDS'
- * 'pages' / 'GTK_MOVEMENT_PAGES'
- * 'buffer-ends' / 'GTK_MOVEMENT_BUFFER_ENDS'
- * 'horizontal-pages' / 'GTK_MOVEMENT_HORIZONTAL_PAGES'
enum Gtk2::TextWindowType
- * 'private' / 'GTK_TEXT_WINDOW_PRIVATE'
- * 'widget' / 'GTK_TEXT_WINDOW_WIDGET'
- * 'text' / 'GTK_TEXT_WINDOW_TEXT'
- * 'left' / 'GTK_TEXT_WINDOW_LEFT'
- * 'right' / 'GTK_TEXT_WINDOW_RIGHT'
- * 'top' / 'GTK_TEXT_WINDOW_TOP'
- * 'bottom' / 'GTK_TEXT_WINDOW_BOTTOM'
enum Gtk2::WrapMode
- * 'none' / 'GTK_WRAP_NONE'
- * 'char' / 'GTK_WRAP_CHAR'
- * 'word' / 'GTK_WRAP_WORD'
- * 'word-char' / 'GTK_WRAP_WORD_CHAR'
enum GtkScrollStep
- * 'steps' / 'GTK_SCROLL_STEPS'
- * 'pages' / 'GTK_SCROLL_PAGES'
- * 'ends' / 'GTK_SCROLL_ENDS'
- * 'horizontal-steps' / 'GTK_SCROLL_HORIZONTAL_STEPS'
- * 'horizontal-pages' / 'GTK_SCROLL_HORIZONTAL_PAGES'
- * 'horizontal-ends' / 'GTK_SCROLL_HORIZONTAL_ENDS'
SEE ALSO
Gtk2, Glib::Object, Glib::Object::_Unregistered::GInitiallyUnowned, Gtk2::Object, Gtk2::Widget, Gtk2::Container
COPYRIGHT
Copyright (C) 2003-2005 by the gtk2-perl team.
This software is licensed under the LGPL. See Gtk2 for a full notice.