module Graphics.UI.Gtk.WebKit.DOM.HTMLSelectElement
(htmlSelectElementItem, htmlSelectElementNamedItem,
htmlSelectElementAdd, htmlSelectElementRemove,
htmlSelectElementCheckValidity, htmlSelectElementSetCustomValidity,
htmlSelectElementSetAutofocus, htmlSelectElementGetAutofocus,
htmlSelectElementSetDisabled, htmlSelectElementGetDisabled,
htmlSelectElementGetForm, htmlSelectElementSetMultiple,
htmlSelectElementGetMultiple, htmlSelectElementSetName,
htmlSelectElementGetName, htmlSelectElementSetRequired,
htmlSelectElementGetRequired, htmlSelectElementSetSize,
htmlSelectElementGetSize, htmlSelectElementGetOptions,
htmlSelectElementSetLength, htmlSelectElementGetLength,
htmlSelectElementGetSelectedOptions,
htmlSelectElementSetSelectedIndex,
htmlSelectElementGetSelectedIndex, htmlSelectElementSetValue,
htmlSelectElementGetValue, htmlSelectElementGetWillValidate,
htmlSelectElementGetValidity,
htmlSelectElementGetValidationMessage, htmlSelectElementGetLabels,
HTMLSelectElement, HTMLSelectElementClass, castToHTMLSelectElement,
gTypeHTMLSelectElement, toHTMLSelectElement)
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
htmlSelectElementItem ::
(HTMLSelectElementClass self) => self -> Word -> IO (Maybe Node)
htmlSelectElementItem self index
= maybeNull (makeNewGObject mkNode)
((\(HTMLSelectElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_item argPtr1 arg2)
(toHTMLSelectElement self)
(fromIntegral index))
htmlSelectElementNamedItem ::
(HTMLSelectElementClass self, GlibString string) =>
self -> string -> IO (Maybe Node)
htmlSelectElementNamedItem self name
= maybeNull (makeNewGObject mkNode)
(withUTFString name $
\ namePtr ->
(\(HTMLSelectElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_named_item argPtr1 arg2)
(toHTMLSelectElement self)
namePtr)
htmlSelectElementAdd ::
(HTMLSelectElementClass self, HTMLElementClass element,
HTMLElementClass before) =>
self -> Maybe element -> Maybe before -> IO ()
htmlSelectElementAdd self element before
= propagateGError $
\ errorPtr_ ->
(\(HTMLSelectElement arg1) (HTMLElement arg2) (HTMLElement arg3) arg4 -> withForeignPtr arg1 $ \argPtr1 ->withForeignPtr arg2 $ \argPtr2 ->withForeignPtr arg3 $ \argPtr3 ->webkit_dom_html_select_element_add argPtr1 argPtr2 argPtr3 arg4)
(toHTMLSelectElement self)
(maybe (HTMLElement nullForeignPtr) toHTMLElement element)
(maybe (HTMLElement nullForeignPtr) toHTMLElement before)
errorPtr_
htmlSelectElementRemove ::
(HTMLSelectElementClass self) => self -> Int -> IO ()
htmlSelectElementRemove self index
= (\(HTMLSelectElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_remove argPtr1 arg2)
(toHTMLSelectElement self)
(fromIntegral index)
htmlSelectElementCheckValidity ::
(HTMLSelectElementClass self) => self -> IO Bool
htmlSelectElementCheckValidity self
= toBool <$>
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_check_validity argPtr1)
(toHTMLSelectElement self))
htmlSelectElementSetCustomValidity ::
(HTMLSelectElementClass self, GlibString string) =>
self -> string -> IO ()
htmlSelectElementSetCustomValidity self error
= withUTFString error $
\ errorPtr ->
(\(HTMLSelectElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_set_custom_validity argPtr1 arg2)
(toHTMLSelectElement self)
errorPtr
htmlSelectElementSetAutofocus ::
(HTMLSelectElementClass self) => self -> Bool -> IO ()
htmlSelectElementSetAutofocus self val
= (\(HTMLSelectElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_set_autofocus argPtr1 arg2)
(toHTMLSelectElement self)
(fromBool val)
htmlSelectElementGetAutofocus ::
(HTMLSelectElementClass self) => self -> IO Bool
htmlSelectElementGetAutofocus self
= toBool <$>
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_autofocus argPtr1)
(toHTMLSelectElement self))
htmlSelectElementSetDisabled ::
(HTMLSelectElementClass self) => self -> Bool -> IO ()
htmlSelectElementSetDisabled self val
= (\(HTMLSelectElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_set_disabled argPtr1 arg2)
(toHTMLSelectElement self)
(fromBool val)
htmlSelectElementGetDisabled ::
(HTMLSelectElementClass self) => self -> IO Bool
htmlSelectElementGetDisabled self
= toBool <$>
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_disabled argPtr1)
(toHTMLSelectElement self))
htmlSelectElementGetForm ::
(HTMLSelectElementClass self) => self -> IO (Maybe HTMLFormElement)
htmlSelectElementGetForm self
= maybeNull (makeNewGObject mkHTMLFormElement)
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_form argPtr1)
(toHTMLSelectElement self))
htmlSelectElementSetMultiple ::
(HTMLSelectElementClass self) => self -> Bool -> IO ()
htmlSelectElementSetMultiple self val
= (\(HTMLSelectElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_set_multiple argPtr1 arg2)
(toHTMLSelectElement self)
(fromBool val)
htmlSelectElementGetMultiple ::
(HTMLSelectElementClass self) => self -> IO Bool
htmlSelectElementGetMultiple self
= toBool <$>
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_multiple argPtr1)
(toHTMLSelectElement self))
htmlSelectElementSetName ::
(HTMLSelectElementClass self, GlibString string) =>
self -> string -> IO ()
htmlSelectElementSetName self val
= withUTFString val $
\ valPtr ->
(\(HTMLSelectElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_set_name argPtr1 arg2)
(toHTMLSelectElement self)
valPtr
htmlSelectElementGetName ::
(HTMLSelectElementClass self, GlibString string) =>
self -> IO string
htmlSelectElementGetName self
= ((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_name argPtr1)
(toHTMLSelectElement self))
>>=
readUTFString
htmlSelectElementSetRequired ::
(HTMLSelectElementClass self) => self -> Bool -> IO ()
htmlSelectElementSetRequired self val
= (\(HTMLSelectElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_set_required argPtr1 arg2)
(toHTMLSelectElement self)
(fromBool val)
htmlSelectElementGetRequired ::
(HTMLSelectElementClass self) => self -> IO Bool
htmlSelectElementGetRequired self
= toBool <$>
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_required argPtr1)
(toHTMLSelectElement self))
htmlSelectElementSetSize ::
(HTMLSelectElementClass self) => self -> Int -> IO ()
htmlSelectElementSetSize self val
= (\(HTMLSelectElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_set_size argPtr1 arg2)
(toHTMLSelectElement self)
(fromIntegral val)
htmlSelectElementGetSize ::
(HTMLSelectElementClass self) => self -> IO Int
htmlSelectElementGetSize self
= fromIntegral <$>
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_size argPtr1)
(toHTMLSelectElement self))
htmlSelectElementGetOptions ::
(HTMLSelectElementClass self) =>
self -> IO (Maybe HTMLOptionsCollection)
htmlSelectElementGetOptions self
= maybeNull (makeNewGObject mkHTMLOptionsCollection)
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_options argPtr1)
(toHTMLSelectElement self))
htmlSelectElementSetLength ::
(HTMLSelectElementClass self) => self -> Word -> IO ()
htmlSelectElementSetLength self val
= propagateGError $
\ errorPtr_ ->
(\(HTMLSelectElement arg1) arg2 arg3 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_set_length argPtr1 arg2 arg3)
(toHTMLSelectElement self)
(fromIntegral val)
errorPtr_
htmlSelectElementGetLength ::
(HTMLSelectElementClass self) => self -> IO Word
htmlSelectElementGetLength self
= fromIntegral <$>
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_length argPtr1)
(toHTMLSelectElement self))
htmlSelectElementGetSelectedOptions ::
(HTMLSelectElementClass self) =>
self -> IO (Maybe HTMLCollection)
htmlSelectElementGetSelectedOptions self
= maybeNull (makeNewGObject mkHTMLCollection)
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_selected_options argPtr1)
(toHTMLSelectElement self))
htmlSelectElementSetSelectedIndex ::
(HTMLSelectElementClass self) => self -> Int -> IO ()
htmlSelectElementSetSelectedIndex self val
= (\(HTMLSelectElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_set_selected_index argPtr1 arg2)
(toHTMLSelectElement self)
(fromIntegral val)
htmlSelectElementGetSelectedIndex ::
(HTMLSelectElementClass self) => self -> IO Int
htmlSelectElementGetSelectedIndex self
= fromIntegral <$>
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_selected_index argPtr1)
(toHTMLSelectElement self))
htmlSelectElementSetValue ::
(HTMLSelectElementClass self, GlibString string) =>
self -> string -> IO ()
htmlSelectElementSetValue self val
= withUTFString val $
\ valPtr ->
(\(HTMLSelectElement arg1) arg2 -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_set_value argPtr1 arg2)
(toHTMLSelectElement self)
valPtr
htmlSelectElementGetValue ::
(HTMLSelectElementClass self, GlibString string) =>
self -> IO string
htmlSelectElementGetValue self
= ((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_value argPtr1)
(toHTMLSelectElement self))
>>=
readUTFString
htmlSelectElementGetWillValidate ::
(HTMLSelectElementClass self) => self -> IO Bool
htmlSelectElementGetWillValidate self
= toBool <$>
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_will_validate argPtr1)
(toHTMLSelectElement self))
htmlSelectElementGetValidity ::
(HTMLSelectElementClass self) => self -> IO (Maybe ValidityState)
htmlSelectElementGetValidity self
= maybeNull (makeNewGObject mkValidityState)
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_validity argPtr1)
(toHTMLSelectElement self))
htmlSelectElementGetValidationMessage ::
(HTMLSelectElementClass self, GlibString string) =>
self -> IO string
htmlSelectElementGetValidationMessage self
= ((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_validation_message argPtr1)
(toHTMLSelectElement self))
>>=
readUTFString
htmlSelectElementGetLabels ::
(HTMLSelectElementClass self) => self -> IO (Maybe NodeList)
htmlSelectElementGetLabels self
= maybeNull (makeNewGObject mkNodeList)
((\(HTMLSelectElement arg1) -> withForeignPtr arg1 $ \argPtr1 ->webkit_dom_html_select_element_get_labels argPtr1)
(toHTMLSelectElement self))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_item"
webkit_dom_html_select_element_item :: ((Ptr HTMLSelectElement) -> (CULong -> (IO (Ptr Node))))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_named_item"
webkit_dom_html_select_element_named_item :: ((Ptr HTMLSelectElement) -> ((Ptr CChar) -> (IO (Ptr Node))))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_add"
webkit_dom_html_select_element_add :: ((Ptr HTMLSelectElement) -> ((Ptr HTMLElement) -> ((Ptr HTMLElement) -> ((Ptr (Ptr ())) -> (IO ())))))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_remove"
webkit_dom_html_select_element_remove :: ((Ptr HTMLSelectElement) -> (CLong -> (IO ())))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_check_validity"
webkit_dom_html_select_element_check_validity :: ((Ptr HTMLSelectElement) -> (IO CInt))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_set_custom_validity"
webkit_dom_html_select_element_set_custom_validity :: ((Ptr HTMLSelectElement) -> ((Ptr CChar) -> (IO ())))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_set_autofocus"
webkit_dom_html_select_element_set_autofocus :: ((Ptr HTMLSelectElement) -> (CInt -> (IO ())))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_autofocus"
webkit_dom_html_select_element_get_autofocus :: ((Ptr HTMLSelectElement) -> (IO CInt))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_set_disabled"
webkit_dom_html_select_element_set_disabled :: ((Ptr HTMLSelectElement) -> (CInt -> (IO ())))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_disabled"
webkit_dom_html_select_element_get_disabled :: ((Ptr HTMLSelectElement) -> (IO CInt))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_form"
webkit_dom_html_select_element_get_form :: ((Ptr HTMLSelectElement) -> (IO (Ptr HTMLFormElement)))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_set_multiple"
webkit_dom_html_select_element_set_multiple :: ((Ptr HTMLSelectElement) -> (CInt -> (IO ())))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_multiple"
webkit_dom_html_select_element_get_multiple :: ((Ptr HTMLSelectElement) -> (IO CInt))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_set_name"
webkit_dom_html_select_element_set_name :: ((Ptr HTMLSelectElement) -> ((Ptr CChar) -> (IO ())))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_name"
webkit_dom_html_select_element_get_name :: ((Ptr HTMLSelectElement) -> (IO (Ptr CChar)))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_set_required"
webkit_dom_html_select_element_set_required :: ((Ptr HTMLSelectElement) -> (CInt -> (IO ())))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_required"
webkit_dom_html_select_element_get_required :: ((Ptr HTMLSelectElement) -> (IO CInt))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_set_size"
webkit_dom_html_select_element_set_size :: ((Ptr HTMLSelectElement) -> (CLong -> (IO ())))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_size"
webkit_dom_html_select_element_get_size :: ((Ptr HTMLSelectElement) -> (IO CLong))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_options"
webkit_dom_html_select_element_get_options :: ((Ptr HTMLSelectElement) -> (IO (Ptr HTMLOptionsCollection)))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_set_length"
webkit_dom_html_select_element_set_length :: ((Ptr HTMLSelectElement) -> (CULong -> ((Ptr (Ptr ())) -> (IO ()))))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_length"
webkit_dom_html_select_element_get_length :: ((Ptr HTMLSelectElement) -> (IO CULong))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_selected_options"
webkit_dom_html_select_element_get_selected_options :: ((Ptr HTMLSelectElement) -> (IO (Ptr HTMLCollection)))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_set_selected_index"
webkit_dom_html_select_element_set_selected_index :: ((Ptr HTMLSelectElement) -> (CLong -> (IO ())))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_selected_index"
webkit_dom_html_select_element_get_selected_index :: ((Ptr HTMLSelectElement) -> (IO CLong))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_set_value"
webkit_dom_html_select_element_set_value :: ((Ptr HTMLSelectElement) -> ((Ptr CChar) -> (IO ())))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_value"
webkit_dom_html_select_element_get_value :: ((Ptr HTMLSelectElement) -> (IO (Ptr CChar)))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_will_validate"
webkit_dom_html_select_element_get_will_validate :: ((Ptr HTMLSelectElement) -> (IO CInt))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_validity"
webkit_dom_html_select_element_get_validity :: ((Ptr HTMLSelectElement) -> (IO (Ptr ValidityState)))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_validation_message"
webkit_dom_html_select_element_get_validation_message :: ((Ptr HTMLSelectElement) -> (IO (Ptr CChar)))
foreign import ccall safe "dist/build/Graphics/UI/Gtk/WebKit/DOM/HTMLSelectElement.h webkit_dom_html_select_element_get_labels"
webkit_dom_html_select_element_get_labels :: ((Ptr HTMLSelectElement) -> (IO (Ptr NodeList)))