module GI.WebKit2WebExtension.Objects.DOMStyleSheetList
(
DOMStyleSheetList(..) ,
IsDOMStyleSheetList ,
toDOMStyleSheetList ,
noDOMStyleSheetList ,
DOMStyleSheetListGetLengthMethodInfo ,
dOMStyleSheetListGetLength ,
DOMStyleSheetListItemMethodInfo ,
dOMStyleSheetListItem ,
DOMStyleSheetListLengthPropertyInfo ,
dOMStyleSheetListLength ,
getDOMStyleSheetListLength ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.WebKit2WebExtension.Objects.DOMObject as WebKit2WebExtension.DOMObject
import qualified GI.WebKit2WebExtension.Objects.DOMStyleSheet as WebKit2WebExtension.DOMStyleSheet
newtype DOMStyleSheetList = DOMStyleSheetList (ManagedPtr DOMStyleSheetList)
foreign import ccall "webkit_dom_style_sheet_list_get_type"
c_webkit_dom_style_sheet_list_get_type :: IO GType
instance GObject DOMStyleSheetList where
gobjectType _ = c_webkit_dom_style_sheet_list_get_type
class GObject o => IsDOMStyleSheetList o
#if MIN_VERSION_base(4,9,0)
instance (GObject a, O.UnknownAncestorError DOMStyleSheetList a) =>
IsDOMStyleSheetList a
#endif
instance IsDOMStyleSheetList DOMStyleSheetList
instance WebKit2WebExtension.DOMObject.IsDOMObject DOMStyleSheetList
instance GObject.Object.IsObject DOMStyleSheetList
toDOMStyleSheetList :: IsDOMStyleSheetList o => o -> IO DOMStyleSheetList
toDOMStyleSheetList = unsafeCastTo DOMStyleSheetList
noDOMStyleSheetList :: Maybe DOMStyleSheetList
noDOMStyleSheetList = Nothing
type family ResolveDOMStyleSheetListMethod (t :: Symbol) (o :: *) :: * where
ResolveDOMStyleSheetListMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveDOMStyleSheetListMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveDOMStyleSheetListMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveDOMStyleSheetListMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveDOMStyleSheetListMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveDOMStyleSheetListMethod "item" o = DOMStyleSheetListItemMethodInfo
ResolveDOMStyleSheetListMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveDOMStyleSheetListMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveDOMStyleSheetListMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveDOMStyleSheetListMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveDOMStyleSheetListMethod "replaceData" o = GObject.Object.ObjectReplaceDataMethodInfo
ResolveDOMStyleSheetListMethod "replaceQdata" o = GObject.Object.ObjectReplaceQdataMethodInfo
ResolveDOMStyleSheetListMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveDOMStyleSheetListMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveDOMStyleSheetListMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveDOMStyleSheetListMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveDOMStyleSheetListMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveDOMStyleSheetListMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveDOMStyleSheetListMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveDOMStyleSheetListMethod "getLength" o = DOMStyleSheetListGetLengthMethodInfo
ResolveDOMStyleSheetListMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveDOMStyleSheetListMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveDOMStyleSheetListMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveDOMStyleSheetListMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveDOMStyleSheetListMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveDOMStyleSheetListMethod t DOMStyleSheetList, O.MethodInfo info DOMStyleSheetList p) => O.IsLabelProxy t (DOMStyleSheetList -> p) where
fromLabelProxy _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#if MIN_VERSION_base(4,9,0)
instance (info ~ ResolveDOMStyleSheetListMethod t DOMStyleSheetList, O.MethodInfo info DOMStyleSheetList p) => O.IsLabel t (DOMStyleSheetList -> p) where
fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif
getDOMStyleSheetListLength :: (MonadIO m, IsDOMStyleSheetList o) => o -> m CULong
getDOMStyleSheetListLength obj = liftIO $ getObjectPropertyULong obj "length"
data DOMStyleSheetListLengthPropertyInfo
instance AttrInfo DOMStyleSheetListLengthPropertyInfo where
type AttrAllowedOps DOMStyleSheetListLengthPropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint DOMStyleSheetListLengthPropertyInfo = (~) ()
type AttrBaseTypeConstraint DOMStyleSheetListLengthPropertyInfo = IsDOMStyleSheetList
type AttrGetType DOMStyleSheetListLengthPropertyInfo = CULong
type AttrLabel DOMStyleSheetListLengthPropertyInfo = "length"
type AttrOrigin DOMStyleSheetListLengthPropertyInfo = DOMStyleSheetList
attrGet _ = getDOMStyleSheetListLength
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
instance O.HasAttributeList DOMStyleSheetList
type instance O.AttributeList DOMStyleSheetList = DOMStyleSheetListAttributeList
type DOMStyleSheetListAttributeList = ('[ '("coreObject", WebKit2WebExtension.DOMObject.DOMObjectCoreObjectPropertyInfo), '("length", DOMStyleSheetListLengthPropertyInfo)] :: [(Symbol, *)])
dOMStyleSheetListLength :: AttrLabelProxy "length"
dOMStyleSheetListLength = AttrLabelProxy
type instance O.SignalList DOMStyleSheetList = DOMStyleSheetListSignalList
type DOMStyleSheetListSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, *)])
foreign import ccall "webkit_dom_style_sheet_list_get_length" webkit_dom_style_sheet_list_get_length ::
Ptr DOMStyleSheetList ->
IO CULong
dOMStyleSheetListGetLength ::
(B.CallStack.HasCallStack, MonadIO m, IsDOMStyleSheetList a) =>
a
-> m CULong
dOMStyleSheetListGetLength self = liftIO $ do
self' <- unsafeManagedPtrCastPtr self
result <- webkit_dom_style_sheet_list_get_length self'
touchManagedPtr self
return result
data DOMStyleSheetListGetLengthMethodInfo
instance (signature ~ (m CULong), MonadIO m, IsDOMStyleSheetList a) => O.MethodInfo DOMStyleSheetListGetLengthMethodInfo a signature where
overloadedMethod _ = dOMStyleSheetListGetLength
foreign import ccall "webkit_dom_style_sheet_list_item" webkit_dom_style_sheet_list_item ::
Ptr DOMStyleSheetList ->
CULong ->
IO (Ptr WebKit2WebExtension.DOMStyleSheet.DOMStyleSheet)
dOMStyleSheetListItem ::
(B.CallStack.HasCallStack, MonadIO m, IsDOMStyleSheetList a) =>
a
-> CULong
-> m WebKit2WebExtension.DOMStyleSheet.DOMStyleSheet
dOMStyleSheetListItem self index = liftIO $ do
self' <- unsafeManagedPtrCastPtr self
result <- webkit_dom_style_sheet_list_item self' index
checkUnexpectedReturnNULL "dOMStyleSheetListItem" result
result' <- (wrapObject WebKit2WebExtension.DOMStyleSheet.DOMStyleSheet) result
touchManagedPtr self
return result'
data DOMStyleSheetListItemMethodInfo
instance (signature ~ (CULong -> m WebKit2WebExtension.DOMStyleSheet.DOMStyleSheet), MonadIO m, IsDOMStyleSheetList a) => O.MethodInfo DOMStyleSheetListItemMethodInfo a signature where
overloadedMethod _ = dOMStyleSheetListItem