Skip to content

Commit cdb19a7

Browse files
authored
Merge pull request #572 from songww/add_getter_for_glyph_item_iter
pango: Add missing getter for GlyphItemIter.
2 parents 9703c49 + 66363aa commit cdb19a7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

pango/src/glyph_item_iter.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,23 @@ impl GlyphItemIter {
4141
}
4242
}
4343
}
44+
45+
pub fn start_char(&self) -> i32 {
46+
unsafe { (*self.to_glib_none().0).start_char }
47+
}
48+
pub fn end_char(&self) -> i32 {
49+
unsafe { (*self.to_glib_none().0).end_char }
50+
}
51+
pub fn start_glyph(&self) -> i32 {
52+
unsafe { (*self.to_glib_none().0).start_glyph }
53+
}
54+
pub fn end_glyph(&self) -> i32 {
55+
unsafe { (*self.to_glib_none().0).end_glyph }
56+
}
57+
pub fn start_index(&self) -> i32 {
58+
unsafe { (*self.to_glib_none().0).start_index }
59+
}
60+
pub fn end_index(&self) -> i32 {
61+
unsafe { (*self.to_glib_none().0).start_index }
62+
}
4463
}

0 commit comments

Comments
 (0)