use libc::c_double;
use std::ptr;
use ffi;
use IconSize;
struct_Widget!(ScaleButton);
impl ScaleButton {
pub fn new(size: IconSize, min: f64, max: f64, step: f64) -> Option<ScaleButton> {
let tmp_pointer = unsafe { ffi::gtk_scale_button_new(size, min as c_double, max as c_double, step as c_double, ptr::null()) };
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 {}