-- GENERATED by C->Haskell Compiler, version 0.13.12 (gtk2hs branch) "Bin IO", 27 May 2012 (Haskell)
-- Edit the ORIGNAL .chs file instead!


{-# LINE 1 "./Graphics/UI/Gtk/WebKit/DOM/StyleMedia.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.StyleMedia
       (styleMediaMatchMedium, StyleMedia, StyleMediaClass,
        castToStyleMedia, gTypeStyleMedia, toStyleMedia)
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 8 "./Graphics/UI/Gtk/WebKit/DOM/StyleMedia.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
styleMediaMatchMedium ::
                      (StyleMediaClass self, GlibString string) =>
                        self -> string -> IO Bool
styleMediaMatchMedium self mediaquery
  = toBool <$>
      (withUTFString mediaquery $
         \ mediaqueryPtr ->
           (\(StyleMedia arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_style_media_match_medium argPtr1 arg2) (toStyleMedia self)
             mediaqueryPtr)

foreign import ccall safe "webkit_dom_style_media_match_medium"
  webkit_dom_style_media_match_medium :: ((Ptr StyleMedia) -> ((Ptr CChar) -> (IO CInt)))