Trait pango::LayoutExt
[−]
[src]
pub trait LayoutExt { fn context_changed(&self); fn copy(&self) -> Option<Layout>; fn get_alignment(&self) -> Alignment; fn get_attributes(&self) -> Option<AttrList>; fn get_auto_dir(&self) -> bool; fn get_baseline(&self) -> i32; fn get_character_count(&self) -> i32; fn get_context(&self) -> Option<Context>; fn get_cursor_pos(&self, index_: i32) -> (Rectangle, Rectangle); fn get_ellipsize(&self) -> EllipsizeMode; fn get_extents(&self) -> (Rectangle, Rectangle); fn get_font_description(&self) -> Option<FontDescription>; fn get_height(&self) -> i32; fn get_indent(&self) -> i32; fn get_iter(&self) -> Option<LayoutIter>; fn get_justify(&self) -> bool; fn get_line(&self, line: i32) -> Option<LayoutLine>; fn get_line_count(&self) -> i32; fn get_line_readonly(&self, line: i32) -> Option<LayoutLine>; fn get_lines(&self) -> Vec<LayoutLine>; fn get_lines_readonly(&self) -> Vec<LayoutLine>; fn get_pixel_extents(&self) -> (Rectangle, Rectangle); fn get_pixel_size(&self) -> (i32, i32); fn get_serial(&self) -> u32; fn get_single_paragraph_mode(&self) -> bool; fn get_size(&self) -> (i32, i32); fn get_spacing(&self) -> i32; fn get_tabs(&self) -> Option<TabArray>; fn get_text(&self) -> Option<String>; fn get_unknown_glyphs_count(&self) -> i32; fn get_width(&self) -> i32; fn get_wrap(&self) -> WrapMode; fn index_to_line_x(&self, index_: i32, trailing: bool) -> (i32, i32); fn index_to_pos(&self, index_: i32) -> Rectangle; fn is_ellipsized(&self) -> bool; fn is_wrapped(&self) -> bool; fn move_cursor_visually(
&self,
strong: bool,
old_index: i32,
old_trailing: i32,
direction: i32
) -> (i32, i32); fn set_alignment(&self, alignment: Alignment); fn set_attributes<'a, P: Into<Option<&'a AttrList>>>(&self, attrs: P); fn set_auto_dir(&self, auto_dir: bool); fn set_ellipsize(&self, ellipsize: EllipsizeMode); fn set_font_description<'a, P: Into<Option<&'a FontDescription>>>(
&self,
desc: P
); fn set_height(&self, height: i32); fn set_indent(&self, indent: i32); fn set_justify(&self, justify: bool); fn set_markup(&self, markup: &str, length: i32); fn set_markup_with_accel(
&self,
markup: &str,
length: i32,
accel_marker: char
) -> char; fn set_single_paragraph_mode(&self, setting: bool); fn set_spacing(&self, spacing: i32); fn set_tabs<'a, P: Into<Option<&'a TabArray>>>(&self, tabs: P); fn set_text(&self, text: &str, length: i32); fn set_width(&self, width: i32); fn set_wrap(&self, wrap: WrapMode); fn xy_to_index(&self, x: i32, y: i32) -> (bool, i32, i32); }
Required Methods
fn context_changed(&self)
fn copy(&self) -> Option<Layout>
fn get_alignment(&self) -> Alignment
fn get_attributes(&self) -> Option<AttrList>
fn get_auto_dir(&self) -> bool
fn get_baseline(&self) -> i32
fn get_character_count(&self) -> i32
fn get_context(&self) -> Option<Context>
fn get_cursor_pos(&self, index_: i32) -> (Rectangle, Rectangle)
fn get_ellipsize(&self) -> EllipsizeMode
fn get_extents(&self) -> (Rectangle, Rectangle)
fn get_font_description(&self) -> Option<FontDescription>
fn get_height(&self) -> i32
fn get_indent(&self) -> i32
fn get_iter(&self) -> Option<LayoutIter>
fn get_justify(&self) -> bool
fn get_line(&self, line: i32) -> Option<LayoutLine>
fn get_line_count(&self) -> i32
fn get_line_readonly(&self, line: i32) -> Option<LayoutLine>
fn get_lines(&self) -> Vec<LayoutLine>
fn get_lines_readonly(&self) -> Vec<LayoutLine>
fn get_pixel_extents(&self) -> (Rectangle, Rectangle)
fn get_pixel_size(&self) -> (i32, i32)
fn get_serial(&self) -> u32
fn get_single_paragraph_mode(&self) -> bool
fn get_size(&self) -> (i32, i32)
fn get_spacing(&self) -> i32
fn get_tabs(&self) -> Option<TabArray>
fn get_text(&self) -> Option<String>
fn get_unknown_glyphs_count(&self) -> i32
fn get_width(&self) -> i32
fn get_wrap(&self) -> WrapMode
fn index_to_line_x(&self, index_: i32, trailing: bool) -> (i32, i32)
fn index_to_pos(&self, index_: i32) -> Rectangle
fn is_ellipsized(&self) -> bool
fn is_wrapped(&self) -> bool
fn move_cursor_visually(
&self,
strong: bool,
old_index: i32,
old_trailing: i32,
direction: i32
) -> (i32, i32)
&self,
strong: bool,
old_index: i32,
old_trailing: i32,
direction: i32
) -> (i32, i32)
fn set_alignment(&self, alignment: Alignment)
fn set_attributes<'a, P: Into<Option<&'a AttrList>>>(&self, attrs: P)
fn set_auto_dir(&self, auto_dir: bool)
fn set_ellipsize(&self, ellipsize: EllipsizeMode)
fn set_font_description<'a, P: Into<Option<&'a FontDescription>>>(
&self,
desc: P
)
&self,
desc: P
)
fn set_height(&self, height: i32)
fn set_indent(&self, indent: i32)
fn set_justify(&self, justify: bool)
fn set_markup(&self, markup: &str, length: i32)
fn set_markup_with_accel(
&self,
markup: &str,
length: i32,
accel_marker: char
) -> char
&self,
markup: &str,
length: i32,
accel_marker: char
) -> char