use ArrowType;
use Misc;
use ShadowType;
use Widget;
use ffi;
use glib::object::Downcast;
use glib::translate::*;
glib_wrapper! {
pub struct Arrow(Object<ffi::GtkArrow>): Misc, Widget;
match fn {
get_type => || ffi::gtk_arrow_get_type(),
}
}
impl Arrow {
pub fn new(arrow_type: ArrowType, shadow_type: ShadowType) -> Arrow {
assert_initialized_main_thread!();
unsafe {
Widget::from_glib_none(ffi::gtk_arrow_new(arrow_type.to_glib(), shadow_type.to_glib())).downcast_unchecked()
}
}
pub fn set(&self, arrow_type: ArrowType, shadow_type: ShadowType) {
unsafe {
ffi::gtk_arrow_set(self.to_glib_none().0, arrow_type.to_glib(), shadow_type.to_glib());
}
}
}