|
2 | 2 | // from gir-files (https://github.com/gtk-rs/gir-files)
|
3 | 3 | // DO NOT EDIT
|
4 | 4 |
|
5 |
| -use crate::{ |
6 |
| - ffi, Analysis, AttrIterator, AttrList, Context, Direction, GlyphString, Item, Stretch, Style, |
7 |
| - Variant, Weight, |
8 |
| -}; |
| 5 | +use crate::{ffi, Analysis, AttrList, Direction, GlyphString, Stretch, Style, Variant, Weight}; |
9 | 6 | use glib::translate::*;
|
10 | 7 |
|
11 | 8 | //#[cfg_attr(feature = "v1_44", deprecated = "Since 1.44")]
|
@@ -57,50 +54,6 @@ pub fn is_zero_width(ch: char) -> bool {
|
57 | 54 | unsafe { from_glib(ffi::pango_is_zero_width(ch.into_glib())) }
|
58 | 55 | }
|
59 | 56 |
|
60 |
| -#[doc(alias = "pango_itemize")] |
61 |
| -pub fn itemize<'a>( |
62 |
| - context: &Context, |
63 |
| - text: &str, |
64 |
| - start_index: i32, |
65 |
| - length: i32, |
66 |
| - attrs: &AttrList, |
67 |
| - cached_iter: impl Into<Option<&'a AttrIterator>>, |
68 |
| -) -> Vec<Item> { |
69 |
| - unsafe { |
70 |
| - FromGlibPtrContainer::from_glib_full(ffi::pango_itemize( |
71 |
| - context.to_glib_none().0, |
72 |
| - text.to_glib_none().0, |
73 |
| - start_index, |
74 |
| - length, |
75 |
| - attrs.to_glib_none().0, |
76 |
| - mut_override(cached_iter.into().to_glib_none().0), |
77 |
| - )) |
78 |
| - } |
79 |
| -} |
80 |
| - |
81 |
| -#[doc(alias = "pango_itemize_with_base_dir")] |
82 |
| -pub fn itemize_with_base_dir<'a>( |
83 |
| - context: &Context, |
84 |
| - base_dir: Direction, |
85 |
| - text: &str, |
86 |
| - start_index: i32, |
87 |
| - length: i32, |
88 |
| - attrs: &AttrList, |
89 |
| - cached_iter: impl Into<Option<&'a AttrIterator>>, |
90 |
| -) -> Vec<Item> { |
91 |
| - unsafe { |
92 |
| - FromGlibPtrContainer::from_glib_full(ffi::pango_itemize_with_base_dir( |
93 |
| - context.to_glib_none().0, |
94 |
| - base_dir.into_glib(), |
95 |
| - text.to_glib_none().0, |
96 |
| - start_index, |
97 |
| - length, |
98 |
| - attrs.to_glib_none().0, |
99 |
| - mut_override(cached_iter.into().to_glib_none().0), |
100 |
| - )) |
101 |
| - } |
102 |
| -} |
103 |
| - |
104 | 57 | #[doc(alias = "pango_markup_parser_finish")]
|
105 | 58 | pub fn markup_parser_finish(
|
106 | 59 | context: &glib::MarkupParseContext,
|
|
0 commit comments