gi-webkit-0.2.4.13: GI/WebKit/Objects/DOMScreen.hs
{- |
Copyright : Will Thompson, Iñaki García Etxebarria and Jonas Platte
License : LGPL-2.1
Maintainer : Iñaki García Etxebarria (garetxe@gmail.com)
-}
module GI.WebKit.Objects.DOMScreen
(
-- * Exported types
DOMScreen(..) ,
DOMScreenK ,
toDOMScreen ,
noDOMScreen ,
-- * Methods
-- ** dOMScreenGetAvailHeight
DOMScreenGetAvailHeightMethodInfo ,
dOMScreenGetAvailHeight ,
-- ** dOMScreenGetAvailLeft
DOMScreenGetAvailLeftMethodInfo ,
dOMScreenGetAvailLeft ,
-- ** dOMScreenGetAvailTop
DOMScreenGetAvailTopMethodInfo ,
dOMScreenGetAvailTop ,
-- ** dOMScreenGetAvailWidth
DOMScreenGetAvailWidthMethodInfo ,
dOMScreenGetAvailWidth ,
-- ** dOMScreenGetColorDepth
DOMScreenGetColorDepthMethodInfo ,
dOMScreenGetColorDepth ,
-- ** dOMScreenGetHeight
DOMScreenGetHeightMethodInfo ,
dOMScreenGetHeight ,
-- ** dOMScreenGetPixelDepth
DOMScreenGetPixelDepthMethodInfo ,
dOMScreenGetPixelDepth ,
-- ** dOMScreenGetWidth
DOMScreenGetWidthMethodInfo ,
dOMScreenGetWidth ,
-- * Properties
-- ** AvailHeight
DOMScreenAvailHeightPropertyInfo ,
getDOMScreenAvailHeight ,
-- ** AvailLeft
DOMScreenAvailLeftPropertyInfo ,
getDOMScreenAvailLeft ,
-- ** AvailTop
DOMScreenAvailTopPropertyInfo ,
getDOMScreenAvailTop ,
-- ** AvailWidth
DOMScreenAvailWidthPropertyInfo ,
getDOMScreenAvailWidth ,
-- ** ColorDepth
DOMScreenColorDepthPropertyInfo ,
getDOMScreenColorDepth ,
-- ** Height
DOMScreenHeightPropertyInfo ,
getDOMScreenHeight ,
-- ** PixelDepth
DOMScreenPixelDepthPropertyInfo ,
getDOMScreenPixelDepth ,
-- ** Width
DOMScreenWidthPropertyInfo ,
getDOMScreenWidth ,
) where
import Prelude ()
import Data.GI.Base.ShortPrelude
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import GI.WebKit.Types
import GI.WebKit.Callbacks
import qualified GI.GObject as GObject
newtype DOMScreen = DOMScreen (ForeignPtr DOMScreen)
foreign import ccall "webkit_dom_screen_get_type"
c_webkit_dom_screen_get_type :: IO GType
type instance ParentTypes DOMScreen = DOMScreenParentTypes
type DOMScreenParentTypes = '[DOMObject, GObject.Object]
instance GObject DOMScreen where
gobjectIsInitiallyUnowned _ = False
gobjectType _ = c_webkit_dom_screen_get_type
class GObject o => DOMScreenK o
instance (GObject o, IsDescendantOf DOMScreen o) => DOMScreenK o
toDOMScreen :: DOMScreenK o => o -> IO DOMScreen
toDOMScreen = unsafeCastTo DOMScreen
noDOMScreen :: Maybe DOMScreen
noDOMScreen = Nothing
type family ResolveDOMScreenMethod (t :: Symbol) (o :: *) :: * where
ResolveDOMScreenMethod "bindProperty" o = GObject.ObjectBindPropertyMethodInfo
ResolveDOMScreenMethod "bindPropertyFull" o = GObject.ObjectBindPropertyFullMethodInfo
ResolveDOMScreenMethod "forceFloating" o = GObject.ObjectForceFloatingMethodInfo
ResolveDOMScreenMethod "freezeNotify" o = GObject.ObjectFreezeNotifyMethodInfo
ResolveDOMScreenMethod "isFloating" o = GObject.ObjectIsFloatingMethodInfo
ResolveDOMScreenMethod "notify" o = GObject.ObjectNotifyMethodInfo
ResolveDOMScreenMethod "notifyByPspec" o = GObject.ObjectNotifyByPspecMethodInfo
ResolveDOMScreenMethod "ref" o = GObject.ObjectRefMethodInfo
ResolveDOMScreenMethod "refSink" o = GObject.ObjectRefSinkMethodInfo
ResolveDOMScreenMethod "replaceData" o = GObject.ObjectReplaceDataMethodInfo
ResolveDOMScreenMethod "replaceQdata" o = GObject.ObjectReplaceQdataMethodInfo
ResolveDOMScreenMethod "runDispose" o = GObject.ObjectRunDisposeMethodInfo
ResolveDOMScreenMethod "stealData" o = GObject.ObjectStealDataMethodInfo
ResolveDOMScreenMethod "stealQdata" o = GObject.ObjectStealQdataMethodInfo
ResolveDOMScreenMethod "thawNotify" o = GObject.ObjectThawNotifyMethodInfo
ResolveDOMScreenMethod "unref" o = GObject.ObjectUnrefMethodInfo
ResolveDOMScreenMethod "watchClosure" o = GObject.ObjectWatchClosureMethodInfo
ResolveDOMScreenMethod "getAvailHeight" o = DOMScreenGetAvailHeightMethodInfo
ResolveDOMScreenMethod "getAvailLeft" o = DOMScreenGetAvailLeftMethodInfo
ResolveDOMScreenMethod "getAvailTop" o = DOMScreenGetAvailTopMethodInfo
ResolveDOMScreenMethod "getAvailWidth" o = DOMScreenGetAvailWidthMethodInfo
ResolveDOMScreenMethod "getColorDepth" o = DOMScreenGetColorDepthMethodInfo
ResolveDOMScreenMethod "getData" o = GObject.ObjectGetDataMethodInfo
ResolveDOMScreenMethod "getHeight" o = DOMScreenGetHeightMethodInfo
ResolveDOMScreenMethod "getPixelDepth" o = DOMScreenGetPixelDepthMethodInfo
ResolveDOMScreenMethod "getProperty" o = GObject.ObjectGetPropertyMethodInfo
ResolveDOMScreenMethod "getQdata" o = GObject.ObjectGetQdataMethodInfo
ResolveDOMScreenMethod "getWidth" o = DOMScreenGetWidthMethodInfo
ResolveDOMScreenMethod "setData" o = GObject.ObjectSetDataMethodInfo
ResolveDOMScreenMethod "setProperty" o = GObject.ObjectSetPropertyMethodInfo
ResolveDOMScreenMethod l o = MethodResolutionFailed l o
instance (info ~ ResolveDOMScreenMethod t DOMScreen, MethodInfo info DOMScreen p) => IsLabelProxy t (DOMScreen -> p) where
fromLabelProxy _ = overloadedMethod (MethodProxy :: MethodProxy info)
#if MIN_VERSION_base(4,9,0)
instance (info ~ ResolveDOMScreenMethod t DOMScreen, MethodInfo info DOMScreen p) => IsLabel t (DOMScreen -> p) where
fromLabel _ = overloadedMethod (MethodProxy :: MethodProxy info)
#endif
-- VVV Prop "avail-height"
-- Type: TBasicType TUInt64
-- Flags: [PropertyReadable]
getDOMScreenAvailHeight :: (MonadIO m, DOMScreenK o) => o -> m Word64
getDOMScreenAvailHeight obj = liftIO $ getObjectPropertyUInt64 obj "avail-height"
data DOMScreenAvailHeightPropertyInfo
instance AttrInfo DOMScreenAvailHeightPropertyInfo where
type AttrAllowedOps DOMScreenAvailHeightPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint DOMScreenAvailHeightPropertyInfo = (~) ()
type AttrBaseTypeConstraint DOMScreenAvailHeightPropertyInfo = DOMScreenK
type AttrGetType DOMScreenAvailHeightPropertyInfo = Word64
type AttrLabel DOMScreenAvailHeightPropertyInfo = "avail-height"
attrGet _ = getDOMScreenAvailHeight
attrSet _ = undefined
attrConstruct _ = undefined
-- VVV Prop "avail-left"
-- Type: TBasicType TInt64
-- Flags: [PropertyReadable]
getDOMScreenAvailLeft :: (MonadIO m, DOMScreenK o) => o -> m Int64
getDOMScreenAvailLeft obj = liftIO $ getObjectPropertyInt64 obj "avail-left"
data DOMScreenAvailLeftPropertyInfo
instance AttrInfo DOMScreenAvailLeftPropertyInfo where
type AttrAllowedOps DOMScreenAvailLeftPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint DOMScreenAvailLeftPropertyInfo = (~) ()
type AttrBaseTypeConstraint DOMScreenAvailLeftPropertyInfo = DOMScreenK
type AttrGetType DOMScreenAvailLeftPropertyInfo = Int64
type AttrLabel DOMScreenAvailLeftPropertyInfo = "avail-left"
attrGet _ = getDOMScreenAvailLeft
attrSet _ = undefined
attrConstruct _ = undefined
-- VVV Prop "avail-top"
-- Type: TBasicType TInt64
-- Flags: [PropertyReadable]
getDOMScreenAvailTop :: (MonadIO m, DOMScreenK o) => o -> m Int64
getDOMScreenAvailTop obj = liftIO $ getObjectPropertyInt64 obj "avail-top"
data DOMScreenAvailTopPropertyInfo
instance AttrInfo DOMScreenAvailTopPropertyInfo where
type AttrAllowedOps DOMScreenAvailTopPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint DOMScreenAvailTopPropertyInfo = (~) ()
type AttrBaseTypeConstraint DOMScreenAvailTopPropertyInfo = DOMScreenK
type AttrGetType DOMScreenAvailTopPropertyInfo = Int64
type AttrLabel DOMScreenAvailTopPropertyInfo = "avail-top"
attrGet _ = getDOMScreenAvailTop
attrSet _ = undefined
attrConstruct _ = undefined
-- VVV Prop "avail-width"
-- Type: TBasicType TUInt64
-- Flags: [PropertyReadable]
getDOMScreenAvailWidth :: (MonadIO m, DOMScreenK o) => o -> m Word64
getDOMScreenAvailWidth obj = liftIO $ getObjectPropertyUInt64 obj "avail-width"
data DOMScreenAvailWidthPropertyInfo
instance AttrInfo DOMScreenAvailWidthPropertyInfo where
type AttrAllowedOps DOMScreenAvailWidthPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint DOMScreenAvailWidthPropertyInfo = (~) ()
type AttrBaseTypeConstraint DOMScreenAvailWidthPropertyInfo = DOMScreenK
type AttrGetType DOMScreenAvailWidthPropertyInfo = Word64
type AttrLabel DOMScreenAvailWidthPropertyInfo = "avail-width"
attrGet _ = getDOMScreenAvailWidth
attrSet _ = undefined
attrConstruct _ = undefined
-- VVV Prop "color-depth"
-- Type: TBasicType TUInt64
-- Flags: [PropertyReadable]
getDOMScreenColorDepth :: (MonadIO m, DOMScreenK o) => o -> m Word64
getDOMScreenColorDepth obj = liftIO $ getObjectPropertyUInt64 obj "color-depth"
data DOMScreenColorDepthPropertyInfo
instance AttrInfo DOMScreenColorDepthPropertyInfo where
type AttrAllowedOps DOMScreenColorDepthPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint DOMScreenColorDepthPropertyInfo = (~) ()
type AttrBaseTypeConstraint DOMScreenColorDepthPropertyInfo = DOMScreenK
type AttrGetType DOMScreenColorDepthPropertyInfo = Word64
type AttrLabel DOMScreenColorDepthPropertyInfo = "color-depth"
attrGet _ = getDOMScreenColorDepth
attrSet _ = undefined
attrConstruct _ = undefined
-- VVV Prop "height"
-- Type: TBasicType TUInt64
-- Flags: [PropertyReadable]
getDOMScreenHeight :: (MonadIO m, DOMScreenK o) => o -> m Word64
getDOMScreenHeight obj = liftIO $ getObjectPropertyUInt64 obj "height"
data DOMScreenHeightPropertyInfo
instance AttrInfo DOMScreenHeightPropertyInfo where
type AttrAllowedOps DOMScreenHeightPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint DOMScreenHeightPropertyInfo = (~) ()
type AttrBaseTypeConstraint DOMScreenHeightPropertyInfo = DOMScreenK
type AttrGetType DOMScreenHeightPropertyInfo = Word64
type AttrLabel DOMScreenHeightPropertyInfo = "height"
attrGet _ = getDOMScreenHeight
attrSet _ = undefined
attrConstruct _ = undefined
-- VVV Prop "pixel-depth"
-- Type: TBasicType TUInt64
-- Flags: [PropertyReadable]
getDOMScreenPixelDepth :: (MonadIO m, DOMScreenK o) => o -> m Word64
getDOMScreenPixelDepth obj = liftIO $ getObjectPropertyUInt64 obj "pixel-depth"
data DOMScreenPixelDepthPropertyInfo
instance AttrInfo DOMScreenPixelDepthPropertyInfo where
type AttrAllowedOps DOMScreenPixelDepthPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint DOMScreenPixelDepthPropertyInfo = (~) ()
type AttrBaseTypeConstraint DOMScreenPixelDepthPropertyInfo = DOMScreenK
type AttrGetType DOMScreenPixelDepthPropertyInfo = Word64
type AttrLabel DOMScreenPixelDepthPropertyInfo = "pixel-depth"
attrGet _ = getDOMScreenPixelDepth
attrSet _ = undefined
attrConstruct _ = undefined
-- VVV Prop "width"
-- Type: TBasicType TUInt64
-- Flags: [PropertyReadable]
getDOMScreenWidth :: (MonadIO m, DOMScreenK o) => o -> m Word64
getDOMScreenWidth obj = liftIO $ getObjectPropertyUInt64 obj "width"
data DOMScreenWidthPropertyInfo
instance AttrInfo DOMScreenWidthPropertyInfo where
type AttrAllowedOps DOMScreenWidthPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint DOMScreenWidthPropertyInfo = (~) ()
type AttrBaseTypeConstraint DOMScreenWidthPropertyInfo = DOMScreenK
type AttrGetType DOMScreenWidthPropertyInfo = Word64
type AttrLabel DOMScreenWidthPropertyInfo = "width"
attrGet _ = getDOMScreenWidth
attrSet _ = undefined
attrConstruct _ = undefined
type instance AttributeList DOMScreen = DOMScreenAttributeList
type DOMScreenAttributeList = ('[ '("availHeight", DOMScreenAvailHeightPropertyInfo), '("availLeft", DOMScreenAvailLeftPropertyInfo), '("availTop", DOMScreenAvailTopPropertyInfo), '("availWidth", DOMScreenAvailWidthPropertyInfo), '("colorDepth", DOMScreenColorDepthPropertyInfo), '("coreObject", DOMObjectCoreObjectPropertyInfo), '("height", DOMScreenHeightPropertyInfo), '("pixelDepth", DOMScreenPixelDepthPropertyInfo), '("width", DOMScreenWidthPropertyInfo)] :: [(Symbol, *)])
type instance SignalList DOMScreen = DOMScreenSignalList
type DOMScreenSignalList = ('[ '("notify", GObject.ObjectNotifySignalInfo)] :: [(Symbol, *)])
-- method DOMScreen::get_avail_height
-- method type : OrdinaryMethod
-- Args : [Arg {argCName = "_obj", argType = TInterface "WebKit" "DOMScreen", direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, argCallerAllocates = False, transfer = TransferNothing}]
-- Lengths : []
-- returnType : TBasicType TUInt64
-- throws : False
-- Skip return : False
foreign import ccall "webkit_dom_screen_get_avail_height" webkit_dom_screen_get_avail_height ::
Ptr DOMScreen -> -- _obj : TInterface "WebKit" "DOMScreen"
IO Word64
dOMScreenGetAvailHeight ::
(MonadIO m, DOMScreenK a) =>
a -- _obj
-> m Word64 -- result
dOMScreenGetAvailHeight _obj = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
result <- webkit_dom_screen_get_avail_height _obj'
touchManagedPtr _obj
return result
data DOMScreenGetAvailHeightMethodInfo
instance (signature ~ (m Word64), MonadIO m, DOMScreenK a) => MethodInfo DOMScreenGetAvailHeightMethodInfo a signature where
overloadedMethod _ = dOMScreenGetAvailHeight
-- method DOMScreen::get_avail_left
-- method type : OrdinaryMethod
-- Args : [Arg {argCName = "_obj", argType = TInterface "WebKit" "DOMScreen", direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, argCallerAllocates = False, transfer = TransferNothing}]
-- Lengths : []
-- returnType : TBasicType TInt64
-- throws : False
-- Skip return : False
foreign import ccall "webkit_dom_screen_get_avail_left" webkit_dom_screen_get_avail_left ::
Ptr DOMScreen -> -- _obj : TInterface "WebKit" "DOMScreen"
IO Int64
dOMScreenGetAvailLeft ::
(MonadIO m, DOMScreenK a) =>
a -- _obj
-> m Int64 -- result
dOMScreenGetAvailLeft _obj = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
result <- webkit_dom_screen_get_avail_left _obj'
touchManagedPtr _obj
return result
data DOMScreenGetAvailLeftMethodInfo
instance (signature ~ (m Int64), MonadIO m, DOMScreenK a) => MethodInfo DOMScreenGetAvailLeftMethodInfo a signature where
overloadedMethod _ = dOMScreenGetAvailLeft
-- method DOMScreen::get_avail_top
-- method type : OrdinaryMethod
-- Args : [Arg {argCName = "_obj", argType = TInterface "WebKit" "DOMScreen", direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, argCallerAllocates = False, transfer = TransferNothing}]
-- Lengths : []
-- returnType : TBasicType TInt64
-- throws : False
-- Skip return : False
foreign import ccall "webkit_dom_screen_get_avail_top" webkit_dom_screen_get_avail_top ::
Ptr DOMScreen -> -- _obj : TInterface "WebKit" "DOMScreen"
IO Int64
dOMScreenGetAvailTop ::
(MonadIO m, DOMScreenK a) =>
a -- _obj
-> m Int64 -- result
dOMScreenGetAvailTop _obj = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
result <- webkit_dom_screen_get_avail_top _obj'
touchManagedPtr _obj
return result
data DOMScreenGetAvailTopMethodInfo
instance (signature ~ (m Int64), MonadIO m, DOMScreenK a) => MethodInfo DOMScreenGetAvailTopMethodInfo a signature where
overloadedMethod _ = dOMScreenGetAvailTop
-- method DOMScreen::get_avail_width
-- method type : OrdinaryMethod
-- Args : [Arg {argCName = "_obj", argType = TInterface "WebKit" "DOMScreen", direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, argCallerAllocates = False, transfer = TransferNothing}]
-- Lengths : []
-- returnType : TBasicType TUInt64
-- throws : False
-- Skip return : False
foreign import ccall "webkit_dom_screen_get_avail_width" webkit_dom_screen_get_avail_width ::
Ptr DOMScreen -> -- _obj : TInterface "WebKit" "DOMScreen"
IO Word64
dOMScreenGetAvailWidth ::
(MonadIO m, DOMScreenK a) =>
a -- _obj
-> m Word64 -- result
dOMScreenGetAvailWidth _obj = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
result <- webkit_dom_screen_get_avail_width _obj'
touchManagedPtr _obj
return result
data DOMScreenGetAvailWidthMethodInfo
instance (signature ~ (m Word64), MonadIO m, DOMScreenK a) => MethodInfo DOMScreenGetAvailWidthMethodInfo a signature where
overloadedMethod _ = dOMScreenGetAvailWidth
-- method DOMScreen::get_color_depth
-- method type : OrdinaryMethod
-- Args : [Arg {argCName = "_obj", argType = TInterface "WebKit" "DOMScreen", direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, argCallerAllocates = False, transfer = TransferNothing}]
-- Lengths : []
-- returnType : TBasicType TUInt64
-- throws : False
-- Skip return : False
foreign import ccall "webkit_dom_screen_get_color_depth" webkit_dom_screen_get_color_depth ::
Ptr DOMScreen -> -- _obj : TInterface "WebKit" "DOMScreen"
IO Word64
dOMScreenGetColorDepth ::
(MonadIO m, DOMScreenK a) =>
a -- _obj
-> m Word64 -- result
dOMScreenGetColorDepth _obj = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
result <- webkit_dom_screen_get_color_depth _obj'
touchManagedPtr _obj
return result
data DOMScreenGetColorDepthMethodInfo
instance (signature ~ (m Word64), MonadIO m, DOMScreenK a) => MethodInfo DOMScreenGetColorDepthMethodInfo a signature where
overloadedMethod _ = dOMScreenGetColorDepth
-- method DOMScreen::get_height
-- method type : OrdinaryMethod
-- Args : [Arg {argCName = "_obj", argType = TInterface "WebKit" "DOMScreen", direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, argCallerAllocates = False, transfer = TransferNothing}]
-- Lengths : []
-- returnType : TBasicType TUInt64
-- throws : False
-- Skip return : False
foreign import ccall "webkit_dom_screen_get_height" webkit_dom_screen_get_height ::
Ptr DOMScreen -> -- _obj : TInterface "WebKit" "DOMScreen"
IO Word64
dOMScreenGetHeight ::
(MonadIO m, DOMScreenK a) =>
a -- _obj
-> m Word64 -- result
dOMScreenGetHeight _obj = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
result <- webkit_dom_screen_get_height _obj'
touchManagedPtr _obj
return result
data DOMScreenGetHeightMethodInfo
instance (signature ~ (m Word64), MonadIO m, DOMScreenK a) => MethodInfo DOMScreenGetHeightMethodInfo a signature where
overloadedMethod _ = dOMScreenGetHeight
-- method DOMScreen::get_pixel_depth
-- method type : OrdinaryMethod
-- Args : [Arg {argCName = "_obj", argType = TInterface "WebKit" "DOMScreen", direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, argCallerAllocates = False, transfer = TransferNothing}]
-- Lengths : []
-- returnType : TBasicType TUInt64
-- throws : False
-- Skip return : False
foreign import ccall "webkit_dom_screen_get_pixel_depth" webkit_dom_screen_get_pixel_depth ::
Ptr DOMScreen -> -- _obj : TInterface "WebKit" "DOMScreen"
IO Word64
dOMScreenGetPixelDepth ::
(MonadIO m, DOMScreenK a) =>
a -- _obj
-> m Word64 -- result
dOMScreenGetPixelDepth _obj = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
result <- webkit_dom_screen_get_pixel_depth _obj'
touchManagedPtr _obj
return result
data DOMScreenGetPixelDepthMethodInfo
instance (signature ~ (m Word64), MonadIO m, DOMScreenK a) => MethodInfo DOMScreenGetPixelDepthMethodInfo a signature where
overloadedMethod _ = dOMScreenGetPixelDepth
-- method DOMScreen::get_width
-- method type : OrdinaryMethod
-- Args : [Arg {argCName = "_obj", argType = TInterface "WebKit" "DOMScreen", direction = DirectionIn, mayBeNull = False, argScope = ScopeTypeInvalid, argClosure = -1, argDestroy = -1, argCallerAllocates = False, transfer = TransferNothing}]
-- Lengths : []
-- returnType : TBasicType TUInt64
-- throws : False
-- Skip return : False
foreign import ccall "webkit_dom_screen_get_width" webkit_dom_screen_get_width ::
Ptr DOMScreen -> -- _obj : TInterface "WebKit" "DOMScreen"
IO Word64
dOMScreenGetWidth ::
(MonadIO m, DOMScreenK a) =>
a -- _obj
-> m Word64 -- result
dOMScreenGetWidth _obj = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
result <- webkit_dom_screen_get_width _obj'
touchManagedPtr _obj
return result
data DOMScreenGetWidthMethodInfo
instance (signature ~ (m Word64), MonadIO m, DOMScreenK a) => MethodInfo DOMScreenGetWidthMethodInfo a signature where
overloadedMethod _ = dOMScreenGetWidth