1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use crate::CellRendererPixbuf;
use crate::IconSize;
use glib::object::{IsA, ObjectExt};
use glib::translate::*;
pub trait CellRendererPixbufExtManual: 'static {
#[doc(alias = "get_property_stock_size")]
fn property_stock_size(&self) -> IconSize;
fn set_property_stock_size(&self, stock_size: IconSize);
}
impl<O: IsA<CellRendererPixbuf> + IsA<glib::object::Object>> CellRendererPixbufExtManual for O {
fn property_stock_size(&self) -> IconSize {
unsafe { from_glib(self.property::<u32>("stock-size") as i32) }
}
fn set_property_stock_size(&self, stock_size: IconSize) {
self.set_property("stock-size", stock_size.into_glib() as u32);
}
}