module Graphics.UI.Gtk.WebKit.DOM.HTMLCanvasElement(
setWidth,
getWidth,
setHeight,
getHeight,
HTMLCanvasElement,
castToHTMLCanvasElement,
gTypeHTMLCanvasElement,
HTMLCanvasElementClass,
toHTMLCanvasElement,
) where
import Prelude hiding (drop, error, print)
import Data.Typeable (Typeable)
import Foreign.Marshal (maybePeek, maybeWith)
import System.Glib.FFI (maybeNull, withForeignPtr, nullForeignPtr, Ptr, nullPtr, castPtr, Word, Int64, Word64, CChar(..), CInt(..), CUInt(..), CLong(..), CULong(..), CLLong(..), CULLong(..), CShort(..), CUShort(..), CFloat(..), CDouble(..), toBool, fromBool)
import System.Glib.UTFString (GlibString(..), readUTFString)
import Control.Applicative ((<$>))
import Control.Monad (void)
import Control.Monad.IO.Class (MonadIO(..))
import System.Glib.GError
import Graphics.UI.Gtk.WebKit.DOM.EventTargetClosures
import Graphics.UI.Gtk.WebKit.DOM.EventM
import Graphics.UI.Gtk.WebKit.Types
import Graphics.UI.Gtk.WebKit.DOM.Enums
setWidth ::
(MonadIO m, HTMLCanvasElementClass self) => self -> Int -> m ()
setWidth self val
= liftIO
((\(HTMLCanvasElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_canvas_element_set_width argPtr1 arg2)
(toHTMLCanvasElement self)
(fromIntegral val))
getWidth ::
(MonadIO m, HTMLCanvasElementClass self) => self -> m Int
getWidth self
= liftIO
(fromIntegral <$>
((\(HTMLCanvasElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_canvas_element_get_width argPtr1)
(toHTMLCanvasElement self)))
setHeight ::
(MonadIO m, HTMLCanvasElementClass self) => self -> Int -> m ()
setHeight self val
= liftIO
((\(HTMLCanvasElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_canvas_element_set_height argPtr1 arg2)
(toHTMLCanvasElement self)
(fromIntegral val))
getHeight ::
(MonadIO m, HTMLCanvasElementClass self) => self -> m Int
getHeight self
= liftIO
(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))