use Actionable;
use Bin;
use Button;
use Container;
use Orientable;
use ScaleButton;
use Widget;
use ffi;
use glib::object::Downcast;
use glib::translate::*;
glib_wrapper! {
pub struct VolumeButton(Object<ffi::GtkVolumeButton>): ScaleButton, Button, Bin, Container, Widget, Actionable, Orientable;
match fn {
get_type => || ffi::gtk_volume_button_get_type(),
}
}
impl VolumeButton {
pub fn new() -> VolumeButton {
assert_initialized_main_thread!();
unsafe {
Widget::from_glib_none(ffi::gtk_volume_button_new()).downcast_unchecked()
}
}
}