use crate::DOMDocument;
use crate::DOMElement;
use crate::DOMEventTarget;
use crate::DOMHTMLElement;
use crate::DOMHTMLFormElement;
use crate::DOMNode;
use crate::DOMObject;
use glib::object::Cast;
use glib::object::IsA;
use glib::signal::connect_raw;
use glib::signal::SignalHandlerId;
use glib::translate::*;
use glib::StaticType;
use glib::ToValue;
use std::boxed::Box as Box_;
use std::fmt;
use std::mem::transmute;
glib::wrapper! {
#[doc(alias = "WebKitDOMHTMLObjectElement")]
pub struct DOMHTMLObjectElement(Object<ffi::WebKitDOMHTMLObjectElement, ffi::WebKitDOMHTMLObjectElementClass>) @extends DOMHTMLElement, DOMElement, DOMNode, DOMObject, @implements DOMEventTarget;
match fn {
type_ => || ffi::webkit_dom_html_object_element_get_type(),
}
}
impl DOMHTMLObjectElement {
pub const NONE: Option<&'static DOMHTMLObjectElement> = None;
}
pub trait DOMHTMLObjectElementExt: 'static {
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_align")]
#[doc(alias = "get_align")]
fn align(&self) -> Option<glib::GString>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_archive")]
#[doc(alias = "get_archive")]
fn archive(&self) -> Option<glib::GString>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_border")]
#[doc(alias = "get_border")]
fn border(&self) -> Option<glib::GString>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_code")]
#[doc(alias = "get_code")]
fn code(&self) -> Option<glib::GString>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_code_base")]
#[doc(alias = "get_code_base")]
fn code_base(&self) -> Option<glib::GString>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_code_type")]
#[doc(alias = "get_code_type")]
fn code_type(&self) -> Option<glib::GString>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_content_document")]
#[doc(alias = "get_content_document")]
fn content_document(&self) -> Option<DOMDocument>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_data")]
#[doc(alias = "get_data")]
fn data(&self) -> Option<glib::GString>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_declare")]
#[doc(alias = "get_declare")]
fn is_declare(&self) -> bool;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_form")]
#[doc(alias = "get_form")]
fn form(&self) -> Option<DOMHTMLFormElement>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_height")]
#[doc(alias = "get_height")]
fn height(&self) -> Option<glib::GString>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_hspace")]
#[doc(alias = "get_hspace")]
fn hspace(&self) -> libc::c_long;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_name")]
#[doc(alias = "get_name")]
fn name(&self) -> Option<glib::GString>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_standby")]
#[doc(alias = "get_standby")]
fn standby(&self) -> Option<glib::GString>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_type_attr")]
#[doc(alias = "get_type_attr")]
fn type_attr(&self) -> Option<glib::GString>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_use_map")]
#[doc(alias = "get_use_map")]
fn use_map(&self) -> Option<glib::GString>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_vspace")]
#[doc(alias = "get_vspace")]
fn vspace(&self) -> libc::c_long;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_get_width")]
#[doc(alias = "get_width")]
fn width(&self) -> Option<glib::GString>;
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_align")]
fn set_align(&self, value: &str);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_archive")]
fn set_archive(&self, value: &str);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_border")]
fn set_border(&self, value: &str);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_code")]
fn set_code(&self, value: &str);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_code_base")]
fn set_code_base(&self, value: &str);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_code_type")]
fn set_code_type(&self, value: &str);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_data")]
fn set_data(&self, value: &str);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_declare")]
fn set_declare(&self, value: bool);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_height")]
fn set_height(&self, value: &str);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_hspace")]
fn set_hspace(&self, value: libc::c_long);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_name")]
fn set_name(&self, value: &str);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_standby")]
fn set_standby(&self, value: &str);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_type_attr")]
fn set_type_attr(&self, value: &str);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_use_map")]
fn set_use_map(&self, value: &str);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_vspace")]
fn set_vspace(&self, value: libc::c_long);
#[cfg_attr(feature = "v2_22", deprecated = "Since 2.22")]
#[doc(alias = "webkit_dom_html_object_element_set_width")]
fn set_width(&self, value: &str);
#[doc(alias = "type")]
fn type_(&self) -> Option<glib::GString>;
#[doc(alias = "type")]
fn set_type(&self, type_: Option<&str>);
#[doc(alias = "align")]
fn connect_align_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "archive")]
fn connect_archive_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "border")]
fn connect_border_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "code")]
fn connect_code_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "code-base")]
fn connect_code_base_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "code-type")]
fn connect_code_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "content-document")]
fn connect_content_document_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "data")]
fn connect_data_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "declare")]
fn connect_declare_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "form")]
fn connect_form_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "height")]
fn connect_height_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "hspace")]
fn connect_hspace_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "name")]
fn connect_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "standby")]
fn connect_standby_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "type")]
fn connect_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "use-map")]
fn connect_use_map_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "vspace")]
fn connect_vspace_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
#[doc(alias = "width")]
fn connect_width_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
}
impl<O: IsA<DOMHTMLObjectElement>> DOMHTMLObjectElementExt for O {
fn align(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::webkit_dom_html_object_element_get_align(self.as_ref().to_glib_none().0))
}
}
fn archive(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::webkit_dom_html_object_element_get_archive(self.as_ref().to_glib_none().0))
}
}
fn border(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::webkit_dom_html_object_element_get_border(self.as_ref().to_glib_none().0))
}
}
fn code(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::webkit_dom_html_object_element_get_code(self.as_ref().to_glib_none().0))
}
}
fn code_base(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::webkit_dom_html_object_element_get_code_base(self.as_ref().to_glib_none().0))
}
}
fn code_type(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::webkit_dom_html_object_element_get_code_type(self.as_ref().to_glib_none().0))
}
}
fn content_document(&self) -> Option<DOMDocument> {
unsafe {
from_glib_none(ffi::webkit_dom_html_object_element_get_content_document(self.as_ref().to_glib_none().0))
}
}
fn data(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::webkit_dom_html_object_element_get_data(self.as_ref().to_glib_none().0))
}
}
fn is_declare(&self) -> bool {
unsafe {
from_glib(ffi::webkit_dom_html_object_element_get_declare(self.as_ref().to_glib_none().0))
}
}
fn form(&self) -> Option<DOMHTMLFormElement> {
unsafe {
from_glib_none(ffi::webkit_dom_html_object_element_get_form(self.as_ref().to_glib_none().0))
}
}
fn height(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::webkit_dom_html_object_element_get_height(self.as_ref().to_glib_none().0))
}
}
fn hspace(&self) -> libc::c_long {
unsafe {
ffi::webkit_dom_html_object_element_get_hspace(self.as_ref().to_glib_none().0)
}
}
fn name(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::webkit_dom_html_object_element_get_name(self.as_ref().to_glib_none().0))
}
}
fn standby(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::webkit_dom_html_object_element_get_standby(self.as_ref().to_glib_none().0))
}
}
fn type_attr(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::webkit_dom_html_object_element_get_type_attr(self.as_ref().to_glib_none().0))
}
}
fn use_map(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::webkit_dom_html_object_element_get_use_map(self.as_ref().to_glib_none().0))
}
}
fn vspace(&self) -> libc::c_long {
unsafe {
ffi::webkit_dom_html_object_element_get_vspace(self.as_ref().to_glib_none().0)
}
}
fn width(&self) -> Option<glib::GString> {
unsafe {
from_glib_full(ffi::webkit_dom_html_object_element_get_width(self.as_ref().to_glib_none().0))
}
}
fn set_align(&self, value: &str) {
unsafe {
ffi::webkit_dom_html_object_element_set_align(self.as_ref().to_glib_none().0, value.to_glib_none().0);
}
}
fn set_archive(&self, value: &str) {
unsafe {
ffi::webkit_dom_html_object_element_set_archive(self.as_ref().to_glib_none().0, value.to_glib_none().0);
}
}
fn set_border(&self, value: &str) {
unsafe {
ffi::webkit_dom_html_object_element_set_border(self.as_ref().to_glib_none().0, value.to_glib_none().0);
}
}
fn set_code(&self, value: &str) {
unsafe {
ffi::webkit_dom_html_object_element_set_code(self.as_ref().to_glib_none().0, value.to_glib_none().0);
}
}
fn set_code_base(&self, value: &str) {
unsafe {
ffi::webkit_dom_html_object_element_set_code_base(self.as_ref().to_glib_none().0, value.to_glib_none().0);
}
}
fn set_code_type(&self, value: &str) {
unsafe {
ffi::webkit_dom_html_object_element_set_code_type(self.as_ref().to_glib_none().0, value.to_glib_none().0);
}
}
fn set_data(&self, value: &str) {
unsafe {
ffi::webkit_dom_html_object_element_set_data(self.as_ref().to_glib_none().0, value.to_glib_none().0);
}
}
fn set_declare(&self, value: bool) {
unsafe {
ffi::webkit_dom_html_object_element_set_declare(self.as_ref().to_glib_none().0, value.into_glib());
}
}
fn set_height(&self, value: &str) {
unsafe {
ffi::webkit_dom_html_object_element_set_height(self.as_ref().to_glib_none().0, value.to_glib_none().0);
}
}
fn set_hspace(&self, value: libc::c_long) {
unsafe {
ffi::webkit_dom_html_object_element_set_hspace(self.as_ref().to_glib_none().0, value);
}
}
fn set_name(&self, value: &str) {
unsafe {
ffi::webkit_dom_html_object_element_set_name(self.as_ref().to_glib_none().0, value.to_glib_none().0);
}
}
fn set_standby(&self, value: &str) {
unsafe {
ffi::webkit_dom_html_object_element_set_standby(self.as_ref().to_glib_none().0, value.to_glib_none().0);
}
}
fn set_type_attr(&self, value: &str) {
unsafe {
ffi::webkit_dom_html_object_element_set_type_attr(self.as_ref().to_glib_none().0, value.to_glib_none().0);
}
}
fn set_use_map(&self, value: &str) {
unsafe {
ffi::webkit_dom_html_object_element_set_use_map(self.as_ref().to_glib_none().0, value.to_glib_none().0);
}
}
fn set_vspace(&self, value: libc::c_long) {
unsafe {
ffi::webkit_dom_html_object_element_set_vspace(self.as_ref().to_glib_none().0, value);
}
}
fn set_width(&self, value: &str) {
unsafe {
ffi::webkit_dom_html_object_element_set_width(self.as_ref().to_glib_none().0, value.to_glib_none().0);
}
}
fn type_(&self) -> Option<glib::GString> {
glib::ObjectExt::property(self.as_ref(), "type")
}
fn set_type(&self, type_: Option<&str>) {
glib::ObjectExt::set_property(self.as_ref(),"type", &type_)
}
fn connect_align_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_align_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::align\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_align_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_archive_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_archive_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::archive\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_archive_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_border_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_border_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::border\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_border_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_code_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_code_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::code\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_code_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_code_base_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_code_base_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::code-base\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_code_base_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_code_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_code_type_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::code-type\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_code_type_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_content_document_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_content_document_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::content-document\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_content_document_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_data_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_data_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::data\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_data_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_declare_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_declare_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::declare\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_declare_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_form_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_form_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::form\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_form_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_height_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_height_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::height\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_height_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_hspace_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_hspace_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::hspace\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_hspace_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_name_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_name_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::name\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_name_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_standby_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_standby_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::standby\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_standby_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_type_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_type_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::type\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_type_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_use_map_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_use_map_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::use-map\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_use_map_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_vspace_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_vspace_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::vspace\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_vspace_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
fn connect_width_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId {
unsafe extern "C" fn notify_width_trampoline<P: IsA<DOMHTMLObjectElement>, F: Fn(&P) + 'static>(this: *mut ffi::WebKitDOMHTMLObjectElement, _param_spec: glib::ffi::gpointer, f: glib::ffi::gpointer) {
let f: &F = &*(f as *const F);
f(DOMHTMLObjectElement::from_glib_borrow(this).unsafe_cast_ref())
}
unsafe {
let f: Box_<F> = Box_::new(f);
connect_raw(self.as_ptr() as *mut _, b"notify::width\0".as_ptr() as *const _,
Some(transmute::<_, unsafe extern "C" fn()>(notify_width_trampoline::<Self, F> as *const ())), Box_::into_raw(f))
}
}
}
impl fmt::Display for DOMHTMLObjectElement {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.write_str("DOMHTMLObjectElement")
}
}