use ImageType;
use Orientation;
use Tooltip;
use ffi;
use gdk;
use gdk_ffi;
use gdk_pixbuf;
use gio;
use glib;
use glib::GString;
use glib::StaticType;
use glib::Value;
use glib::object::Cast;
use glib::object::IsA;
use glib::object::ObjectExt;
use glib::signal::SignalHandlerId;
use glib::signal::connect_raw;
use glib::translate::*;
use glib_ffi;
use gobject_ffi;
use libc;
use std::boxed::Box as Box_;
use std::fmt;
use std::mem::transmute;
glib_wrapper! {
pub struct StatusIcon(Object<ffi::GtkStatusIcon, ffi::GtkStatusIconClass, StatusIconClass>);
match fn {
get_type => || ffi::gtk_status_icon_get_type(),
}
}
pub const NONE_STATUS_ICON: Option<&StatusIcon> = None;
pub trait StatusIconExt: 'static {
fn get_property_embedded(&self) -> bool;
fn set_property_file<'a, P: Into<Option<&'a str>>>(&self, file: P);
fn get_property_gicon(&self) -> Option<gio::Icon>;
fn set_property_gicon<P: IsA<gio::Icon> + glib::value::SetValueOptional>(&self, gicon: Option<&P>);
fn get_property_has_tooltip(&self) -> bool;
fn set_property_has_tooltip(&self, has_tooltip: bool);
fn get_property_icon_name(&self) -> Option<GString>;
fn set_property_icon_name<'a, P: Into<Option<&'a str>>>(&self, icon_name: P);
fn get_property_orientation(&self) -> Orientation;
fn get_property_pixbuf(&self) -> Option<gdk_pixbuf::Pixbuf>;
fn set_property_pixbuf(&self, pixbuf: Option<&gdk_pixbuf::Pixbuf>);
fn get_property_screen(&self) -> Option<gdk::Screen>;
fn set_property_screen(&self, screen: Option<&gdk::Screen>);
fn get_property_size(&self) -> i32;
fn get_property_storage_type(&self) -> ImageType;
fn get_property_title(&self) -> Option<GString>;
fn set_property_title<'a, P: Into<Option<&'a str>>>(&self, title: P);
fn get_property_tooltip_markup(&self) -> Option<GString>;
fn set_property_tooltip_markup<'a, P: Into<Option<&'a str>>>(&self, tooltip_markup: P);
fn get_property_tooltip_text(&self) -> Option<GString>;
fn set_property_tooltip_text<'a, P: Into<Option<&'a str>>>(&self, tooltip_text: P);
fn get_property_visible(&self) -> bool;
fn set_property_visible(&self, visible: bool);
fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_activate(&self);
fn connect_button_press_event<F: Fn(&Self, &gdk::EventButton) -> bool + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_button_release_event<F: Fn(&Self, &gdk::EventButton) -> bool + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_popup_menu<F: Fn(&Self, u32, u32) + 'static>(&self, f: F) -> SignalHandlerId;
fn emit_popup_menu(&self, button: u32, activate_time: u32);
fn connect_query_tooltip<F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_scroll_event<F: Fn(&Self, &gdk::EventScroll) -> bool + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_size_changed<F: Fn(&Self, i32) -> bool + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_embedded_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_file_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_gicon_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_has_tooltip_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_orientation_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_pixbuf_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_screen_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_storage_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_tooltip_markup_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_tooltip_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_property_visible_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<StatusIcon>> StatusIconExt for O {
fn get_property_embedded(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"embedded\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_file<'a, P: Into<Option<&'a str>>>(&self, file: P) {
let file = file.into();
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"file\0".as_ptr() as *const _, Value::from(file).to_glib_none().0);
}
}
fn get_property_gicon(&self) -> Option<gio::Icon> {
unsafe {
let mut value = Value::from_type(<gio::Icon as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"gicon\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_gicon<P: IsA<gio::Icon> + glib::value::SetValueOptional>(&self, gicon: Option<&P>) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"gicon\0".as_ptr() as *const _, Value::from(gicon).to_glib_none().0);
}
}
fn get_property_has_tooltip(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"has-tooltip\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_has_tooltip(&self, has_tooltip: bool) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"has-tooltip\0".as_ptr() as *const _, Value::from(&has_tooltip).to_glib_none().0);
}
}
fn get_property_icon_name(&self) -> Option<GString> {
unsafe {
let mut value = Value::from_type(<GString as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"icon-name\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_icon_name<'a, P: Into<Option<&'a str>>>(&self, icon_name: P) {
let icon_name = icon_name.into();
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"icon-name\0".as_ptr() as *const _, Value::from(icon_name).to_glib_none().0);
}
}
fn get_property_orientation(&self) -> Orientation {
unsafe {
let mut value = Value::from_type(<Orientation as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"orientation\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn get_property_pixbuf(&self) -> Option<gdk_pixbuf::Pixbuf> {
unsafe {
let mut value = Value::from_type(<gdk_pixbuf::Pixbuf as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"pixbuf\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_pixbuf(&self, pixbuf: Option<&gdk_pixbuf::Pixbuf>) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"pixbuf\0".as_ptr() as *const _, Value::from(pixbuf).to_glib_none().0);
}
}
fn get_property_screen(&self) -> Option<gdk::Screen> {
unsafe {
let mut value = Value::from_type(<gdk::Screen as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"screen\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_screen(&self, screen: Option<&gdk::Screen>) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"screen\0".as_ptr() as *const _, Value::from(screen).to_glib_none().0);
}
}
fn get_property_size(&self) -> i32 {
unsafe {
let mut value = Value::from_type(<i32 as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"size\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn get_property_storage_type(&self) -> ImageType {
unsafe {
let mut value = Value::from_type(<ImageType as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"storage-type\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn get_property_title(&self) -> Option<GString> {
unsafe {
let mut value = Value::from_type(<GString as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"title\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_title<'a, P: Into<Option<&'a str>>>(&self, title: P) {
let title = title.into();
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"title\0".as_ptr() as *const _, Value::from(title).to_glib_none().0);
}
}
fn get_property_tooltip_markup(&self) -> Option<GString> {
unsafe {
let mut value = Value::from_type(<GString as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"tooltip-markup\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_tooltip_markup<'a, P: Into<Option<&'a str>>>(&self, tooltip_markup: P) {
let tooltip_markup = tooltip_markup.into();
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"tooltip-markup\0".as_ptr() as *const _, Value::from(tooltip_markup).to_glib_none().0);
}
}
fn get_property_tooltip_text(&self) -> Option<GString> {
unsafe {
let mut value = Value::from_type(<GString as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"tooltip-text\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get()
}
}
fn set_property_tooltip_text<'a, P: Into<Option<&'a str>>>(&self, tooltip_text: P) {
let tooltip_text = tooltip_text.into();
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"tooltip-text\0".as_ptr() as *const _, Value::from(tooltip_text).to_glib_none().0);
}
}
fn get_property_visible(&self) -> bool {
unsafe {
let mut value = Value::from_type(<bool as StaticType>::static_type());
gobject_ffi::g_object_get_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"visible\0".as_ptr() as *const _, value.to_glib_none_mut().0);
value.get().unwrap()
}
}
fn set_property_visible(&self, visible: bool) {
unsafe {
gobject_ffi::g_object_set_property(self.to_glib_none().0 as *mut gobject_ffi::GObject, b"visible\0".as_ptr() as *const _, Value::from(&visible).to_glib_none().0);
}
}
fn connect_activate<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"activate\0".as_ptr() as *const _,
Some(transmute(activate_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn emit_activate(&self) {
let _ = unsafe { glib::Object::from_glib_borrow(self.to_glib_none().0 as *mut gobject_ffi::GObject).emit("activate", &[]).unwrap() };
}
fn connect_button_press_event<F: Fn(&Self, &gdk::EventButton) -> bool + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"button-press-event\0".as_ptr() as *const _,
Some(transmute(button_press_event_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_button_release_event<F: Fn(&Self, &gdk::EventButton) -> bool + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"button-release-event\0".as_ptr() as *const _,
Some(transmute(button_release_event_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_popup_menu<F: Fn(&Self, u32, u32) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"popup-menu\0".as_ptr() as *const _,
Some(transmute(popup_menu_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn emit_popup_menu(&self, button: u32, activate_time: u32) {
let _ = unsafe { glib::Object::from_glib_borrow(self.to_glib_none().0 as *mut gobject_ffi::GObject).emit("popup-menu", &[&button, &activate_time]).unwrap() };
}
fn connect_query_tooltip<F: Fn(&Self, i32, i32, bool, &Tooltip) -> bool + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"query-tooltip\0".as_ptr() as *const _,
Some(transmute(query_tooltip_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_scroll_event<F: Fn(&Self, &gdk::EventScroll) -> bool + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"scroll-event\0".as_ptr() as *const _,
Some(transmute(scroll_event_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_size_changed<F: Fn(&Self, i32) -> bool + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"size-changed\0".as_ptr() as *const _,
Some(transmute(size_changed_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_embedded_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::embedded\0".as_ptr() as *const _,
Some(transmute(notify_embedded_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_file_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::file\0".as_ptr() as *const _,
Some(transmute(notify_file_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_gicon_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::gicon\0".as_ptr() as *const _,
Some(transmute(notify_gicon_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_has_tooltip_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::has-tooltip\0".as_ptr() as *const _,
Some(transmute(notify_has_tooltip_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_icon_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::icon-name\0".as_ptr() as *const _,
Some(transmute(notify_icon_name_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_orientation_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::orientation\0".as_ptr() as *const _,
Some(transmute(notify_orientation_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_pixbuf_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::pixbuf\0".as_ptr() as *const _,
Some(transmute(notify_pixbuf_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_screen_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::screen\0".as_ptr() as *const _,
Some(transmute(notify_screen_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_size_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::size\0".as_ptr() as *const _,
Some(transmute(notify_size_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_storage_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::storage-type\0".as_ptr() as *const _,
Some(transmute(notify_storage_type_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_title_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::title\0".as_ptr() as *const _,
Some(transmute(notify_title_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_tooltip_markup_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::tooltip-markup\0".as_ptr() as *const _,
Some(transmute(notify_tooltip_markup_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_tooltip_text_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::tooltip-text\0".as_ptr() as *const _,
Some(transmute(notify_tooltip_text_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
fn connect_property_visible_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::visible\0".as_ptr() as *const _,
Some(transmute(notify_visible_trampoline::<Self, F> as usize)), Box_::into_raw(f))
}
}
}
unsafe extern "C" fn activate_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn button_press_event_trampoline<P, F: Fn(&P, &gdk::EventButton) -> bool + 'static>(this: *mut ffi::GtkStatusIcon, event: *mut gdk_ffi::GdkEventButton, f: glib_ffi::gpointer) -> glib_ffi::gboolean
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(event)).to_glib()
}
unsafe extern "C" fn button_release_event_trampoline<P, F: Fn(&P, &gdk::EventButton) -> bool + 'static>(this: *mut ffi::GtkStatusIcon, event: *mut gdk_ffi::GdkEventButton, f: glib_ffi::gpointer) -> glib_ffi::gboolean
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(event)).to_glib()
}
unsafe extern "C" fn popup_menu_trampoline<P, F: Fn(&P, u32, u32) + 'static>(this: *mut ffi::GtkStatusIcon, button: libc::c_uint, activate_time: libc::c_uint, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast(), button, activate_time)
}
unsafe extern "C" fn query_tooltip_trampoline<P, F: Fn(&P, i32, i32, bool, &Tooltip) -> bool + 'static>(this: *mut ffi::GtkStatusIcon, x: libc::c_int, y: libc::c_int, keyboard_mode: glib_ffi::gboolean, tooltip: *mut ffi::GtkTooltip, f: glib_ffi::gpointer) -> glib_ffi::gboolean
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast(), x, y, from_glib(keyboard_mode), &from_glib_borrow(tooltip)).to_glib()
}
unsafe extern "C" fn scroll_event_trampoline<P, F: Fn(&P, &gdk::EventScroll) -> bool + 'static>(this: *mut ffi::GtkStatusIcon, event: *mut gdk_ffi::GdkEventScroll, f: glib_ffi::gpointer) -> glib_ffi::gboolean
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast(), &from_glib_borrow(event)).to_glib()
}
unsafe extern "C" fn size_changed_trampoline<P, F: Fn(&P, i32) -> bool + 'static>(this: *mut ffi::GtkStatusIcon, size: libc::c_int, f: glib_ffi::gpointer) -> glib_ffi::gboolean
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast(), size).to_glib()
}
unsafe extern "C" fn notify_embedded_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_file_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_gicon_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_has_tooltip_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_icon_name_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_orientation_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_pixbuf_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_screen_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_size_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_storage_type_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_title_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_tooltip_markup_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_tooltip_text_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
unsafe extern "C" fn notify_visible_trampoline<P, F: Fn(&P) + 'static>(this: *mut ffi::GtkStatusIcon, _param_spec: glib_ffi::gpointer, f: glib_ffi::gpointer)
where P: IsA<StatusIcon> {
let f: &F = transmute(f);
f(&StatusIcon::from_glib_borrow(this).unsafe_cast())
}
impl fmt::Display for StatusIcon {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "StatusIcon")
}
}