Struct gtk::TextView
[−]
pub struct TextView(_, _);
Methods
impl TextView
[src]
fn new() -> TextView
fn new_with_buffer(buffer: &TextBuffer) -> TextView
fn add_child_at_anchor<P: IsA<Widget>>(
&self,
child: &P,
anchor: &TextChildAnchor
)
&self,
child: &P,
anchor: &TextChildAnchor
)
fn add_child_in_window<P: IsA<Widget>>(
&self,
child: &P,
which_window: TextWindowType,
xpos: i32,
ypos: i32
)
&self,
child: &P,
which_window: TextWindowType,
xpos: i32,
ypos: i32
)
fn backward_display_line(&self, iter: &mut TextIter) -> bool
fn backward_display_line_start(&self, iter: &mut TextIter) -> bool
fn buffer_to_window_coords(
&self,
win: TextWindowType,
buffer_x: i32,
buffer_y: i32
) -> (i32, i32)
&self,
win: TextWindowType,
buffer_x: i32,
buffer_y: i32
) -> (i32, i32)
fn forward_display_line(&self, iter: &mut TextIter) -> bool
fn forward_display_line_end(&self, iter: &mut TextIter) -> bool
fn get_accepts_tab(&self) -> bool
fn get_border_window_size(&self, type_: TextWindowType) -> i32
fn get_buffer(&self) -> Option<TextBuffer>
fn get_cursor_locations<'a, P: Into<Option<&'a TextIter>>>(
&self,
iter: P
) -> (Rectangle, Rectangle)
&self,
iter: P
) -> (Rectangle, Rectangle)
fn get_cursor_visible(&self) -> bool
fn get_default_attributes(&self) -> TextAttributes
fn get_editable(&self) -> bool
fn get_indent(&self) -> i32
fn get_iter_at_location(&self, x: i32, y: i32) -> Option<TextIter>
fn get_iter_at_position(&self, x: i32, y: i32) -> Option<(TextIter, i32)>
fn get_iter_location(&self, iter: &TextIter) -> Rectangle
fn get_justification(&self) -> Justification
fn get_left_margin(&self) -> i32
fn get_line_at_y(&self, y: i32) -> (TextIter, i32)
fn get_line_yrange(&self, iter: &TextIter) -> (i32, i32)
fn get_overwrite(&self) -> bool
fn get_pixels_above_lines(&self) -> i32
fn get_pixels_below_lines(&self) -> i32
fn get_pixels_inside_wrap(&self) -> i32
fn get_right_margin(&self) -> i32
fn get_visible_rect(&self) -> Rectangle
fn get_window(&self, win: TextWindowType) -> Option<Window>
fn get_window_type(&self, window: &Window) -> TextWindowType
fn get_wrap_mode(&self) -> WrapMode
fn im_context_filter_keypress(&self, event: &EventKey) -> bool
fn move_child<P: IsA<Widget>>(&self, child: &P, xpos: i32, ypos: i32)
fn move_mark_onscreen(&self, mark: &TextMark) -> bool
fn move_visually(&self, iter: &mut TextIter, count: i32) -> bool
fn place_cursor_onscreen(&self) -> bool
fn reset_im_context(&self)
fn scroll_mark_onscreen(&self, mark: &TextMark)
fn scroll_to_iter(
&self,
iter: &mut TextIter,
within_margin: f64,
use_align: bool,
xalign: f64,
yalign: f64
) -> bool
&self,
iter: &mut TextIter,
within_margin: f64,
use_align: bool,
xalign: f64,
yalign: f64
) -> bool
fn scroll_to_mark(
&self,
mark: &TextMark,
within_margin: f64,
use_align: bool,
xalign: f64,
yalign: f64
)
&self,
mark: &TextMark,
within_margin: f64,
use_align: bool,
xalign: f64,
yalign: f64
)
fn set_accepts_tab(&self, accepts_tab: bool)
fn set_border_window_size(&self, type_: TextWindowType, size: i32)
fn set_buffer<'a, P: Into<Option<&'a TextBuffer>>>(&self, buffer: P)
fn set_cursor_visible(&self, setting: bool)
fn set_editable(&self, setting: bool)
fn set_indent(&self, indent: i32)
fn set_justification(&self, justification: Justification)
fn set_left_margin(&self, left_margin: i32)
fn set_overwrite(&self, overwrite: bool)
fn set_pixels_above_lines(&self, pixels_above_lines: i32)
fn set_pixels_below_lines(&self, pixels_below_lines: i32)
fn set_pixels_inside_wrap(&self, pixels_inside_wrap: i32)
fn set_right_margin(&self, right_margin: i32)
fn set_wrap_mode(&self, wrap_mode: WrapMode)
fn starts_display_line(&self, iter: &TextIter) -> bool
fn window_to_buffer_coords(
&self,
win: TextWindowType,
window_x: i32,
window_y: i32
) -> (i32, i32)
&self,
win: TextWindowType,
window_x: i32,
window_y: i32
) -> (i32, i32)
fn get_property_im_module(&self) -> Option<String>
fn set_property_im_module(&self, im_module: Option<&str>)
fn get_property_monospace(&self) -> bool
fn set_property_monospace(&self, monospace: bool)
fn connect_backspace<F: Fn(&TextView) + 'static>(&self, f: F) -> u64
fn connect_copy_clipboard<F: Fn(&TextView) + 'static>(&self, f: F) -> u64
fn connect_cut_clipboard<F: Fn(&TextView) + 'static>(&self, f: F) -> u64
fn connect_delete_from_cursor<F: Fn(&TextView, DeleteType, i32) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_insert_at_cursor<F: Fn(&TextView, &str) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_move_cursor<F: Fn(&TextView, MovementStep, i32, bool) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_move_viewport<F: Fn(&TextView, ScrollStep, i32) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_paste_clipboard<F: Fn(&TextView) + 'static>(&self, f: F) -> u64
fn connect_populate_popup<F: Fn(&TextView, &Widget) + 'static>(
&self,
f: F
) -> u64
&self,
f: F
) -> u64
fn connect_preedit_changed<F: Fn(&TextView, &str) + 'static>(&self, f: F) -> u64
fn connect_select_all<F: Fn(&TextView, bool) + 'static>(&self, f: F) -> u64
fn connect_set_anchor<F: Fn(&TextView) + 'static>(&self, f: F) -> u64
fn connect_toggle_cursor_visible<F: Fn(&TextView) + 'static>(&self, f: F) -> u64
fn connect_toggle_overwrite<F: Fn(&TextView) + 'static>(&self, f: F) -> u64
Trait Implementations
impl Clone for TextView
fn clone(&self) -> TextView
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for TextView
impl Hash for TextView
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl StaticType for TextView
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for TextView
fn eq(&self, other: &T) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.