{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Dazzle.Objects.PillBox
(
PillBox(..) ,
IsPillBox ,
toPillBox ,
#if defined(ENABLE_OVERLOADING)
ResolvePillBoxMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
PillBoxGetLabelMethodInfo ,
#endif
pillBoxGetLabel ,
pillBoxNew ,
#if defined(ENABLE_OVERLOADING)
PillBoxSetLabelMethodInfo ,
#endif
pillBoxSetLabel ,
#if defined(ENABLE_OVERLOADING)
PillBoxLabelPropertyInfo ,
#endif
constructPillBoxLabel ,
getPillBoxLabel ,
#if defined(ENABLE_OVERLOADING)
pillBoxLabel ,
#endif
setPillBoxLabel ,
) 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.BasicTypes as B.Types
import qualified Data.GI.Base.ManagedPtr as B.ManagedPtr
import qualified Data.GI.Base.GArray as B.GArray
import qualified Data.GI.Base.GClosure as B.GClosure
import qualified Data.GI.Base.GError as B.GError
import qualified Data.GI.Base.GHashTable as B.GHT
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 Control.Monad.IO.Class as MIO
import qualified Data.Coerce as Coerce
import qualified Data.Text as T
import qualified Data.Kind as DK
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 GHC.Records as R
import qualified Data.Word as DW
import qualified Data.Int as DI
import qualified System.Posix.Types as SPT
import qualified Foreign.C.Types as FCT
#if MIN_VERSION_base(4,18,0)
import qualified GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import qualified GI.Gtk.Objects.Bin as Gtk.Bin
import qualified GI.Gtk.Objects.Container as Gtk.Container
import qualified GI.Gtk.Objects.EventBox as Gtk.EventBox
import qualified GI.Gtk.Objects.Widget as Gtk.Widget
#else
import qualified GI.Atk.Interfaces.ImplementorIface as Atk.ImplementorIface
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import qualified GI.Gtk.Objects.Bin as Gtk.Bin
import qualified GI.Gtk.Objects.Container as Gtk.Container
import qualified GI.Gtk.Objects.EventBox as Gtk.EventBox
import qualified GI.Gtk.Objects.Widget as Gtk.Widget
#endif
newtype PillBox = PillBox (SP.ManagedPtr PillBox)
deriving (PillBox -> PillBox -> Bool
(PillBox -> PillBox -> Bool)
-> (PillBox -> PillBox -> Bool) -> Eq PillBox
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PillBox -> PillBox -> Bool
== :: PillBox -> PillBox -> Bool
$c/= :: PillBox -> PillBox -> Bool
/= :: PillBox -> PillBox -> Bool
Eq)
instance SP.ManagedPtrNewtype PillBox where
toManagedPtr :: PillBox -> ManagedPtr PillBox
toManagedPtr (PillBox ManagedPtr PillBox
p) = ManagedPtr PillBox
p
foreign import ccall "dzl_pill_box_get_type"
c_dzl_pill_box_get_type :: IO B.Types.GType
instance B.Types.TypedObject PillBox where
glibType :: IO GType
glibType = IO GType
c_dzl_pill_box_get_type
instance B.Types.GObject PillBox
class (SP.GObject o, O.IsDescendantOf PillBox o) => IsPillBox o
instance (SP.GObject o, O.IsDescendantOf PillBox o) => IsPillBox o
instance O.HasParentTypes PillBox
type instance O.ParentTypes PillBox = '[Gtk.EventBox.EventBox, Gtk.Bin.Bin, Gtk.Container.Container, Gtk.Widget.Widget, GObject.Object.Object, Atk.ImplementorIface.ImplementorIface, Gtk.Buildable.Buildable]
toPillBox :: (MIO.MonadIO m, IsPillBox o) => o -> m PillBox
toPillBox :: forall (m :: * -> *) o. (MonadIO m, IsPillBox o) => o -> m PillBox
toPillBox = IO PillBox -> m PillBox
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO PillBox -> m PillBox) -> (o -> IO PillBox) -> o -> m PillBox
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr PillBox -> PillBox) -> o -> IO PillBox
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr PillBox -> PillBox
PillBox
instance B.GValue.IsGValue (Maybe PillBox) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_dzl_pill_box_get_type
gvalueSet_ :: Ptr GValue -> Maybe PillBox -> IO ()
gvalueSet_ Ptr GValue
gv Maybe PillBox
P.Nothing = Ptr GValue -> Ptr PillBox -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr PillBox
forall a. Ptr a
FP.nullPtr :: FP.Ptr PillBox)
gvalueSet_ Ptr GValue
gv (P.Just PillBox
obj) = PillBox -> (Ptr PillBox -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr PillBox
obj (Ptr GValue -> Ptr PillBox -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe PillBox)
gvalueGet_ Ptr GValue
gv = do
Ptr PillBox
ptr <- Ptr GValue -> IO (Ptr PillBox)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr PillBox)
if Ptr PillBox
ptr Ptr PillBox -> Ptr PillBox -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr PillBox
forall a. Ptr a
FP.nullPtr
then PillBox -> Maybe PillBox
forall a. a -> Maybe a
P.Just (PillBox -> Maybe PillBox) -> IO PillBox -> IO (Maybe PillBox)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr PillBox -> PillBox) -> Ptr PillBox -> IO PillBox
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr PillBox -> PillBox
PillBox Ptr PillBox
ptr
else Maybe PillBox -> IO (Maybe PillBox)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe PillBox
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolvePillBoxMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolvePillBoxMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolvePillBoxMethod "add" o = Gtk.Container.ContainerAddMethodInfo
ResolvePillBoxMethod "addAccelerator" o = Gtk.Widget.WidgetAddAcceleratorMethodInfo
ResolvePillBoxMethod "addChild" o = Gtk.Buildable.BuildableAddChildMethodInfo
ResolvePillBoxMethod "addDeviceEvents" o = Gtk.Widget.WidgetAddDeviceEventsMethodInfo
ResolvePillBoxMethod "addEvents" o = Gtk.Widget.WidgetAddEventsMethodInfo
ResolvePillBoxMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolvePillBoxMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolvePillBoxMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolvePillBoxMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolvePillBoxMethod "canActivateAccel" o = Gtk.Widget.WidgetCanActivateAccelMethodInfo
ResolvePillBoxMethod "checkResize" o = Gtk.Container.ContainerCheckResizeMethodInfo
ResolvePillBoxMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolvePillBoxMethod "childGetProperty" o = Gtk.Container.ContainerChildGetPropertyMethodInfo
ResolvePillBoxMethod "childNotify" o = Gtk.Container.ContainerChildNotifyMethodInfo
ResolvePillBoxMethod "childNotifyByPspec" o = Gtk.Container.ContainerChildNotifyByPspecMethodInfo
ResolvePillBoxMethod "childSetProperty" o = Gtk.Container.ContainerChildSetPropertyMethodInfo
ResolvePillBoxMethod "childType" o = Gtk.Container.ContainerChildTypeMethodInfo
ResolvePillBoxMethod "classPath" o = Gtk.Widget.WidgetClassPathMethodInfo
ResolvePillBoxMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolvePillBoxMethod "constructChild" o = Gtk.Buildable.BuildableConstructChildMethodInfo
ResolvePillBoxMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolvePillBoxMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolvePillBoxMethod "customFinished" o = Gtk.Buildable.BuildableCustomFinishedMethodInfo
ResolvePillBoxMethod "customTagEnd" o = Gtk.Buildable.BuildableCustomTagEndMethodInfo
ResolvePillBoxMethod "customTagStart" o = Gtk.Buildable.BuildableCustomTagStartMethodInfo
ResolvePillBoxMethod "destroy" o = Gtk.Widget.WidgetDestroyMethodInfo
ResolvePillBoxMethod "destroyed" o = Gtk.Widget.WidgetDestroyedMethodInfo
ResolvePillBoxMethod "deviceIsShadowed" o = Gtk.Widget.WidgetDeviceIsShadowedMethodInfo
ResolvePillBoxMethod "dragBegin" o = Gtk.Widget.WidgetDragBeginMethodInfo
ResolvePillBoxMethod "dragBeginWithCoordinates" o = Gtk.Widget.WidgetDragBeginWithCoordinatesMethodInfo
ResolvePillBoxMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolvePillBoxMethod "dragDestAddImageTargets" o = Gtk.Widget.WidgetDragDestAddImageTargetsMethodInfo
ResolvePillBoxMethod "dragDestAddTextTargets" o = Gtk.Widget.WidgetDragDestAddTextTargetsMethodInfo
ResolvePillBoxMethod "dragDestAddUriTargets" o = Gtk.Widget.WidgetDragDestAddUriTargetsMethodInfo
ResolvePillBoxMethod "dragDestFindTarget" o = Gtk.Widget.WidgetDragDestFindTargetMethodInfo
ResolvePillBoxMethod "dragDestGetTargetList" o = Gtk.Widget.WidgetDragDestGetTargetListMethodInfo
ResolvePillBoxMethod "dragDestGetTrackMotion" o = Gtk.Widget.WidgetDragDestGetTrackMotionMethodInfo
ResolvePillBoxMethod "dragDestSet" o = Gtk.Widget.WidgetDragDestSetMethodInfo
ResolvePillBoxMethod "dragDestSetProxy" o = Gtk.Widget.WidgetDragDestSetProxyMethodInfo
ResolvePillBoxMethod "dragDestSetTargetList" o = Gtk.Widget.WidgetDragDestSetTargetListMethodInfo
ResolvePillBoxMethod "dragDestSetTrackMotion" o = Gtk.Widget.WidgetDragDestSetTrackMotionMethodInfo
ResolvePillBoxMethod "dragDestUnset" o = Gtk.Widget.WidgetDragDestUnsetMethodInfo
ResolvePillBoxMethod "dragGetData" o = Gtk.Widget.WidgetDragGetDataMethodInfo
ResolvePillBoxMethod "dragHighlight" o = Gtk.Widget.WidgetDragHighlightMethodInfo
ResolvePillBoxMethod "dragSourceAddImageTargets" o = Gtk.Widget.WidgetDragSourceAddImageTargetsMethodInfo
ResolvePillBoxMethod "dragSourceAddTextTargets" o = Gtk.Widget.WidgetDragSourceAddTextTargetsMethodInfo
ResolvePillBoxMethod "dragSourceAddUriTargets" o = Gtk.Widget.WidgetDragSourceAddUriTargetsMethodInfo
ResolvePillBoxMethod "dragSourceGetTargetList" o = Gtk.Widget.WidgetDragSourceGetTargetListMethodInfo
ResolvePillBoxMethod "dragSourceSet" o = Gtk.Widget.WidgetDragSourceSetMethodInfo
ResolvePillBoxMethod "dragSourceSetIconGicon" o = Gtk.Widget.WidgetDragSourceSetIconGiconMethodInfo
ResolvePillBoxMethod "dragSourceSetIconName" o = Gtk.Widget.WidgetDragSourceSetIconNameMethodInfo
ResolvePillBoxMethod "dragSourceSetIconPixbuf" o = Gtk.Widget.WidgetDragSourceSetIconPixbufMethodInfo
ResolvePillBoxMethod "dragSourceSetIconStock" o = Gtk.Widget.WidgetDragSourceSetIconStockMethodInfo
ResolvePillBoxMethod "dragSourceSetTargetList" o = Gtk.Widget.WidgetDragSourceSetTargetListMethodInfo
ResolvePillBoxMethod "dragSourceUnset" o = Gtk.Widget.WidgetDragSourceUnsetMethodInfo
ResolvePillBoxMethod "dragUnhighlight" o = Gtk.Widget.WidgetDragUnhighlightMethodInfo
ResolvePillBoxMethod "draw" o = Gtk.Widget.WidgetDrawMethodInfo
ResolvePillBoxMethod "ensureStyle" o = Gtk.Widget.WidgetEnsureStyleMethodInfo
ResolvePillBoxMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolvePillBoxMethod "event" o = Gtk.Widget.WidgetEventMethodInfo
ResolvePillBoxMethod "forall" o = Gtk.Container.ContainerForallMethodInfo
ResolvePillBoxMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolvePillBoxMethod "foreach" o = Gtk.Container.ContainerForeachMethodInfo
ResolvePillBoxMethod "freezeChildNotify" o = Gtk.Widget.WidgetFreezeChildNotifyMethodInfo
ResolvePillBoxMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolvePillBoxMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolvePillBoxMethod "grabAdd" o = Gtk.Widget.WidgetGrabAddMethodInfo
ResolvePillBoxMethod "grabDefault" o = Gtk.Widget.WidgetGrabDefaultMethodInfo
ResolvePillBoxMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolvePillBoxMethod "grabRemove" o = Gtk.Widget.WidgetGrabRemoveMethodInfo
ResolvePillBoxMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolvePillBoxMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolvePillBoxMethod "hasGrab" o = Gtk.Widget.WidgetHasGrabMethodInfo
ResolvePillBoxMethod "hasRcStyle" o = Gtk.Widget.WidgetHasRcStyleMethodInfo
ResolvePillBoxMethod "hasScreen" o = Gtk.Widget.WidgetHasScreenMethodInfo
ResolvePillBoxMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolvePillBoxMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolvePillBoxMethod "hideOnDelete" o = Gtk.Widget.WidgetHideOnDeleteMethodInfo
ResolvePillBoxMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolvePillBoxMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolvePillBoxMethod "inputShapeCombineRegion" o = Gtk.Widget.WidgetInputShapeCombineRegionMethodInfo
ResolvePillBoxMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolvePillBoxMethod "intersect" o = Gtk.Widget.WidgetIntersectMethodInfo
ResolvePillBoxMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolvePillBoxMethod "isComposited" o = Gtk.Widget.WidgetIsCompositedMethodInfo
ResolvePillBoxMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolvePillBoxMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolvePillBoxMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolvePillBoxMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolvePillBoxMethod "isToplevel" o = Gtk.Widget.WidgetIsToplevelMethodInfo
ResolvePillBoxMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolvePillBoxMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolvePillBoxMethod "listAccelClosures" o = Gtk.Widget.WidgetListAccelClosuresMethodInfo
ResolvePillBoxMethod "listActionPrefixes" o = Gtk.Widget.WidgetListActionPrefixesMethodInfo
ResolvePillBoxMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolvePillBoxMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolvePillBoxMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolvePillBoxMethod "modifyBase" o = Gtk.Widget.WidgetModifyBaseMethodInfo
ResolvePillBoxMethod "modifyBg" o = Gtk.Widget.WidgetModifyBgMethodInfo
ResolvePillBoxMethod "modifyCursor" o = Gtk.Widget.WidgetModifyCursorMethodInfo
ResolvePillBoxMethod "modifyFg" o = Gtk.Widget.WidgetModifyFgMethodInfo
ResolvePillBoxMethod "modifyFont" o = Gtk.Widget.WidgetModifyFontMethodInfo
ResolvePillBoxMethod "modifyStyle" o = Gtk.Widget.WidgetModifyStyleMethodInfo
ResolvePillBoxMethod "modifyText" o = Gtk.Widget.WidgetModifyTextMethodInfo
ResolvePillBoxMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolvePillBoxMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolvePillBoxMethod "overrideBackgroundColor" o = Gtk.Widget.WidgetOverrideBackgroundColorMethodInfo
ResolvePillBoxMethod "overrideColor" o = Gtk.Widget.WidgetOverrideColorMethodInfo
ResolvePillBoxMethod "overrideCursor" o = Gtk.Widget.WidgetOverrideCursorMethodInfo
ResolvePillBoxMethod "overrideFont" o = Gtk.Widget.WidgetOverrideFontMethodInfo
ResolvePillBoxMethod "overrideSymbolicColor" o = Gtk.Widget.WidgetOverrideSymbolicColorMethodInfo
ResolvePillBoxMethod "parserFinished" o = Gtk.Buildable.BuildableParserFinishedMethodInfo
ResolvePillBoxMethod "path" o = Gtk.Widget.WidgetPathMethodInfo
ResolvePillBoxMethod "propagateDraw" o = Gtk.Container.ContainerPropagateDrawMethodInfo
ResolvePillBoxMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolvePillBoxMethod "queueComputeExpand" o = Gtk.Widget.WidgetQueueComputeExpandMethodInfo
ResolvePillBoxMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolvePillBoxMethod "queueDrawArea" o = Gtk.Widget.WidgetQueueDrawAreaMethodInfo
ResolvePillBoxMethod "queueDrawRegion" o = Gtk.Widget.WidgetQueueDrawRegionMethodInfo
ResolvePillBoxMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolvePillBoxMethod "queueResizeNoRedraw" o = Gtk.Widget.WidgetQueueResizeNoRedrawMethodInfo
ResolvePillBoxMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolvePillBoxMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolvePillBoxMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolvePillBoxMethod "regionIntersect" o = Gtk.Widget.WidgetRegionIntersectMethodInfo
ResolvePillBoxMethod "registerWindow" o = Gtk.Widget.WidgetRegisterWindowMethodInfo
ResolvePillBoxMethod "remove" o = Gtk.Container.ContainerRemoveMethodInfo
ResolvePillBoxMethod "removeAccelerator" o = Gtk.Widget.WidgetRemoveAcceleratorMethodInfo
ResolvePillBoxMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolvePillBoxMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolvePillBoxMethod "renderIcon" o = Gtk.Widget.WidgetRenderIconMethodInfo
ResolvePillBoxMethod "renderIconPixbuf" o = Gtk.Widget.WidgetRenderIconPixbufMethodInfo
ResolvePillBoxMethod "reparent" o = Gtk.Widget.WidgetReparentMethodInfo
ResolvePillBoxMethod "resetRcStyles" o = Gtk.Widget.WidgetResetRcStylesMethodInfo
ResolvePillBoxMethod "resetStyle" o = Gtk.Widget.WidgetResetStyleMethodInfo
ResolvePillBoxMethod "resizeChildren" o = Gtk.Container.ContainerResizeChildrenMethodInfo
ResolvePillBoxMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolvePillBoxMethod "sendExpose" o = Gtk.Widget.WidgetSendExposeMethodInfo
ResolvePillBoxMethod "sendFocusChange" o = Gtk.Widget.WidgetSendFocusChangeMethodInfo
ResolvePillBoxMethod "shapeCombineRegion" o = Gtk.Widget.WidgetShapeCombineRegionMethodInfo
ResolvePillBoxMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolvePillBoxMethod "showAll" o = Gtk.Widget.WidgetShowAllMethodInfo
ResolvePillBoxMethod "showNow" o = Gtk.Widget.WidgetShowNowMethodInfo
ResolvePillBoxMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolvePillBoxMethod "sizeAllocateWithBaseline" o = Gtk.Widget.WidgetSizeAllocateWithBaselineMethodInfo
ResolvePillBoxMethod "sizeRequest" o = Gtk.Widget.WidgetSizeRequestMethodInfo
ResolvePillBoxMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolvePillBoxMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolvePillBoxMethod "styleAttach" o = Gtk.Widget.WidgetStyleAttachMethodInfo
ResolvePillBoxMethod "styleGetProperty" o = Gtk.Widget.WidgetStyleGetPropertyMethodInfo
ResolvePillBoxMethod "thawChildNotify" o = Gtk.Widget.WidgetThawChildNotifyMethodInfo
ResolvePillBoxMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolvePillBoxMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolvePillBoxMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolvePillBoxMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolvePillBoxMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolvePillBoxMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolvePillBoxMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolvePillBoxMethod "unregisterWindow" o = Gtk.Widget.WidgetUnregisterWindowMethodInfo
ResolvePillBoxMethod "unsetFocusChain" o = Gtk.Container.ContainerUnsetFocusChainMethodInfo
ResolvePillBoxMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolvePillBoxMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolvePillBoxMethod "getAboveChild" o = Gtk.EventBox.EventBoxGetAboveChildMethodInfo
ResolvePillBoxMethod "getAccessible" o = Gtk.Widget.WidgetGetAccessibleMethodInfo
ResolvePillBoxMethod "getActionGroup" o = Gtk.Widget.WidgetGetActionGroupMethodInfo
ResolvePillBoxMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolvePillBoxMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolvePillBoxMethod "getAllocatedSize" o = Gtk.Widget.WidgetGetAllocatedSizeMethodInfo
ResolvePillBoxMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolvePillBoxMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolvePillBoxMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolvePillBoxMethod "getAppPaintable" o = Gtk.Widget.WidgetGetAppPaintableMethodInfo
ResolvePillBoxMethod "getBorderWidth" o = Gtk.Container.ContainerGetBorderWidthMethodInfo
ResolvePillBoxMethod "getCanDefault" o = Gtk.Widget.WidgetGetCanDefaultMethodInfo
ResolvePillBoxMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolvePillBoxMethod "getChild" o = Gtk.Bin.BinGetChildMethodInfo
ResolvePillBoxMethod "getChildRequisition" o = Gtk.Widget.WidgetGetChildRequisitionMethodInfo
ResolvePillBoxMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolvePillBoxMethod "getChildren" o = Gtk.Container.ContainerGetChildrenMethodInfo
ResolvePillBoxMethod "getClip" o = Gtk.Widget.WidgetGetClipMethodInfo
ResolvePillBoxMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolvePillBoxMethod "getCompositeName" o = Gtk.Widget.WidgetGetCompositeNameMethodInfo
ResolvePillBoxMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolvePillBoxMethod "getDeviceEnabled" o = Gtk.Widget.WidgetGetDeviceEnabledMethodInfo
ResolvePillBoxMethod "getDeviceEvents" o = Gtk.Widget.WidgetGetDeviceEventsMethodInfo
ResolvePillBoxMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolvePillBoxMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolvePillBoxMethod "getDoubleBuffered" o = Gtk.Widget.WidgetGetDoubleBufferedMethodInfo
ResolvePillBoxMethod "getEvents" o = Gtk.Widget.WidgetGetEventsMethodInfo
ResolvePillBoxMethod "getFocusChain" o = Gtk.Container.ContainerGetFocusChainMethodInfo
ResolvePillBoxMethod "getFocusChild" o = Gtk.Container.ContainerGetFocusChildMethodInfo
ResolvePillBoxMethod "getFocusHadjustment" o = Gtk.Container.ContainerGetFocusHadjustmentMethodInfo
ResolvePillBoxMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolvePillBoxMethod "getFocusVadjustment" o = Gtk.Container.ContainerGetFocusVadjustmentMethodInfo
ResolvePillBoxMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolvePillBoxMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolvePillBoxMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolvePillBoxMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolvePillBoxMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolvePillBoxMethod "getHasWindow" o = Gtk.Widget.WidgetGetHasWindowMethodInfo
ResolvePillBoxMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolvePillBoxMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolvePillBoxMethod "getInternalChild" o = Gtk.Buildable.BuildableGetInternalChildMethodInfo
ResolvePillBoxMethod "getLabel" o = PillBoxGetLabelMethodInfo
ResolvePillBoxMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolvePillBoxMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolvePillBoxMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolvePillBoxMethod "getMarginLeft" o = Gtk.Widget.WidgetGetMarginLeftMethodInfo
ResolvePillBoxMethod "getMarginRight" o = Gtk.Widget.WidgetGetMarginRightMethodInfo
ResolvePillBoxMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolvePillBoxMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolvePillBoxMethod "getModifierMask" o = Gtk.Widget.WidgetGetModifierMaskMethodInfo
ResolvePillBoxMethod "getModifierStyle" o = Gtk.Widget.WidgetGetModifierStyleMethodInfo
ResolvePillBoxMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolvePillBoxMethod "getNoShowAll" o = Gtk.Widget.WidgetGetNoShowAllMethodInfo
ResolvePillBoxMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolvePillBoxMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolvePillBoxMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolvePillBoxMethod "getParentWindow" o = Gtk.Widget.WidgetGetParentWindowMethodInfo
ResolvePillBoxMethod "getPath" o = Gtk.Widget.WidgetGetPathMethodInfo
ResolvePillBoxMethod "getPathForChild" o = Gtk.Container.ContainerGetPathForChildMethodInfo
ResolvePillBoxMethod "getPointer" o = Gtk.Widget.WidgetGetPointerMethodInfo
ResolvePillBoxMethod "getPreferredHeight" o = Gtk.Widget.WidgetGetPreferredHeightMethodInfo
ResolvePillBoxMethod "getPreferredHeightAndBaselineForWidth" o = Gtk.Widget.WidgetGetPreferredHeightAndBaselineForWidthMethodInfo
ResolvePillBoxMethod "getPreferredHeightForWidth" o = Gtk.Widget.WidgetGetPreferredHeightForWidthMethodInfo
ResolvePillBoxMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolvePillBoxMethod "getPreferredWidth" o = Gtk.Widget.WidgetGetPreferredWidthMethodInfo
ResolvePillBoxMethod "getPreferredWidthForHeight" o = Gtk.Widget.WidgetGetPreferredWidthForHeightMethodInfo
ResolvePillBoxMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolvePillBoxMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolvePillBoxMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolvePillBoxMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolvePillBoxMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolvePillBoxMethod "getRequisition" o = Gtk.Widget.WidgetGetRequisitionMethodInfo
ResolvePillBoxMethod "getResizeMode" o = Gtk.Container.ContainerGetResizeModeMethodInfo
ResolvePillBoxMethod "getRootWindow" o = Gtk.Widget.WidgetGetRootWindowMethodInfo
ResolvePillBoxMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolvePillBoxMethod "getScreen" o = Gtk.Widget.WidgetGetScreenMethodInfo
ResolvePillBoxMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolvePillBoxMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolvePillBoxMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolvePillBoxMethod "getState" o = Gtk.Widget.WidgetGetStateMethodInfo
ResolvePillBoxMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolvePillBoxMethod "getStyle" o = Gtk.Widget.WidgetGetStyleMethodInfo
ResolvePillBoxMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolvePillBoxMethod "getSupportMultidevice" o = Gtk.Widget.WidgetGetSupportMultideviceMethodInfo
ResolvePillBoxMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolvePillBoxMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolvePillBoxMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolvePillBoxMethod "getTooltipWindow" o = Gtk.Widget.WidgetGetTooltipWindowMethodInfo
ResolvePillBoxMethod "getToplevel" o = Gtk.Widget.WidgetGetToplevelMethodInfo
ResolvePillBoxMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolvePillBoxMethod "getValignWithBaseline" o = Gtk.Widget.WidgetGetValignWithBaselineMethodInfo
ResolvePillBoxMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolvePillBoxMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolvePillBoxMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolvePillBoxMethod "getVisibleWindow" o = Gtk.EventBox.EventBoxGetVisibleWindowMethodInfo
ResolvePillBoxMethod "getVisual" o = Gtk.Widget.WidgetGetVisualMethodInfo
ResolvePillBoxMethod "getWindow" o = Gtk.Widget.WidgetGetWindowMethodInfo
ResolvePillBoxMethod "setAboveChild" o = Gtk.EventBox.EventBoxSetAboveChildMethodInfo
ResolvePillBoxMethod "setAccelPath" o = Gtk.Widget.WidgetSetAccelPathMethodInfo
ResolvePillBoxMethod "setAllocation" o = Gtk.Widget.WidgetSetAllocationMethodInfo
ResolvePillBoxMethod "setAppPaintable" o = Gtk.Widget.WidgetSetAppPaintableMethodInfo
ResolvePillBoxMethod "setBorderWidth" o = Gtk.Container.ContainerSetBorderWidthMethodInfo
ResolvePillBoxMethod "setBuildableProperty" o = Gtk.Buildable.BuildableSetBuildablePropertyMethodInfo
ResolvePillBoxMethod "setCanDefault" o = Gtk.Widget.WidgetSetCanDefaultMethodInfo
ResolvePillBoxMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolvePillBoxMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolvePillBoxMethod "setClip" o = Gtk.Widget.WidgetSetClipMethodInfo
ResolvePillBoxMethod "setCompositeName" o = Gtk.Widget.WidgetSetCompositeNameMethodInfo
ResolvePillBoxMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolvePillBoxMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolvePillBoxMethod "setDeviceEnabled" o = Gtk.Widget.WidgetSetDeviceEnabledMethodInfo
ResolvePillBoxMethod "setDeviceEvents" o = Gtk.Widget.WidgetSetDeviceEventsMethodInfo
ResolvePillBoxMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolvePillBoxMethod "setDoubleBuffered" o = Gtk.Widget.WidgetSetDoubleBufferedMethodInfo
ResolvePillBoxMethod "setEvents" o = Gtk.Widget.WidgetSetEventsMethodInfo
ResolvePillBoxMethod "setFocusChain" o = Gtk.Container.ContainerSetFocusChainMethodInfo
ResolvePillBoxMethod "setFocusChild" o = Gtk.Container.ContainerSetFocusChildMethodInfo
ResolvePillBoxMethod "setFocusHadjustment" o = Gtk.Container.ContainerSetFocusHadjustmentMethodInfo
ResolvePillBoxMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolvePillBoxMethod "setFocusVadjustment" o = Gtk.Container.ContainerSetFocusVadjustmentMethodInfo
ResolvePillBoxMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolvePillBoxMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolvePillBoxMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolvePillBoxMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolvePillBoxMethod "setHasWindow" o = Gtk.Widget.WidgetSetHasWindowMethodInfo
ResolvePillBoxMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolvePillBoxMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolvePillBoxMethod "setLabel" o = PillBoxSetLabelMethodInfo
ResolvePillBoxMethod "setMapped" o = Gtk.Widget.WidgetSetMappedMethodInfo
ResolvePillBoxMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolvePillBoxMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolvePillBoxMethod "setMarginLeft" o = Gtk.Widget.WidgetSetMarginLeftMethodInfo
ResolvePillBoxMethod "setMarginRight" o = Gtk.Widget.WidgetSetMarginRightMethodInfo
ResolvePillBoxMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolvePillBoxMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolvePillBoxMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolvePillBoxMethod "setNoShowAll" o = Gtk.Widget.WidgetSetNoShowAllMethodInfo
ResolvePillBoxMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolvePillBoxMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolvePillBoxMethod "setParentWindow" o = Gtk.Widget.WidgetSetParentWindowMethodInfo
ResolvePillBoxMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolvePillBoxMethod "setRealized" o = Gtk.Widget.WidgetSetRealizedMethodInfo
ResolvePillBoxMethod "setReallocateRedraws" o = Gtk.Container.ContainerSetReallocateRedrawsMethodInfo
ResolvePillBoxMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolvePillBoxMethod "setRedrawOnAllocate" o = Gtk.Widget.WidgetSetRedrawOnAllocateMethodInfo
ResolvePillBoxMethod "setResizeMode" o = Gtk.Container.ContainerSetResizeModeMethodInfo
ResolvePillBoxMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolvePillBoxMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolvePillBoxMethod "setState" o = Gtk.Widget.WidgetSetStateMethodInfo
ResolvePillBoxMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolvePillBoxMethod "setStyle" o = Gtk.Widget.WidgetSetStyleMethodInfo
ResolvePillBoxMethod "setSupportMultidevice" o = Gtk.Widget.WidgetSetSupportMultideviceMethodInfo
ResolvePillBoxMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolvePillBoxMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolvePillBoxMethod "setTooltipWindow" o = Gtk.Widget.WidgetSetTooltipWindowMethodInfo
ResolvePillBoxMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolvePillBoxMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolvePillBoxMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolvePillBoxMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolvePillBoxMethod "setVisibleWindow" o = Gtk.EventBox.EventBoxSetVisibleWindowMethodInfo
ResolvePillBoxMethod "setVisual" o = Gtk.Widget.WidgetSetVisualMethodInfo
ResolvePillBoxMethod "setWindow" o = Gtk.Widget.WidgetSetWindowMethodInfo
ResolvePillBoxMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolvePillBoxMethod t PillBox, O.OverloadedMethod info PillBox p) => OL.IsLabel t (PillBox -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#if MIN_VERSION_base(4,13,0)
instance (info ~ ResolvePillBoxMethod t PillBox, O.OverloadedMethod info PillBox p, R.HasField t PillBox p) => R.HasField t PillBox p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolvePillBoxMethod t PillBox, O.OverloadedMethodInfo info PillBox) => OL.IsLabel t (O.MethodProxy info PillBox) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
getPillBoxLabel :: (MonadIO m, IsPillBox o) => o -> m T.Text
getPillBoxLabel :: forall (m :: * -> *) o. (MonadIO m, IsPillBox o) => o -> m Text
getPillBoxLabel o
obj = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getPillBoxLabel" (IO (Maybe Text) -> IO Text) -> IO (Maybe Text) -> IO Text
forall a b. (a -> b) -> a -> b
$ o -> String -> IO (Maybe Text)
forall a. GObject a => a -> String -> IO (Maybe Text)
B.Properties.getObjectPropertyString o
obj String
"label"
setPillBoxLabel :: (MonadIO m, IsPillBox o) => o -> T.Text -> m ()
setPillBoxLabel :: forall (m :: * -> *) o.
(MonadIO m, IsPillBox o) =>
o -> Text -> m ()
setPillBoxLabel o
obj Text
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"label" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructPillBoxLabel :: (IsPillBox o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructPillBoxLabel :: forall o (m :: * -> *).
(IsPillBox o, MonadIO m) =>
Text -> m (GValueConstruct o)
constructPillBoxLabel Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> m (GValueConstruct o))
-> IO (GValueConstruct o) -> m (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ do
IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a. IO a -> IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO (GValueConstruct o) -> IO (GValueConstruct o))
-> IO (GValueConstruct o) -> IO (GValueConstruct o)
forall a b. (a -> b) -> a -> b
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"label" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
#if defined(ENABLE_OVERLOADING)
data PillBoxLabelPropertyInfo
instance AttrInfo PillBoxLabelPropertyInfo where
type AttrAllowedOps PillBoxLabelPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint PillBoxLabelPropertyInfo = IsPillBox
type AttrSetTypeConstraint PillBoxLabelPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint PillBoxLabelPropertyInfo = (~) T.Text
type AttrTransferType PillBoxLabelPropertyInfo = T.Text
type AttrGetType PillBoxLabelPropertyInfo = T.Text
type AttrLabel PillBoxLabelPropertyInfo = "label"
type AttrOrigin PillBoxLabelPropertyInfo = PillBox
attrGet = getPillBoxLabel
attrSet = setPillBoxLabel
attrTransfer _ v = do
return v
attrConstruct = constructPillBoxLabel
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.PillBox.label"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-PillBox.html#g:attr:label"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList PillBox
type instance O.AttributeList PillBox = PillBoxAttributeList
type PillBoxAttributeList = ('[ '("aboveChild", Gtk.EventBox.EventBoxAboveChildPropertyInfo), '("appPaintable", Gtk.Widget.WidgetAppPaintablePropertyInfo), '("borderWidth", Gtk.Container.ContainerBorderWidthPropertyInfo), '("canDefault", Gtk.Widget.WidgetCanDefaultPropertyInfo), '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("child", Gtk.Container.ContainerChildPropertyInfo), '("compositeChild", Gtk.Widget.WidgetCompositeChildPropertyInfo), '("doubleBuffered", Gtk.Widget.WidgetDoubleBufferedPropertyInfo), '("events", Gtk.Widget.WidgetEventsPropertyInfo), '("expand", Gtk.Widget.WidgetExpandPropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("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), '("isFocus", Gtk.Widget.WidgetIsFocusPropertyInfo), '("label", PillBoxLabelPropertyInfo), '("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), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("resizeMode", Gtk.Container.ContainerResizeModePropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("style", Gtk.Widget.WidgetStylePropertyInfo), '("tooltipMarkup", Gtk.Widget.WidgetTooltipMarkupPropertyInfo), '("tooltipText", Gtk.Widget.WidgetTooltipTextPropertyInfo), '("valign", Gtk.Widget.WidgetValignPropertyInfo), '("vexpand", Gtk.Widget.WidgetVexpandPropertyInfo), '("vexpandSet", Gtk.Widget.WidgetVexpandSetPropertyInfo), '("visible", Gtk.Widget.WidgetVisiblePropertyInfo), '("visibleWindow", Gtk.EventBox.EventBoxVisibleWindowPropertyInfo), '("widthRequest", Gtk.Widget.WidgetWidthRequestPropertyInfo), '("window", Gtk.Widget.WidgetWindowPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
pillBoxLabel :: AttrLabelProxy "label"
pillBoxLabel = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList PillBox = PillBoxSignalList
type PillBoxSignalList = ('[ '("accelClosuresChanged", Gtk.Widget.WidgetAccelClosuresChangedSignalInfo), '("add", Gtk.Container.ContainerAddSignalInfo), '("buttonPressEvent", Gtk.Widget.WidgetButtonPressEventSignalInfo), '("buttonReleaseEvent", Gtk.Widget.WidgetButtonReleaseEventSignalInfo), '("canActivateAccel", Gtk.Widget.WidgetCanActivateAccelSignalInfo), '("checkResize", Gtk.Container.ContainerCheckResizeSignalInfo), '("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), '("remove", Gtk.Container.ContainerRemoveSignalInfo), '("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), '("setFocusChild", Gtk.Container.ContainerSetFocusChildSignalInfo), '("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, DK.Type)])
#endif
foreign import ccall "dzl_pill_box_new" dzl_pill_box_new ::
CString ->
IO (Ptr PillBox)
pillBoxNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
T.Text
-> m PillBox
pillBoxNew :: forall (m :: * -> *).
(HasCallStack, MonadIO m) =>
Text -> m PillBox
pillBoxNew Text
label = IO PillBox -> m PillBox
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO PillBox -> m PillBox) -> IO PillBox -> m PillBox
forall a b. (a -> b) -> a -> b
$ do
CString
label' <- Text -> IO CString
textToCString Text
label
Ptr PillBox
result <- CString -> IO (Ptr PillBox)
dzl_pill_box_new CString
label'
Text -> Ptr PillBox -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"pillBoxNew" Ptr PillBox
result
PillBox
result' <- ((ManagedPtr PillBox -> PillBox) -> Ptr PillBox -> IO PillBox
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr PillBox -> PillBox
PillBox) Ptr PillBox
result
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
label'
PillBox -> IO PillBox
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return PillBox
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "dzl_pill_box_get_label" dzl_pill_box_get_label ::
Ptr PillBox ->
IO CString
pillBoxGetLabel ::
(B.CallStack.HasCallStack, MonadIO m, IsPillBox a) =>
a
-> m T.Text
pillBoxGetLabel :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPillBox a) =>
a -> m Text
pillBoxGetLabel a
self = IO Text -> m Text
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Text -> m Text) -> IO Text -> m Text
forall a b. (a -> b) -> a -> b
$ do
Ptr PillBox
self' <- a -> IO (Ptr PillBox)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
result <- Ptr PillBox -> IO CString
dzl_pill_box_get_label Ptr PillBox
self'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"pillBoxGetLabel" CString
result
Text
result' <- HasCallStack => CString -> IO Text
CString -> IO Text
cstringToText CString
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Text -> IO Text
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data PillBoxGetLabelMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsPillBox a) => O.OverloadedMethod PillBoxGetLabelMethodInfo a signature where
overloadedMethod = pillBoxGetLabel
instance O.OverloadedMethodInfo PillBoxGetLabelMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.PillBox.pillBoxGetLabel",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-PillBox.html#v:pillBoxGetLabel"
})
#endif
foreign import ccall "dzl_pill_box_set_label" dzl_pill_box_set_label ::
Ptr PillBox ->
CString ->
IO ()
pillBoxSetLabel ::
(B.CallStack.HasCallStack, MonadIO m, IsPillBox a) =>
a
-> T.Text
-> m ()
pillBoxSetLabel :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsPillBox a) =>
a -> Text -> m ()
pillBoxSetLabel a
self Text
label = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
Ptr PillBox
self' <- a -> IO (Ptr PillBox)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
label' <- Text -> IO CString
textToCString Text
label
Ptr PillBox -> CString -> IO ()
dzl_pill_box_set_label Ptr PillBox
self' CString
label'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
label'
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data PillBoxSetLabelMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsPillBox a) => O.OverloadedMethod PillBoxSetLabelMethodInfo a signature where
overloadedMethod = pillBoxSetLabel
instance O.OverloadedMethodInfo PillBoxSetLabelMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Dazzle.Objects.PillBox.pillBoxSetLabel",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-dazzle-1.0.2/docs/GI-Dazzle-Objects-PillBox.html#v:pillBoxSetLabel"
})
#endif