gtk/
text_iter.rs

1// Copyright 2013-2016, The Gtk-rs Project Developers.
2// See the COPYRIGHT file at the top-level directory of this distribution.
3// Licensed under the MIT license, see the LICENSE file or <http://opensource.org/licenses/MIT>
4
5use glib::translate::*;
6use gtk_sys;
7use TextAttributes;
8use TextIter;
9
10impl TextIter {
11    pub fn get_attributes(&self, values: &TextAttributes) -> bool {
12        unsafe {
13            from_glib(gtk_sys::gtk_text_iter_get_attributes(
14                self.to_glib_none().0,
15                mut_override(values.to_glib_none().0),
16            ))
17        }
18    }
19}