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
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)
(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)
(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)
(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)
(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))