module Graphics.UI.Qtah.Generator.Interface.Widgets.QGraphicsPixmapItem (
aModule,
c_QGraphicsPixmapItem,
) where
import Foreign.Hoppy.Generator.Spec (
addReqIncludes,
classSetEntityPrefix,
ident,
ident1,
includeStd,
makeClass,
mkCtor,
mkMethod',
mkProp,
np,
)
import Foreign.Hoppy.Generator.Types (enumT, objT, ptrT, voidT)
import Graphics.UI.Qtah.Generator.Interface.Core.QPointF (c_QPointF)
import Graphics.UI.Qtah.Generator.Interface.Core.Types (e_TransformationMode, qreal)
import Graphics.UI.Qtah.Generator.Interface.Gui.QPixmap (c_QPixmap)
import Graphics.UI.Qtah.Generator.Interface.Widgets.QGraphicsItem (c_QGraphicsItem)
import Graphics.UI.Qtah.Generator.Module (AModule (AQtModule), makeQtModule)
import Graphics.UI.Qtah.Generator.Types
{-# ANN module "HLint: ignore Use camelCase" #-}
aModule :: AModule
aModule =
QtModule -> AModule
AQtModule (QtModule -> AModule) -> QtModule -> AModule
forall a b. (a -> b) -> a -> b
$
[String] -> [QtExport] -> QtModule
makeQtModule [String
"Widgets", String
"QGraphicsPixmapItem"]
[ Class -> QtExport
forall a. Exportable a => a -> QtExport
qtExport Class
c_QGraphicsPixmapItem
, CppEnum -> QtExport
forall a. Exportable a => a -> QtExport
qtExport CppEnum
e_ShapeMode
]
c_QGraphicsPixmapItem :: Class
c_QGraphicsPixmapItem =
[Include] -> Class -> Class
forall a. HasReqs a => [Include] -> a -> a
addReqIncludes [String -> Include
includeStd String
"QGraphicsPixmapItem"] (Class -> Class) -> Class -> Class
forall a b. (a -> b) -> a -> b
$
String -> Class -> Class
classSetEntityPrefix String
"" (Class -> Class) -> Class -> Class
forall a b. (a -> b) -> a -> b
$
Identifier -> Maybe ExtName -> [Class] -> [ClassEntity] -> Class
makeClass (String -> Identifier
ident String
"QGraphicsPixmapItem") Maybe ExtName
forall a. Maybe a
Nothing [Class
c_QGraphicsItem]
[ String -> [Parameter] -> ClassEntity
forall p. IsParameter p => String -> [p] -> ClassEntity
mkCtor String
"new" [Parameter]
np
, String -> [Type] -> ClassEntity
forall p. IsParameter p => String -> [p] -> ClassEntity
mkCtor String
"newWithParent" [Type -> Type
ptrT (Type -> Type) -> Type -> Type
forall a b. (a -> b) -> a -> b
$ Class -> Type
objT Class
c_QGraphicsItem]
, String -> [Type] -> ClassEntity
forall p. IsParameter p => String -> [p] -> ClassEntity
mkCtor String
"newWithPixmap" [Class -> Type
objT Class
c_QPixmap]
, String -> [Type] -> ClassEntity
forall p. IsParameter p => String -> [p] -> ClassEntity
mkCtor String
"newWithPixmapAndParent" [Class -> Type
objT Class
c_QPixmap, Type -> Type
ptrT (Type -> Type) -> Type -> Type
forall a b. (a -> b) -> a -> b
$ Class -> Type
objT Class
c_QGraphicsItem]
, String -> Type -> ClassEntity
mkProp String
"offset" (Type -> ClassEntity) -> Type -> ClassEntity
forall a b. (a -> b) -> a -> b
$ Class -> Type
objT Class
c_QPointF
, String -> Type -> ClassEntity
mkProp String
"pixmap" (Type -> ClassEntity) -> Type -> ClassEntity
forall a b. (a -> b) -> a -> b
$ Class -> Type
objT Class
c_QPixmap
, String -> String -> [Type] -> Type -> ClassEntity
forall name p.
(IsFnName String name, IsParameter p) =>
name -> String -> [p] -> Type -> ClassEntity
mkMethod' String
"setOffset" String
"setOffsetRaw" [Type
qreal, Type
qreal] Type
voidT
, String -> Type -> ClassEntity
mkProp String
"shapeMode" (Type -> ClassEntity) -> Type -> ClassEntity
forall a b. (a -> b) -> a -> b
$ CppEnum -> Type
enumT CppEnum
e_ShapeMode
, String -> Type -> ClassEntity
mkProp String
"transformationMode" (Type -> ClassEntity) -> Type -> ClassEntity
forall a b. (a -> b) -> a -> b
$ CppEnum -> Type
enumT CppEnum
e_TransformationMode
]
e_ShapeMode :: CppEnum
e_ShapeMode =
Identifier -> [Include] -> [String] -> CppEnum
makeQtEnum (String -> String -> Identifier
ident1 String
"QGraphicsPixmapItem" String
"ShapeMode") [String -> Include
includeStd String
"QGraphicsPixmapItem"]
[ String
"MaskShape"
, String
"BoundingRectShape"
, String
"HeuristicMaskShape"
]