Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Commit 0e38042

Browse files
author
Velislava Yanchina
committed
size
1 parent bc2a084 commit 0e38042

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/attribute.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@ impl Attribute {
6565
unsafe { from_glib_full(pango_sys::pango_attr_scale_new(scale_factor)) }
6666
}
6767

68+
pub fn new_size(size: i32) -> Option<Attribute> {
69+
unsafe { from_glib_full(pango_sys::pango_attr_size_new(size)) }
70+
}
71+
72+
pub fn new_size_absolute(size: i32) -> Option<Attribute> {
73+
unsafe { from_glib_full(pango_sys::pango_attr_size_new_absolute(size)) }
74+
}
75+
6876
pub fn new_stretch(stretch: Stretch) -> Option<Attribute> {
6977
unsafe { from_glib_full(pango_sys::pango_attr_stretch_new(stretch.to_glib())) }
7078
}

0 commit comments

Comments
 (0)