module Graphics.UI.Gtk.WebKit.DOM.CSSRuleList
(cssRuleListItem, cssRuleListGetLength, CSSRuleList,
CSSRuleListClass, castToCSSRuleList, gTypeCSSRuleList,
toCSSRuleList)
where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
cssRuleListItem ::
(CSSRuleListClass self) => self -> Word -> IO (Maybe CSSRule)
cssRuleListItem self index
= maybeNull (makeNewGObject mkCSSRule)
((\(CSSRuleList arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_css_rule_list_item argPtr1 arg2) (toCSSRuleList self)
(fromIntegral index))
cssRuleListGetLength :: (CSSRuleListClass self) => self -> IO Word
cssRuleListGetLength self
= fromIntegral <$>
((\(CSSRuleList arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_css_rule_list_get_length argPtr1)
(toCSSRuleList self))
foreign import ccall safe "webkit_dom_css_rule_list_item"
webkit_dom_css_rule_list_item :: ((Ptr CSSRuleList) -> (CULong -> (IO (Ptr CSSRule))))
foreign import ccall safe "webkit_dom_css_rule_list_get_length"
webkit_dom_css_rule_list_get_length :: ((Ptr CSSRuleList) -> (IO CULong))