Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- newtype WebInspector = WebInspector (ManagedPtr WebInspector)
- class GObject 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 Text
- webInspectorGetWebView :: (HasCallStack, MonadIO m, IsWebInspector a) => a -> m 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 Text
- type C_WebInspectorAttachCallback = Ptr () -> Ptr () -> IO CInt
- type WebInspectorAttachCallback = IO Bool
- afterWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorAttachCallback -> m SignalHandlerId
- genClosure_WebInspectorAttach :: WebInspectorAttachCallback -> IO Closure
- mk_WebInspectorAttachCallback :: C_WebInspectorAttachCallback -> IO (FunPtr C_WebInspectorAttachCallback)
- noWebInspectorAttachCallback :: Maybe WebInspectorAttachCallback
- onWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorAttachCallback -> m SignalHandlerId
- wrap_WebInspectorAttachCallback :: WebInspectorAttachCallback -> Ptr () -> Ptr () -> IO CInt
- type C_WebInspectorBringToFrontCallback = Ptr () -> Ptr () -> IO CInt
- type WebInspectorBringToFrontCallback = IO Bool
- afterWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> WebInspectorBringToFrontCallback -> m SignalHandlerId
- genClosure_WebInspectorBringToFront :: WebInspectorBringToFrontCallback -> IO Closure
- mk_WebInspectorBringToFrontCallback :: C_WebInspectorBringToFrontCallback -> IO (FunPtr C_WebInspectorBringToFrontCallback)
- noWebInspectorBringToFrontCallback :: Maybe WebInspectorBringToFrontCallback
- onWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> WebInspectorBringToFrontCallback -> m SignalHandlerId
- wrap_WebInspectorBringToFrontCallback :: WebInspectorBringToFrontCallback -> Ptr () -> Ptr () -> IO CInt
- type C_WebInspectorClosedCallback = Ptr () -> Ptr () -> IO ()
- type WebInspectorClosedCallback = IO ()
- afterWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> WebInspectorClosedCallback -> m SignalHandlerId
- genClosure_WebInspectorClosed :: WebInspectorClosedCallback -> IO Closure
- mk_WebInspectorClosedCallback :: C_WebInspectorClosedCallback -> IO (FunPtr C_WebInspectorClosedCallback)
- noWebInspectorClosedCallback :: Maybe WebInspectorClosedCallback
- onWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> WebInspectorClosedCallback -> m SignalHandlerId
- wrap_WebInspectorClosedCallback :: WebInspectorClosedCallback -> Ptr () -> Ptr () -> IO ()
- type C_WebInspectorDetachCallback = Ptr () -> Ptr () -> IO CInt
- type WebInspectorDetachCallback = IO Bool
- afterWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorDetachCallback -> m SignalHandlerId
- genClosure_WebInspectorDetach :: WebInspectorDetachCallback -> IO Closure
- mk_WebInspectorDetachCallback :: C_WebInspectorDetachCallback -> IO (FunPtr C_WebInspectorDetachCallback)
- noWebInspectorDetachCallback :: Maybe WebInspectorDetachCallback
- onWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorDetachCallback -> m SignalHandlerId
- wrap_WebInspectorDetachCallback :: WebInspectorDetachCallback -> Ptr () -> Ptr () -> IO CInt
- type C_WebInspectorOpenWindowCallback = Ptr () -> Ptr () -> IO CInt
- type WebInspectorOpenWindowCallback = IO Bool
- afterWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> WebInspectorOpenWindowCallback -> m SignalHandlerId
- genClosure_WebInspectorOpenWindow :: WebInspectorOpenWindowCallback -> IO Closure
- mk_WebInspectorOpenWindowCallback :: C_WebInspectorOpenWindowCallback -> IO (FunPtr C_WebInspectorOpenWindowCallback)
- noWebInspectorOpenWindowCallback :: Maybe WebInspectorOpenWindowCallback
- onWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> WebInspectorOpenWindowCallback -> m SignalHandlerId
- wrap_WebInspectorOpenWindowCallback :: WebInspectorOpenWindowCallback -> Ptr () -> Ptr () -> IO CInt
Exported types
newtype WebInspector Source #
class GObject o => IsWebInspector o Source #
toWebInspector :: (MonadIO m, IsWebInspector o) => o -> m WebInspector Source #
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 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 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
getWebInspectorAttachedHeight :: (MonadIO m, IsWebInspector o) => o -> m Word32 Source #
canAttach
getWebInspectorCanAttach :: (MonadIO m, IsWebInspector o) => o -> m Bool Source #
inspectedUri
getWebInspectorInspectedUri :: (MonadIO m, IsWebInspector o) => o -> m Text Source #
Signals
attach
type WebInspectorAttachCallback = IO Bool Source #
afterWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorAttachCallback -> m SignalHandlerId Source #
mk_WebInspectorAttachCallback :: C_WebInspectorAttachCallback -> IO (FunPtr C_WebInspectorAttachCallback) Source #
onWebInspectorAttach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorAttachCallback -> m SignalHandlerId Source #
wrap_WebInspectorAttachCallback :: WebInspectorAttachCallback -> Ptr () -> Ptr () -> IO CInt Source #
bringToFront
afterWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> WebInspectorBringToFrontCallback -> m SignalHandlerId Source #
mk_WebInspectorBringToFrontCallback :: C_WebInspectorBringToFrontCallback -> IO (FunPtr C_WebInspectorBringToFrontCallback) Source #
onWebInspectorBringToFront :: (IsWebInspector a, MonadIO m) => a -> WebInspectorBringToFrontCallback -> m SignalHandlerId Source #
wrap_WebInspectorBringToFrontCallback :: WebInspectorBringToFrontCallback -> Ptr () -> Ptr () -> IO CInt Source #
closed
type WebInspectorClosedCallback = IO () Source #
afterWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> WebInspectorClosedCallback -> m SignalHandlerId Source #
mk_WebInspectorClosedCallback :: C_WebInspectorClosedCallback -> IO (FunPtr C_WebInspectorClosedCallback) Source #
onWebInspectorClosed :: (IsWebInspector a, MonadIO m) => a -> WebInspectorClosedCallback -> m SignalHandlerId Source #
wrap_WebInspectorClosedCallback :: WebInspectorClosedCallback -> Ptr () -> Ptr () -> IO () Source #
detach
type WebInspectorDetachCallback = IO Bool Source #
afterWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorDetachCallback -> m SignalHandlerId Source #
mk_WebInspectorDetachCallback :: C_WebInspectorDetachCallback -> IO (FunPtr C_WebInspectorDetachCallback) Source #
onWebInspectorDetach :: (IsWebInspector a, MonadIO m) => a -> WebInspectorDetachCallback -> m SignalHandlerId Source #
wrap_WebInspectorDetachCallback :: WebInspectorDetachCallback -> Ptr () -> Ptr () -> IO CInt Source #
openWindow
type WebInspectorOpenWindowCallback = IO Bool Source #
afterWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> WebInspectorOpenWindowCallback -> m SignalHandlerId Source #
mk_WebInspectorOpenWindowCallback :: C_WebInspectorOpenWindowCallback -> IO (FunPtr C_WebInspectorOpenWindowCallback) Source #
onWebInspectorOpenWindow :: (IsWebInspector a, MonadIO m) => a -> WebInspectorOpenWindowCallback -> m SignalHandlerId Source #
wrap_WebInspectorOpenWindowCallback :: WebInspectorOpenWindowCallback -> Ptr () -> Ptr () -> IO CInt Source #