1use glib::translate::*;
6use pango_sys;
7use std::mem;
8use AttrList;
9use Attribute;
10
11impl AttrList {
12 pub fn change(&self, attr: Attribute) {
13 unsafe {
14 pango_sys::pango_attr_list_change(
15 self.to_glib_none().0,
16 attr.to_glib_none().0 as *mut _,
17 );
18 mem::forget(attr); }
20 }
21
22 pub fn insert(&self, attr: Attribute) {
23 unsafe {
24 pango_sys::pango_attr_list_insert(
25 self.to_glib_none().0,
26 attr.to_glib_none().0 as *mut _,
27 );
28 mem::forget(attr); }
30 }
31
32 pub fn insert_before(&self, attr: Attribute) {
33 unsafe {
34 pango_sys::pango_attr_list_insert_before(
35 self.to_glib_none().0,
36 attr.to_glib_none().0 as *mut _,
37 );
38 mem::forget(attr); }
40 }
41}