Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
No description available in the introspection data.
Synopsis
- newtype WebInspector = WebInspector (ManagedPtr WebInspector)
- class (GObject o, IsDescendantOf WebInspector o) => IsWebInspector o
- toWebInspector :: (MonadIO m, IsWebInspector o) => o -> m WebInspector
- noWebInspector :: Maybe WebInspector
- webInspectorAttach :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m ()
- webInspectorClose :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m ()
- webInspectorDetach :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m ()
- webInspectorGetAttachedHeight :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m Word32
- webInspectorGetCanAttach :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m Bool
- webInspectorGetInspectedUri :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m (Maybe Text)
- webInspectorGetWebView :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m (Maybe WebViewBase)
- webInspectorIsAttached :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m Bool
- webInspectorShow :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m ()
- getWebInspectorAttachedHeight :: (MonadIO m, IsWebInspector o) => o -> m Word32
- getWebInspectorCanAttach :: (MonadIO m, IsWebInspector o) => o -> m Bool
- getWebInspectorInspectedUri :: (MonadIO m, IsWebInspector o) => o -> m (Maybe Text)
- type C_WebInspectorAttachCallback = Ptr () -> Ptr () -> IO CInt
- type WebInspectorAttachCallback = IO Bool
- afterWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorAttachCallback -> m SignalHandlerId
- genClosure_WebInspectorAttach :: MonadIO m => WebInspectorAttachCallback -> m (GClosure C_WebInspectorAttachCallback)
- mk_WebInspectorAttachCallback :: C_WebInspectorAttachCallback -> IO (FunPtr C_WebInspectorAttachCallback)
- noWebInspectorAttachCallback :: Maybe WebInspectorAttachCallback
- onWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorAttachCallback -> m SignalHandlerId
- wrap_WebInspectorAttachCallback :: WebInspectorAttachCallback -> C_WebInspectorAttachCallback
- type C_WebInspectorBringToFrontCallback = Ptr () -> Ptr () -> IO CInt
- type WebInspectorBringToFrontCallback = IO Bool
- afterWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> WebInspectorBringToFrontCallback -> m SignalHandlerId
- genClosure_WebInspectorBringToFront :: MonadIO m => WebInspectorBringToFrontCallback -> m (GClosure C_WebInspectorBringToFrontCallback)
- mk_WebInspectorBringToFrontCallback :: C_WebInspectorBringToFrontCallback -> IO (FunPtr C_WebInspectorBringToFrontCallback)
- noWebInspectorBringToFrontCallback :: Maybe WebInspectorBringToFrontCallback
- onWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> WebInspectorBringToFrontCallback -> m SignalHandlerId
- wrap_WebInspectorBringToFrontCallback :: WebInspectorBringToFrontCallback -> C_WebInspectorBringToFrontCallback
- type C_WebInspectorClosedCallback = Ptr () -> Ptr () -> IO ()
- type WebInspectorClosedCallback = IO ()
- afterWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> WebInspectorClosedCallback -> m SignalHandlerId
- genClosure_WebInspectorClosed :: MonadIO m => WebInspectorClosedCallback -> m (GClosure C_WebInspectorClosedCallback)
- mk_WebInspectorClosedCallback :: C_WebInspectorClosedCallback -> IO (FunPtr C_WebInspectorClosedCallback)
- noWebInspectorClosedCallback :: Maybe WebInspectorClosedCallback
- onWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> WebInspectorClosedCallback -> m SignalHandlerId
- wrap_WebInspectorClosedCallback :: WebInspectorClosedCallback -> C_WebInspectorClosedCallback
- type C_WebInspectorDetachCallback = Ptr () -> Ptr () -> IO CInt
- type WebInspectorDetachCallback = IO Bool
- afterWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorDetachCallback -> m SignalHandlerId
- genClosure_WebInspectorDetach :: MonadIO m => WebInspectorDetachCallback -> m (GClosure C_WebInspectorDetachCallback)
- mk_WebInspectorDetachCallback :: C_WebInspectorDetachCallback -> IO (FunPtr C_WebInspectorDetachCallback)
- noWebInspectorDetachCallback :: Maybe WebInspectorDetachCallback
- onWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorDetachCallback -> m SignalHandlerId
- wrap_WebInspectorDetachCallback :: WebInspectorDetachCallback -> C_WebInspectorDetachCallback
- type C_WebInspectorOpenWindowCallback = Ptr () -> Ptr () -> IO CInt
- type WebInspectorOpenWindowCallback = IO Bool
- afterWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> WebInspectorOpenWindowCallback -> m SignalHandlerId
- genClosure_WebInspectorOpenWindow :: MonadIO m => WebInspectorOpenWindowCallback -> m (GClosure C_WebInspectorOpenWindowCallback)
- mk_WebInspectorOpenWindowCallback :: C_WebInspectorOpenWindowCallback -> IO (FunPtr C_WebInspectorOpenWindowCallback)
- noWebInspectorOpenWindowCallback :: Maybe WebInspectorOpenWindowCallback
- onWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> WebInspectorOpenWindowCallback -> m SignalHandlerId
- wrap_WebInspectorOpenWindowCallback :: WebInspectorOpenWindowCallback -> C_WebInspectorOpenWindowCallback
Exported types
newtype WebInspector Source #
Memory-managed wrapper type.
Instances
GObject WebInspector Source # | |
Defined in GI.WebKit2.Objects.WebInspector gobjectType :: IO GType # | |
HasParentTypes WebInspector Source # | |
Defined in GI.WebKit2.Objects.WebInspector | |
type ParentTypes WebInspector Source # | |
Defined in GI.WebKit2.Objects.WebInspector |
class (GObject o, IsDescendantOf WebInspector o) => IsWebInspector o Source #
Type class for types which can be safely cast to WebInspector
, for instance with toWebInspector
.
Instances
(GObject o, IsDescendantOf WebInspector o) => IsWebInspector o Source # | |
Defined in GI.WebKit2.Objects.WebInspector |
toWebInspector :: (MonadIO m, IsWebInspector o) => o -> m WebInspector Source #
Cast to WebInspector
, for types for which this is known to be safe. For general casts, use castTo
.
noWebInspector :: Maybe WebInspector Source #
A convenience alias for Nothing
:: Maybe
WebInspector
.
Methods
attach
:: (HasCallStack, MonadIO m, IsWebInspector a) | |
=> a |
|
-> m () |
Request inspector
to be attached. The signal WebInspector
::attach
will be emitted. If the inspector is already attached it does nothing.
close
:: (HasCallStack, MonadIO m, IsWebInspector a) | |
=> a |
|
-> m () |
Request inspector
to be closed.
detach
:: (HasCallStack, MonadIO m, IsWebInspector a) | |
=> a |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsWebInspector a) | |
=> a |
|
-> 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 #
:: (HasCallStack, MonadIO m, IsWebInspector a) | |
=> a |
|
-> m Bool | Returns: |
Whether the inspector
can be attached to the same window that contains
the inspected view.
Since: 2.8
getInspectedUri
webInspectorGetInspectedUri Source #
:: (HasCallStack, MonadIO m, IsWebInspector a) | |
=> a |
|
-> m (Maybe Text) | Returns: the URI that is currently being inspected or |
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 #
:: (HasCallStack, MonadIO m, IsWebInspector a) | |
=> a |
|
-> m (Maybe WebViewBase) | Returns: the |
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 #
:: (HasCallStack, MonadIO m, IsWebInspector a) | |
=> a |
|
-> m Bool | Returns: |
Whether the inspector
view is currently attached to the same window that contains
the inspected view.
show
:: (HasCallStack, MonadIO m, IsWebInspector a) | |
=> a |
|
-> m () |
Request inspector
to be shown.
Properties
attachedHeight
The height that the inspector view should have when it is attached.
getWebInspectorAttachedHeight :: (MonadIO m, IsWebInspector o) => o -> m Word32 Source #
Get the value of the “attached-height
” property.
When overloading is enabled, this is equivalent to
get
webInspector #attachedHeight
canAttach
Whether the inspector
can be attached to the same window that contains
the inspected view.
Since: 2.8
getWebInspectorCanAttach :: (MonadIO m, IsWebInspector o) => o -> m Bool Source #
Get the value of the “can-attach
” property.
When overloading is enabled, this is equivalent to
get
webInspector #canAttach
inspectedUri
The URI that is currently being inspected.
getWebInspectorInspectedUri :: (MonadIO m, IsWebInspector o) => o -> m (Maybe Text) Source #
Get the value of the “inspected-uri
” property.
When overloading is enabled, this is equivalent to
get
webInspector #inspectedUri
Signals
attach
type C_WebInspectorAttachCallback = Ptr () -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type WebInspectorAttachCallback Source #
= IO Bool | Returns: |
Emitted when the inspector is requested to be attached to the window where the inspected web view is. If this signal is not handled the inspector view will be automatically attached to the inspected view, so you only need to handle this signal if you want to attach the inspector view yourself (for example, to add the inspector view to a browser tab).
To prevent the inspector view from being attached you can connect to this
signal and simply return True
.
afterWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorAttachCallback -> m SignalHandlerId Source #
Connect a signal handler for the “attach
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
webInspector #attach callback
genClosure_WebInspectorAttach :: MonadIO m => WebInspectorAttachCallback -> m (GClosure C_WebInspectorAttachCallback) Source #
Wrap the callback into a GClosure
.
mk_WebInspectorAttachCallback :: C_WebInspectorAttachCallback -> IO (FunPtr C_WebInspectorAttachCallback) Source #
Generate a function pointer callable from C code, from a C_WebInspectorAttachCallback
.
noWebInspectorAttachCallback :: Maybe WebInspectorAttachCallback Source #
A convenience synonym for
.Nothing
:: Maybe
WebInspectorAttachCallback
onWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorAttachCallback -> m SignalHandlerId Source #
Connect a signal handler for the “attach
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
webInspector #attach callback
wrap_WebInspectorAttachCallback :: WebInspectorAttachCallback -> C_WebInspectorAttachCallback Source #
Wrap a WebInspectorAttachCallback
into a C_WebInspectorAttachCallback
.
bringToFront
type C_WebInspectorBringToFrontCallback = Ptr () -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type WebInspectorBringToFrontCallback Source #
= IO Bool | Returns: |
Emitted when the inspector should be shown.
If the inspector is not attached the inspector window should be shown
on top of any other windows.
If the inspector is attached the inspector view should be made visible.
For example, if the inspector view is attached using a tab in a browser
window, the browser window should be raised and the tab containing the
inspector view should be the active one.
In both cases, if this signal is not handled, the default implementation
calls windowPresent
on the current toplevel Window
of the
inspector view.
afterWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> WebInspectorBringToFrontCallback -> m SignalHandlerId Source #
Connect a signal handler for the “bring-to-front
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
webInspector #bringToFront callback
genClosure_WebInspectorBringToFront :: MonadIO m => WebInspectorBringToFrontCallback -> m (GClosure C_WebInspectorBringToFrontCallback) Source #
Wrap the callback into a GClosure
.
mk_WebInspectorBringToFrontCallback :: C_WebInspectorBringToFrontCallback -> IO (FunPtr C_WebInspectorBringToFrontCallback) Source #
Generate a function pointer callable from C code, from a C_WebInspectorBringToFrontCallback
.
noWebInspectorBringToFrontCallback :: Maybe WebInspectorBringToFrontCallback Source #
A convenience synonym for
.Nothing
:: Maybe
WebInspectorBringToFrontCallback
onWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> WebInspectorBringToFrontCallback -> m SignalHandlerId Source #
Connect a signal handler for the “bring-to-front
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
webInspector #bringToFront callback
wrap_WebInspectorBringToFrontCallback :: WebInspectorBringToFrontCallback -> C_WebInspectorBringToFrontCallback Source #
closed
type C_WebInspectorClosedCallback = Ptr () -> Ptr () -> IO () Source #
Type for the callback on the (unwrapped) C side.
type WebInspectorClosedCallback = IO () Source #
Emitted when the inspector page is closed. If you are using your own inspector window, you should connect to this signal and destroy your window.
afterWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> WebInspectorClosedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “closed
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
webInspector #closed callback
genClosure_WebInspectorClosed :: MonadIO m => WebInspectorClosedCallback -> m (GClosure C_WebInspectorClosedCallback) Source #
Wrap the callback into a GClosure
.
mk_WebInspectorClosedCallback :: C_WebInspectorClosedCallback -> IO (FunPtr C_WebInspectorClosedCallback) Source #
Generate a function pointer callable from C code, from a C_WebInspectorClosedCallback
.
noWebInspectorClosedCallback :: Maybe WebInspectorClosedCallback Source #
A convenience synonym for
.Nothing
:: Maybe
WebInspectorClosedCallback
onWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> WebInspectorClosedCallback -> m SignalHandlerId Source #
Connect a signal handler for the “closed
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
webInspector #closed callback
wrap_WebInspectorClosedCallback :: WebInspectorClosedCallback -> C_WebInspectorClosedCallback Source #
Wrap a WebInspectorClosedCallback
into a C_WebInspectorClosedCallback
.
detach
type C_WebInspectorDetachCallback = Ptr () -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type WebInspectorDetachCallback Source #
= IO Bool | Returns: |
Emitted when the inspector is requested to be detached from the window
it is currently attached to. The inspector is detached when the inspector page
is about to be closed, and this signal is emitted right before
WebInspector
::closed
, or when the user clicks on the detach button
in the inspector view to show the inspector in a separate window. In this case
the signal WebInspector
::open-window
is emitted after this one.
To prevent the inspector view from being detached you can connect to this
signal and simply return True
.
afterWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorDetachCallback -> m SignalHandlerId Source #
Connect a signal handler for the “detach
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
webInspector #detach callback
genClosure_WebInspectorDetach :: MonadIO m => WebInspectorDetachCallback -> m (GClosure C_WebInspectorDetachCallback) Source #
Wrap the callback into a GClosure
.
mk_WebInspectorDetachCallback :: C_WebInspectorDetachCallback -> IO (FunPtr C_WebInspectorDetachCallback) Source #
Generate a function pointer callable from C code, from a C_WebInspectorDetachCallback
.
noWebInspectorDetachCallback :: Maybe WebInspectorDetachCallback Source #
A convenience synonym for
.Nothing
:: Maybe
WebInspectorDetachCallback
onWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorDetachCallback -> m SignalHandlerId Source #
Connect a signal handler for the “detach
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
webInspector #detach callback
wrap_WebInspectorDetachCallback :: WebInspectorDetachCallback -> C_WebInspectorDetachCallback Source #
Wrap a WebInspectorDetachCallback
into a C_WebInspectorDetachCallback
.
openWindow
type C_WebInspectorOpenWindowCallback = Ptr () -> Ptr () -> IO CInt Source #
Type for the callback on the (unwrapped) C side.
type WebInspectorOpenWindowCallback Source #
= IO Bool | Returns: |
Emitted when the inspector is requested to open in a separate window.
If this signal is not handled, a Window
with the inspector will be
created and shown, so you only need to handle this signal if you want
to use your own window.
This signal is emitted after WebInspector
::detach
to show
the inspector in a separate window after being detached.
To prevent the inspector from being shown you can connect to this
signal and simply return True
afterWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> WebInspectorOpenWindowCallback -> m SignalHandlerId Source #
Connect a signal handler for the “open-window
” signal, to be run after the default handler.
When overloading is enabled, this is equivalent to
after
webInspector #openWindow callback
genClosure_WebInspectorOpenWindow :: MonadIO m => WebInspectorOpenWindowCallback -> m (GClosure C_WebInspectorOpenWindowCallback) Source #
Wrap the callback into a GClosure
.
mk_WebInspectorOpenWindowCallback :: C_WebInspectorOpenWindowCallback -> IO (FunPtr C_WebInspectorOpenWindowCallback) Source #
Generate a function pointer callable from C code, from a C_WebInspectorOpenWindowCallback
.
noWebInspectorOpenWindowCallback :: Maybe WebInspectorOpenWindowCallback Source #
A convenience synonym for
.Nothing
:: Maybe
WebInspectorOpenWindowCallback
onWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> WebInspectorOpenWindowCallback -> m SignalHandlerId Source #
Connect a signal handler for the “open-window
” signal, to be run before the default handler.
When overloading is enabled, this is equivalent to
on
webInspector #openWindow callback