#define ENABLE_OVERLOADING (MIN_VERSION_haskell_gi_overloading(1,0,0) \
&& !defined(__HADDOCK_VERSION__))
module GI.Gtk.Objects.Image
(
Image(..) ,
IsImage ,
toImage ,
noImage ,
#if ENABLE_OVERLOADING
ImageClearMethodInfo ,
#endif
imageClear ,
#if ENABLE_OVERLOADING
ImageGetAnimationMethodInfo ,
#endif
imageGetAnimation ,
#if ENABLE_OVERLOADING
ImageGetGiconMethodInfo ,
#endif
imageGetGicon ,
#if ENABLE_OVERLOADING
ImageGetIconNameMethodInfo ,
#endif
imageGetIconName ,
#if ENABLE_OVERLOADING
ImageGetIconSetMethodInfo ,
#endif
imageGetIconSet ,
#if ENABLE_OVERLOADING
ImageGetPixbufMethodInfo ,
#endif
imageGetPixbuf ,
#if ENABLE_OVERLOADING
ImageGetPixelSizeMethodInfo ,
#endif
imageGetPixelSize ,
#if ENABLE_OVERLOADING
ImageGetStockMethodInfo ,
#endif
imageGetStock ,
#if ENABLE_OVERLOADING
ImageGetStorageTypeMethodInfo ,
#endif
imageGetStorageType ,
imageNew ,
imageNewFromAnimation ,
imageNewFromFile ,
imageNewFromGicon ,
imageNewFromIconName ,
imageNewFromIconSet ,
imageNewFromPixbuf ,
imageNewFromResource ,
imageNewFromStock ,
imageNewFromSurface ,
#if ENABLE_OVERLOADING
ImageSetFromAnimationMethodInfo ,
#endif
imageSetFromAnimation ,
#if ENABLE_OVERLOADING
ImageSetFromFileMethodInfo ,
#endif
imageSetFromFile ,
#if ENABLE_OVERLOADING
ImageSetFromGiconMethodInfo ,
#endif
imageSetFromGicon ,
#if ENABLE_OVERLOADING
ImageSetFromIconNameMethodInfo ,
#endif
imageSetFromIconName ,
#if ENABLE_OVERLOADING
ImageSetFromIconSetMethodInfo ,
#endif
imageSetFromIconSet ,
#if ENABLE_OVERLOADING
ImageSetFromPixbufMethodInfo ,
#endif
imageSetFromPixbuf ,
#if ENABLE_OVERLOADING
ImageSetFromResourceMethodInfo ,
#endif
imageSetFromResource ,
#if ENABLE_OVERLOADING
ImageSetFromStockMethodInfo ,
#endif
imageSetFromStock ,
#if ENABLE_OVERLOADING
ImageSetFromSurfaceMethodInfo ,
#endif
imageSetFromSurface ,
#if ENABLE_OVERLOADING
ImageSetPixelSizeMethodInfo ,
#endif
imageSetPixelSize ,
#if ENABLE_OVERLOADING
ImageFilePropertyInfo ,
#endif
clearImageFile ,
constructImageFile ,
getImageFile ,
#if ENABLE_OVERLOADING
imageFile ,
#endif
setImageFile ,
#if ENABLE_OVERLOADING
ImageGiconPropertyInfo ,
#endif
clearImageGicon ,
constructImageGicon ,
getImageGicon ,
#if ENABLE_OVERLOADING
imageGicon ,
#endif
setImageGicon ,
#if ENABLE_OVERLOADING
ImageIconNamePropertyInfo ,
#endif
clearImageIconName ,
constructImageIconName ,
getImageIconName ,
#if ENABLE_OVERLOADING
imageIconName ,
#endif
setImageIconName ,
#if ENABLE_OVERLOADING
ImageIconSetPropertyInfo ,
#endif
clearImageIconSet ,
constructImageIconSet ,
getImageIconSet ,
#if ENABLE_OVERLOADING
imageIconSet ,
#endif
setImageIconSet ,
#if ENABLE_OVERLOADING
ImageIconSizePropertyInfo ,
#endif
constructImageIconSize ,
getImageIconSize ,
#if ENABLE_OVERLOADING
imageIconSize ,
#endif
setImageIconSize ,
#if ENABLE_OVERLOADING
ImagePixbufPropertyInfo ,
#endif
clearImagePixbuf ,
constructImagePixbuf ,
getImagePixbuf ,
#if ENABLE_OVERLOADING
imagePixbuf ,
#endif
setImagePixbuf ,
#if ENABLE_OVERLOADING
ImagePixbufAnimationPropertyInfo ,
#endif
clearImagePixbufAnimation ,
constructImagePixbufAnimation ,
getImagePixbufAnimation ,
#if ENABLE_OVERLOADING
imagePixbufAnimation ,
#endif
setImagePixbufAnimation ,
#if ENABLE_OVERLOADING
ImagePixelSizePropertyInfo ,
#endif
constructImagePixelSize ,
getImagePixelSize ,
#if ENABLE_OVERLOADING
imagePixelSize ,
#endif
setImagePixelSize ,
#if ENABLE_OVERLOADING
ImageResourcePropertyInfo ,
#endif
clearImageResource ,
constructImageResource ,
getImageResource ,
#if ENABLE_OVERLOADING
imageResource ,
#endif
setImageResource ,
#if ENABLE_OVERLOADING
ImageStockPropertyInfo ,
#endif
clearImageStock ,
constructImageStock ,
getImageStock ,
#if ENABLE_OVERLOADING
imageStock ,
#endif
setImageStock ,
#if ENABLE_OVERLOADING
ImageStorageTypePropertyInfo ,
#endif
getImageStorageType ,
#if ENABLE_OVERLOADING
imageStorageType ,
#endif
#if ENABLE_OVERLOADING
ImageSurfacePropertyInfo ,
#endif
clearImageSurface ,
constructImageSurface ,
getImageSurface ,
#if ENABLE_OVERLOADING
imageSurface ,
#endif
setImageSurface ,
#if ENABLE_OVERLOADING
ImageUseFallbackPropertyInfo ,
#endif
constructImageUseFallback ,
getImageUseFallback ,
#if ENABLE_OVERLOADING
imageUseFallback ,
#endif
setImageUseFallback ,
) where
import Data.GI.Base.ShortPrelude
import qualified Data.GI.Base.ShortPrelude as SP
import qualified Data.GI.Base.Overloading as O
import qualified Prelude as P
import qualified Data.GI.Base.Attributes as GI.Attributes
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GVariant as B.GVariant
import qualified Data.GI.Base.GValue as B.GValue
import qualified Data.GI.Base.GParamSpec as B.GParamSpec
import qualified Data.GI.Base.CallStack as B.CallStack
import qualified Data.Text as T
import qualified Data.ByteString.Char8 as B
import qualified Data.Map as Map
import qualified Foreign.Ptr as FP
import qualified GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
import qualified GI.Cairo.Structs.Surface as Cairo.Surface
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.GdkPixbuf.Objects.Pixbuf as GdkPixbuf.Pixbuf
import qualified GI.GdkPixbuf.Objects.PixbufAnimation as GdkPixbuf.PixbufAnimation
import qualified GI.Gio.Interfaces.Icon as Gio.Icon
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import {-# SOURCE #-} qualified GI.Gtk.Objects.Misc as Gtk.Misc
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
import {-# SOURCE #-} qualified GI.Gtk.Structs.IconSet as Gtk.IconSet
newtype Image = Image (ManagedPtr Image)
foreign import ccall "gtk_image_get_type"
c_gtk_image_get_type :: IO GType
instance GObject Image where
gobjectType _ = c_gtk_image_get_type
class GObject o => IsImage o
#if MIN_VERSION_base(4,9,0)
instance {-# OVERLAPPABLE #-} (GObject a, O.UnknownAncestorError Image a) =>
IsImage a
#endif
instance IsImage Image
instance Gtk.Misc.IsMisc Image
instance Gtk.Widget.IsWidget Image
instance GObject.Object.IsObject Image
instance Atk.ImplementorIface.IsImplementorIface Image
instance Gtk.Buildable.IsBuildable Image
toImage :: (MonadIO m, IsImage o) => o -> m Image
toImage = liftIO . unsafeCastTo Image
noImage :: Maybe Image
noImage = Nothing
#if ENABLE_OVERLOADING
type family ResolveImageMethod (t :: Symbol) (o :: *) :: * where
ResolveImageMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolveImageMethod "addAccelerator" o = Gtk.Widget.WidgetAddAcceleratorMethodInfo
ResolveImageMethod "addChild" o = Gtk.Buildable.BuildableAddChildMethodInfo
ResolveImageMethod "addDeviceEvents" o = Gtk.Widget.WidgetAddDeviceEventsMethodInfo
ResolveImageMethod "addEvents" o = Gtk.Widget.WidgetAddEventsMethodInfo
ResolveImageMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveImageMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveImageMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveImageMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveImageMethod "canActivateAccel" o = Gtk.Widget.WidgetCanActivateAccelMethodInfo
ResolveImageMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveImageMethod "childNotify" o = Gtk.Widget.WidgetChildNotifyMethodInfo
ResolveImageMethod "classPath" o = Gtk.Widget.WidgetClassPathMethodInfo
ResolveImageMethod "clear" o = ImageClearMethodInfo
ResolveImageMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveImageMethod "constructChild" o = Gtk.Buildable.BuildableConstructChildMethodInfo
ResolveImageMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveImageMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveImageMethod "customFinished" o = Gtk.Buildable.BuildableCustomFinishedMethodInfo
ResolveImageMethod "customTagEnd" o = Gtk.Buildable.BuildableCustomTagEndMethodInfo
ResolveImageMethod "customTagStart" o = Gtk.Buildable.BuildableCustomTagStartMethodInfo
ResolveImageMethod "destroy" o = Gtk.Widget.WidgetDestroyMethodInfo
ResolveImageMethod "destroyed" o = Gtk.Widget.WidgetDestroyedMethodInfo
ResolveImageMethod "deviceIsShadowed" o = Gtk.Widget.WidgetDeviceIsShadowedMethodInfo
ResolveImageMethod "dragBegin" o = Gtk.Widget.WidgetDragBeginMethodInfo
ResolveImageMethod "dragBeginWithCoordinates" o = Gtk.Widget.WidgetDragBeginWithCoordinatesMethodInfo
ResolveImageMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveImageMethod "dragDestAddImageTargets" o = Gtk.Widget.WidgetDragDestAddImageTargetsMethodInfo
ResolveImageMethod "dragDestAddTextTargets" o = Gtk.Widget.WidgetDragDestAddTextTargetsMethodInfo
ResolveImageMethod "dragDestAddUriTargets" o = Gtk.Widget.WidgetDragDestAddUriTargetsMethodInfo
ResolveImageMethod "dragDestFindTarget" o = Gtk.Widget.WidgetDragDestFindTargetMethodInfo
ResolveImageMethod "dragDestGetTargetList" o = Gtk.Widget.WidgetDragDestGetTargetListMethodInfo
ResolveImageMethod "dragDestGetTrackMotion" o = Gtk.Widget.WidgetDragDestGetTrackMotionMethodInfo
ResolveImageMethod "dragDestSet" o = Gtk.Widget.WidgetDragDestSetMethodInfo
ResolveImageMethod "dragDestSetProxy" o = Gtk.Widget.WidgetDragDestSetProxyMethodInfo
ResolveImageMethod "dragDestSetTargetList" o = Gtk.Widget.WidgetDragDestSetTargetListMethodInfo
ResolveImageMethod "dragDestSetTrackMotion" o = Gtk.Widget.WidgetDragDestSetTrackMotionMethodInfo
ResolveImageMethod "dragDestUnset" o = Gtk.Widget.WidgetDragDestUnsetMethodInfo
ResolveImageMethod "dragGetData" o = Gtk.Widget.WidgetDragGetDataMethodInfo
ResolveImageMethod "dragHighlight" o = Gtk.Widget.WidgetDragHighlightMethodInfo
ResolveImageMethod "dragSourceAddImageTargets" o = Gtk.Widget.WidgetDragSourceAddImageTargetsMethodInfo
ResolveImageMethod "dragSourceAddTextTargets" o = Gtk.Widget.WidgetDragSourceAddTextTargetsMethodInfo
ResolveImageMethod "dragSourceAddUriTargets" o = Gtk.Widget.WidgetDragSourceAddUriTargetsMethodInfo
ResolveImageMethod "dragSourceGetTargetList" o = Gtk.Widget.WidgetDragSourceGetTargetListMethodInfo
ResolveImageMethod "dragSourceSet" o = Gtk.Widget.WidgetDragSourceSetMethodInfo
ResolveImageMethod "dragSourceSetIconGicon" o = Gtk.Widget.WidgetDragSourceSetIconGiconMethodInfo
ResolveImageMethod "dragSourceSetIconName" o = Gtk.Widget.WidgetDragSourceSetIconNameMethodInfo
ResolveImageMethod "dragSourceSetIconPixbuf" o = Gtk.Widget.WidgetDragSourceSetIconPixbufMethodInfo
ResolveImageMethod "dragSourceSetIconStock" o = Gtk.Widget.WidgetDragSourceSetIconStockMethodInfo
ResolveImageMethod "dragSourceSetTargetList" o = Gtk.Widget.WidgetDragSourceSetTargetListMethodInfo
ResolveImageMethod "dragSourceUnset" o = Gtk.Widget.WidgetDragSourceUnsetMethodInfo
ResolveImageMethod "dragUnhighlight" o = Gtk.Widget.WidgetDragUnhighlightMethodInfo
ResolveImageMethod "draw" o = Gtk.Widget.WidgetDrawMethodInfo
ResolveImageMethod "ensureStyle" o = Gtk.Widget.WidgetEnsureStyleMethodInfo
ResolveImageMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveImageMethod "event" o = Gtk.Widget.WidgetEventMethodInfo
ResolveImageMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveImageMethod "freezeChildNotify" o = Gtk.Widget.WidgetFreezeChildNotifyMethodInfo
ResolveImageMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveImageMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveImageMethod "grabAdd" o = Gtk.Widget.WidgetGrabAddMethodInfo
ResolveImageMethod "grabDefault" o = Gtk.Widget.WidgetGrabDefaultMethodInfo
ResolveImageMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveImageMethod "grabRemove" o = Gtk.Widget.WidgetGrabRemoveMethodInfo
ResolveImageMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveImageMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveImageMethod "hasGrab" o = Gtk.Widget.WidgetHasGrabMethodInfo
ResolveImageMethod "hasRcStyle" o = Gtk.Widget.WidgetHasRcStyleMethodInfo
ResolveImageMethod "hasScreen" o = Gtk.Widget.WidgetHasScreenMethodInfo
ResolveImageMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveImageMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveImageMethod "hideOnDelete" o = Gtk.Widget.WidgetHideOnDeleteMethodInfo
ResolveImageMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveImageMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveImageMethod "inputShapeCombineRegion" o = Gtk.Widget.WidgetInputShapeCombineRegionMethodInfo
ResolveImageMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveImageMethod "intersect" o = Gtk.Widget.WidgetIntersectMethodInfo
ResolveImageMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveImageMethod "isComposited" o = Gtk.Widget.WidgetIsCompositedMethodInfo
ResolveImageMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveImageMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveImageMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveImageMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveImageMethod "isToplevel" o = Gtk.Widget.WidgetIsToplevelMethodInfo
ResolveImageMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveImageMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveImageMethod "listAccelClosures" o = Gtk.Widget.WidgetListAccelClosuresMethodInfo
ResolveImageMethod "listActionPrefixes" o = Gtk.Widget.WidgetListActionPrefixesMethodInfo
ResolveImageMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveImageMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveImageMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveImageMethod "modifyBase" o = Gtk.Widget.WidgetModifyBaseMethodInfo
ResolveImageMethod "modifyBg" o = Gtk.Widget.WidgetModifyBgMethodInfo
ResolveImageMethod "modifyCursor" o = Gtk.Widget.WidgetModifyCursorMethodInfo
ResolveImageMethod "modifyFg" o = Gtk.Widget.WidgetModifyFgMethodInfo
ResolveImageMethod "modifyFont" o = Gtk.Widget.WidgetModifyFontMethodInfo
ResolveImageMethod "modifyStyle" o = Gtk.Widget.WidgetModifyStyleMethodInfo
ResolveImageMethod "modifyText" o = Gtk.Widget.WidgetModifyTextMethodInfo
ResolveImageMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveImageMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveImageMethod "overrideBackgroundColor" o = Gtk.Widget.WidgetOverrideBackgroundColorMethodInfo
ResolveImageMethod "overrideColor" o = Gtk.Widget.WidgetOverrideColorMethodInfo
ResolveImageMethod "overrideCursor" o = Gtk.Widget.WidgetOverrideCursorMethodInfo
ResolveImageMethod "overrideFont" o = Gtk.Widget.WidgetOverrideFontMethodInfo
ResolveImageMethod "overrideSymbolicColor" o = Gtk.Widget.WidgetOverrideSymbolicColorMethodInfo
ResolveImageMethod "parserFinished" o = Gtk.Buildable.BuildableParserFinishedMethodInfo
ResolveImageMethod "path" o = Gtk.Widget.WidgetPathMethodInfo
ResolveImageMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveImageMethod "queueComputeExpand" o = Gtk.Widget.WidgetQueueComputeExpandMethodInfo
ResolveImageMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveImageMethod "queueDrawArea" o = Gtk.Widget.WidgetQueueDrawAreaMethodInfo
ResolveImageMethod "queueDrawRegion" o = Gtk.Widget.WidgetQueueDrawRegionMethodInfo
ResolveImageMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveImageMethod "queueResizeNoRedraw" o = Gtk.Widget.WidgetQueueResizeNoRedrawMethodInfo
ResolveImageMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveImageMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveImageMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveImageMethod "regionIntersect" o = Gtk.Widget.WidgetRegionIntersectMethodInfo
ResolveImageMethod "registerWindow" o = Gtk.Widget.WidgetRegisterWindowMethodInfo
ResolveImageMethod "removeAccelerator" o = Gtk.Widget.WidgetRemoveAcceleratorMethodInfo
ResolveImageMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveImageMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveImageMethod "renderIcon" o = Gtk.Widget.WidgetRenderIconMethodInfo
ResolveImageMethod "renderIconPixbuf" o = Gtk.Widget.WidgetRenderIconPixbufMethodInfo
ResolveImageMethod "reparent" o = Gtk.Widget.WidgetReparentMethodInfo
ResolveImageMethod "resetRcStyles" o = Gtk.Widget.WidgetResetRcStylesMethodInfo
ResolveImageMethod "resetStyle" o = Gtk.Widget.WidgetResetStyleMethodInfo
ResolveImageMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveImageMethod "sendExpose" o = Gtk.Widget.WidgetSendExposeMethodInfo
ResolveImageMethod "sendFocusChange" o = Gtk.Widget.WidgetSendFocusChangeMethodInfo
ResolveImageMethod "shapeCombineRegion" o = Gtk.Widget.WidgetShapeCombineRegionMethodInfo
ResolveImageMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveImageMethod "showAll" o = Gtk.Widget.WidgetShowAllMethodInfo
ResolveImageMethod "showNow" o = Gtk.Widget.WidgetShowNowMethodInfo
ResolveImageMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveImageMethod "sizeAllocateWithBaseline" o = Gtk.Widget.WidgetSizeAllocateWithBaselineMethodInfo
ResolveImageMethod "sizeRequest" o = Gtk.Widget.WidgetSizeRequestMethodInfo
ResolveImageMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveImageMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveImageMethod "styleAttach" o = Gtk.Widget.WidgetStyleAttachMethodInfo
ResolveImageMethod "styleGetProperty" o = Gtk.Widget.WidgetStyleGetPropertyMethodInfo
ResolveImageMethod "thawChildNotify" o = Gtk.Widget.WidgetThawChildNotifyMethodInfo
ResolveImageMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveImageMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveImageMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveImageMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveImageMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveImageMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveImageMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveImageMethod "unregisterWindow" o = Gtk.Widget.WidgetUnregisterWindowMethodInfo
ResolveImageMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveImageMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveImageMethod "getAccessible" o = Gtk.Widget.WidgetGetAccessibleMethodInfo
ResolveImageMethod "getActionGroup" o = Gtk.Widget.WidgetGetActionGroupMethodInfo
ResolveImageMethod "getAlignment" o = Gtk.Misc.MiscGetAlignmentMethodInfo
ResolveImageMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveImageMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveImageMethod "getAllocatedSize" o = Gtk.Widget.WidgetGetAllocatedSizeMethodInfo
ResolveImageMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveImageMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveImageMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveImageMethod "getAnimation" o = ImageGetAnimationMethodInfo
ResolveImageMethod "getAppPaintable" o = Gtk.Widget.WidgetGetAppPaintableMethodInfo
ResolveImageMethod "getCanDefault" o = Gtk.Widget.WidgetGetCanDefaultMethodInfo
ResolveImageMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveImageMethod "getChildRequisition" o = Gtk.Widget.WidgetGetChildRequisitionMethodInfo
ResolveImageMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveImageMethod "getClip" o = Gtk.Widget.WidgetGetClipMethodInfo
ResolveImageMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveImageMethod "getCompositeName" o = Gtk.Widget.WidgetGetCompositeNameMethodInfo
ResolveImageMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveImageMethod "getDeviceEnabled" o = Gtk.Widget.WidgetGetDeviceEnabledMethodInfo
ResolveImageMethod "getDeviceEvents" o = Gtk.Widget.WidgetGetDeviceEventsMethodInfo
ResolveImageMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveImageMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveImageMethod "getDoubleBuffered" o = Gtk.Widget.WidgetGetDoubleBufferedMethodInfo
ResolveImageMethod "getEvents" o = Gtk.Widget.WidgetGetEventsMethodInfo
ResolveImageMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveImageMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveImageMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveImageMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveImageMethod "getGicon" o = ImageGetGiconMethodInfo
ResolveImageMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveImageMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveImageMethod "getHasWindow" o = Gtk.Widget.WidgetGetHasWindowMethodInfo
ResolveImageMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveImageMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveImageMethod "getIconName" o = ImageGetIconNameMethodInfo
ResolveImageMethod "getIconSet" o = ImageGetIconSetMethodInfo
ResolveImageMethod "getInternalChild" o = Gtk.Buildable.BuildableGetInternalChildMethodInfo
ResolveImageMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveImageMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveImageMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveImageMethod "getMarginLeft" o = Gtk.Widget.WidgetGetMarginLeftMethodInfo
ResolveImageMethod "getMarginRight" o = Gtk.Widget.WidgetGetMarginRightMethodInfo
ResolveImageMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveImageMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveImageMethod "getModifierMask" o = Gtk.Widget.WidgetGetModifierMaskMethodInfo
ResolveImageMethod "getModifierStyle" o = Gtk.Widget.WidgetGetModifierStyleMethodInfo
ResolveImageMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveImageMethod "getNoShowAll" o = Gtk.Widget.WidgetGetNoShowAllMethodInfo
ResolveImageMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveImageMethod "getPadding" o = Gtk.Misc.MiscGetPaddingMethodInfo
ResolveImageMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveImageMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveImageMethod "getParentWindow" o = Gtk.Widget.WidgetGetParentWindowMethodInfo
ResolveImageMethod "getPath" o = Gtk.Widget.WidgetGetPathMethodInfo
ResolveImageMethod "getPixbuf" o = ImageGetPixbufMethodInfo
ResolveImageMethod "getPixelSize" o = ImageGetPixelSizeMethodInfo
ResolveImageMethod "getPointer" o = Gtk.Widget.WidgetGetPointerMethodInfo
ResolveImageMethod "getPreferredHeight" o = Gtk.Widget.WidgetGetPreferredHeightMethodInfo
ResolveImageMethod "getPreferredHeightAndBaselineForWidth" o = Gtk.Widget.WidgetGetPreferredHeightAndBaselineForWidthMethodInfo
ResolveImageMethod "getPreferredHeightForWidth" o = Gtk.Widget.WidgetGetPreferredHeightForWidthMethodInfo
ResolveImageMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveImageMethod "getPreferredWidth" o = Gtk.Widget.WidgetGetPreferredWidthMethodInfo
ResolveImageMethod "getPreferredWidthForHeight" o = Gtk.Widget.WidgetGetPreferredWidthForHeightMethodInfo
ResolveImageMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveImageMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveImageMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveImageMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveImageMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveImageMethod "getRequisition" o = Gtk.Widget.WidgetGetRequisitionMethodInfo
ResolveImageMethod "getRootWindow" o = Gtk.Widget.WidgetGetRootWindowMethodInfo
ResolveImageMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveImageMethod "getScreen" o = Gtk.Widget.WidgetGetScreenMethodInfo
ResolveImageMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveImageMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveImageMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveImageMethod "getState" o = Gtk.Widget.WidgetGetStateMethodInfo
ResolveImageMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveImageMethod "getStock" o = ImageGetStockMethodInfo
ResolveImageMethod "getStorageType" o = ImageGetStorageTypeMethodInfo
ResolveImageMethod "getStyle" o = Gtk.Widget.WidgetGetStyleMethodInfo
ResolveImageMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveImageMethod "getSupportMultidevice" o = Gtk.Widget.WidgetGetSupportMultideviceMethodInfo
ResolveImageMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveImageMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveImageMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveImageMethod "getTooltipWindow" o = Gtk.Widget.WidgetGetTooltipWindowMethodInfo
ResolveImageMethod "getToplevel" o = Gtk.Widget.WidgetGetToplevelMethodInfo
ResolveImageMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveImageMethod "getValignWithBaseline" o = Gtk.Widget.WidgetGetValignWithBaselineMethodInfo
ResolveImageMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveImageMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveImageMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveImageMethod "getVisual" o = Gtk.Widget.WidgetGetVisualMethodInfo
ResolveImageMethod "getWindow" o = Gtk.Widget.WidgetGetWindowMethodInfo
ResolveImageMethod "setAccelPath" o = Gtk.Widget.WidgetSetAccelPathMethodInfo
ResolveImageMethod "setAlignment" o = Gtk.Misc.MiscSetAlignmentMethodInfo
ResolveImageMethod "setAllocation" o = Gtk.Widget.WidgetSetAllocationMethodInfo
ResolveImageMethod "setAppPaintable" o = Gtk.Widget.WidgetSetAppPaintableMethodInfo
ResolveImageMethod "setBuildableProperty" o = Gtk.Buildable.BuildableSetBuildablePropertyMethodInfo
ResolveImageMethod "setCanDefault" o = Gtk.Widget.WidgetSetCanDefaultMethodInfo
ResolveImageMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveImageMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveImageMethod "setClip" o = Gtk.Widget.WidgetSetClipMethodInfo
ResolveImageMethod "setCompositeName" o = Gtk.Widget.WidgetSetCompositeNameMethodInfo
ResolveImageMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveImageMethod "setDeviceEnabled" o = Gtk.Widget.WidgetSetDeviceEnabledMethodInfo
ResolveImageMethod "setDeviceEvents" o = Gtk.Widget.WidgetSetDeviceEventsMethodInfo
ResolveImageMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveImageMethod "setDoubleBuffered" o = Gtk.Widget.WidgetSetDoubleBufferedMethodInfo
ResolveImageMethod "setEvents" o = Gtk.Widget.WidgetSetEventsMethodInfo
ResolveImageMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveImageMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveImageMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveImageMethod "setFromAnimation" o = ImageSetFromAnimationMethodInfo
ResolveImageMethod "setFromFile" o = ImageSetFromFileMethodInfo
ResolveImageMethod "setFromGicon" o = ImageSetFromGiconMethodInfo
ResolveImageMethod "setFromIconName" o = ImageSetFromIconNameMethodInfo
ResolveImageMethod "setFromIconSet" o = ImageSetFromIconSetMethodInfo
ResolveImageMethod "setFromPixbuf" o = ImageSetFromPixbufMethodInfo
ResolveImageMethod "setFromResource" o = ImageSetFromResourceMethodInfo
ResolveImageMethod "setFromStock" o = ImageSetFromStockMethodInfo
ResolveImageMethod "setFromSurface" o = ImageSetFromSurfaceMethodInfo
ResolveImageMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveImageMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveImageMethod "setHasWindow" o = Gtk.Widget.WidgetSetHasWindowMethodInfo
ResolveImageMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveImageMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveImageMethod "setMapped" o = Gtk.Widget.WidgetSetMappedMethodInfo
ResolveImageMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveImageMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveImageMethod "setMarginLeft" o = Gtk.Widget.WidgetSetMarginLeftMethodInfo
ResolveImageMethod "setMarginRight" o = Gtk.Widget.WidgetSetMarginRightMethodInfo
ResolveImageMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveImageMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveImageMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveImageMethod "setNoShowAll" o = Gtk.Widget.WidgetSetNoShowAllMethodInfo
ResolveImageMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveImageMethod "setPadding" o = Gtk.Misc.MiscSetPaddingMethodInfo
ResolveImageMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveImageMethod "setParentWindow" o = Gtk.Widget.WidgetSetParentWindowMethodInfo
ResolveImageMethod "setPixelSize" o = ImageSetPixelSizeMethodInfo
ResolveImageMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveImageMethod "setRealized" o = Gtk.Widget.WidgetSetRealizedMethodInfo
ResolveImageMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveImageMethod "setRedrawOnAllocate" o = Gtk.Widget.WidgetSetRedrawOnAllocateMethodInfo
ResolveImageMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveImageMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveImageMethod "setState" o = Gtk.Widget.WidgetSetStateMethodInfo
ResolveImageMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveImageMethod "setStyle" o = Gtk.Widget.WidgetSetStyleMethodInfo
ResolveImageMethod "setSupportMultidevice" o = Gtk.Widget.WidgetSetSupportMultideviceMethodInfo
ResolveImageMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolveImageMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolveImageMethod "setTooltipWindow" o = Gtk.Widget.WidgetSetTooltipWindowMethodInfo
ResolveImageMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveImageMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveImageMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveImageMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveImageMethod "setVisual" o = Gtk.Widget.WidgetSetVisualMethodInfo
ResolveImageMethod "setWindow" o = Gtk.Widget.WidgetSetWindowMethodInfo
ResolveImageMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveImageMethod t Image, O.MethodInfo info Image p) => O.IsLabelProxy t (Image -> p) where
fromLabelProxy _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#if MIN_VERSION_base(4,9,0)
instance (info ~ ResolveImageMethod t Image, O.MethodInfo info Image p) => O.IsLabel t (Image -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#else
fromLabel _ = O.overloadedMethod (O.MethodProxy :: O.MethodProxy info)
#endif
#endif
#endif
getImageFile :: (MonadIO m, IsImage o) => o -> m (Maybe T.Text)
getImageFile obj = liftIO $ getObjectPropertyString obj "file"
setImageFile :: (MonadIO m, IsImage o) => o -> T.Text -> m ()
setImageFile obj val = liftIO $ setObjectPropertyString obj "file" (Just val)
constructImageFile :: (IsImage o) => T.Text -> IO (GValueConstruct o)
constructImageFile val = constructObjectPropertyString "file" (Just val)
clearImageFile :: (MonadIO m, IsImage o) => o -> m ()
clearImageFile obj = liftIO $ setObjectPropertyString obj "file" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data ImageFilePropertyInfo
instance AttrInfo ImageFilePropertyInfo where
type AttrAllowedOps ImageFilePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ImageFilePropertyInfo = (~) T.Text
type AttrBaseTypeConstraint ImageFilePropertyInfo = IsImage
type AttrGetType ImageFilePropertyInfo = (Maybe T.Text)
type AttrLabel ImageFilePropertyInfo = "file"
type AttrOrigin ImageFilePropertyInfo = Image
attrGet _ = getImageFile
attrSet _ = setImageFile
attrConstruct _ = constructImageFile
attrClear _ = clearImageFile
#endif
getImageGicon :: (MonadIO m, IsImage o) => o -> m (Maybe Gio.Icon.Icon)
getImageGicon obj = liftIO $ getObjectPropertyObject obj "gicon" Gio.Icon.Icon
setImageGicon :: (MonadIO m, IsImage o, Gio.Icon.IsIcon a) => o -> a -> m ()
setImageGicon obj val = liftIO $ setObjectPropertyObject obj "gicon" (Just val)
constructImageGicon :: (IsImage o, Gio.Icon.IsIcon a) => a -> IO (GValueConstruct o)
constructImageGicon val = constructObjectPropertyObject "gicon" (Just val)
clearImageGicon :: (MonadIO m, IsImage o) => o -> m ()
clearImageGicon obj = liftIO $ setObjectPropertyObject obj "gicon" (Nothing :: Maybe Gio.Icon.Icon)
#if ENABLE_OVERLOADING
data ImageGiconPropertyInfo
instance AttrInfo ImageGiconPropertyInfo where
type AttrAllowedOps ImageGiconPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ImageGiconPropertyInfo = Gio.Icon.IsIcon
type AttrBaseTypeConstraint ImageGiconPropertyInfo = IsImage
type AttrGetType ImageGiconPropertyInfo = (Maybe Gio.Icon.Icon)
type AttrLabel ImageGiconPropertyInfo = "gicon"
type AttrOrigin ImageGiconPropertyInfo = Image
attrGet _ = getImageGicon
attrSet _ = setImageGicon
attrConstruct _ = constructImageGicon
attrClear _ = clearImageGicon
#endif
getImageIconName :: (MonadIO m, IsImage o) => o -> m (Maybe T.Text)
getImageIconName obj = liftIO $ getObjectPropertyString obj "icon-name"
setImageIconName :: (MonadIO m, IsImage o) => o -> T.Text -> m ()
setImageIconName obj val = liftIO $ setObjectPropertyString obj "icon-name" (Just val)
constructImageIconName :: (IsImage o) => T.Text -> IO (GValueConstruct o)
constructImageIconName val = constructObjectPropertyString "icon-name" (Just val)
clearImageIconName :: (MonadIO m, IsImage o) => o -> m ()
clearImageIconName obj = liftIO $ setObjectPropertyString obj "icon-name" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data ImageIconNamePropertyInfo
instance AttrInfo ImageIconNamePropertyInfo where
type AttrAllowedOps ImageIconNamePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ImageIconNamePropertyInfo = (~) T.Text
type AttrBaseTypeConstraint ImageIconNamePropertyInfo = IsImage
type AttrGetType ImageIconNamePropertyInfo = (Maybe T.Text)
type AttrLabel ImageIconNamePropertyInfo = "icon-name"
type AttrOrigin ImageIconNamePropertyInfo = Image
attrGet _ = getImageIconName
attrSet _ = setImageIconName
attrConstruct _ = constructImageIconName
attrClear _ = clearImageIconName
#endif
getImageIconSet :: (MonadIO m, IsImage o) => o -> m (Maybe Gtk.IconSet.IconSet)
getImageIconSet obj = liftIO $ getObjectPropertyBoxed obj "icon-set" Gtk.IconSet.IconSet
setImageIconSet :: (MonadIO m, IsImage o) => o -> Gtk.IconSet.IconSet -> m ()
setImageIconSet obj val = liftIO $ setObjectPropertyBoxed obj "icon-set" (Just val)
constructImageIconSet :: (IsImage o) => Gtk.IconSet.IconSet -> IO (GValueConstruct o)
constructImageIconSet val = constructObjectPropertyBoxed "icon-set" (Just val)
clearImageIconSet :: (MonadIO m, IsImage o) => o -> m ()
clearImageIconSet obj = liftIO $ setObjectPropertyBoxed obj "icon-set" (Nothing :: Maybe Gtk.IconSet.IconSet)
#if ENABLE_OVERLOADING
data ImageIconSetPropertyInfo
instance AttrInfo ImageIconSetPropertyInfo where
type AttrAllowedOps ImageIconSetPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ImageIconSetPropertyInfo = (~) Gtk.IconSet.IconSet
type AttrBaseTypeConstraint ImageIconSetPropertyInfo = IsImage
type AttrGetType ImageIconSetPropertyInfo = (Maybe Gtk.IconSet.IconSet)
type AttrLabel ImageIconSetPropertyInfo = "icon-set"
type AttrOrigin ImageIconSetPropertyInfo = Image
attrGet _ = getImageIconSet
attrSet _ = setImageIconSet
attrConstruct _ = constructImageIconSet
attrClear _ = clearImageIconSet
#endif
getImageIconSize :: (MonadIO m, IsImage o) => o -> m Int32
getImageIconSize obj = liftIO $ getObjectPropertyInt32 obj "icon-size"
setImageIconSize :: (MonadIO m, IsImage o) => o -> Int32 -> m ()
setImageIconSize obj val = liftIO $ setObjectPropertyInt32 obj "icon-size" val
constructImageIconSize :: (IsImage o) => Int32 -> IO (GValueConstruct o)
constructImageIconSize val = constructObjectPropertyInt32 "icon-size" val
#if ENABLE_OVERLOADING
data ImageIconSizePropertyInfo
instance AttrInfo ImageIconSizePropertyInfo where
type AttrAllowedOps ImageIconSizePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint ImageIconSizePropertyInfo = (~) Int32
type AttrBaseTypeConstraint ImageIconSizePropertyInfo = IsImage
type AttrGetType ImageIconSizePropertyInfo = Int32
type AttrLabel ImageIconSizePropertyInfo = "icon-size"
type AttrOrigin ImageIconSizePropertyInfo = Image
attrGet _ = getImageIconSize
attrSet _ = setImageIconSize
attrConstruct _ = constructImageIconSize
attrClear _ = undefined
#endif
getImagePixbuf :: (MonadIO m, IsImage o) => o -> m (Maybe GdkPixbuf.Pixbuf.Pixbuf)
getImagePixbuf obj = liftIO $ getObjectPropertyObject obj "pixbuf" GdkPixbuf.Pixbuf.Pixbuf
setImagePixbuf :: (MonadIO m, IsImage o, GdkPixbuf.Pixbuf.IsPixbuf a) => o -> a -> m ()
setImagePixbuf obj val = liftIO $ setObjectPropertyObject obj "pixbuf" (Just val)
constructImagePixbuf :: (IsImage o, GdkPixbuf.Pixbuf.IsPixbuf a) => a -> IO (GValueConstruct o)
constructImagePixbuf val = constructObjectPropertyObject "pixbuf" (Just val)
clearImagePixbuf :: (MonadIO m, IsImage o) => o -> m ()
clearImagePixbuf obj = liftIO $ setObjectPropertyObject obj "pixbuf" (Nothing :: Maybe GdkPixbuf.Pixbuf.Pixbuf)
#if ENABLE_OVERLOADING
data ImagePixbufPropertyInfo
instance AttrInfo ImagePixbufPropertyInfo where
type AttrAllowedOps ImagePixbufPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ImagePixbufPropertyInfo = GdkPixbuf.Pixbuf.IsPixbuf
type AttrBaseTypeConstraint ImagePixbufPropertyInfo = IsImage
type AttrGetType ImagePixbufPropertyInfo = (Maybe GdkPixbuf.Pixbuf.Pixbuf)
type AttrLabel ImagePixbufPropertyInfo = "pixbuf"
type AttrOrigin ImagePixbufPropertyInfo = Image
attrGet _ = getImagePixbuf
attrSet _ = setImagePixbuf
attrConstruct _ = constructImagePixbuf
attrClear _ = clearImagePixbuf
#endif
getImagePixbufAnimation :: (MonadIO m, IsImage o) => o -> m (Maybe GdkPixbuf.PixbufAnimation.PixbufAnimation)
getImagePixbufAnimation obj = liftIO $ getObjectPropertyObject obj "pixbuf-animation" GdkPixbuf.PixbufAnimation.PixbufAnimation
setImagePixbufAnimation :: (MonadIO m, IsImage o, GdkPixbuf.PixbufAnimation.IsPixbufAnimation a) => o -> a -> m ()
setImagePixbufAnimation obj val = liftIO $ setObjectPropertyObject obj "pixbuf-animation" (Just val)
constructImagePixbufAnimation :: (IsImage o, GdkPixbuf.PixbufAnimation.IsPixbufAnimation a) => a -> IO (GValueConstruct o)
constructImagePixbufAnimation val = constructObjectPropertyObject "pixbuf-animation" (Just val)
clearImagePixbufAnimation :: (MonadIO m, IsImage o) => o -> m ()
clearImagePixbufAnimation obj = liftIO $ setObjectPropertyObject obj "pixbuf-animation" (Nothing :: Maybe GdkPixbuf.PixbufAnimation.PixbufAnimation)
#if ENABLE_OVERLOADING
data ImagePixbufAnimationPropertyInfo
instance AttrInfo ImagePixbufAnimationPropertyInfo where
type AttrAllowedOps ImagePixbufAnimationPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ImagePixbufAnimationPropertyInfo = GdkPixbuf.PixbufAnimation.IsPixbufAnimation
type AttrBaseTypeConstraint ImagePixbufAnimationPropertyInfo = IsImage
type AttrGetType ImagePixbufAnimationPropertyInfo = (Maybe GdkPixbuf.PixbufAnimation.PixbufAnimation)
type AttrLabel ImagePixbufAnimationPropertyInfo = "pixbuf-animation"
type AttrOrigin ImagePixbufAnimationPropertyInfo = Image
attrGet _ = getImagePixbufAnimation
attrSet _ = setImagePixbufAnimation
attrConstruct _ = constructImagePixbufAnimation
attrClear _ = clearImagePixbufAnimation
#endif
getImagePixelSize :: (MonadIO m, IsImage o) => o -> m Int32
getImagePixelSize obj = liftIO $ getObjectPropertyInt32 obj "pixel-size"
setImagePixelSize :: (MonadIO m, IsImage o) => o -> Int32 -> m ()
setImagePixelSize obj val = liftIO $ setObjectPropertyInt32 obj "pixel-size" val
constructImagePixelSize :: (IsImage o) => Int32 -> IO (GValueConstruct o)
constructImagePixelSize val = constructObjectPropertyInt32 "pixel-size" val
#if ENABLE_OVERLOADING
data ImagePixelSizePropertyInfo
instance AttrInfo ImagePixelSizePropertyInfo where
type AttrAllowedOps ImagePixelSizePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint ImagePixelSizePropertyInfo = (~) Int32
type AttrBaseTypeConstraint ImagePixelSizePropertyInfo = IsImage
type AttrGetType ImagePixelSizePropertyInfo = Int32
type AttrLabel ImagePixelSizePropertyInfo = "pixel-size"
type AttrOrigin ImagePixelSizePropertyInfo = Image
attrGet _ = getImagePixelSize
attrSet _ = setImagePixelSize
attrConstruct _ = constructImagePixelSize
attrClear _ = undefined
#endif
getImageResource :: (MonadIO m, IsImage o) => o -> m (Maybe T.Text)
getImageResource obj = liftIO $ getObjectPropertyString obj "resource"
setImageResource :: (MonadIO m, IsImage o) => o -> T.Text -> m ()
setImageResource obj val = liftIO $ setObjectPropertyString obj "resource" (Just val)
constructImageResource :: (IsImage o) => T.Text -> IO (GValueConstruct o)
constructImageResource val = constructObjectPropertyString "resource" (Just val)
clearImageResource :: (MonadIO m, IsImage o) => o -> m ()
clearImageResource obj = liftIO $ setObjectPropertyString obj "resource" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data ImageResourcePropertyInfo
instance AttrInfo ImageResourcePropertyInfo where
type AttrAllowedOps ImageResourcePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ImageResourcePropertyInfo = (~) T.Text
type AttrBaseTypeConstraint ImageResourcePropertyInfo = IsImage
type AttrGetType ImageResourcePropertyInfo = (Maybe T.Text)
type AttrLabel ImageResourcePropertyInfo = "resource"
type AttrOrigin ImageResourcePropertyInfo = Image
attrGet _ = getImageResource
attrSet _ = setImageResource
attrConstruct _ = constructImageResource
attrClear _ = clearImageResource
#endif
getImageStock :: (MonadIO m, IsImage o) => o -> m (Maybe T.Text)
getImageStock obj = liftIO $ getObjectPropertyString obj "stock"
setImageStock :: (MonadIO m, IsImage o) => o -> T.Text -> m ()
setImageStock obj val = liftIO $ setObjectPropertyString obj "stock" (Just val)
constructImageStock :: (IsImage o) => T.Text -> IO (GValueConstruct o)
constructImageStock val = constructObjectPropertyString "stock" (Just val)
clearImageStock :: (MonadIO m, IsImage o) => o -> m ()
clearImageStock obj = liftIO $ setObjectPropertyString obj "stock" (Nothing :: Maybe T.Text)
#if ENABLE_OVERLOADING
data ImageStockPropertyInfo
instance AttrInfo ImageStockPropertyInfo where
type AttrAllowedOps ImageStockPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ImageStockPropertyInfo = (~) T.Text
type AttrBaseTypeConstraint ImageStockPropertyInfo = IsImage
type AttrGetType ImageStockPropertyInfo = (Maybe T.Text)
type AttrLabel ImageStockPropertyInfo = "stock"
type AttrOrigin ImageStockPropertyInfo = Image
attrGet _ = getImageStock
attrSet _ = setImageStock
attrConstruct _ = constructImageStock
attrClear _ = clearImageStock
#endif
getImageStorageType :: (MonadIO m, IsImage o) => o -> m Gtk.Enums.ImageType
getImageStorageType obj = liftIO $ getObjectPropertyEnum obj "storage-type"
#if ENABLE_OVERLOADING
data ImageStorageTypePropertyInfo
instance AttrInfo ImageStorageTypePropertyInfo where
type AttrAllowedOps ImageStorageTypePropertyInfo = '[ 'AttrGet]
type AttrSetTypeConstraint ImageStorageTypePropertyInfo = (~) ()
type AttrBaseTypeConstraint ImageStorageTypePropertyInfo = IsImage
type AttrGetType ImageStorageTypePropertyInfo = Gtk.Enums.ImageType
type AttrLabel ImageStorageTypePropertyInfo = "storage-type"
type AttrOrigin ImageStorageTypePropertyInfo = Image
attrGet _ = getImageStorageType
attrSet _ = undefined
attrConstruct _ = undefined
attrClear _ = undefined
#endif
getImageSurface :: (MonadIO m, IsImage o) => o -> m (Maybe Cairo.Surface.Surface)
getImageSurface obj = liftIO $ getObjectPropertyBoxed obj "surface" Cairo.Surface.Surface
setImageSurface :: (MonadIO m, IsImage o) => o -> Cairo.Surface.Surface -> m ()
setImageSurface obj val = liftIO $ setObjectPropertyBoxed obj "surface" (Just val)
constructImageSurface :: (IsImage o) => Cairo.Surface.Surface -> IO (GValueConstruct o)
constructImageSurface val = constructObjectPropertyBoxed "surface" (Just val)
clearImageSurface :: (MonadIO m, IsImage o) => o -> m ()
clearImageSurface obj = liftIO $ setObjectPropertyBoxed obj "surface" (Nothing :: Maybe Cairo.Surface.Surface)
#if ENABLE_OVERLOADING
data ImageSurfacePropertyInfo
instance AttrInfo ImageSurfacePropertyInfo where
type AttrAllowedOps ImageSurfacePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrSetTypeConstraint ImageSurfacePropertyInfo = (~) Cairo.Surface.Surface
type AttrBaseTypeConstraint ImageSurfacePropertyInfo = IsImage
type AttrGetType ImageSurfacePropertyInfo = (Maybe Cairo.Surface.Surface)
type AttrLabel ImageSurfacePropertyInfo = "surface"
type AttrOrigin ImageSurfacePropertyInfo = Image
attrGet _ = getImageSurface
attrSet _ = setImageSurface
attrConstruct _ = constructImageSurface
attrClear _ = clearImageSurface
#endif
getImageUseFallback :: (MonadIO m, IsImage o) => o -> m Bool
getImageUseFallback obj = liftIO $ getObjectPropertyBool obj "use-fallback"
setImageUseFallback :: (MonadIO m, IsImage o) => o -> Bool -> m ()
setImageUseFallback obj val = liftIO $ setObjectPropertyBool obj "use-fallback" val
constructImageUseFallback :: (IsImage o) => Bool -> IO (GValueConstruct o)
constructImageUseFallback val = constructObjectPropertyBool "use-fallback" val
#if ENABLE_OVERLOADING
data ImageUseFallbackPropertyInfo
instance AttrInfo ImageUseFallbackPropertyInfo where
type AttrAllowedOps ImageUseFallbackPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrSetTypeConstraint ImageUseFallbackPropertyInfo = (~) Bool
type AttrBaseTypeConstraint ImageUseFallbackPropertyInfo = IsImage
type AttrGetType ImageUseFallbackPropertyInfo = Bool
type AttrLabel ImageUseFallbackPropertyInfo = "use-fallback"
type AttrOrigin ImageUseFallbackPropertyInfo = Image
attrGet _ = getImageUseFallback
attrSet _ = setImageUseFallback
attrConstruct _ = constructImageUseFallback
attrClear _ = undefined
#endif
#if ENABLE_OVERLOADING
instance O.HasAttributeList Image
type instance O.AttributeList Image = ImageAttributeList
type ImageAttributeList = ('[ '("appPaintable", Gtk.Widget.WidgetAppPaintablePropertyInfo), '("canDefault", Gtk.Widget.WidgetCanDefaultPropertyInfo), '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("compositeChild", Gtk.Widget.WidgetCompositeChildPropertyInfo), '("doubleBuffered", Gtk.Widget.WidgetDoubleBufferedPropertyInfo), '("events", Gtk.Widget.WidgetEventsPropertyInfo), '("expand", Gtk.Widget.WidgetExpandPropertyInfo), '("file", ImageFilePropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("gicon", ImageGiconPropertyInfo), '("halign", Gtk.Widget.WidgetHalignPropertyInfo), '("hasDefault", Gtk.Widget.WidgetHasDefaultPropertyInfo), '("hasFocus", Gtk.Widget.WidgetHasFocusPropertyInfo), '("hasTooltip", Gtk.Widget.WidgetHasTooltipPropertyInfo), '("heightRequest", Gtk.Widget.WidgetHeightRequestPropertyInfo), '("hexpand", Gtk.Widget.WidgetHexpandPropertyInfo), '("hexpandSet", Gtk.Widget.WidgetHexpandSetPropertyInfo), '("iconName", ImageIconNamePropertyInfo), '("iconSet", ImageIconSetPropertyInfo), '("iconSize", ImageIconSizePropertyInfo), '("isFocus", Gtk.Widget.WidgetIsFocusPropertyInfo), '("margin", Gtk.Widget.WidgetMarginPropertyInfo), '("marginBottom", Gtk.Widget.WidgetMarginBottomPropertyInfo), '("marginEnd", Gtk.Widget.WidgetMarginEndPropertyInfo), '("marginLeft", Gtk.Widget.WidgetMarginLeftPropertyInfo), '("marginRight", Gtk.Widget.WidgetMarginRightPropertyInfo), '("marginStart", Gtk.Widget.WidgetMarginStartPropertyInfo), '("marginTop", Gtk.Widget.WidgetMarginTopPropertyInfo), '("name", Gtk.Widget.WidgetNamePropertyInfo), '("noShowAll", Gtk.Widget.WidgetNoShowAllPropertyInfo), '("opacity", Gtk.Widget.WidgetOpacityPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("pixbuf", ImagePixbufPropertyInfo), '("pixbufAnimation", ImagePixbufAnimationPropertyInfo), '("pixelSize", ImagePixelSizePropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("resource", ImageResourcePropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("stock", ImageStockPropertyInfo), '("storageType", ImageStorageTypePropertyInfo), '("style", Gtk.Widget.WidgetStylePropertyInfo), '("surface", ImageSurfacePropertyInfo), '("tooltipMarkup", Gtk.Widget.WidgetTooltipMarkupPropertyInfo), '("tooltipText", Gtk.Widget.WidgetTooltipTextPropertyInfo), '("useFallback", ImageUseFallbackPropertyInfo), '("valign", Gtk.Widget.WidgetValignPropertyInfo), '("vexpand", Gtk.Widget.WidgetVexpandPropertyInfo), '("vexpandSet", Gtk.Widget.WidgetVexpandSetPropertyInfo), '("visible", Gtk.Widget.WidgetVisiblePropertyInfo), '("widthRequest", Gtk.Widget.WidgetWidthRequestPropertyInfo), '("window", Gtk.Widget.WidgetWindowPropertyInfo), '("xalign", Gtk.Misc.MiscXalignPropertyInfo), '("xpad", Gtk.Misc.MiscXpadPropertyInfo), '("yalign", Gtk.Misc.MiscYalignPropertyInfo), '("ypad", Gtk.Misc.MiscYpadPropertyInfo)] :: [(Symbol, *)])
#endif
#if ENABLE_OVERLOADING
imageFile :: AttrLabelProxy "file"
imageFile = AttrLabelProxy
imageGicon :: AttrLabelProxy "gicon"
imageGicon = AttrLabelProxy
imageIconName :: AttrLabelProxy "iconName"
imageIconName = AttrLabelProxy
imageIconSet :: AttrLabelProxy "iconSet"
imageIconSet = AttrLabelProxy
imageIconSize :: AttrLabelProxy "iconSize"
imageIconSize = AttrLabelProxy
imagePixbuf :: AttrLabelProxy "pixbuf"
imagePixbuf = AttrLabelProxy
imagePixbufAnimation :: AttrLabelProxy "pixbufAnimation"
imagePixbufAnimation = AttrLabelProxy
imagePixelSize :: AttrLabelProxy "pixelSize"
imagePixelSize = AttrLabelProxy
imageResource :: AttrLabelProxy "resource"
imageResource = AttrLabelProxy
imageStock :: AttrLabelProxy "stock"
imageStock = AttrLabelProxy
imageStorageType :: AttrLabelProxy "storageType"
imageStorageType = AttrLabelProxy
imageSurface :: AttrLabelProxy "surface"
imageSurface = AttrLabelProxy
imageUseFallback :: AttrLabelProxy "useFallback"
imageUseFallback = AttrLabelProxy
#endif
#if ENABLE_OVERLOADING
type instance O.SignalList Image = ImageSignalList
type ImageSignalList = ('[ '("accelClosuresChanged", Gtk.Widget.WidgetAccelClosuresChangedSignalInfo), '("buttonPressEvent", Gtk.Widget.WidgetButtonPressEventSignalInfo), '("buttonReleaseEvent", Gtk.Widget.WidgetButtonReleaseEventSignalInfo), '("canActivateAccel", Gtk.Widget.WidgetCanActivateAccelSignalInfo), '("childNotify", Gtk.Widget.WidgetChildNotifySignalInfo), '("compositedChanged", Gtk.Widget.WidgetCompositedChangedSignalInfo), '("configureEvent", Gtk.Widget.WidgetConfigureEventSignalInfo), '("damageEvent", Gtk.Widget.WidgetDamageEventSignalInfo), '("deleteEvent", Gtk.Widget.WidgetDeleteEventSignalInfo), '("destroy", Gtk.Widget.WidgetDestroySignalInfo), '("destroyEvent", Gtk.Widget.WidgetDestroyEventSignalInfo), '("directionChanged", Gtk.Widget.WidgetDirectionChangedSignalInfo), '("dragBegin", Gtk.Widget.WidgetDragBeginSignalInfo), '("dragDataDelete", Gtk.Widget.WidgetDragDataDeleteSignalInfo), '("dragDataGet", Gtk.Widget.WidgetDragDataGetSignalInfo), '("dragDataReceived", Gtk.Widget.WidgetDragDataReceivedSignalInfo), '("dragDrop", Gtk.Widget.WidgetDragDropSignalInfo), '("dragEnd", Gtk.Widget.WidgetDragEndSignalInfo), '("dragFailed", Gtk.Widget.WidgetDragFailedSignalInfo), '("dragLeave", Gtk.Widget.WidgetDragLeaveSignalInfo), '("dragMotion", Gtk.Widget.WidgetDragMotionSignalInfo), '("draw", Gtk.Widget.WidgetDrawSignalInfo), '("enterNotifyEvent", Gtk.Widget.WidgetEnterNotifyEventSignalInfo), '("event", Gtk.Widget.WidgetEventSignalInfo), '("eventAfter", Gtk.Widget.WidgetEventAfterSignalInfo), '("focus", Gtk.Widget.WidgetFocusSignalInfo), '("focusInEvent", Gtk.Widget.WidgetFocusInEventSignalInfo), '("focusOutEvent", Gtk.Widget.WidgetFocusOutEventSignalInfo), '("grabBrokenEvent", Gtk.Widget.WidgetGrabBrokenEventSignalInfo), '("grabFocus", Gtk.Widget.WidgetGrabFocusSignalInfo), '("grabNotify", Gtk.Widget.WidgetGrabNotifySignalInfo), '("hide", Gtk.Widget.WidgetHideSignalInfo), '("hierarchyChanged", Gtk.Widget.WidgetHierarchyChangedSignalInfo), '("keyPressEvent", Gtk.Widget.WidgetKeyPressEventSignalInfo), '("keyReleaseEvent", Gtk.Widget.WidgetKeyReleaseEventSignalInfo), '("keynavFailed", Gtk.Widget.WidgetKeynavFailedSignalInfo), '("leaveNotifyEvent", Gtk.Widget.WidgetLeaveNotifyEventSignalInfo), '("map", Gtk.Widget.WidgetMapSignalInfo), '("mapEvent", Gtk.Widget.WidgetMapEventSignalInfo), '("mnemonicActivate", Gtk.Widget.WidgetMnemonicActivateSignalInfo), '("motionNotifyEvent", Gtk.Widget.WidgetMotionNotifyEventSignalInfo), '("moveFocus", Gtk.Widget.WidgetMoveFocusSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("parentSet", Gtk.Widget.WidgetParentSetSignalInfo), '("popupMenu", Gtk.Widget.WidgetPopupMenuSignalInfo), '("propertyNotifyEvent", Gtk.Widget.WidgetPropertyNotifyEventSignalInfo), '("proximityInEvent", Gtk.Widget.WidgetProximityInEventSignalInfo), '("proximityOutEvent", Gtk.Widget.WidgetProximityOutEventSignalInfo), '("queryTooltip", Gtk.Widget.WidgetQueryTooltipSignalInfo), '("realize", Gtk.Widget.WidgetRealizeSignalInfo), '("screenChanged", Gtk.Widget.WidgetScreenChangedSignalInfo), '("scrollEvent", Gtk.Widget.WidgetScrollEventSignalInfo), '("selectionClearEvent", Gtk.Widget.WidgetSelectionClearEventSignalInfo), '("selectionGet", Gtk.Widget.WidgetSelectionGetSignalInfo), '("selectionNotifyEvent", Gtk.Widget.WidgetSelectionNotifyEventSignalInfo), '("selectionReceived", Gtk.Widget.WidgetSelectionReceivedSignalInfo), '("selectionRequestEvent", Gtk.Widget.WidgetSelectionRequestEventSignalInfo), '("show", Gtk.Widget.WidgetShowSignalInfo), '("showHelp", Gtk.Widget.WidgetShowHelpSignalInfo), '("sizeAllocate", Gtk.Widget.WidgetSizeAllocateSignalInfo), '("stateChanged", Gtk.Widget.WidgetStateChangedSignalInfo), '("stateFlagsChanged", Gtk.Widget.WidgetStateFlagsChangedSignalInfo), '("styleSet", Gtk.Widget.WidgetStyleSetSignalInfo), '("styleUpdated", Gtk.Widget.WidgetStyleUpdatedSignalInfo), '("touchEvent", Gtk.Widget.WidgetTouchEventSignalInfo), '("unmap", Gtk.Widget.WidgetUnmapSignalInfo), '("unmapEvent", Gtk.Widget.WidgetUnmapEventSignalInfo), '("unrealize", Gtk.Widget.WidgetUnrealizeSignalInfo), '("visibilityNotifyEvent", Gtk.Widget.WidgetVisibilityNotifyEventSignalInfo), '("windowStateEvent", Gtk.Widget.WidgetWindowStateEventSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_image_new" gtk_image_new ::
IO (Ptr Image)
imageNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m Image
imageNew = liftIO $ do
result <- gtk_image_new
checkUnexpectedReturnNULL "imageNew" result
result' <- (newObject Image) result
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_image_new_from_animation" gtk_image_new_from_animation ::
Ptr GdkPixbuf.PixbufAnimation.PixbufAnimation ->
IO (Ptr Image)
imageNewFromAnimation ::
(B.CallStack.HasCallStack, MonadIO m, GdkPixbuf.PixbufAnimation.IsPixbufAnimation a) =>
a
-> m Image
imageNewFromAnimation animation = liftIO $ do
animation' <- unsafeManagedPtrCastPtr animation
result <- gtk_image_new_from_animation animation'
checkUnexpectedReturnNULL "imageNewFromAnimation" result
result' <- (newObject Image) result
touchManagedPtr animation
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_image_new_from_file" gtk_image_new_from_file ::
CString ->
IO (Ptr Image)
imageNewFromFile ::
(B.CallStack.HasCallStack, MonadIO m) =>
[Char]
-> m Image
imageNewFromFile filename = liftIO $ do
filename' <- stringToCString filename
result <- gtk_image_new_from_file filename'
checkUnexpectedReturnNULL "imageNewFromFile" result
result' <- (newObject Image) result
freeMem filename'
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_image_new_from_gicon" gtk_image_new_from_gicon ::
Ptr Gio.Icon.Icon ->
Int32 ->
IO (Ptr Image)
imageNewFromGicon ::
(B.CallStack.HasCallStack, MonadIO m, Gio.Icon.IsIcon a) =>
a
-> Int32
-> m Image
imageNewFromGicon icon size = liftIO $ do
icon' <- unsafeManagedPtrCastPtr icon
result <- gtk_image_new_from_gicon icon' size
checkUnexpectedReturnNULL "imageNewFromGicon" result
result' <- (newObject Image) result
touchManagedPtr icon
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_image_new_from_icon_name" gtk_image_new_from_icon_name ::
CString ->
Int32 ->
IO (Ptr Image)
imageNewFromIconName ::
(B.CallStack.HasCallStack, MonadIO m) =>
Maybe (T.Text)
-> Int32
-> m Image
imageNewFromIconName iconName size = liftIO $ do
maybeIconName <- case iconName of
Nothing -> return nullPtr
Just jIconName -> do
jIconName' <- textToCString jIconName
return jIconName'
result <- gtk_image_new_from_icon_name maybeIconName size
checkUnexpectedReturnNULL "imageNewFromIconName" result
result' <- (newObject Image) result
freeMem maybeIconName
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_image_new_from_icon_set" gtk_image_new_from_icon_set ::
Ptr Gtk.IconSet.IconSet ->
Int32 ->
IO (Ptr Image)
{-# DEPRECATED imageNewFromIconSet ["(Since version 3.10)","Use 'GI.Gtk.Objects.Image.imageNewFromIconName' instead."] #-}
imageNewFromIconSet ::
(B.CallStack.HasCallStack, MonadIO m) =>
Gtk.IconSet.IconSet
-> Int32
-> m Image
imageNewFromIconSet iconSet size = liftIO $ do
iconSet' <- unsafeManagedPtrGetPtr iconSet
result <- gtk_image_new_from_icon_set iconSet' size
checkUnexpectedReturnNULL "imageNewFromIconSet" result
result' <- (newObject Image) result
touchManagedPtr iconSet
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_image_new_from_pixbuf" gtk_image_new_from_pixbuf ::
Ptr GdkPixbuf.Pixbuf.Pixbuf ->
IO (Ptr Image)
imageNewFromPixbuf ::
(B.CallStack.HasCallStack, MonadIO m, GdkPixbuf.Pixbuf.IsPixbuf a) =>
Maybe (a)
-> m Image
imageNewFromPixbuf pixbuf = liftIO $ do
maybePixbuf <- case pixbuf of
Nothing -> return nullPtr
Just jPixbuf -> do
jPixbuf' <- unsafeManagedPtrCastPtr jPixbuf
return jPixbuf'
result <- gtk_image_new_from_pixbuf maybePixbuf
checkUnexpectedReturnNULL "imageNewFromPixbuf" result
result' <- (newObject Image) result
whenJust pixbuf touchManagedPtr
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_image_new_from_resource" gtk_image_new_from_resource ::
CString ->
IO (Ptr Image)
imageNewFromResource ::
(B.CallStack.HasCallStack, MonadIO m) =>
T.Text
-> m Image
imageNewFromResource resourcePath = liftIO $ do
resourcePath' <- textToCString resourcePath
result <- gtk_image_new_from_resource resourcePath'
checkUnexpectedReturnNULL "imageNewFromResource" result
result' <- (newObject Image) result
freeMem resourcePath'
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_image_new_from_stock" gtk_image_new_from_stock ::
CString ->
Int32 ->
IO (Ptr Image)
{-# DEPRECATED imageNewFromStock ["(Since version 3.10)","Use 'GI.Gtk.Objects.Image.imageNewFromIconName' instead."] #-}
imageNewFromStock ::
(B.CallStack.HasCallStack, MonadIO m) =>
T.Text
-> Int32
-> m Image
imageNewFromStock stockId size = liftIO $ do
stockId' <- textToCString stockId
result <- gtk_image_new_from_stock stockId' size
checkUnexpectedReturnNULL "imageNewFromStock" result
result' <- (newObject Image) result
freeMem stockId'
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_image_new_from_surface" gtk_image_new_from_surface ::
Ptr Cairo.Surface.Surface ->
IO (Ptr Image)
imageNewFromSurface ::
(B.CallStack.HasCallStack, MonadIO m) =>
Maybe (Cairo.Surface.Surface)
-> m Image
imageNewFromSurface surface = liftIO $ do
maybeSurface <- case surface of
Nothing -> return nullPtr
Just jSurface -> do
jSurface' <- unsafeManagedPtrGetPtr jSurface
return jSurface'
result <- gtk_image_new_from_surface maybeSurface
checkUnexpectedReturnNULL "imageNewFromSurface" result
result' <- (newObject Image) result
whenJust surface touchManagedPtr
return result'
#if ENABLE_OVERLOADING
#endif
foreign import ccall "gtk_image_clear" gtk_image_clear ::
Ptr Image ->
IO ()
imageClear ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> m ()
imageClear image = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
gtk_image_clear image'
touchManagedPtr image
return ()
#if ENABLE_OVERLOADING
data ImageClearMethodInfo
instance (signature ~ (m ()), MonadIO m, IsImage a) => O.MethodInfo ImageClearMethodInfo a signature where
overloadedMethod _ = imageClear
#endif
foreign import ccall "gtk_image_get_animation" gtk_image_get_animation ::
Ptr Image ->
IO (Ptr GdkPixbuf.PixbufAnimation.PixbufAnimation)
imageGetAnimation ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> m (Maybe GdkPixbuf.PixbufAnimation.PixbufAnimation)
imageGetAnimation image = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
result <- gtk_image_get_animation image'
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- (newObject GdkPixbuf.PixbufAnimation.PixbufAnimation) result'
return result''
touchManagedPtr image
return maybeResult
#if ENABLE_OVERLOADING
data ImageGetAnimationMethodInfo
instance (signature ~ (m (Maybe GdkPixbuf.PixbufAnimation.PixbufAnimation)), MonadIO m, IsImage a) => O.MethodInfo ImageGetAnimationMethodInfo a signature where
overloadedMethod _ = imageGetAnimation
#endif
foreign import ccall "gtk_image_get_gicon" gtk_image_get_gicon ::
Ptr Image ->
Ptr (Ptr Gio.Icon.Icon) ->
Ptr Int32 ->
IO ()
imageGetGicon ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> m ((Gio.Icon.Icon, Int32))
imageGetGicon image = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
gicon <- allocMem :: IO (Ptr (Ptr Gio.Icon.Icon))
size <- allocMem :: IO (Ptr Int32)
gtk_image_get_gicon image' gicon size
gicon' <- peek gicon
gicon'' <- (newObject Gio.Icon.Icon) gicon'
size' <- peek size
touchManagedPtr image
freeMem gicon
freeMem size
return (gicon'', size')
#if ENABLE_OVERLOADING
data ImageGetGiconMethodInfo
instance (signature ~ (m ((Gio.Icon.Icon, Int32))), MonadIO m, IsImage a) => O.MethodInfo ImageGetGiconMethodInfo a signature where
overloadedMethod _ = imageGetGicon
#endif
foreign import ccall "gtk_image_get_icon_name" gtk_image_get_icon_name ::
Ptr Image ->
Ptr CString ->
Ptr Int32 ->
IO ()
imageGetIconName ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> m ((T.Text, Int32))
imageGetIconName image = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
iconName <- allocMem :: IO (Ptr CString)
size <- allocMem :: IO (Ptr Int32)
gtk_image_get_icon_name image' iconName size
iconName' <- peek iconName
iconName'' <- cstringToText iconName'
size' <- peek size
touchManagedPtr image
freeMem iconName
freeMem size
return (iconName'', size')
#if ENABLE_OVERLOADING
data ImageGetIconNameMethodInfo
instance (signature ~ (m ((T.Text, Int32))), MonadIO m, IsImage a) => O.MethodInfo ImageGetIconNameMethodInfo a signature where
overloadedMethod _ = imageGetIconName
#endif
foreign import ccall "gtk_image_get_icon_set" gtk_image_get_icon_set ::
Ptr Image ->
Ptr (Ptr Gtk.IconSet.IconSet) ->
Ptr Int32 ->
IO ()
{-# DEPRECATED imageGetIconSet ["(Since version 3.10)","Use 'GI.Gtk.Objects.Image.imageGetIconName' instead."] #-}
imageGetIconSet ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> m ((Gtk.IconSet.IconSet, Int32))
imageGetIconSet image = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
iconSet <- allocMem :: IO (Ptr (Ptr Gtk.IconSet.IconSet))
size <- allocMem :: IO (Ptr Int32)
gtk_image_get_icon_set image' iconSet size
iconSet' <- peek iconSet
iconSet'' <- (newBoxed Gtk.IconSet.IconSet) iconSet'
size' <- peek size
touchManagedPtr image
freeMem iconSet
freeMem size
return (iconSet'', size')
#if ENABLE_OVERLOADING
data ImageGetIconSetMethodInfo
instance (signature ~ (m ((Gtk.IconSet.IconSet, Int32))), MonadIO m, IsImage a) => O.MethodInfo ImageGetIconSetMethodInfo a signature where
overloadedMethod _ = imageGetIconSet
#endif
foreign import ccall "gtk_image_get_pixbuf" gtk_image_get_pixbuf ::
Ptr Image ->
IO (Ptr GdkPixbuf.Pixbuf.Pixbuf)
imageGetPixbuf ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> m (Maybe GdkPixbuf.Pixbuf.Pixbuf)
imageGetPixbuf image = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
result <- gtk_image_get_pixbuf image'
maybeResult <- convertIfNonNull result $ \result' -> do
result'' <- (newObject GdkPixbuf.Pixbuf.Pixbuf) result'
return result''
touchManagedPtr image
return maybeResult
#if ENABLE_OVERLOADING
data ImageGetPixbufMethodInfo
instance (signature ~ (m (Maybe GdkPixbuf.Pixbuf.Pixbuf)), MonadIO m, IsImage a) => O.MethodInfo ImageGetPixbufMethodInfo a signature where
overloadedMethod _ = imageGetPixbuf
#endif
foreign import ccall "gtk_image_get_pixel_size" gtk_image_get_pixel_size ::
Ptr Image ->
IO Int32
imageGetPixelSize ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> m Int32
imageGetPixelSize image = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
result <- gtk_image_get_pixel_size image'
touchManagedPtr image
return result
#if ENABLE_OVERLOADING
data ImageGetPixelSizeMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsImage a) => O.MethodInfo ImageGetPixelSizeMethodInfo a signature where
overloadedMethod _ = imageGetPixelSize
#endif
foreign import ccall "gtk_image_get_stock" gtk_image_get_stock ::
Ptr Image ->
Ptr CString ->
Ptr Int32 ->
IO ()
{-# DEPRECATED imageGetStock ["(Since version 3.10)","Use 'GI.Gtk.Objects.Image.imageGetIconName' instead."] #-}
imageGetStock ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> m ((T.Text, Int32))
imageGetStock image = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
stockId <- allocMem :: IO (Ptr CString)
size <- allocMem :: IO (Ptr Int32)
gtk_image_get_stock image' stockId size
stockId' <- peek stockId
stockId'' <- cstringToText stockId'
size' <- peek size
touchManagedPtr image
freeMem stockId
freeMem size
return (stockId'', size')
#if ENABLE_OVERLOADING
data ImageGetStockMethodInfo
instance (signature ~ (m ((T.Text, Int32))), MonadIO m, IsImage a) => O.MethodInfo ImageGetStockMethodInfo a signature where
overloadedMethod _ = imageGetStock
#endif
foreign import ccall "gtk_image_get_storage_type" gtk_image_get_storage_type ::
Ptr Image ->
IO CUInt
imageGetStorageType ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> m Gtk.Enums.ImageType
imageGetStorageType image = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
result <- gtk_image_get_storage_type image'
let result' = (toEnum . fromIntegral) result
touchManagedPtr image
return result'
#if ENABLE_OVERLOADING
data ImageGetStorageTypeMethodInfo
instance (signature ~ (m Gtk.Enums.ImageType), MonadIO m, IsImage a) => O.MethodInfo ImageGetStorageTypeMethodInfo a signature where
overloadedMethod _ = imageGetStorageType
#endif
foreign import ccall "gtk_image_set_from_animation" gtk_image_set_from_animation ::
Ptr Image ->
Ptr GdkPixbuf.PixbufAnimation.PixbufAnimation ->
IO ()
imageSetFromAnimation ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a, GdkPixbuf.PixbufAnimation.IsPixbufAnimation b) =>
a
-> b
-> m ()
imageSetFromAnimation image animation = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
animation' <- unsafeManagedPtrCastPtr animation
gtk_image_set_from_animation image' animation'
touchManagedPtr image
touchManagedPtr animation
return ()
#if ENABLE_OVERLOADING
data ImageSetFromAnimationMethodInfo
instance (signature ~ (b -> m ()), MonadIO m, IsImage a, GdkPixbuf.PixbufAnimation.IsPixbufAnimation b) => O.MethodInfo ImageSetFromAnimationMethodInfo a signature where
overloadedMethod _ = imageSetFromAnimation
#endif
foreign import ccall "gtk_image_set_from_file" gtk_image_set_from_file ::
Ptr Image ->
CString ->
IO ()
imageSetFromFile ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> Maybe ([Char])
-> m ()
imageSetFromFile image filename = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
maybeFilename <- case filename of
Nothing -> return nullPtr
Just jFilename -> do
jFilename' <- stringToCString jFilename
return jFilename'
gtk_image_set_from_file image' maybeFilename
touchManagedPtr image
freeMem maybeFilename
return ()
#if ENABLE_OVERLOADING
data ImageSetFromFileMethodInfo
instance (signature ~ (Maybe ([Char]) -> m ()), MonadIO m, IsImage a) => O.MethodInfo ImageSetFromFileMethodInfo a signature where
overloadedMethod _ = imageSetFromFile
#endif
foreign import ccall "gtk_image_set_from_gicon" gtk_image_set_from_gicon ::
Ptr Image ->
Ptr Gio.Icon.Icon ->
Int32 ->
IO ()
imageSetFromGicon ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a, Gio.Icon.IsIcon b) =>
a
-> b
-> Int32
-> m ()
imageSetFromGicon image icon size = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
icon' <- unsafeManagedPtrCastPtr icon
gtk_image_set_from_gicon image' icon' size
touchManagedPtr image
touchManagedPtr icon
return ()
#if ENABLE_OVERLOADING
data ImageSetFromGiconMethodInfo
instance (signature ~ (b -> Int32 -> m ()), MonadIO m, IsImage a, Gio.Icon.IsIcon b) => O.MethodInfo ImageSetFromGiconMethodInfo a signature where
overloadedMethod _ = imageSetFromGicon
#endif
foreign import ccall "gtk_image_set_from_icon_name" gtk_image_set_from_icon_name ::
Ptr Image ->
CString ->
Int32 ->
IO ()
imageSetFromIconName ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> Maybe (T.Text)
-> Int32
-> m ()
imageSetFromIconName image iconName size = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
maybeIconName <- case iconName of
Nothing -> return nullPtr
Just jIconName -> do
jIconName' <- textToCString jIconName
return jIconName'
gtk_image_set_from_icon_name image' maybeIconName size
touchManagedPtr image
freeMem maybeIconName
return ()
#if ENABLE_OVERLOADING
data ImageSetFromIconNameMethodInfo
instance (signature ~ (Maybe (T.Text) -> Int32 -> m ()), MonadIO m, IsImage a) => O.MethodInfo ImageSetFromIconNameMethodInfo a signature where
overloadedMethod _ = imageSetFromIconName
#endif
foreign import ccall "gtk_image_set_from_icon_set" gtk_image_set_from_icon_set ::
Ptr Image ->
Ptr Gtk.IconSet.IconSet ->
Int32 ->
IO ()
{-# DEPRECATED imageSetFromIconSet ["(Since version 3.10)","Use 'GI.Gtk.Objects.Image.imageSetFromIconName' instead."] #-}
imageSetFromIconSet ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> Gtk.IconSet.IconSet
-> Int32
-> m ()
imageSetFromIconSet image iconSet size = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
iconSet' <- unsafeManagedPtrGetPtr iconSet
gtk_image_set_from_icon_set image' iconSet' size
touchManagedPtr image
touchManagedPtr iconSet
return ()
#if ENABLE_OVERLOADING
data ImageSetFromIconSetMethodInfo
instance (signature ~ (Gtk.IconSet.IconSet -> Int32 -> m ()), MonadIO m, IsImage a) => O.MethodInfo ImageSetFromIconSetMethodInfo a signature where
overloadedMethod _ = imageSetFromIconSet
#endif
foreign import ccall "gtk_image_set_from_pixbuf" gtk_image_set_from_pixbuf ::
Ptr Image ->
Ptr GdkPixbuf.Pixbuf.Pixbuf ->
IO ()
imageSetFromPixbuf ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a, GdkPixbuf.Pixbuf.IsPixbuf b) =>
a
-> Maybe (b)
-> m ()
imageSetFromPixbuf image pixbuf = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
maybePixbuf <- case pixbuf of
Nothing -> return nullPtr
Just jPixbuf -> do
jPixbuf' <- unsafeManagedPtrCastPtr jPixbuf
return jPixbuf'
gtk_image_set_from_pixbuf image' maybePixbuf
touchManagedPtr image
whenJust pixbuf touchManagedPtr
return ()
#if ENABLE_OVERLOADING
data ImageSetFromPixbufMethodInfo
instance (signature ~ (Maybe (b) -> m ()), MonadIO m, IsImage a, GdkPixbuf.Pixbuf.IsPixbuf b) => O.MethodInfo ImageSetFromPixbufMethodInfo a signature where
overloadedMethod _ = imageSetFromPixbuf
#endif
foreign import ccall "gtk_image_set_from_resource" gtk_image_set_from_resource ::
Ptr Image ->
CString ->
IO ()
imageSetFromResource ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> Maybe (T.Text)
-> m ()
imageSetFromResource image resourcePath = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
maybeResourcePath <- case resourcePath of
Nothing -> return nullPtr
Just jResourcePath -> do
jResourcePath' <- textToCString jResourcePath
return jResourcePath'
gtk_image_set_from_resource image' maybeResourcePath
touchManagedPtr image
freeMem maybeResourcePath
return ()
#if ENABLE_OVERLOADING
data ImageSetFromResourceMethodInfo
instance (signature ~ (Maybe (T.Text) -> m ()), MonadIO m, IsImage a) => O.MethodInfo ImageSetFromResourceMethodInfo a signature where
overloadedMethod _ = imageSetFromResource
#endif
foreign import ccall "gtk_image_set_from_stock" gtk_image_set_from_stock ::
Ptr Image ->
CString ->
Int32 ->
IO ()
{-# DEPRECATED imageSetFromStock ["(Since version 3.10)","Use 'GI.Gtk.Objects.Image.imageSetFromIconName' instead."] #-}
imageSetFromStock ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> T.Text
-> Int32
-> m ()
imageSetFromStock image stockId size = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
stockId' <- textToCString stockId
gtk_image_set_from_stock image' stockId' size
touchManagedPtr image
freeMem stockId'
return ()
#if ENABLE_OVERLOADING
data ImageSetFromStockMethodInfo
instance (signature ~ (T.Text -> Int32 -> m ()), MonadIO m, IsImage a) => O.MethodInfo ImageSetFromStockMethodInfo a signature where
overloadedMethod _ = imageSetFromStock
#endif
foreign import ccall "gtk_image_set_from_surface" gtk_image_set_from_surface ::
Ptr Image ->
Ptr Cairo.Surface.Surface ->
IO ()
imageSetFromSurface ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> Maybe (Cairo.Surface.Surface)
-> m ()
imageSetFromSurface image surface = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
maybeSurface <- case surface of
Nothing -> return nullPtr
Just jSurface -> do
jSurface' <- unsafeManagedPtrGetPtr jSurface
return jSurface'
gtk_image_set_from_surface image' maybeSurface
touchManagedPtr image
whenJust surface touchManagedPtr
return ()
#if ENABLE_OVERLOADING
data ImageSetFromSurfaceMethodInfo
instance (signature ~ (Maybe (Cairo.Surface.Surface) -> m ()), MonadIO m, IsImage a) => O.MethodInfo ImageSetFromSurfaceMethodInfo a signature where
overloadedMethod _ = imageSetFromSurface
#endif
foreign import ccall "gtk_image_set_pixel_size" gtk_image_set_pixel_size ::
Ptr Image ->
Int32 ->
IO ()
imageSetPixelSize ::
(B.CallStack.HasCallStack, MonadIO m, IsImage a) =>
a
-> Int32
-> m ()
imageSetPixelSize image pixelSize = liftIO $ do
image' <- unsafeManagedPtrCastPtr image
gtk_image_set_pixel_size image' pixelSize
touchManagedPtr image
return ()
#if ENABLE_OVERLOADING
data ImageSetPixelSizeMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsImage a) => O.MethodInfo ImageSetPixelSizeMethodInfo a signature where
overloadedMethod _ = imageSetPixelSize
#endif