We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3a291a + d8023a1 commit 9703c49Copy full SHA for 9703c49
pango/src/layout.rs
@@ -2,7 +2,7 @@
2
3
use glib::translate::*;
4
5
-use crate::LayoutLine;
+use crate::{LayoutLine, LayoutRun};
6
7
// rustdoc-stripper-ignore-next
8
/// The result of [`LayoutLine::x_to_index`].
@@ -66,6 +66,10 @@ impl LayoutLine {
66
unsafe { (*self.to_glib_none().0).length }
67
}
68
69
+ #[doc(alias = "pango_layout_line_runs")]
70
+ pub fn runs(&self) -> Vec<LayoutRun> {
71
+ unsafe { FromGlibPtrContainer::from_glib_none((*self.to_glib_none().0).runs) }
72
+ }
73
#[doc(alias = "pango_layout_line_x_to_index")]
74
pub fn x_to_index(&self, x_pos: i32) -> HitPosition {
75
let mut index = 0;
0 commit comments