Skip to content

Commit

Permalink
regenerate set manual impl for some functions
Browse files Browse the repository at this point in the history
  • Loading branch information
fengalin committed Dec 2, 2024
1 parent 3f1a645 commit 2219b55
Showing 1 changed file with 1 addition and 48 deletions.
49 changes: 1 addition & 48 deletions pango/src/auto/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@
// from gir-files (https://github.com/gtk-rs/gir-files)
// DO NOT EDIT

use crate::{
ffi, Analysis, AttrIterator, AttrList, Context, Direction, GlyphString, Item, Stretch, Style,
Variant, Weight,
};
use crate::{ffi, Analysis, AttrList, Direction, GlyphString, Stretch, Style, Variant, Weight};
use glib::translate::*;

//#[cfg_attr(feature = "v1_44", deprecated = "Since 1.44")]
Expand Down Expand Up @@ -57,50 +54,6 @@ pub fn is_zero_width(ch: char) -> bool {
unsafe { from_glib(ffi::pango_is_zero_width(ch.into_glib())) }
}

#[doc(alias = "pango_itemize")]
pub fn itemize<'a>(
context: &Context,
text: &str,
start_index: i32,
length: i32,
attrs: &AttrList,
cached_iter: impl Into<Option<&'a AttrIterator>>,
) -> Vec<Item> {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::pango_itemize(
context.to_glib_none().0,
text.to_glib_none().0,
start_index,
length,
attrs.to_glib_none().0,
mut_override(cached_iter.into().to_glib_none().0),
))
}
}

#[doc(alias = "pango_itemize_with_base_dir")]
pub fn itemize_with_base_dir<'a>(
context: &Context,
base_dir: Direction,
text: &str,
start_index: i32,
length: i32,
attrs: &AttrList,
cached_iter: impl Into<Option<&'a AttrIterator>>,
) -> Vec<Item> {
unsafe {
FromGlibPtrContainer::from_glib_full(ffi::pango_itemize_with_base_dir(
context.to_glib_none().0,
base_dir.into_glib(),
text.to_glib_none().0,
start_index,
length,
attrs.to_glib_none().0,
mut_override(cached_iter.into().to_glib_none().0),
))
}
}

#[doc(alias = "pango_markup_parser_finish")]
pub fn markup_parser_finish(
context: &glib::MarkupParseContext,
Expand Down

0 comments on commit 2219b55

Please sign in to comment.