gi-webkit2-4.0.14: WebKit2 bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.WebKit2.Objects.WebInspector

Contents

Description

 

Synopsis

Exported types

Methods

attach

webInspectorAttach Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebInspector a) 
=> a

inspector: a WebInspector

-> m () 

Request inspector to be attached. The signal WebInspector::attach will be emitted. If the inspector is already attached it does nothing.

close

webInspectorClose Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebInspector a) 
=> a

inspector: a WebInspector

-> m () 

Request inspector to be closed.

detach

webInspectorDetach Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebInspector a) 
=> a

inspector: a WebInspector

-> m () 

Request inspector to be detached. The signal WebInspector::detach will be emitted. If the inspector is already detached it does nothing.

getAttachedHeight

webInspectorGetAttachedHeight Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebInspector a) 
=> a

inspector: a WebInspector

-> m Word32

Returns: the height of the inspector view when attached

Get the height that the inspector view should have when it's attached. If the inspector view is not attached this returns 0.

getCanAttach

webInspectorGetCanAttach Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebInspector a) 
=> a

inspector: a WebInspector

-> m Bool

Returns: True if there is enough room for the inspector view inside the window that contains the inspected view, or False otherwise.

Whether the inspector can be attached to the same window that contains the inspected view.

Since: 2.8

getInspectedUri

webInspectorGetInspectedUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebInspector a) 
=> a

inspector: a WebInspector

-> m Text

Returns: the URI that is currently being inspected or Nothing

Get the URI that is currently being inspected. This can be Nothing if nothing has been loaded yet in the inspected view, if the inspector has been closed or when inspected view was loaded from a HTML string instead of a URI.

getWebView

webInspectorGetWebView Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebInspector a) 
=> a

inspector: a WebInspector

-> m WebViewBase

Returns: the WebViewBase used to display the inspector or Nothing

Get the WebViewBase used to display the inspector. This might be Nothing if the inspector hasn't been loaded yet, or it has been closed.

isAttached

webInspectorIsAttached Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebInspector a) 
=> a

inspector: a WebInspector

-> m Bool

Returns: True if inspector is currently attached or False otherwise

Whether the inspector view is currently attached to the same window that contains the inspected view.

show

webInspectorShow Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebInspector a) 
=> a

inspector: a WebInspector

-> m () 

Request inspector to be shown.

Properties

attachedHeight

canAttach

inspectedUri

Signals

attach

bringToFront

closed

detach

openWindow