Struct pango::Layout
[−]
pub struct Layout(_, _);
Methods
impl Layout
[src]
fn new(context: &Context) -> Layout
fn context_changed(&self)
fn copy(&self) -> Option<Layout>
fn get_alignment(&self) -> Alignment
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_single_paragraph_mode(&self) -> bool
fn get_size(&self) -> (i32, i32)
fn get_spacing(&self) -> i32
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)
strong: bool,
old_index: i32,
old_trailing: i32,
direction: i32)
-> (i32, i32)
fn set_alignment(&self, alignment: Alignment)
fn set_auto_dir(&self, auto_dir: bool)
fn set_ellipsize(&self, ellipsize: EllipsizeMode)
fn set_font_description(&self, desc: Option<&FontDescription>)
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
markup: &str,
length: i32,
accel_marker: char)
-> char
fn set_single_paragraph_mode(&self, setting: bool)
fn set_spacing(&self, spacing: i32)
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) -> Option<(i32, i32)>
Trait Implementations
impl Clone for Layout
fn clone(&self) -> Layout
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 Layout
impl Hash for Layout
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl StaticType for Layout
fn static_type() -> Type
Returns the type identifier of Self
.
impl<T: IsA<Object>> PartialEq<T> for Layout
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 !=
.