module GI.WebKit2WebExtension.Objects.DOMHTMLBaseFontElement
(
DOMHTMLBaseFontElement(..) ,
DOMHTMLBaseFontElementK ,
toDOMHTMLBaseFontElement ,
noDOMHTMLBaseFontElement ,
dOMHTMLBaseFontElementGetColor ,
dOMHTMLBaseFontElementGetFace ,
dOMHTMLBaseFontElementGetSize ,
dOMHTMLBaseFontElementSetColor ,
dOMHTMLBaseFontElementSetFace ,
dOMHTMLBaseFontElementSetSize ,
DOMHTMLBaseFontElementColorPropertyInfo ,
constructDOMHTMLBaseFontElementColor ,
getDOMHTMLBaseFontElementColor ,
setDOMHTMLBaseFontElementColor ,
DOMHTMLBaseFontElementFacePropertyInfo ,
constructDOMHTMLBaseFontElementFace ,
getDOMHTMLBaseFontElementFace ,
setDOMHTMLBaseFontElementFace ,
DOMHTMLBaseFontElementSizePropertyInfo ,
constructDOMHTMLBaseFontElementSize ,
getDOMHTMLBaseFontElementSize ,
setDOMHTMLBaseFontElementSize ,
) where
import Prelude ()
import Data.GI.Base.ShortPrelude
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import GI.WebKit2WebExtension.Types
import GI.WebKit2WebExtension.Callbacks
import qualified GI.GObject as GObject
newtype DOMHTMLBaseFontElement = DOMHTMLBaseFontElement (ForeignPtr DOMHTMLBaseFontElement)
foreign import ccall "webkit_dom_html_base_font_element_get_type"
c_webkit_dom_html_base_font_element_get_type :: IO GType
type instance ParentTypes DOMHTMLBaseFontElement = DOMHTMLBaseFontElementParentTypes
type DOMHTMLBaseFontElementParentTypes = '[DOMHTMLElement, DOMElement, DOMNode, DOMObject, GObject.Object, DOMEventTarget]
instance GObject DOMHTMLBaseFontElement where
gobjectIsInitiallyUnowned _ = False
gobjectType _ = c_webkit_dom_html_base_font_element_get_type
class GObject o => DOMHTMLBaseFontElementK o
instance (GObject o, IsDescendantOf DOMHTMLBaseFontElement o) => DOMHTMLBaseFontElementK o
toDOMHTMLBaseFontElement :: DOMHTMLBaseFontElementK o => o -> IO DOMHTMLBaseFontElement
toDOMHTMLBaseFontElement = unsafeCastTo DOMHTMLBaseFontElement
noDOMHTMLBaseFontElement :: Maybe DOMHTMLBaseFontElement
noDOMHTMLBaseFontElement = Nothing
getDOMHTMLBaseFontElementColor :: (MonadIO m, DOMHTMLBaseFontElementK o) => o -> m T.Text
getDOMHTMLBaseFontElementColor obj = liftIO $ getObjectPropertyString obj "color"
setDOMHTMLBaseFontElementColor :: (MonadIO m, DOMHTMLBaseFontElementK o) => o -> T.Text -> m ()
setDOMHTMLBaseFontElementColor obj val = liftIO $ setObjectPropertyString obj "color" val
constructDOMHTMLBaseFontElementColor :: T.Text -> IO ([Char], GValue)
constructDOMHTMLBaseFontElementColor val = constructObjectPropertyString "color" val
data DOMHTMLBaseFontElementColorPropertyInfo
instance AttrInfo DOMHTMLBaseFontElementColorPropertyInfo where
type AttrAllowedOps DOMHTMLBaseFontElementColorPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint DOMHTMLBaseFontElementColorPropertyInfo = (~) T.Text
type AttrBaseTypeConstraint DOMHTMLBaseFontElementColorPropertyInfo = DOMHTMLBaseFontElementK
type AttrGetType DOMHTMLBaseFontElementColorPropertyInfo = T.Text
type AttrLabel DOMHTMLBaseFontElementColorPropertyInfo = "DOMHTMLBaseFontElement::color"
attrGet _ = getDOMHTMLBaseFontElementColor
attrSet _ = setDOMHTMLBaseFontElementColor
attrConstruct _ = constructDOMHTMLBaseFontElementColor
getDOMHTMLBaseFontElementFace :: (MonadIO m, DOMHTMLBaseFontElementK o) => o -> m T.Text
getDOMHTMLBaseFontElementFace obj = liftIO $ getObjectPropertyString obj "face"
setDOMHTMLBaseFontElementFace :: (MonadIO m, DOMHTMLBaseFontElementK o) => o -> T.Text -> m ()
setDOMHTMLBaseFontElementFace obj val = liftIO $ setObjectPropertyString obj "face" val
constructDOMHTMLBaseFontElementFace :: T.Text -> IO ([Char], GValue)
constructDOMHTMLBaseFontElementFace val = constructObjectPropertyString "face" val
data DOMHTMLBaseFontElementFacePropertyInfo
instance AttrInfo DOMHTMLBaseFontElementFacePropertyInfo where
type AttrAllowedOps DOMHTMLBaseFontElementFacePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint DOMHTMLBaseFontElementFacePropertyInfo = (~) T.Text
type AttrBaseTypeConstraint DOMHTMLBaseFontElementFacePropertyInfo = DOMHTMLBaseFontElementK
type AttrGetType DOMHTMLBaseFontElementFacePropertyInfo = T.Text
type AttrLabel DOMHTMLBaseFontElementFacePropertyInfo = "DOMHTMLBaseFontElement::face"
attrGet _ = getDOMHTMLBaseFontElementFace
attrSet _ = setDOMHTMLBaseFontElementFace
attrConstruct _ = constructDOMHTMLBaseFontElementFace
getDOMHTMLBaseFontElementSize :: (MonadIO m, DOMHTMLBaseFontElementK o) => o -> m Int64
getDOMHTMLBaseFontElementSize obj = liftIO $ getObjectPropertyInt64 obj "size"
setDOMHTMLBaseFontElementSize :: (MonadIO m, DOMHTMLBaseFontElementK o) => o -> Int64 -> m ()
setDOMHTMLBaseFontElementSize obj val = liftIO $ setObjectPropertyInt64 obj "size" val
constructDOMHTMLBaseFontElementSize :: Int64 -> IO ([Char], GValue)
constructDOMHTMLBaseFontElementSize val = constructObjectPropertyInt64 "size" val
data DOMHTMLBaseFontElementSizePropertyInfo
instance AttrInfo DOMHTMLBaseFontElementSizePropertyInfo where
type AttrAllowedOps DOMHTMLBaseFontElementSizePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint DOMHTMLBaseFontElementSizePropertyInfo = (~) Int64
type AttrBaseTypeConstraint DOMHTMLBaseFontElementSizePropertyInfo = DOMHTMLBaseFontElementK
type AttrGetType DOMHTMLBaseFontElementSizePropertyInfo = Int64
type AttrLabel DOMHTMLBaseFontElementSizePropertyInfo = "DOMHTMLBaseFontElement::size"
attrGet _ = getDOMHTMLBaseFontElementSize
attrSet _ = setDOMHTMLBaseFontElementSize
attrConstruct _ = constructDOMHTMLBaseFontElementSize
type instance AttributeList DOMHTMLBaseFontElement = DOMHTMLBaseFontElementAttributeList
type DOMHTMLBaseFontElementAttributeList = ('[ '("access-key", DOMHTMLElementAccessKeyPropertyInfo), '("attributes", DOMElementAttributesPropertyInfo), '("base-uri", DOMNodeBaseUriPropertyInfo), '("child-element-count", DOMElementChildElementCountPropertyInfo), '("child-nodes", DOMNodeChildNodesPropertyInfo), '("children", DOMElementChildrenPropertyInfo), '("class-name", DOMElementClassNamePropertyInfo), '("client-height", DOMElementClientHeightPropertyInfo), '("client-left", DOMElementClientLeftPropertyInfo), '("client-top", DOMElementClientTopPropertyInfo), '("client-width", DOMElementClientWidthPropertyInfo), '("color", DOMHTMLBaseFontElementColorPropertyInfo), '("content-editable", DOMHTMLElementContentEditablePropertyInfo), '("core-object", DOMObjectCoreObjectPropertyInfo), '("dir", DOMHTMLElementDirPropertyInfo), '("draggable", DOMHTMLElementDraggablePropertyInfo), '("face", DOMHTMLBaseFontElementFacePropertyInfo), '("first-child", DOMNodeFirstChildPropertyInfo), '("first-element-child", DOMElementFirstElementChildPropertyInfo), '("hidden", DOMHTMLElementHiddenPropertyInfo), '("id", DOMElementIdPropertyInfo), '("inner-html", DOMElementInnerHtmlPropertyInfo), '("inner-text", DOMHTMLElementInnerTextPropertyInfo), '("is-content-editable", DOMHTMLElementIsContentEditablePropertyInfo), '("lang", DOMHTMLElementLangPropertyInfo), '("last-child", DOMNodeLastChildPropertyInfo), '("last-element-child", DOMElementLastElementChildPropertyInfo), '("local-name", DOMNodeLocalNamePropertyInfo), '("namespace-uri", DOMNodeNamespaceUriPropertyInfo), '("next-element-sibling", DOMElementNextElementSiblingPropertyInfo), '("next-sibling", DOMNodeNextSiblingPropertyInfo), '("node-name", DOMNodeNodeNamePropertyInfo), '("node-type", DOMNodeNodeTypePropertyInfo), '("node-value", DOMNodeNodeValuePropertyInfo), '("offset-height", DOMElementOffsetHeightPropertyInfo), '("offset-left", DOMElementOffsetLeftPropertyInfo), '("offset-parent", DOMElementOffsetParentPropertyInfo), '("offset-top", DOMElementOffsetTopPropertyInfo), '("offset-width", DOMElementOffsetWidthPropertyInfo), '("outer-html", DOMElementOuterHtmlPropertyInfo), '("outer-text", DOMHTMLElementOuterTextPropertyInfo), '("owner-document", DOMNodeOwnerDocumentPropertyInfo), '("parent-element", DOMNodeParentElementPropertyInfo), '("parent-node", DOMNodeParentNodePropertyInfo), '("prefix", DOMNodePrefixPropertyInfo), '("previous-element-sibling", DOMElementPreviousElementSiblingPropertyInfo), '("previous-sibling", DOMNodePreviousSiblingPropertyInfo), '("scroll-height", DOMElementScrollHeightPropertyInfo), '("scroll-left", DOMElementScrollLeftPropertyInfo), '("scroll-top", DOMElementScrollTopPropertyInfo), '("scroll-width", DOMElementScrollWidthPropertyInfo), '("size", DOMHTMLBaseFontElementSizePropertyInfo), '("spellcheck", DOMHTMLElementSpellcheckPropertyInfo), '("style", DOMElementStylePropertyInfo), '("tab-index", DOMHTMLElementTabIndexPropertyInfo), '("tag-name", DOMElementTagNamePropertyInfo), '("text-content", DOMNodeTextContentPropertyInfo), '("title", DOMHTMLElementTitlePropertyInfo), '("translate", DOMHTMLElementTranslatePropertyInfo), '("webkit-region-overset", DOMElementWebkitRegionOversetPropertyInfo), '("webkitdropzone", DOMHTMLElementWebkitdropzonePropertyInfo)] :: [(Symbol, *)])
type instance SignalList DOMHTMLBaseFontElement = DOMHTMLBaseFontElementSignalList
type DOMHTMLBaseFontElementSignalList = ('[ '("notify", GObject.ObjectNotifySignalInfo), '("notify::[property]", GObjectNotifySignalInfo)] :: [(Symbol, *)])
foreign import ccall "webkit_dom_html_base_font_element_get_color" webkit_dom_html_base_font_element_get_color ::
Ptr DOMHTMLBaseFontElement ->
IO CString
dOMHTMLBaseFontElementGetColor ::
(MonadIO m, DOMHTMLBaseFontElementK a) =>
a ->
m T.Text
dOMHTMLBaseFontElementGetColor _obj = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
result <- webkit_dom_html_base_font_element_get_color _obj'
checkUnexpectedReturnNULL "webkit_dom_html_base_font_element_get_color" result
result' <- cstringToText result
freeMem result
touchManagedPtr _obj
return result'
foreign import ccall "webkit_dom_html_base_font_element_get_face" webkit_dom_html_base_font_element_get_face ::
Ptr DOMHTMLBaseFontElement ->
IO CString
dOMHTMLBaseFontElementGetFace ::
(MonadIO m, DOMHTMLBaseFontElementK a) =>
a ->
m T.Text
dOMHTMLBaseFontElementGetFace _obj = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
result <- webkit_dom_html_base_font_element_get_face _obj'
checkUnexpectedReturnNULL "webkit_dom_html_base_font_element_get_face" result
result' <- cstringToText result
freeMem result
touchManagedPtr _obj
return result'
foreign import ccall "webkit_dom_html_base_font_element_get_size" webkit_dom_html_base_font_element_get_size ::
Ptr DOMHTMLBaseFontElement ->
IO Int64
dOMHTMLBaseFontElementGetSize ::
(MonadIO m, DOMHTMLBaseFontElementK a) =>
a ->
m Int64
dOMHTMLBaseFontElementGetSize _obj = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
result <- webkit_dom_html_base_font_element_get_size _obj'
touchManagedPtr _obj
return result
foreign import ccall "webkit_dom_html_base_font_element_set_color" webkit_dom_html_base_font_element_set_color ::
Ptr DOMHTMLBaseFontElement ->
CString ->
IO ()
dOMHTMLBaseFontElementSetColor ::
(MonadIO m, DOMHTMLBaseFontElementK a) =>
a ->
T.Text ->
m ()
dOMHTMLBaseFontElementSetColor _obj value = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
value' <- textToCString value
webkit_dom_html_base_font_element_set_color _obj' value'
touchManagedPtr _obj
freeMem value'
return ()
foreign import ccall "webkit_dom_html_base_font_element_set_face" webkit_dom_html_base_font_element_set_face ::
Ptr DOMHTMLBaseFontElement ->
CString ->
IO ()
dOMHTMLBaseFontElementSetFace ::
(MonadIO m, DOMHTMLBaseFontElementK a) =>
a ->
T.Text ->
m ()
dOMHTMLBaseFontElementSetFace _obj value = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
value' <- textToCString value
webkit_dom_html_base_font_element_set_face _obj' value'
touchManagedPtr _obj
freeMem value'
return ()
foreign import ccall "webkit_dom_html_base_font_element_set_size" webkit_dom_html_base_font_element_set_size ::
Ptr DOMHTMLBaseFontElement ->
Int64 ->
IO ()
dOMHTMLBaseFontElementSetSize ::
(MonadIO m, DOMHTMLBaseFontElementK a) =>
a ->
Int64 ->
m ()
dOMHTMLBaseFontElementSetSize _obj value = liftIO $ do
let _obj' = unsafeManagedPtrCastPtr _obj
webkit_dom_html_base_font_element_set_size _obj' value
touchManagedPtr _obj
return ()