-- 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/HTMLCanvasElement.chs" #-}
module Graphics.UI.Gtk.WebKit.DOM.HTMLCanvasElement
       (htmlCanvasElementSetWidth, htmlCanvasElementGetWidth,
        htmlCanvasElementSetHeight, htmlCanvasElementGetHeight,
        HTMLCanvasElement, HTMLCanvasElementClass, castToHTMLCanvasElement,
        gTypeHTMLCanvasElement, toHTMLCanvasElement)
       where
import System.Glib.FFI
import System.Glib.UTFString
import Control.Applicative
import Graphics.UI.Gtk.WebKit.Types
{-# LINE 10 "./Graphics/UI/Gtk/WebKit/DOM/HTMLCanvasElement.chs" #-}
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventM
 
htmlCanvasElementSetWidth ::
                          (HTMLCanvasElementClass self) => self -> Int -> IO ()
htmlCanvasElementSetWidth self val
  = (\(HTMLCanvasElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_canvas_element_set_width argPtr1 arg2)
{-# LINE 17 "./Graphics/UI/Gtk/WebKit/DOM/HTMLCanvasElement.chs" #-}
      (toHTMLCanvasElement self)
      (fromIntegral val)
 
htmlCanvasElementGetWidth ::
                          (HTMLCanvasElementClass self) => self -> IO Int
htmlCanvasElementGetWidth self
  = fromIntegral <$>
      ((\(HTMLCanvasElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_canvas_element_get_width argPtr1)
{-# LINE 25 "./Graphics/UI/Gtk/WebKit/DOM/HTMLCanvasElement.chs" #-}
         (toHTMLCanvasElement self))
 
htmlCanvasElementSetHeight ::
                           (HTMLCanvasElementClass self) => self -> Int -> IO ()
htmlCanvasElementSetHeight self val
  = (\(HTMLCanvasElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_canvas_element_set_height argPtr1 arg2)
{-# LINE 31 "./Graphics/UI/Gtk/WebKit/DOM/HTMLCanvasElement.chs" #-}
      (toHTMLCanvasElement self)
      (fromIntegral val)
 
htmlCanvasElementGetHeight ::
                           (HTMLCanvasElementClass self) => self -> IO Int
htmlCanvasElementGetHeight self
  = fromIntegral <$>
      ((\(HTMLCanvasElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_canvas_element_get_height argPtr1)
{-# LINE 39 "./Graphics/UI/Gtk/WebKit/DOM/HTMLCanvasElement.chs" #-}
         (toHTMLCanvasElement self))

foreign import ccall safe "webkit_dom_html_canvas_element_set_width"
  webkit_dom_html_canvas_element_set_width :: ((Ptr HTMLCanvasElement) -> (CLong -> (IO ())))

foreign import ccall safe "webkit_dom_html_canvas_element_get_width"
  webkit_dom_html_canvas_element_get_width :: ((Ptr HTMLCanvasElement) -> (IO CLong))

foreign import ccall safe "webkit_dom_html_canvas_element_set_height"
  webkit_dom_html_canvas_element_set_height :: ((Ptr HTMLCanvasElement) -> (CLong -> (IO ())))

foreign import ccall safe "webkit_dom_html_canvas_element_get_height"
  webkit_dom_html_canvas_element_get_height :: ((Ptr HTMLCanvasElement) -> (IO CLong))