{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Objects.Scale
(
Scale(..) ,
IsScale ,
toScale ,
noScale ,
#if defined(ENABLE_OVERLOADING)
ResolveScaleMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
ScaleAddMarkMethodInfo ,
#endif
scaleAddMark ,
#if defined(ENABLE_OVERLOADING)
ScaleClearMarksMethodInfo ,
#endif
scaleClearMarks ,
#if defined(ENABLE_OVERLOADING)
ScaleGetDigitsMethodInfo ,
#endif
scaleGetDigits ,
#if defined(ENABLE_OVERLOADING)
ScaleGetDrawValueMethodInfo ,
#endif
scaleGetDrawValue ,
#if defined(ENABLE_OVERLOADING)
ScaleGetHasOriginMethodInfo ,
#endif
scaleGetHasOrigin ,
#if defined(ENABLE_OVERLOADING)
ScaleGetLayoutMethodInfo ,
#endif
scaleGetLayout ,
#if defined(ENABLE_OVERLOADING)
ScaleGetLayoutOffsetsMethodInfo ,
#endif
scaleGetLayoutOffsets ,
#if defined(ENABLE_OVERLOADING)
ScaleGetValuePosMethodInfo ,
#endif
scaleGetValuePos ,
scaleNew ,
scaleNewWithRange ,
#if defined(ENABLE_OVERLOADING)
ScaleSetDigitsMethodInfo ,
#endif
scaleSetDigits ,
#if defined(ENABLE_OVERLOADING)
ScaleSetDrawValueMethodInfo ,
#endif
scaleSetDrawValue ,
#if defined(ENABLE_OVERLOADING)
ScaleSetHasOriginMethodInfo ,
#endif
scaleSetHasOrigin ,
#if defined(ENABLE_OVERLOADING)
ScaleSetValuePosMethodInfo ,
#endif
scaleSetValuePos ,
#if defined(ENABLE_OVERLOADING)
ScaleDigitsPropertyInfo ,
#endif
constructScaleDigits ,
getScaleDigits ,
#if defined(ENABLE_OVERLOADING)
scaleDigits ,
#endif
setScaleDigits ,
#if defined(ENABLE_OVERLOADING)
ScaleDrawValuePropertyInfo ,
#endif
constructScaleDrawValue ,
getScaleDrawValue ,
#if defined(ENABLE_OVERLOADING)
scaleDrawValue ,
#endif
setScaleDrawValue ,
#if defined(ENABLE_OVERLOADING)
ScaleHasOriginPropertyInfo ,
#endif
constructScaleHasOrigin ,
getScaleHasOrigin ,
#if defined(ENABLE_OVERLOADING)
scaleHasOrigin ,
#endif
setScaleHasOrigin ,
#if defined(ENABLE_OVERLOADING)
ScaleValuePosPropertyInfo ,
#endif
constructScaleValuePos ,
getScaleValuePos ,
#if defined(ENABLE_OVERLOADING)
scaleValuePos ,
#endif
setScaleValuePos ,
C_ScaleFormatValueCallback ,
ScaleFormatValueCallback ,
#if defined(ENABLE_OVERLOADING)
ScaleFormatValueSignalInfo ,
#endif
afterScaleFormatValue ,
genClosure_ScaleFormatValue ,
mk_ScaleFormatValueCallback ,
noScaleFormatValueCallback ,
onScaleFormatValue ,
wrap_ScaleFormatValueCallback ,
) 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.GClosure as B.GClosure
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.GI.Base.Properties as B.Properties
import qualified Data.GI.Base.Signals as B.Signals
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 GHC.OverloadedLabels as OL
import qualified GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Orientable as Gtk.Orientable
import {-# SOURCE #-} qualified GI.Gtk.Objects.Adjustment as Gtk.Adjustment
import {-# SOURCE #-} qualified GI.Gtk.Objects.Range as Gtk.Range
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
import qualified GI.Pango.Objects.Layout as Pango.Layout
newtype Scale = Scale (ManagedPtr Scale)
deriving (Scale -> Scale -> Bool
(Scale -> Scale -> Bool) -> (Scale -> Scale -> Bool) -> Eq Scale
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: Scale -> Scale -> Bool
$c/= :: Scale -> Scale -> Bool
== :: Scale -> Scale -> Bool
$c== :: Scale -> Scale -> Bool
Eq)
foreign import ccall "gtk_scale_get_type"
c_gtk_scale_get_type :: IO GType
instance GObject Scale where
gobjectType :: IO GType
gobjectType = IO GType
c_gtk_scale_get_type
instance B.GValue.IsGValue Scale where
toGValue :: Scale -> IO GValue
toGValue o :: Scale
o = do
GType
gtype <- IO GType
c_gtk_scale_get_type
Scale -> (Ptr Scale -> IO GValue) -> IO GValue
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr Scale
o (GType -> (GValue -> Ptr Scale -> IO ()) -> Ptr Scale -> IO GValue
forall a. GType -> (GValue -> a -> IO ()) -> a -> IO GValue
B.GValue.buildGValue GType
gtype GValue -> Ptr Scale -> IO ()
forall a. GObject a => GValue -> Ptr a -> IO ()
B.GValue.set_object)
fromGValue :: GValue -> IO Scale
fromGValue gv :: GValue
gv = do
Ptr Scale
ptr <- GValue -> IO (Ptr Scale)
forall b. GObject b => GValue -> IO (Ptr b)
B.GValue.get_object GValue
gv :: IO (Ptr Scale)
(ManagedPtr Scale -> Scale) -> Ptr Scale -> IO Scale
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr Scale -> Scale
Scale Ptr Scale
ptr
class (GObject o, O.IsDescendantOf Scale o) => IsScale o
instance (GObject o, O.IsDescendantOf Scale o) => IsScale o
instance O.HasParentTypes Scale
type instance O.ParentTypes Scale = '[Gtk.Range.Range, Gtk.Widget.Widget, GObject.Object.Object, Atk.ImplementorIface.ImplementorIface, Gtk.Buildable.Buildable, Gtk.Orientable.Orientable]
toScale :: (MonadIO m, IsScale o) => o -> m Scale
toScale :: o -> m Scale
toScale = IO Scale -> m Scale
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Scale -> m Scale) -> (o -> IO Scale) -> o -> m Scale
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr Scale -> Scale) -> o -> IO Scale
forall o o'.
(HasCallStack, GObject o, GObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
unsafeCastTo ManagedPtr Scale -> Scale
Scale
noScale :: Maybe Scale
noScale :: Maybe Scale
noScale = Maybe Scale
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveScaleMethod (t :: Symbol) (o :: *) :: * where
ResolveScaleMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolveScaleMethod "addAccelerator" o = Gtk.Widget.WidgetAddAcceleratorMethodInfo
ResolveScaleMethod "addChild" o = Gtk.Buildable.BuildableAddChildMethodInfo
ResolveScaleMethod "addDeviceEvents" o = Gtk.Widget.WidgetAddDeviceEventsMethodInfo
ResolveScaleMethod "addEvents" o = Gtk.Widget.WidgetAddEventsMethodInfo
ResolveScaleMethod "addMark" o = ScaleAddMarkMethodInfo
ResolveScaleMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveScaleMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveScaleMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveScaleMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveScaleMethod "canActivateAccel" o = Gtk.Widget.WidgetCanActivateAccelMethodInfo
ResolveScaleMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveScaleMethod "childNotify" o = Gtk.Widget.WidgetChildNotifyMethodInfo
ResolveScaleMethod "classPath" o = Gtk.Widget.WidgetClassPathMethodInfo
ResolveScaleMethod "clearMarks" o = ScaleClearMarksMethodInfo
ResolveScaleMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveScaleMethod "constructChild" o = Gtk.Buildable.BuildableConstructChildMethodInfo
ResolveScaleMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveScaleMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveScaleMethod "customFinished" o = Gtk.Buildable.BuildableCustomFinishedMethodInfo
ResolveScaleMethod "customTagEnd" o = Gtk.Buildable.BuildableCustomTagEndMethodInfo
ResolveScaleMethod "customTagStart" o = Gtk.Buildable.BuildableCustomTagStartMethodInfo
ResolveScaleMethod "destroy" o = Gtk.Widget.WidgetDestroyMethodInfo
ResolveScaleMethod "destroyed" o = Gtk.Widget.WidgetDestroyedMethodInfo
ResolveScaleMethod "deviceIsShadowed" o = Gtk.Widget.WidgetDeviceIsShadowedMethodInfo
ResolveScaleMethod "dragBegin" o = Gtk.Widget.WidgetDragBeginMethodInfo
ResolveScaleMethod "dragBeginWithCoordinates" o = Gtk.Widget.WidgetDragBeginWithCoordinatesMethodInfo
ResolveScaleMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveScaleMethod "dragDestAddImageTargets" o = Gtk.Widget.WidgetDragDestAddImageTargetsMethodInfo
ResolveScaleMethod "dragDestAddTextTargets" o = Gtk.Widget.WidgetDragDestAddTextTargetsMethodInfo
ResolveScaleMethod "dragDestAddUriTargets" o = Gtk.Widget.WidgetDragDestAddUriTargetsMethodInfo
ResolveScaleMethod "dragDestFindTarget" o = Gtk.Widget.WidgetDragDestFindTargetMethodInfo
ResolveScaleMethod "dragDestGetTargetList" o = Gtk.Widget.WidgetDragDestGetTargetListMethodInfo
ResolveScaleMethod "dragDestGetTrackMotion" o = Gtk.Widget.WidgetDragDestGetTrackMotionMethodInfo
ResolveScaleMethod "dragDestSet" o = Gtk.Widget.WidgetDragDestSetMethodInfo
ResolveScaleMethod "dragDestSetProxy" o = Gtk.Widget.WidgetDragDestSetProxyMethodInfo
ResolveScaleMethod "dragDestSetTargetList" o = Gtk.Widget.WidgetDragDestSetTargetListMethodInfo
ResolveScaleMethod "dragDestSetTrackMotion" o = Gtk.Widget.WidgetDragDestSetTrackMotionMethodInfo
ResolveScaleMethod "dragDestUnset" o = Gtk.Widget.WidgetDragDestUnsetMethodInfo
ResolveScaleMethod "dragGetData" o = Gtk.Widget.WidgetDragGetDataMethodInfo
ResolveScaleMethod "dragHighlight" o = Gtk.Widget.WidgetDragHighlightMethodInfo
ResolveScaleMethod "dragSourceAddImageTargets" o = Gtk.Widget.WidgetDragSourceAddImageTargetsMethodInfo
ResolveScaleMethod "dragSourceAddTextTargets" o = Gtk.Widget.WidgetDragSourceAddTextTargetsMethodInfo
ResolveScaleMethod "dragSourceAddUriTargets" o = Gtk.Widget.WidgetDragSourceAddUriTargetsMethodInfo
ResolveScaleMethod "dragSourceGetTargetList" o = Gtk.Widget.WidgetDragSourceGetTargetListMethodInfo
ResolveScaleMethod "dragSourceSet" o = Gtk.Widget.WidgetDragSourceSetMethodInfo
ResolveScaleMethod "dragSourceSetIconGicon" o = Gtk.Widget.WidgetDragSourceSetIconGiconMethodInfo
ResolveScaleMethod "dragSourceSetIconName" o = Gtk.Widget.WidgetDragSourceSetIconNameMethodInfo
ResolveScaleMethod "dragSourceSetIconPixbuf" o = Gtk.Widget.WidgetDragSourceSetIconPixbufMethodInfo
ResolveScaleMethod "dragSourceSetIconStock" o = Gtk.Widget.WidgetDragSourceSetIconStockMethodInfo
ResolveScaleMethod "dragSourceSetTargetList" o = Gtk.Widget.WidgetDragSourceSetTargetListMethodInfo
ResolveScaleMethod "dragSourceUnset" o = Gtk.Widget.WidgetDragSourceUnsetMethodInfo
ResolveScaleMethod "dragUnhighlight" o = Gtk.Widget.WidgetDragUnhighlightMethodInfo
ResolveScaleMethod "draw" o = Gtk.Widget.WidgetDrawMethodInfo
ResolveScaleMethod "ensureStyle" o = Gtk.Widget.WidgetEnsureStyleMethodInfo
ResolveScaleMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveScaleMethod "event" o = Gtk.Widget.WidgetEventMethodInfo
ResolveScaleMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveScaleMethod "freezeChildNotify" o = Gtk.Widget.WidgetFreezeChildNotifyMethodInfo
ResolveScaleMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveScaleMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveScaleMethod "grabAdd" o = Gtk.Widget.WidgetGrabAddMethodInfo
ResolveScaleMethod "grabDefault" o = Gtk.Widget.WidgetGrabDefaultMethodInfo
ResolveScaleMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveScaleMethod "grabRemove" o = Gtk.Widget.WidgetGrabRemoveMethodInfo
ResolveScaleMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveScaleMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveScaleMethod "hasGrab" o = Gtk.Widget.WidgetHasGrabMethodInfo
ResolveScaleMethod "hasRcStyle" o = Gtk.Widget.WidgetHasRcStyleMethodInfo
ResolveScaleMethod "hasScreen" o = Gtk.Widget.WidgetHasScreenMethodInfo
ResolveScaleMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveScaleMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveScaleMethod "hideOnDelete" o = Gtk.Widget.WidgetHideOnDeleteMethodInfo
ResolveScaleMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveScaleMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveScaleMethod "inputShapeCombineRegion" o = Gtk.Widget.WidgetInputShapeCombineRegionMethodInfo
ResolveScaleMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveScaleMethod "intersect" o = Gtk.Widget.WidgetIntersectMethodInfo
ResolveScaleMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveScaleMethod "isComposited" o = Gtk.Widget.WidgetIsCompositedMethodInfo
ResolveScaleMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveScaleMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveScaleMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveScaleMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveScaleMethod "isToplevel" o = Gtk.Widget.WidgetIsToplevelMethodInfo
ResolveScaleMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveScaleMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveScaleMethod "listAccelClosures" o = Gtk.Widget.WidgetListAccelClosuresMethodInfo
ResolveScaleMethod "listActionPrefixes" o = Gtk.Widget.WidgetListActionPrefixesMethodInfo
ResolveScaleMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveScaleMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveScaleMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveScaleMethod "modifyBase" o = Gtk.Widget.WidgetModifyBaseMethodInfo
ResolveScaleMethod "modifyBg" o = Gtk.Widget.WidgetModifyBgMethodInfo
ResolveScaleMethod "modifyCursor" o = Gtk.Widget.WidgetModifyCursorMethodInfo
ResolveScaleMethod "modifyFg" o = Gtk.Widget.WidgetModifyFgMethodInfo
ResolveScaleMethod "modifyFont" o = Gtk.Widget.WidgetModifyFontMethodInfo
ResolveScaleMethod "modifyStyle" o = Gtk.Widget.WidgetModifyStyleMethodInfo
ResolveScaleMethod "modifyText" o = Gtk.Widget.WidgetModifyTextMethodInfo
ResolveScaleMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveScaleMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveScaleMethod "overrideBackgroundColor" o = Gtk.Widget.WidgetOverrideBackgroundColorMethodInfo
ResolveScaleMethod "overrideColor" o = Gtk.Widget.WidgetOverrideColorMethodInfo
ResolveScaleMethod "overrideCursor" o = Gtk.Widget.WidgetOverrideCursorMethodInfo
ResolveScaleMethod "overrideFont" o = Gtk.Widget.WidgetOverrideFontMethodInfo
ResolveScaleMethod "overrideSymbolicColor" o = Gtk.Widget.WidgetOverrideSymbolicColorMethodInfo
ResolveScaleMethod "parserFinished" o = Gtk.Buildable.BuildableParserFinishedMethodInfo
ResolveScaleMethod "path" o = Gtk.Widget.WidgetPathMethodInfo
ResolveScaleMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveScaleMethod "queueComputeExpand" o = Gtk.Widget.WidgetQueueComputeExpandMethodInfo
ResolveScaleMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveScaleMethod "queueDrawArea" o = Gtk.Widget.WidgetQueueDrawAreaMethodInfo
ResolveScaleMethod "queueDrawRegion" o = Gtk.Widget.WidgetQueueDrawRegionMethodInfo
ResolveScaleMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveScaleMethod "queueResizeNoRedraw" o = Gtk.Widget.WidgetQueueResizeNoRedrawMethodInfo
ResolveScaleMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveScaleMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveScaleMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveScaleMethod "regionIntersect" o = Gtk.Widget.WidgetRegionIntersectMethodInfo
ResolveScaleMethod "registerWindow" o = Gtk.Widget.WidgetRegisterWindowMethodInfo
ResolveScaleMethod "removeAccelerator" o = Gtk.Widget.WidgetRemoveAcceleratorMethodInfo
ResolveScaleMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveScaleMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveScaleMethod "renderIcon" o = Gtk.Widget.WidgetRenderIconMethodInfo
ResolveScaleMethod "renderIconPixbuf" o = Gtk.Widget.WidgetRenderIconPixbufMethodInfo
ResolveScaleMethod "reparent" o = Gtk.Widget.WidgetReparentMethodInfo
ResolveScaleMethod "resetRcStyles" o = Gtk.Widget.WidgetResetRcStylesMethodInfo
ResolveScaleMethod "resetStyle" o = Gtk.Widget.WidgetResetStyleMethodInfo
ResolveScaleMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveScaleMethod "sendExpose" o = Gtk.Widget.WidgetSendExposeMethodInfo
ResolveScaleMethod "sendFocusChange" o = Gtk.Widget.WidgetSendFocusChangeMethodInfo
ResolveScaleMethod "shapeCombineRegion" o = Gtk.Widget.WidgetShapeCombineRegionMethodInfo
ResolveScaleMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveScaleMethod "showAll" o = Gtk.Widget.WidgetShowAllMethodInfo
ResolveScaleMethod "showNow" o = Gtk.Widget.WidgetShowNowMethodInfo
ResolveScaleMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveScaleMethod "sizeAllocateWithBaseline" o = Gtk.Widget.WidgetSizeAllocateWithBaselineMethodInfo
ResolveScaleMethod "sizeRequest" o = Gtk.Widget.WidgetSizeRequestMethodInfo
ResolveScaleMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveScaleMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveScaleMethod "styleAttach" o = Gtk.Widget.WidgetStyleAttachMethodInfo
ResolveScaleMethod "styleGetProperty" o = Gtk.Widget.WidgetStyleGetPropertyMethodInfo
ResolveScaleMethod "thawChildNotify" o = Gtk.Widget.WidgetThawChildNotifyMethodInfo
ResolveScaleMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveScaleMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveScaleMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveScaleMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveScaleMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveScaleMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveScaleMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveScaleMethod "unregisterWindow" o = Gtk.Widget.WidgetUnregisterWindowMethodInfo
ResolveScaleMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveScaleMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveScaleMethod "getAccessible" o = Gtk.Widget.WidgetGetAccessibleMethodInfo
ResolveScaleMethod "getActionGroup" o = Gtk.Widget.WidgetGetActionGroupMethodInfo
ResolveScaleMethod "getAdjustment" o = Gtk.Range.RangeGetAdjustmentMethodInfo
ResolveScaleMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveScaleMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveScaleMethod "getAllocatedSize" o = Gtk.Widget.WidgetGetAllocatedSizeMethodInfo
ResolveScaleMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveScaleMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveScaleMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveScaleMethod "getAppPaintable" o = Gtk.Widget.WidgetGetAppPaintableMethodInfo
ResolveScaleMethod "getCanDefault" o = Gtk.Widget.WidgetGetCanDefaultMethodInfo
ResolveScaleMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveScaleMethod "getChildRequisition" o = Gtk.Widget.WidgetGetChildRequisitionMethodInfo
ResolveScaleMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveScaleMethod "getClip" o = Gtk.Widget.WidgetGetClipMethodInfo
ResolveScaleMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveScaleMethod "getCompositeName" o = Gtk.Widget.WidgetGetCompositeNameMethodInfo
ResolveScaleMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveScaleMethod "getDeviceEnabled" o = Gtk.Widget.WidgetGetDeviceEnabledMethodInfo
ResolveScaleMethod "getDeviceEvents" o = Gtk.Widget.WidgetGetDeviceEventsMethodInfo
ResolveScaleMethod "getDigits" o = ScaleGetDigitsMethodInfo
ResolveScaleMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveScaleMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveScaleMethod "getDoubleBuffered" o = Gtk.Widget.WidgetGetDoubleBufferedMethodInfo
ResolveScaleMethod "getDrawValue" o = ScaleGetDrawValueMethodInfo
ResolveScaleMethod "getEvents" o = Gtk.Widget.WidgetGetEventsMethodInfo
ResolveScaleMethod "getFillLevel" o = Gtk.Range.RangeGetFillLevelMethodInfo
ResolveScaleMethod "getFlippable" o = Gtk.Range.RangeGetFlippableMethodInfo
ResolveScaleMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveScaleMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveScaleMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveScaleMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveScaleMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveScaleMethod "getHasOrigin" o = ScaleGetHasOriginMethodInfo
ResolveScaleMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveScaleMethod "getHasWindow" o = Gtk.Widget.WidgetGetHasWindowMethodInfo
ResolveScaleMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveScaleMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveScaleMethod "getInternalChild" o = Gtk.Buildable.BuildableGetInternalChildMethodInfo
ResolveScaleMethod "getInverted" o = Gtk.Range.RangeGetInvertedMethodInfo
ResolveScaleMethod "getLayout" o = ScaleGetLayoutMethodInfo
ResolveScaleMethod "getLayoutOffsets" o = ScaleGetLayoutOffsetsMethodInfo
ResolveScaleMethod "getLowerStepperSensitivity" o = Gtk.Range.RangeGetLowerStepperSensitivityMethodInfo
ResolveScaleMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveScaleMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveScaleMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveScaleMethod "getMarginLeft" o = Gtk.Widget.WidgetGetMarginLeftMethodInfo
ResolveScaleMethod "getMarginRight" o = Gtk.Widget.WidgetGetMarginRightMethodInfo
ResolveScaleMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveScaleMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveScaleMethod "getMinSliderSize" o = Gtk.Range.RangeGetMinSliderSizeMethodInfo
ResolveScaleMethod "getModifierMask" o = Gtk.Widget.WidgetGetModifierMaskMethodInfo
ResolveScaleMethod "getModifierStyle" o = Gtk.Widget.WidgetGetModifierStyleMethodInfo
ResolveScaleMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveScaleMethod "getNoShowAll" o = Gtk.Widget.WidgetGetNoShowAllMethodInfo
ResolveScaleMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveScaleMethod "getOrientation" o = Gtk.Orientable.OrientableGetOrientationMethodInfo
ResolveScaleMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveScaleMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveScaleMethod "getParentWindow" o = Gtk.Widget.WidgetGetParentWindowMethodInfo
ResolveScaleMethod "getPath" o = Gtk.Widget.WidgetGetPathMethodInfo
ResolveScaleMethod "getPointer" o = Gtk.Widget.WidgetGetPointerMethodInfo
ResolveScaleMethod "getPreferredHeight" o = Gtk.Widget.WidgetGetPreferredHeightMethodInfo
ResolveScaleMethod "getPreferredHeightAndBaselineForWidth" o = Gtk.Widget.WidgetGetPreferredHeightAndBaselineForWidthMethodInfo
ResolveScaleMethod "getPreferredHeightForWidth" o = Gtk.Widget.WidgetGetPreferredHeightForWidthMethodInfo
ResolveScaleMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveScaleMethod "getPreferredWidth" o = Gtk.Widget.WidgetGetPreferredWidthMethodInfo
ResolveScaleMethod "getPreferredWidthForHeight" o = Gtk.Widget.WidgetGetPreferredWidthForHeightMethodInfo
ResolveScaleMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveScaleMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveScaleMethod "getRangeRect" o = Gtk.Range.RangeGetRangeRectMethodInfo
ResolveScaleMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveScaleMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveScaleMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveScaleMethod "getRequisition" o = Gtk.Widget.WidgetGetRequisitionMethodInfo
ResolveScaleMethod "getRestrictToFillLevel" o = Gtk.Range.RangeGetRestrictToFillLevelMethodInfo
ResolveScaleMethod "getRootWindow" o = Gtk.Widget.WidgetGetRootWindowMethodInfo
ResolveScaleMethod "getRoundDigits" o = Gtk.Range.RangeGetRoundDigitsMethodInfo
ResolveScaleMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveScaleMethod "getScreen" o = Gtk.Widget.WidgetGetScreenMethodInfo
ResolveScaleMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveScaleMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveScaleMethod "getShowFillLevel" o = Gtk.Range.RangeGetShowFillLevelMethodInfo
ResolveScaleMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveScaleMethod "getSliderRange" o = Gtk.Range.RangeGetSliderRangeMethodInfo
ResolveScaleMethod "getSliderSizeFixed" o = Gtk.Range.RangeGetSliderSizeFixedMethodInfo
ResolveScaleMethod "getState" o = Gtk.Widget.WidgetGetStateMethodInfo
ResolveScaleMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveScaleMethod "getStyle" o = Gtk.Widget.WidgetGetStyleMethodInfo
ResolveScaleMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveScaleMethod "getSupportMultidevice" o = Gtk.Widget.WidgetGetSupportMultideviceMethodInfo
ResolveScaleMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveScaleMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveScaleMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveScaleMethod "getTooltipWindow" o = Gtk.Widget.WidgetGetTooltipWindowMethodInfo
ResolveScaleMethod "getToplevel" o = Gtk.Widget.WidgetGetToplevelMethodInfo
ResolveScaleMethod "getUpperStepperSensitivity" o = Gtk.Range.RangeGetUpperStepperSensitivityMethodInfo
ResolveScaleMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveScaleMethod "getValignWithBaseline" o = Gtk.Widget.WidgetGetValignWithBaselineMethodInfo
ResolveScaleMethod "getValue" o = Gtk.Range.RangeGetValueMethodInfo
ResolveScaleMethod "getValuePos" o = ScaleGetValuePosMethodInfo
ResolveScaleMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveScaleMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveScaleMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveScaleMethod "getVisual" o = Gtk.Widget.WidgetGetVisualMethodInfo
ResolveScaleMethod "getWindow" o = Gtk.Widget.WidgetGetWindowMethodInfo
ResolveScaleMethod "setAccelPath" o = Gtk.Widget.WidgetSetAccelPathMethodInfo
ResolveScaleMethod "setAdjustment" o = Gtk.Range.RangeSetAdjustmentMethodInfo
ResolveScaleMethod "setAllocation" o = Gtk.Widget.WidgetSetAllocationMethodInfo
ResolveScaleMethod "setAppPaintable" o = Gtk.Widget.WidgetSetAppPaintableMethodInfo
ResolveScaleMethod "setBuildableProperty" o = Gtk.Buildable.BuildableSetBuildablePropertyMethodInfo
ResolveScaleMethod "setCanDefault" o = Gtk.Widget.WidgetSetCanDefaultMethodInfo
ResolveScaleMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveScaleMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveScaleMethod "setClip" o = Gtk.Widget.WidgetSetClipMethodInfo
ResolveScaleMethod "setCompositeName" o = Gtk.Widget.WidgetSetCompositeNameMethodInfo
ResolveScaleMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveScaleMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveScaleMethod "setDeviceEnabled" o = Gtk.Widget.WidgetSetDeviceEnabledMethodInfo
ResolveScaleMethod "setDeviceEvents" o = Gtk.Widget.WidgetSetDeviceEventsMethodInfo
ResolveScaleMethod "setDigits" o = ScaleSetDigitsMethodInfo
ResolveScaleMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveScaleMethod "setDoubleBuffered" o = Gtk.Widget.WidgetSetDoubleBufferedMethodInfo
ResolveScaleMethod "setDrawValue" o = ScaleSetDrawValueMethodInfo
ResolveScaleMethod "setEvents" o = Gtk.Widget.WidgetSetEventsMethodInfo
ResolveScaleMethod "setFillLevel" o = Gtk.Range.RangeSetFillLevelMethodInfo
ResolveScaleMethod "setFlippable" o = Gtk.Range.RangeSetFlippableMethodInfo
ResolveScaleMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveScaleMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveScaleMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveScaleMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveScaleMethod "setHasOrigin" o = ScaleSetHasOriginMethodInfo
ResolveScaleMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveScaleMethod "setHasWindow" o = Gtk.Widget.WidgetSetHasWindowMethodInfo
ResolveScaleMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveScaleMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveScaleMethod "setIncrements" o = Gtk.Range.RangeSetIncrementsMethodInfo
ResolveScaleMethod "setInverted" o = Gtk.Range.RangeSetInvertedMethodInfo
ResolveScaleMethod "setLowerStepperSensitivity" o = Gtk.Range.RangeSetLowerStepperSensitivityMethodInfo
ResolveScaleMethod "setMapped" o = Gtk.Widget.WidgetSetMappedMethodInfo
ResolveScaleMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveScaleMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveScaleMethod "setMarginLeft" o = Gtk.Widget.WidgetSetMarginLeftMethodInfo
ResolveScaleMethod "setMarginRight" o = Gtk.Widget.WidgetSetMarginRightMethodInfo
ResolveScaleMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveScaleMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveScaleMethod "setMinSliderSize" o = Gtk.Range.RangeSetMinSliderSizeMethodInfo
ResolveScaleMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveScaleMethod "setNoShowAll" o = Gtk.Widget.WidgetSetNoShowAllMethodInfo
ResolveScaleMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveScaleMethod "setOrientation" o = Gtk.Orientable.OrientableSetOrientationMethodInfo
ResolveScaleMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveScaleMethod "setParentWindow" o = Gtk.Widget.WidgetSetParentWindowMethodInfo
ResolveScaleMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveScaleMethod "setRange" o = Gtk.Range.RangeSetRangeMethodInfo
ResolveScaleMethod "setRealized" o = Gtk.Widget.WidgetSetRealizedMethodInfo
ResolveScaleMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveScaleMethod "setRedrawOnAllocate" o = Gtk.Widget.WidgetSetRedrawOnAllocateMethodInfo
ResolveScaleMethod "setRestrictToFillLevel" o = Gtk.Range.RangeSetRestrictToFillLevelMethodInfo
ResolveScaleMethod "setRoundDigits" o = Gtk.Range.RangeSetRoundDigitsMethodInfo
ResolveScaleMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveScaleMethod "setShowFillLevel" o = Gtk.Range.RangeSetShowFillLevelMethodInfo
ResolveScaleMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveScaleMethod "setSliderSizeFixed" o = Gtk.Range.RangeSetSliderSizeFixedMethodInfo
ResolveScaleMethod "setState" o = Gtk.Widget.WidgetSetStateMethodInfo
ResolveScaleMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveScaleMethod "setStyle" o = Gtk.Widget.WidgetSetStyleMethodInfo
ResolveScaleMethod "setSupportMultidevice" o = Gtk.Widget.WidgetSetSupportMultideviceMethodInfo
ResolveScaleMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolveScaleMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolveScaleMethod "setTooltipWindow" o = Gtk.Widget.WidgetSetTooltipWindowMethodInfo
ResolveScaleMethod "setUpperStepperSensitivity" o = Gtk.Range.RangeSetUpperStepperSensitivityMethodInfo
ResolveScaleMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveScaleMethod "setValue" o = Gtk.Range.RangeSetValueMethodInfo
ResolveScaleMethod "setValuePos" o = ScaleSetValuePosMethodInfo
ResolveScaleMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveScaleMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveScaleMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveScaleMethod "setVisual" o = Gtk.Widget.WidgetSetVisualMethodInfo
ResolveScaleMethod "setWindow" o = Gtk.Widget.WidgetSetWindowMethodInfo
ResolveScaleMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveScaleMethod t Scale, O.MethodInfo info Scale p) => OL.IsLabel t (Scale -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#endif
type ScaleFormatValueCallback =
Double
-> IO T.Text
noScaleFormatValueCallback :: Maybe ScaleFormatValueCallback
noScaleFormatValueCallback :: Maybe ScaleFormatValueCallback
noScaleFormatValueCallback = Maybe ScaleFormatValueCallback
forall a. Maybe a
Nothing
type C_ScaleFormatValueCallback =
Ptr () ->
CDouble ->
Ptr () ->
IO CString
foreign import ccall "wrapper"
mk_ScaleFormatValueCallback :: C_ScaleFormatValueCallback -> IO (FunPtr C_ScaleFormatValueCallback)
genClosure_ScaleFormatValue :: MonadIO m => ScaleFormatValueCallback -> m (GClosure C_ScaleFormatValueCallback)
genClosure_ScaleFormatValue :: ScaleFormatValueCallback -> m (GClosure C_ScaleFormatValueCallback)
genClosure_ScaleFormatValue cb :: ScaleFormatValueCallback
cb = IO (GClosure C_ScaleFormatValueCallback)
-> m (GClosure C_ScaleFormatValueCallback)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (GClosure C_ScaleFormatValueCallback)
-> m (GClosure C_ScaleFormatValueCallback))
-> IO (GClosure C_ScaleFormatValueCallback)
-> m (GClosure C_ScaleFormatValueCallback)
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ScaleFormatValueCallback
cb' = ScaleFormatValueCallback -> C_ScaleFormatValueCallback
wrap_ScaleFormatValueCallback ScaleFormatValueCallback
cb
C_ScaleFormatValueCallback
-> IO (FunPtr C_ScaleFormatValueCallback)
mk_ScaleFormatValueCallback C_ScaleFormatValueCallback
cb' IO (FunPtr C_ScaleFormatValueCallback)
-> (FunPtr C_ScaleFormatValueCallback
-> IO (GClosure C_ScaleFormatValueCallback))
-> IO (GClosure C_ScaleFormatValueCallback)
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= FunPtr C_ScaleFormatValueCallback
-> IO (GClosure C_ScaleFormatValueCallback)
forall (m :: * -> *) a. MonadIO m => FunPtr a -> m (GClosure a)
B.GClosure.newGClosure
wrap_ScaleFormatValueCallback ::
ScaleFormatValueCallback ->
C_ScaleFormatValueCallback
wrap_ScaleFormatValueCallback :: ScaleFormatValueCallback -> C_ScaleFormatValueCallback
wrap_ScaleFormatValueCallback _cb :: ScaleFormatValueCallback
_cb _ value :: CDouble
value _ = do
let value' :: Double
value' = CDouble -> Double
forall a b. (Real a, Fractional b) => a -> b
realToFrac CDouble
value
Text
result <- ScaleFormatValueCallback
_cb Double
value'
CString
result' <- Text -> IO CString
textToCString Text
result
CString -> IO CString
forall (m :: * -> *) a. Monad m => a -> m a
return CString
result'
onScaleFormatValue :: (IsScale a, MonadIO m) => a -> ScaleFormatValueCallback -> m SignalHandlerId
onScaleFormatValue :: a -> ScaleFormatValueCallback -> m SignalHandlerId
onScaleFormatValue obj :: a
obj cb :: ScaleFormatValueCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ScaleFormatValueCallback
cb' = ScaleFormatValueCallback -> C_ScaleFormatValueCallback
wrap_ScaleFormatValueCallback ScaleFormatValueCallback
cb
FunPtr C_ScaleFormatValueCallback
cb'' <- C_ScaleFormatValueCallback
-> IO (FunPtr C_ScaleFormatValueCallback)
mk_ScaleFormatValueCallback C_ScaleFormatValueCallback
cb'
a
-> Text
-> FunPtr C_ScaleFormatValueCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj "format-value" FunPtr C_ScaleFormatValueCallback
cb'' SignalConnectMode
SignalConnectBefore Maybe Text
forall a. Maybe a
Nothing
afterScaleFormatValue :: (IsScale a, MonadIO m) => a -> ScaleFormatValueCallback -> m SignalHandlerId
afterScaleFormatValue :: a -> ScaleFormatValueCallback -> m SignalHandlerId
afterScaleFormatValue obj :: a
obj cb :: ScaleFormatValueCallback
cb = IO SignalHandlerId -> m SignalHandlerId
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO SignalHandlerId -> m SignalHandlerId)
-> IO SignalHandlerId -> m SignalHandlerId
forall a b. (a -> b) -> a -> b
$ do
let cb' :: C_ScaleFormatValueCallback
cb' = ScaleFormatValueCallback -> C_ScaleFormatValueCallback
wrap_ScaleFormatValueCallback ScaleFormatValueCallback
cb
FunPtr C_ScaleFormatValueCallback
cb'' <- C_ScaleFormatValueCallback
-> IO (FunPtr C_ScaleFormatValueCallback)
mk_ScaleFormatValueCallback C_ScaleFormatValueCallback
cb'
a
-> Text
-> FunPtr C_ScaleFormatValueCallback
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
forall o a.
GObject o =>
o
-> Text
-> FunPtr a
-> SignalConnectMode
-> Maybe Text
-> IO SignalHandlerId
connectSignalFunPtr a
obj "format-value" FunPtr C_ScaleFormatValueCallback
cb'' SignalConnectMode
SignalConnectAfter Maybe Text
forall a. Maybe a
Nothing
#if defined(ENABLE_OVERLOADING)
data ScaleFormatValueSignalInfo
instance SignalInfo ScaleFormatValueSignalInfo where
type HaskellCallbackType ScaleFormatValueSignalInfo = ScaleFormatValueCallback
connectSignal obj cb connectMode detail = do
let cb' = wrap_ScaleFormatValueCallback cb
cb'' <- mk_ScaleFormatValueCallback cb'
connectSignalFunPtr obj "format-value" cb'' connectMode detail
#endif
getScaleDigits :: (MonadIO m, IsScale o) => o -> m Int32
getScaleDigits :: o -> m Int32
getScaleDigits obj :: o
obj = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj "digits"
setScaleDigits :: (MonadIO m, IsScale o) => o -> Int32 -> m ()
setScaleDigits :: o -> Int32 -> m ()
setScaleDigits obj :: o
obj val :: Int32
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Int32 -> IO ()
forall a. GObject a => a -> String -> Int32 -> IO ()
B.Properties.setObjectPropertyInt32 o
obj "digits" Int32
val
constructScaleDigits :: (IsScale o) => Int32 -> IO (GValueConstruct o)
constructScaleDigits :: Int32 -> IO (GValueConstruct o)
constructScaleDigits val :: Int32
val = String -> Int32 -> IO (GValueConstruct o)
forall o. String -> Int32 -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyInt32 "digits" Int32
val
#if defined(ENABLE_OVERLOADING)
data ScaleDigitsPropertyInfo
instance AttrInfo ScaleDigitsPropertyInfo where
type AttrAllowedOps ScaleDigitsPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ScaleDigitsPropertyInfo = IsScale
type AttrSetTypeConstraint ScaleDigitsPropertyInfo = (~) Int32
type AttrTransferTypeConstraint ScaleDigitsPropertyInfo = (~) Int32
type AttrTransferType ScaleDigitsPropertyInfo = Int32
type AttrGetType ScaleDigitsPropertyInfo = Int32
type AttrLabel ScaleDigitsPropertyInfo = "digits"
type AttrOrigin ScaleDigitsPropertyInfo = Scale
attrGet = getScaleDigits
attrSet = setScaleDigits
attrTransfer _ v = do
return v
attrConstruct = constructScaleDigits
attrClear = undefined
#endif
getScaleDrawValue :: (MonadIO m, IsScale o) => o -> m Bool
getScaleDrawValue :: o -> m Bool
getScaleDrawValue obj :: o
obj = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj "draw-value"
setScaleDrawValue :: (MonadIO m, IsScale o) => o -> Bool -> m ()
setScaleDrawValue :: o -> Bool -> m ()
setScaleDrawValue obj :: o
obj val :: Bool
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj "draw-value" Bool
val
constructScaleDrawValue :: (IsScale o) => Bool -> IO (GValueConstruct o)
constructScaleDrawValue :: Bool -> IO (GValueConstruct o)
constructScaleDrawValue val :: Bool
val = String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool "draw-value" Bool
val
#if defined(ENABLE_OVERLOADING)
data ScaleDrawValuePropertyInfo
instance AttrInfo ScaleDrawValuePropertyInfo where
type AttrAllowedOps ScaleDrawValuePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ScaleDrawValuePropertyInfo = IsScale
type AttrSetTypeConstraint ScaleDrawValuePropertyInfo = (~) Bool
type AttrTransferTypeConstraint ScaleDrawValuePropertyInfo = (~) Bool
type AttrTransferType ScaleDrawValuePropertyInfo = Bool
type AttrGetType ScaleDrawValuePropertyInfo = Bool
type AttrLabel ScaleDrawValuePropertyInfo = "draw-value"
type AttrOrigin ScaleDrawValuePropertyInfo = Scale
attrGet = getScaleDrawValue
attrSet = setScaleDrawValue
attrTransfer _ v = do
return v
attrConstruct = constructScaleDrawValue
attrClear = undefined
#endif
getScaleHasOrigin :: (MonadIO m, IsScale o) => o -> m Bool
getScaleHasOrigin :: o -> m Bool
getScaleHasOrigin obj :: o
obj = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Bool
forall a. GObject a => a -> String -> IO Bool
B.Properties.getObjectPropertyBool o
obj "has-origin"
setScaleHasOrigin :: (MonadIO m, IsScale o) => o -> Bool -> m ()
setScaleHasOrigin :: o -> Bool -> m ()
setScaleHasOrigin obj :: o
obj val :: Bool
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> Bool -> IO ()
forall a. GObject a => a -> String -> Bool -> IO ()
B.Properties.setObjectPropertyBool o
obj "has-origin" Bool
val
constructScaleHasOrigin :: (IsScale o) => Bool -> IO (GValueConstruct o)
constructScaleHasOrigin :: Bool -> IO (GValueConstruct o)
constructScaleHasOrigin val :: Bool
val = String -> Bool -> IO (GValueConstruct o)
forall o. String -> Bool -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyBool "has-origin" Bool
val
#if defined(ENABLE_OVERLOADING)
data ScaleHasOriginPropertyInfo
instance AttrInfo ScaleHasOriginPropertyInfo where
type AttrAllowedOps ScaleHasOriginPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ScaleHasOriginPropertyInfo = IsScale
type AttrSetTypeConstraint ScaleHasOriginPropertyInfo = (~) Bool
type AttrTransferTypeConstraint ScaleHasOriginPropertyInfo = (~) Bool
type AttrTransferType ScaleHasOriginPropertyInfo = Bool
type AttrGetType ScaleHasOriginPropertyInfo = Bool
type AttrLabel ScaleHasOriginPropertyInfo = "has-origin"
type AttrOrigin ScaleHasOriginPropertyInfo = Scale
attrGet = getScaleHasOrigin
attrSet = setScaleHasOrigin
attrTransfer _ v = do
return v
attrConstruct = constructScaleHasOrigin
attrClear = undefined
#endif
getScaleValuePos :: (MonadIO m, IsScale o) => o -> m Gtk.Enums.PositionType
getScaleValuePos :: o -> m PositionType
getScaleValuePos obj :: o
obj = IO PositionType -> m PositionType
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO PositionType -> m PositionType)
-> IO PositionType -> m PositionType
forall a b. (a -> b) -> a -> b
$ o -> String -> IO PositionType
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj "value-pos"
setScaleValuePos :: (MonadIO m, IsScale o) => o -> Gtk.Enums.PositionType -> m ()
setScaleValuePos :: o -> PositionType -> m ()
setScaleValuePos obj :: o
obj val :: PositionType
val = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ o -> String -> PositionType -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj "value-pos" PositionType
val
constructScaleValuePos :: (IsScale o) => Gtk.Enums.PositionType -> IO (GValueConstruct o)
constructScaleValuePos :: PositionType -> IO (GValueConstruct o)
constructScaleValuePos val :: PositionType
val = String -> PositionType -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum "value-pos" PositionType
val
#if defined(ENABLE_OVERLOADING)
data ScaleValuePosPropertyInfo
instance AttrInfo ScaleValuePosPropertyInfo where
type AttrAllowedOps ScaleValuePosPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ScaleValuePosPropertyInfo = IsScale
type AttrSetTypeConstraint ScaleValuePosPropertyInfo = (~) Gtk.Enums.PositionType
type AttrTransferTypeConstraint ScaleValuePosPropertyInfo = (~) Gtk.Enums.PositionType
type AttrTransferType ScaleValuePosPropertyInfo = Gtk.Enums.PositionType
type AttrGetType ScaleValuePosPropertyInfo = Gtk.Enums.PositionType
type AttrLabel ScaleValuePosPropertyInfo = "value-pos"
type AttrOrigin ScaleValuePosPropertyInfo = Scale
attrGet = getScaleValuePos
attrSet = setScaleValuePos
attrTransfer _ v = do
return v
attrConstruct = constructScaleValuePos
attrClear = undefined
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList Scale
type instance O.AttributeList Scale = ScaleAttributeList
type ScaleAttributeList = ('[ '("adjustment", Gtk.Range.RangeAdjustmentPropertyInfo), '("appPaintable", Gtk.Widget.WidgetAppPaintablePropertyInfo), '("canDefault", Gtk.Widget.WidgetCanDefaultPropertyInfo), '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("compositeChild", Gtk.Widget.WidgetCompositeChildPropertyInfo), '("digits", ScaleDigitsPropertyInfo), '("doubleBuffered", Gtk.Widget.WidgetDoubleBufferedPropertyInfo), '("drawValue", ScaleDrawValuePropertyInfo), '("events", Gtk.Widget.WidgetEventsPropertyInfo), '("expand", Gtk.Widget.WidgetExpandPropertyInfo), '("fillLevel", Gtk.Range.RangeFillLevelPropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("halign", Gtk.Widget.WidgetHalignPropertyInfo), '("hasDefault", Gtk.Widget.WidgetHasDefaultPropertyInfo), '("hasFocus", Gtk.Widget.WidgetHasFocusPropertyInfo), '("hasOrigin", ScaleHasOriginPropertyInfo), '("hasTooltip", Gtk.Widget.WidgetHasTooltipPropertyInfo), '("heightRequest", Gtk.Widget.WidgetHeightRequestPropertyInfo), '("hexpand", Gtk.Widget.WidgetHexpandPropertyInfo), '("hexpandSet", Gtk.Widget.WidgetHexpandSetPropertyInfo), '("inverted", Gtk.Range.RangeInvertedPropertyInfo), '("isFocus", Gtk.Widget.WidgetIsFocusPropertyInfo), '("lowerStepperSensitivity", Gtk.Range.RangeLowerStepperSensitivityPropertyInfo), '("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), '("orientation", Gtk.Orientable.OrientableOrientationPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("restrictToFillLevel", Gtk.Range.RangeRestrictToFillLevelPropertyInfo), '("roundDigits", Gtk.Range.RangeRoundDigitsPropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("showFillLevel", Gtk.Range.RangeShowFillLevelPropertyInfo), '("style", Gtk.Widget.WidgetStylePropertyInfo), '("tooltipMarkup", Gtk.Widget.WidgetTooltipMarkupPropertyInfo), '("tooltipText", Gtk.Widget.WidgetTooltipTextPropertyInfo), '("upperStepperSensitivity", Gtk.Range.RangeUpperStepperSensitivityPropertyInfo), '("valign", Gtk.Widget.WidgetValignPropertyInfo), '("valuePos", ScaleValuePosPropertyInfo), '("vexpand", Gtk.Widget.WidgetVexpandPropertyInfo), '("vexpandSet", Gtk.Widget.WidgetVexpandSetPropertyInfo), '("visible", Gtk.Widget.WidgetVisiblePropertyInfo), '("widthRequest", Gtk.Widget.WidgetWidthRequestPropertyInfo), '("window", Gtk.Widget.WidgetWindowPropertyInfo)] :: [(Symbol, *)])
#endif
#if defined(ENABLE_OVERLOADING)
scaleDigits :: AttrLabelProxy "digits"
scaleDigits = AttrLabelProxy
scaleDrawValue :: AttrLabelProxy "drawValue"
scaleDrawValue = AttrLabelProxy
scaleHasOrigin :: AttrLabelProxy "hasOrigin"
scaleHasOrigin = AttrLabelProxy
scaleValuePos :: AttrLabelProxy "valuePos"
scaleValuePos = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList Scale = ScaleSignalList
type ScaleSignalList = ('[ '("accelClosuresChanged", Gtk.Widget.WidgetAccelClosuresChangedSignalInfo), '("adjustBounds", Gtk.Range.RangeAdjustBoundsSignalInfo), '("buttonPressEvent", Gtk.Widget.WidgetButtonPressEventSignalInfo), '("buttonReleaseEvent", Gtk.Widget.WidgetButtonReleaseEventSignalInfo), '("canActivateAccel", Gtk.Widget.WidgetCanActivateAccelSignalInfo), '("changeValue", Gtk.Range.RangeChangeValueSignalInfo), '("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), '("formatValue", ScaleFormatValueSignalInfo), '("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), '("moveSlider", Gtk.Range.RangeMoveSliderSignalInfo), '("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), '("valueChanged", Gtk.Range.RangeValueChangedSignalInfo), '("visibilityNotifyEvent", Gtk.Widget.WidgetVisibilityNotifyEventSignalInfo), '("windowStateEvent", Gtk.Widget.WidgetWindowStateEventSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_scale_new" gtk_scale_new ::
CUInt ->
Ptr Gtk.Adjustment.Adjustment ->
IO (Ptr Scale)
scaleNew ::
(B.CallStack.HasCallStack, MonadIO m, Gtk.Adjustment.IsAdjustment a) =>
Gtk.Enums.Orientation
-> Maybe (a)
-> m Scale
scaleNew :: Orientation -> Maybe a -> m Scale
scaleNew orientation :: Orientation
orientation adjustment :: Maybe a
adjustment = IO Scale -> m Scale
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Scale -> m Scale) -> IO Scale -> m Scale
forall a b. (a -> b) -> a -> b
$ do
let orientation' :: CUInt
orientation' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (Orientation -> Int) -> Orientation -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Orientation -> Int
forall a. Enum a => a -> Int
fromEnum) Orientation
orientation
Ptr Adjustment
maybeAdjustment <- case Maybe a
adjustment of
Nothing -> Ptr Adjustment -> IO (Ptr Adjustment)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Adjustment
forall a. Ptr a
nullPtr
Just jAdjustment :: a
jAdjustment -> do
Ptr Adjustment
jAdjustment' <- a -> IO (Ptr Adjustment)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
jAdjustment
Ptr Adjustment -> IO (Ptr Adjustment)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Adjustment
jAdjustment'
Ptr Scale
result <- CUInt -> Ptr Adjustment -> IO (Ptr Scale)
gtk_scale_new CUInt
orientation' Ptr Adjustment
maybeAdjustment
Text -> Ptr Scale -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL "scaleNew" Ptr Scale
result
Scale
result' <- ((ManagedPtr Scale -> Scale) -> Ptr Scale -> IO Scale
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Scale -> Scale
Scale) Ptr Scale
result
Maybe a -> (a -> IO ()) -> IO ()
forall (m :: * -> *) a. Monad m => Maybe a -> (a -> m ()) -> m ()
whenJust Maybe a
adjustment a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr
Scale -> IO Scale
forall (m :: * -> *) a. Monad m => a -> m a
return Scale
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gtk_scale_new_with_range" gtk_scale_new_with_range ::
CUInt ->
CDouble ->
CDouble ->
CDouble ->
IO (Ptr Scale)
scaleNewWithRange ::
(B.CallStack.HasCallStack, MonadIO m) =>
Gtk.Enums.Orientation
-> Double
-> Double
-> Double
-> m Scale
scaleNewWithRange :: Orientation -> Double -> Double -> Double -> m Scale
scaleNewWithRange orientation :: Orientation
orientation min :: Double
min max :: Double
max step :: Double
step = IO Scale -> m Scale
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Scale -> m Scale) -> IO Scale -> m Scale
forall a b. (a -> b) -> a -> b
$ do
let orientation' :: CUInt
orientation' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (Orientation -> Int) -> Orientation -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Orientation -> Int
forall a. Enum a => a -> Int
fromEnum) Orientation
orientation
let min' :: CDouble
min' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
min
let max' :: CDouble
max' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
max
let step' :: CDouble
step' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
step
Ptr Scale
result <- CUInt -> CDouble -> CDouble -> CDouble -> IO (Ptr Scale)
gtk_scale_new_with_range CUInt
orientation' CDouble
min' CDouble
max' CDouble
step'
Text -> Ptr Scale -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL "scaleNewWithRange" Ptr Scale
result
Scale
result' <- ((ManagedPtr Scale -> Scale) -> Ptr Scale -> IO Scale
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Scale -> Scale
Scale) Ptr Scale
result
Scale -> IO Scale
forall (m :: * -> *) a. Monad m => a -> m a
return Scale
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gtk_scale_add_mark" gtk_scale_add_mark ::
Ptr Scale ->
CDouble ->
CUInt ->
CString ->
IO ()
scaleAddMark ::
(B.CallStack.HasCallStack, MonadIO m, IsScale a) =>
a
-> Double
-> Gtk.Enums.PositionType
-> Maybe (T.Text)
-> m ()
scaleAddMark :: a -> Double -> PositionType -> Maybe Text -> m ()
scaleAddMark scale :: a
scale value :: Double
value position :: PositionType
position markup :: Maybe Text
markup = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Scale
scale' <- a -> IO (Ptr Scale)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
scale
let value' :: CDouble
value' = Double -> CDouble
forall a b. (Real a, Fractional b) => a -> b
realToFrac Double
value
let position' :: CUInt
position' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (PositionType -> Int) -> PositionType -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. PositionType -> Int
forall a. Enum a => a -> Int
fromEnum) PositionType
position
CString
maybeMarkup <- case Maybe Text
markup of
Nothing -> CString -> IO CString
forall (m :: * -> *) a. Monad m => a -> m a
return CString
forall a. Ptr a
nullPtr
Just jMarkup :: Text
jMarkup -> do
CString
jMarkup' <- Text -> IO CString
textToCString Text
jMarkup
CString -> IO CString
forall (m :: * -> *) a. Monad m => a -> m a
return CString
jMarkup'
Ptr Scale -> CDouble -> CUInt -> CString -> IO ()
gtk_scale_add_mark Ptr Scale
scale' CDouble
value' CUInt
position' CString
maybeMarkup
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
scale
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
maybeMarkup
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ScaleAddMarkMethodInfo
instance (signature ~ (Double -> Gtk.Enums.PositionType -> Maybe (T.Text) -> m ()), MonadIO m, IsScale a) => O.MethodInfo ScaleAddMarkMethodInfo a signature where
overloadedMethod = scaleAddMark
#endif
foreign import ccall "gtk_scale_clear_marks" gtk_scale_clear_marks ::
Ptr Scale ->
IO ()
scaleClearMarks ::
(B.CallStack.HasCallStack, MonadIO m, IsScale a) =>
a
-> m ()
scaleClearMarks :: a -> m ()
scaleClearMarks scale :: a
scale = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Scale
scale' <- a -> IO (Ptr Scale)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
scale
Ptr Scale -> IO ()
gtk_scale_clear_marks Ptr Scale
scale'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
scale
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ScaleClearMarksMethodInfo
instance (signature ~ (m ()), MonadIO m, IsScale a) => O.MethodInfo ScaleClearMarksMethodInfo a signature where
overloadedMethod = scaleClearMarks
#endif
foreign import ccall "gtk_scale_get_digits" gtk_scale_get_digits ::
Ptr Scale ->
IO Int32
scaleGetDigits ::
(B.CallStack.HasCallStack, MonadIO m, IsScale a) =>
a
-> m Int32
scaleGetDigits :: a -> m Int32
scaleGetDigits scale :: a
scale = IO Int32 -> m Int32
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ do
Ptr Scale
scale' <- a -> IO (Ptr Scale)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
scale
Int32
result <- Ptr Scale -> IO Int32
gtk_scale_get_digits Ptr Scale
scale'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
scale
Int32 -> IO Int32
forall (m :: * -> *) a. Monad m => a -> m a
return Int32
result
#if defined(ENABLE_OVERLOADING)
data ScaleGetDigitsMethodInfo
instance (signature ~ (m Int32), MonadIO m, IsScale a) => O.MethodInfo ScaleGetDigitsMethodInfo a signature where
overloadedMethod = scaleGetDigits
#endif
foreign import ccall "gtk_scale_get_draw_value" gtk_scale_get_draw_value ::
Ptr Scale ->
IO CInt
scaleGetDrawValue ::
(B.CallStack.HasCallStack, MonadIO m, IsScale a) =>
a
-> m Bool
scaleGetDrawValue :: a -> m Bool
scaleGetDrawValue scale :: a
scale = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr Scale
scale' <- a -> IO (Ptr Scale)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
scale
CInt
result <- Ptr Scale -> IO CInt
gtk_scale_get_draw_value Ptr Scale
scale'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= 0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
scale
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data ScaleGetDrawValueMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsScale a) => O.MethodInfo ScaleGetDrawValueMethodInfo a signature where
overloadedMethod = scaleGetDrawValue
#endif
foreign import ccall "gtk_scale_get_has_origin" gtk_scale_get_has_origin ::
Ptr Scale ->
IO CInt
scaleGetHasOrigin ::
(B.CallStack.HasCallStack, MonadIO m, IsScale a) =>
a
-> m Bool
scaleGetHasOrigin :: a -> m Bool
scaleGetHasOrigin scale :: a
scale = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ do
Ptr Scale
scale' <- a -> IO (Ptr Scale)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
scale
CInt
result <- Ptr Scale -> IO CInt
gtk_scale_get_has_origin Ptr Scale
scale'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= 0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
scale
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data ScaleGetHasOriginMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsScale a) => O.MethodInfo ScaleGetHasOriginMethodInfo a signature where
overloadedMethod = scaleGetHasOrigin
#endif
foreign import ccall "gtk_scale_get_layout" gtk_scale_get_layout ::
Ptr Scale ->
IO (Ptr Pango.Layout.Layout)
scaleGetLayout ::
(B.CallStack.HasCallStack, MonadIO m, IsScale a) =>
a
-> m (Maybe Pango.Layout.Layout)
scaleGetLayout :: a -> m (Maybe Layout)
scaleGetLayout scale :: a
scale = IO (Maybe Layout) -> m (Maybe Layout)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Layout) -> m (Maybe Layout))
-> IO (Maybe Layout) -> m (Maybe Layout)
forall a b. (a -> b) -> a -> b
$ do
Ptr Scale
scale' <- a -> IO (Ptr Scale)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
scale
Ptr Layout
result <- Ptr Scale -> IO (Ptr Layout)
gtk_scale_get_layout Ptr Scale
scale'
Maybe Layout
maybeResult <- Ptr Layout -> (Ptr Layout -> IO Layout) -> IO (Maybe Layout)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr Layout
result ((Ptr Layout -> IO Layout) -> IO (Maybe Layout))
-> (Ptr Layout -> IO Layout) -> IO (Maybe Layout)
forall a b. (a -> b) -> a -> b
$ \result' :: Ptr Layout
result' -> do
Layout
result'' <- ((ManagedPtr Layout -> Layout) -> Ptr Layout -> IO Layout
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr Layout -> Layout
Pango.Layout.Layout) Ptr Layout
result'
Layout -> IO Layout
forall (m :: * -> *) a. Monad m => a -> m a
return Layout
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
scale
Maybe Layout -> IO (Maybe Layout)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Layout
maybeResult
#if defined(ENABLE_OVERLOADING)
data ScaleGetLayoutMethodInfo
instance (signature ~ (m (Maybe Pango.Layout.Layout)), MonadIO m, IsScale a) => O.MethodInfo ScaleGetLayoutMethodInfo a signature where
overloadedMethod = scaleGetLayout
#endif
foreign import ccall "gtk_scale_get_layout_offsets" gtk_scale_get_layout_offsets ::
Ptr Scale ->
Ptr Int32 ->
Ptr Int32 ->
IO ()
scaleGetLayoutOffsets ::
(B.CallStack.HasCallStack, MonadIO m, IsScale a) =>
a
-> m ((Int32, Int32))
scaleGetLayoutOffsets :: a -> m (Int32, Int32)
scaleGetLayoutOffsets scale :: a
scale = IO (Int32, Int32) -> m (Int32, Int32)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Int32, Int32) -> m (Int32, Int32))
-> IO (Int32, Int32) -> m (Int32, Int32)
forall a b. (a -> b) -> a -> b
$ do
Ptr Scale
scale' <- a -> IO (Ptr Scale)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
scale
Ptr Int32
x <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr Int32
y <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr Scale -> Ptr Int32 -> Ptr Int32 -> IO ()
gtk_scale_get_layout_offsets Ptr Scale
scale' Ptr Int32
x Ptr Int32
y
Int32
x' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
x
Int32
y' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
y
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
scale
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
x
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
y
(Int32, Int32) -> IO (Int32, Int32)
forall (m :: * -> *) a. Monad m => a -> m a
return (Int32
x', Int32
y')
#if defined(ENABLE_OVERLOADING)
data ScaleGetLayoutOffsetsMethodInfo
instance (signature ~ (m ((Int32, Int32))), MonadIO m, IsScale a) => O.MethodInfo ScaleGetLayoutOffsetsMethodInfo a signature where
overloadedMethod = scaleGetLayoutOffsets
#endif
foreign import ccall "gtk_scale_get_value_pos" gtk_scale_get_value_pos ::
Ptr Scale ->
IO CUInt
scaleGetValuePos ::
(B.CallStack.HasCallStack, MonadIO m, IsScale a) =>
a
-> m Gtk.Enums.PositionType
scaleGetValuePos :: a -> m PositionType
scaleGetValuePos scale :: a
scale = IO PositionType -> m PositionType
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO PositionType -> m PositionType)
-> IO PositionType -> m PositionType
forall a b. (a -> b) -> a -> b
$ do
Ptr Scale
scale' <- a -> IO (Ptr Scale)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
scale
CUInt
result <- Ptr Scale -> IO CUInt
gtk_scale_get_value_pos Ptr Scale
scale'
let result' :: PositionType
result' = (Int -> PositionType
forall a. Enum a => Int -> a
toEnum (Int -> PositionType) -> (CUInt -> Int) -> CUInt -> PositionType
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) CUInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
scale
PositionType -> IO PositionType
forall (m :: * -> *) a. Monad m => a -> m a
return PositionType
result'
#if defined(ENABLE_OVERLOADING)
data ScaleGetValuePosMethodInfo
instance (signature ~ (m Gtk.Enums.PositionType), MonadIO m, IsScale a) => O.MethodInfo ScaleGetValuePosMethodInfo a signature where
overloadedMethod = scaleGetValuePos
#endif
foreign import ccall "gtk_scale_set_digits" gtk_scale_set_digits ::
Ptr Scale ->
Int32 ->
IO ()
scaleSetDigits ::
(B.CallStack.HasCallStack, MonadIO m, IsScale a) =>
a
-> Int32
-> m ()
scaleSetDigits :: a -> Int32 -> m ()
scaleSetDigits scale :: a
scale digits :: Int32
digits = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Scale
scale' <- a -> IO (Ptr Scale)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
scale
Ptr Scale -> Int32 -> IO ()
gtk_scale_set_digits Ptr Scale
scale' Int32
digits
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
scale
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ScaleSetDigitsMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsScale a) => O.MethodInfo ScaleSetDigitsMethodInfo a signature where
overloadedMethod = scaleSetDigits
#endif
foreign import ccall "gtk_scale_set_draw_value" gtk_scale_set_draw_value ::
Ptr Scale ->
CInt ->
IO ()
scaleSetDrawValue ::
(B.CallStack.HasCallStack, MonadIO m, IsScale a) =>
a
-> Bool
-> m ()
scaleSetDrawValue :: a -> Bool -> m ()
scaleSetDrawValue scale :: a
scale drawValue :: Bool
drawValue = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Scale
scale' <- a -> IO (Ptr Scale)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
scale
let drawValue' :: CInt
drawValue' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
drawValue
Ptr Scale -> CInt -> IO ()
gtk_scale_set_draw_value Ptr Scale
scale' CInt
drawValue'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
scale
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ScaleSetDrawValueMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsScale a) => O.MethodInfo ScaleSetDrawValueMethodInfo a signature where
overloadedMethod = scaleSetDrawValue
#endif
foreign import ccall "gtk_scale_set_has_origin" gtk_scale_set_has_origin ::
Ptr Scale ->
CInt ->
IO ()
scaleSetHasOrigin ::
(B.CallStack.HasCallStack, MonadIO m, IsScale a) =>
a
-> Bool
-> m ()
scaleSetHasOrigin :: a -> Bool -> m ()
scaleSetHasOrigin scale :: a
scale hasOrigin :: Bool
hasOrigin = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Scale
scale' <- a -> IO (Ptr Scale)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
scale
let hasOrigin' :: CInt
hasOrigin' = (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (Bool -> Int) -> Bool -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Bool -> Int
forall a. Enum a => a -> Int
fromEnum) Bool
hasOrigin
Ptr Scale -> CInt -> IO ()
gtk_scale_set_has_origin Ptr Scale
scale' CInt
hasOrigin'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
scale
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ScaleSetHasOriginMethodInfo
instance (signature ~ (Bool -> m ()), MonadIO m, IsScale a) => O.MethodInfo ScaleSetHasOriginMethodInfo a signature where
overloadedMethod = scaleSetHasOrigin
#endif
foreign import ccall "gtk_scale_set_value_pos" gtk_scale_set_value_pos ::
Ptr Scale ->
CUInt ->
IO ()
scaleSetValuePos ::
(B.CallStack.HasCallStack, MonadIO m, IsScale a) =>
a
-> Gtk.Enums.PositionType
-> m ()
scaleSetValuePos :: a -> PositionType -> m ()
scaleSetValuePos scale :: a
scale pos :: PositionType
pos = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr Scale
scale' <- a -> IO (Ptr Scale)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
scale
let pos' :: CUInt
pos' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (PositionType -> Int) -> PositionType -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. PositionType -> Int
forall a. Enum a => a -> Int
fromEnum) PositionType
pos
Ptr Scale -> CUInt -> IO ()
gtk_scale_set_value_pos Ptr Scale
scale' CUInt
pos'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
scale
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ScaleSetValuePosMethodInfo
instance (signature ~ (Gtk.Enums.PositionType -> m ()), MonadIO m, IsScale a) => O.MethodInfo ScaleSetValuePosMethodInfo a signature where
overloadedMethod = scaleSetValuePos
#endif