pub trait DOMDOMWindowExt: 'static {
Show 110 methods
fn alert(&self, message: &str);
fn blur(&self);
fn capture_events(&self);
fn close(&self);
fn confirm(&self, message: &str) -> bool;
fn find(
&self,
string: &str,
caseSensitive: bool,
backwards: bool,
wrap: bool,
wholeWord: bool,
searchInFrames: bool,
showDialog: bool
) -> bool;
fn focus(&self);
fn is_closed(&self) -> bool;
fn computed_style(
&self,
element: &impl IsA<DOMElement>,
pseudoElement: Option<&str>
) -> Option<DOMCSSStyleDeclaration>;
fn default_status(&self) -> Option<GString>;
fn device_pixel_ratio(&self) -> f64;
fn document(&self) -> Option<DOMDocument>;
fn frame_element(&self) -> Option<DOMElement>;
fn frames(&self) -> Option<DOMDOMWindow>;
fn inner_height(&self) -> c_long;
fn inner_width(&self) -> c_long;
fn length(&self) -> c_ulong;
fn name(&self) -> Option<GString>;
fn is_offscreen_buffering(&self) -> bool;
fn opener(&self) -> Option<DOMDOMWindow>;
fn orientation(&self) -> c_long;
fn outer_height(&self) -> c_long;
fn outer_width(&self) -> c_long;
fn page_x_offset(&self) -> c_long;
fn page_y_offset(&self) -> c_long;
fn parent(&self) -> Option<DOMDOMWindow>;
fn screen_left(&self) -> c_long;
fn screen_top(&self) -> c_long;
fn screen_x(&self) -> c_long;
fn screen_y(&self) -> c_long;
fn scroll_x(&self) -> c_long;
fn scroll_y(&self) -> c_long;
fn selection(&self) -> Option<DOMDOMSelection>;
fn self_(&self) -> Option<DOMDOMWindow>;
fn status(&self) -> Option<GString>;
fn top(&self) -> Option<DOMDOMWindow>;
fn window(&self) -> Option<DOMDOMWindow>;
fn move_by(&self, x: f32, y: f32);
fn move_to(&self, x: f32, y: f32);
fn print(&self);
fn prompt(&self, message: &str, defaultValue: &str) -> Option<GString>;
fn release_events(&self);
fn resize_by(&self, x: f32, y: f32);
fn resize_to(&self, width: f32, height: f32);
fn scroll_by(&self, x: f64, y: f64);
fn scroll_to(&self, x: f64, y: f64);
fn set_default_status(&self, value: &str);
fn set_name(&self, value: &str);
fn set_status(&self, value: &str);
fn stop(&self);
fn webkit_message_handlers_post_message(
&self,
handler: &str,
message: &str
) -> bool;
fn get_property_closed(&self) -> bool;
fn get_property_default_status(&self) -> Option<GString>;
fn set_property_default_status(&self, default_status: Option<&str>);
fn get_property_device_pixel_ratio(&self) -> f64;
fn get_property_document(&self) -> Option<DOMDocument>;
fn get_property_frame_element(&self) -> Option<DOMElement>;
fn get_property_frames(&self) -> Option<DOMDOMWindow>;
fn get_property_inner_height(&self) -> c_long;
fn get_property_inner_width(&self) -> c_long;
fn get_property_length(&self) -> c_ulong;
fn get_property_name(&self) -> Option<GString>;
fn set_property_name(&self, name: Option<&str>);
fn get_property_offscreen_buffering(&self) -> bool;
fn get_property_opener(&self) -> Option<DOMDOMWindow>;
fn get_property_orientation(&self) -> c_long;
fn get_property_outer_height(&self) -> c_long;
fn get_property_outer_width(&self) -> c_long;
fn get_property_page_x_offset(&self) -> c_long;
fn get_property_page_y_offset(&self) -> c_long;
fn get_property_parent(&self) -> Option<DOMDOMWindow>;
fn get_property_screen_left(&self) -> c_long;
fn get_property_screen_top(&self) -> c_long;
fn get_property_screen_x(&self) -> c_long;
fn get_property_screen_y(&self) -> c_long;
fn get_property_scroll_x(&self) -> c_long;
fn get_property_scroll_y(&self) -> c_long;
fn get_property_self(&self) -> Option<DOMDOMWindow>;
fn get_property_status(&self) -> Option<GString>;
fn set_property_status(&self, status: Option<&str>);
fn get_property_top(&self) -> Option<DOMDOMWindow>;
fn get_property_window(&self) -> Option<DOMDOMWindow>;
fn connect_closed_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_default_status_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_device_pixel_ratio_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_document_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_frame_element_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_frames_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_inner_height_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_inner_width_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_length_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_name_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_offscreen_buffering_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_opener_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_orientation_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_outer_height_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_outer_width_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_page_x_offset_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_page_y_offset_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_parent_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_screen_left_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_screen_top_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_screen_x_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_screen_y_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_scroll_x_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_scroll_y_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_self_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_status_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_top_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId;
fn connect_window_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Required Methods
sourcefn blur(&self)
fn blur(&self)
Available on crate feature
v2_16
only.Deprecated since 2.22
Use JavaScriptCore API instead
sourcefn capture_events(&self)
fn capture_events(&self)
Available on crate feature
v2_16
only.Deprecated since 2.22
Use JavaScriptCore API instead
sourcefn close(&self)
fn close(&self)
Available on crate feature
v2_16
only.Deprecated since 2.22
Use JavaScriptCore API instead
sourcefn find(
&self,
string: &str,
caseSensitive: bool,
backwards: bool,
wrap: bool,
wholeWord: bool,
searchInFrames: bool,
showDialog: bool
) -> bool
fn find(
&self,
string: &str,
caseSensitive: bool,
backwards: bool,
wrap: bool,
wholeWord: bool,
searchInFrames: bool,
showDialog: bool
) -> bool
Available on crate feature
v2_16
only.Deprecated since 2.22
Use JavaScriptCore API instead
string
A gchar
caseSensitive
A gboolean
backwards
A gboolean
wrap
A gboolean
wholeWord
A gboolean
searchInFrames
A gboolean
showDialog
A gboolean
Returns
A gboolean
sourcefn focus(&self)
fn focus(&self)
Available on crate feature
v2_16
only.Deprecated since 2.22
Use JavaScriptCore API instead
sourcefn computed_style(
&self,
element: &impl IsA<DOMElement>,
pseudoElement: Option<&str>
) -> Option<DOMCSSStyleDeclaration>
fn computed_style(
&self,
element: &impl IsA<DOMElement>,
pseudoElement: Option<&str>
) -> Option<DOMCSSStyleDeclaration>
Available on crate feature
v2_16
only.sourcefn default_status(&self) -> Option<GString>
fn default_status(&self) -> Option<GString>
Available on crate feature
v2_16
only.sourcefn device_pixel_ratio(&self) -> f64
fn device_pixel_ratio(&self) -> f64
Available on crate feature
v2_16
only.sourcefn document(&self) -> Option<DOMDocument>
fn document(&self) -> Option<DOMDocument>
Available on crate feature
v2_16
only.sourcefn frame_element(&self) -> Option<DOMElement>
fn frame_element(&self) -> Option<DOMElement>
Available on crate feature
v2_16
only.sourcefn frames(&self) -> Option<DOMDOMWindow>
fn frames(&self) -> Option<DOMDOMWindow>
Available on crate feature
v2_16
only.sourcefn inner_height(&self) -> c_long
fn inner_height(&self) -> c_long
Available on crate feature
v2_16
only.sourcefn inner_width(&self) -> c_long
fn inner_width(&self) -> c_long
Available on crate feature
v2_16
only.sourcefn is_offscreen_buffering(&self) -> bool
fn is_offscreen_buffering(&self) -> bool
Available on crate feature
v2_16
only.sourcefn opener(&self) -> Option<DOMDOMWindow>
fn opener(&self) -> Option<DOMDOMWindow>
Available on crate feature
v2_16
only.sourcefn orientation(&self) -> c_long
fn orientation(&self) -> c_long
Available on crate feature
v2_16
only.sourcefn outer_height(&self) -> c_long
fn outer_height(&self) -> c_long
Available on crate feature
v2_16
only.sourcefn outer_width(&self) -> c_long
fn outer_width(&self) -> c_long
Available on crate feature
v2_16
only.sourcefn page_x_offset(&self) -> c_long
fn page_x_offset(&self) -> c_long
Available on crate feature
v2_16
only.sourcefn page_y_offset(&self) -> c_long
fn page_y_offset(&self) -> c_long
Available on crate feature
v2_16
only.sourcefn parent(&self) -> Option<DOMDOMWindow>
fn parent(&self) -> Option<DOMDOMWindow>
Available on crate feature
v2_16
only.sourcefn screen_left(&self) -> c_long
fn screen_left(&self) -> c_long
Available on crate feature
v2_16
only.sourcefn screen_top(&self) -> c_long
fn screen_top(&self) -> c_long
Available on crate feature
v2_16
only.sourcefn selection(&self) -> Option<DOMDOMSelection>
fn selection(&self) -> Option<DOMDOMSelection>
Available on crate feature
v2_16
only.sourcefn self_(&self) -> Option<DOMDOMWindow>
fn self_(&self) -> Option<DOMDOMWindow>
Available on crate feature
v2_16
only.sourcefn top(&self) -> Option<DOMDOMWindow>
fn top(&self) -> Option<DOMDOMWindow>
Available on crate feature
v2_16
only.sourcefn window(&self) -> Option<DOMDOMWindow>
fn window(&self) -> Option<DOMDOMWindow>
Available on crate feature
v2_16
only.sourcefn print(&self)
fn print(&self)
Available on crate feature
v2_16
only.Deprecated since 2.22
Use JavaScriptCore API instead
sourcefn prompt(&self, message: &str, defaultValue: &str) -> Option<GString>
fn prompt(&self, message: &str, defaultValue: &str) -> Option<GString>
Available on crate feature
v2_16
only.Deprecated since 2.22
Use JavaScriptCore API instead
message
A gchar
defaultValue
A gchar
Returns
A gchar
sourcefn release_events(&self)
fn release_events(&self)
Available on crate feature
v2_16
only.Deprecated since 2.22
Use JavaScriptCore API instead
sourcefn set_default_status(&self, value: &str)
fn set_default_status(&self, value: &str)
Available on crate feature
v2_16
only.sourcefn set_status(&self, value: &str)
fn set_status(&self, value: &str)
Available on crate feature
v2_16
only.sourcefn stop(&self)
fn stop(&self)
Available on crate feature
v2_16
only.Deprecated since 2.22
Use JavaScriptCore API instead