use libc::c_double;
use std::ptr;
use ffi;
struct_Widget!(ScaleButton);
impl ScaleButton {
pub fn new(size: i32, min: f64, max: f64, step: f64) -> Option<ScaleButton> {
assert_initialized_main_thread!();
let tmp_pointer = unsafe { ffi::gtk_scale_button_new(size, min as c_double, max as c_double, step as c_double, ptr::null_mut()) };
check_pointer!(tmp_pointer, ScaleButton)
}
}
impl_drop!(ScaleButton);
impl_TraitWidget!(ScaleButton);
impl ::ContainerTrait for ScaleButton {}
impl ::ButtonTrait for ScaleButton {}
impl ::ScaleButtonTrait for ScaleButton {}
impl ::OrientableTrait for ScaleButton {}