gtk 0.18.2

UNMAINTAINED Rust bindings for the GTK+ 3 library (use gtk4 instead)
Documentation
// Take a look at the license at the top of the repository in the LICENSE file.

use glib::translate::*;
use std::fmt;

glib::wrapper! {
    #[doc(alias = "GtkPageRange")]
    pub struct PageRange(BoxedInline<ffi::GtkPageRange>);
}

impl PageRange {
    pub fn new(start: i32, end: i32) -> PageRange {
        skip_assert_initialized!();
        unsafe { PageRange::unsafe_from(ffi::GtkPageRange { start, end }) }
    }

    #[doc(alias = "get_start")]
    pub fn start(&self) -> i32 {
        self.inner.start
    }

    #[doc(alias = "get_end")]
    pub fn end(&self) -> i32 {
        self.inner.end
    }
}

impl fmt::Debug for PageRange {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        f.debug_struct("PageRange")
            .field("start", &self.start())
            .field("end", &self.end())
            .finish()
    }
}