{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Objects.WindowControls
(
WindowControls(..) ,
IsWindowControls ,
toWindowControls ,
#if defined(ENABLE_OVERLOADING)
ResolveWindowControlsMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
WindowControlsGetDecorationLayoutMethodInfo,
#endif
windowControlsGetDecorationLayout ,
#if defined(ENABLE_OVERLOADING)
WindowControlsGetEmptyMethodInfo ,
#endif
windowControlsGetEmpty ,
#if defined(ENABLE_OVERLOADING)
WindowControlsGetSideMethodInfo ,
#endif
windowControlsGetSide ,
windowControlsNew ,
#if defined(ENABLE_OVERLOADING)
WindowControlsSetDecorationLayoutMethodInfo,
#endif
windowControlsSetDecorationLayout ,
#if defined(ENABLE_OVERLOADING)
WindowControlsSetSideMethodInfo ,
#endif
windowControlsSetSide ,
#if defined(ENABLE_OVERLOADING)
WindowControlsDecorationLayoutPropertyInfo,
#endif
clearWindowControlsDecorationLayout ,
constructWindowControlsDecorationLayout ,
getWindowControlsDecorationLayout ,
setWindowControlsDecorationLayout ,
#if defined(ENABLE_OVERLOADING)
windowControlsDecorationLayout ,
#endif
#if defined(ENABLE_OVERLOADING)
WindowControlsEmptyPropertyInfo ,
#endif
getWindowControlsEmpty ,
#if defined(ENABLE_OVERLOADING)
windowControlsEmpty ,
#endif
#if defined(ENABLE_OVERLOADING)
WindowControlsSidePropertyInfo ,
#endif
constructWindowControlsSide ,
getWindowControlsSide ,
setWindowControlsSide ,
#if defined(ENABLE_OVERLOADING)
windowControlsSide ,
#endif
) 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.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 Control.Monad.IO.Class as MIO
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.ConstraintTarget as Gtk.ConstraintTarget
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
newtype WindowControls = WindowControls (SP.ManagedPtr WindowControls)
deriving (WindowControls -> WindowControls -> Bool
(WindowControls -> WindowControls -> Bool)
-> (WindowControls -> WindowControls -> Bool) -> Eq WindowControls
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: WindowControls -> WindowControls -> Bool
$c/= :: WindowControls -> WindowControls -> Bool
== :: WindowControls -> WindowControls -> Bool
$c== :: WindowControls -> WindowControls -> Bool
Eq)
instance SP.ManagedPtrNewtype WindowControls where
toManagedPtr :: WindowControls -> ManagedPtr WindowControls
toManagedPtr (WindowControls ManagedPtr WindowControls
p) = ManagedPtr WindowControls
p
foreign import ccall "gtk_window_controls_get_type"
c_gtk_window_controls_get_type :: IO B.Types.GType
instance B.Types.TypedObject WindowControls where
glibType :: IO GType
glibType = IO GType
c_gtk_window_controls_get_type
instance B.Types.GObject WindowControls
instance B.GValue.IsGValue WindowControls where
toGValue :: WindowControls -> IO GValue
toGValue WindowControls
o = do
GType
gtype <- IO GType
c_gtk_window_controls_get_type
WindowControls -> (Ptr WindowControls -> IO GValue) -> IO GValue
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr WindowControls
o (GType
-> (GValue -> Ptr WindowControls -> IO ())
-> Ptr WindowControls
-> IO GValue
forall a. GType -> (GValue -> a -> IO ()) -> a -> IO GValue
B.GValue.buildGValue GType
gtype GValue -> Ptr WindowControls -> IO ()
forall a. GObject a => GValue -> Ptr a -> IO ()
B.GValue.set_object)
fromGValue :: GValue -> IO WindowControls
fromGValue GValue
gv = do
Ptr WindowControls
ptr <- GValue -> IO (Ptr WindowControls)
forall b. GObject b => GValue -> IO (Ptr b)
B.GValue.get_object GValue
gv :: IO (Ptr WindowControls)
(ManagedPtr WindowControls -> WindowControls)
-> Ptr WindowControls -> IO WindowControls
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr WindowControls -> WindowControls
WindowControls Ptr WindowControls
ptr
class (SP.GObject o, O.IsDescendantOf WindowControls o) => IsWindowControls o
instance (SP.GObject o, O.IsDescendantOf WindowControls o) => IsWindowControls o
instance O.HasParentTypes WindowControls
type instance O.ParentTypes WindowControls = '[Gtk.Widget.Widget, GObject.Object.Object, Atk.ImplementorIface.ImplementorIface, Gtk.Buildable.Buildable, Gtk.ConstraintTarget.ConstraintTarget]
toWindowControls :: (MonadIO m, IsWindowControls o) => o -> m WindowControls
toWindowControls :: o -> m WindowControls
toWindowControls = IO WindowControls -> m WindowControls
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO WindowControls -> m WindowControls)
-> (o -> IO WindowControls) -> o -> m WindowControls
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr WindowControls -> WindowControls)
-> o -> IO WindowControls
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
unsafeCastTo ManagedPtr WindowControls -> WindowControls
WindowControls
#if defined(ENABLE_OVERLOADING)
type family ResolveWindowControlsMethod (t :: Symbol) (o :: *) :: * where
ResolveWindowControlsMethod "actionSetEnabled" o = Gtk.Widget.WidgetActionSetEnabledMethodInfo
ResolveWindowControlsMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolveWindowControlsMethod "activateAction" o = Gtk.Widget.WidgetActivateActionMethodInfo
ResolveWindowControlsMethod "activateDefault" o = Gtk.Widget.WidgetActivateDefaultMethodInfo
ResolveWindowControlsMethod "addChild" o = Gtk.Buildable.BuildableAddChildMethodInfo
ResolveWindowControlsMethod "addController" o = Gtk.Widget.WidgetAddControllerMethodInfo
ResolveWindowControlsMethod "addCssClass" o = Gtk.Widget.WidgetAddCssClassMethodInfo
ResolveWindowControlsMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveWindowControlsMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveWindowControlsMethod "allocate" o = Gtk.Widget.WidgetAllocateMethodInfo
ResolveWindowControlsMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveWindowControlsMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveWindowControlsMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveWindowControlsMethod "computeBounds" o = Gtk.Widget.WidgetComputeBoundsMethodInfo
ResolveWindowControlsMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveWindowControlsMethod "computePoint" o = Gtk.Widget.WidgetComputePointMethodInfo
ResolveWindowControlsMethod "computeTransform" o = Gtk.Widget.WidgetComputeTransformMethodInfo
ResolveWindowControlsMethod "constructChild" o = Gtk.Buildable.BuildableConstructChildMethodInfo
ResolveWindowControlsMethod "contains" o = Gtk.Widget.WidgetContainsMethodInfo
ResolveWindowControlsMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveWindowControlsMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveWindowControlsMethod "customFinished" o = Gtk.Buildable.BuildableCustomFinishedMethodInfo
ResolveWindowControlsMethod "customTagEnd" o = Gtk.Buildable.BuildableCustomTagEndMethodInfo
ResolveWindowControlsMethod "customTagStart" o = Gtk.Buildable.BuildableCustomTagStartMethodInfo
ResolveWindowControlsMethod "deviceIsShadowed" o = Gtk.Widget.WidgetDeviceIsShadowedMethodInfo
ResolveWindowControlsMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveWindowControlsMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveWindowControlsMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveWindowControlsMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveWindowControlsMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveWindowControlsMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveWindowControlsMethod "hasCssClass" o = Gtk.Widget.WidgetHasCssClassMethodInfo
ResolveWindowControlsMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveWindowControlsMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveWindowControlsMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveWindowControlsMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveWindowControlsMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveWindowControlsMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveWindowControlsMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveWindowControlsMethod "insertAfter" o = Gtk.Widget.WidgetInsertAfterMethodInfo
ResolveWindowControlsMethod "insertBefore" o = Gtk.Widget.WidgetInsertBeforeMethodInfo
ResolveWindowControlsMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveWindowControlsMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveWindowControlsMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveWindowControlsMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveWindowControlsMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveWindowControlsMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveWindowControlsMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveWindowControlsMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveWindowControlsMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveWindowControlsMethod "measure" o = Gtk.Widget.WidgetMeasureMethodInfo
ResolveWindowControlsMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveWindowControlsMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveWindowControlsMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveWindowControlsMethod "observeChildren" o = Gtk.Widget.WidgetObserveChildrenMethodInfo
ResolveWindowControlsMethod "observeControllers" o = Gtk.Widget.WidgetObserveControllersMethodInfo
ResolveWindowControlsMethod "parserFinished" o = Gtk.Buildable.BuildableParserFinishedMethodInfo
ResolveWindowControlsMethod "pick" o = Gtk.Widget.WidgetPickMethodInfo
ResolveWindowControlsMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveWindowControlsMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveWindowControlsMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveWindowControlsMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveWindowControlsMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveWindowControlsMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveWindowControlsMethod "removeController" o = Gtk.Widget.WidgetRemoveControllerMethodInfo
ResolveWindowControlsMethod "removeCssClass" o = Gtk.Widget.WidgetRemoveCssClassMethodInfo
ResolveWindowControlsMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveWindowControlsMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveWindowControlsMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveWindowControlsMethod "shouldLayout" o = Gtk.Widget.WidgetShouldLayoutMethodInfo
ResolveWindowControlsMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveWindowControlsMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveWindowControlsMethod "snapshotChild" o = Gtk.Widget.WidgetSnapshotChildMethodInfo
ResolveWindowControlsMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveWindowControlsMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveWindowControlsMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveWindowControlsMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveWindowControlsMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveWindowControlsMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveWindowControlsMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveWindowControlsMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveWindowControlsMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveWindowControlsMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveWindowControlsMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveWindowControlsMethod "getAccessible" o = Gtk.Widget.WidgetGetAccessibleMethodInfo
ResolveWindowControlsMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveWindowControlsMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveWindowControlsMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveWindowControlsMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveWindowControlsMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveWindowControlsMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveWindowControlsMethod "getCanTarget" o = Gtk.Widget.WidgetGetCanTargetMethodInfo
ResolveWindowControlsMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveWindowControlsMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveWindowControlsMethod "getCssClasses" o = Gtk.Widget.WidgetGetCssClassesMethodInfo
ResolveWindowControlsMethod "getCssName" o = Gtk.Widget.WidgetGetCssNameMethodInfo
ResolveWindowControlsMethod "getCursor" o = Gtk.Widget.WidgetGetCursorMethodInfo
ResolveWindowControlsMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveWindowControlsMethod "getDecorationLayout" o = WindowControlsGetDecorationLayoutMethodInfo
ResolveWindowControlsMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveWindowControlsMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveWindowControlsMethod "getEmpty" o = WindowControlsGetEmptyMethodInfo
ResolveWindowControlsMethod "getFirstChild" o = Gtk.Widget.WidgetGetFirstChildMethodInfo
ResolveWindowControlsMethod "getFocusChild" o = Gtk.Widget.WidgetGetFocusChildMethodInfo
ResolveWindowControlsMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveWindowControlsMethod "getFocusable" o = Gtk.Widget.WidgetGetFocusableMethodInfo
ResolveWindowControlsMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveWindowControlsMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveWindowControlsMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveWindowControlsMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveWindowControlsMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveWindowControlsMethod "getHeight" o = Gtk.Widget.WidgetGetHeightMethodInfo
ResolveWindowControlsMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveWindowControlsMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveWindowControlsMethod "getInternalChild" o = Gtk.Buildable.BuildableGetInternalChildMethodInfo
ResolveWindowControlsMethod "getLastChild" o = Gtk.Widget.WidgetGetLastChildMethodInfo
ResolveWindowControlsMethod "getLayoutManager" o = Gtk.Widget.WidgetGetLayoutManagerMethodInfo
ResolveWindowControlsMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveWindowControlsMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveWindowControlsMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveWindowControlsMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveWindowControlsMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveWindowControlsMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveWindowControlsMethod "getNative" o = Gtk.Widget.WidgetGetNativeMethodInfo
ResolveWindowControlsMethod "getNextSibling" o = Gtk.Widget.WidgetGetNextSiblingMethodInfo
ResolveWindowControlsMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveWindowControlsMethod "getOverflow" o = Gtk.Widget.WidgetGetOverflowMethodInfo
ResolveWindowControlsMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveWindowControlsMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveWindowControlsMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveWindowControlsMethod "getPrevSibling" o = Gtk.Widget.WidgetGetPrevSiblingMethodInfo
ResolveWindowControlsMethod "getPrimaryClipboard" o = Gtk.Widget.WidgetGetPrimaryClipboardMethodInfo
ResolveWindowControlsMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveWindowControlsMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveWindowControlsMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveWindowControlsMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveWindowControlsMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveWindowControlsMethod "getRoot" o = Gtk.Widget.WidgetGetRootMethodInfo
ResolveWindowControlsMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveWindowControlsMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveWindowControlsMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveWindowControlsMethod "getSide" o = WindowControlsGetSideMethodInfo
ResolveWindowControlsMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveWindowControlsMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveWindowControlsMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveWindowControlsMethod "getSupportMultidevice" o = Gtk.Widget.WidgetGetSupportMultideviceMethodInfo
ResolveWindowControlsMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveWindowControlsMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveWindowControlsMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveWindowControlsMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveWindowControlsMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveWindowControlsMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveWindowControlsMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveWindowControlsMethod "getWidth" o = Gtk.Widget.WidgetGetWidthMethodInfo
ResolveWindowControlsMethod "setBuildableProperty" o = Gtk.Buildable.BuildableSetBuildablePropertyMethodInfo
ResolveWindowControlsMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveWindowControlsMethod "setCanTarget" o = Gtk.Widget.WidgetSetCanTargetMethodInfo
ResolveWindowControlsMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveWindowControlsMethod "setCssClasses" o = Gtk.Widget.WidgetSetCssClassesMethodInfo
ResolveWindowControlsMethod "setCursor" o = Gtk.Widget.WidgetSetCursorMethodInfo
ResolveWindowControlsMethod "setCursorFromName" o = Gtk.Widget.WidgetSetCursorFromNameMethodInfo
ResolveWindowControlsMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveWindowControlsMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveWindowControlsMethod "setDecorationLayout" o = WindowControlsSetDecorationLayoutMethodInfo
ResolveWindowControlsMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveWindowControlsMethod "setFocusChild" o = Gtk.Widget.WidgetSetFocusChildMethodInfo
ResolveWindowControlsMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveWindowControlsMethod "setFocusable" o = Gtk.Widget.WidgetSetFocusableMethodInfo
ResolveWindowControlsMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveWindowControlsMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveWindowControlsMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveWindowControlsMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveWindowControlsMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveWindowControlsMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveWindowControlsMethod "setLayoutManager" o = Gtk.Widget.WidgetSetLayoutManagerMethodInfo
ResolveWindowControlsMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveWindowControlsMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveWindowControlsMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveWindowControlsMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveWindowControlsMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveWindowControlsMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveWindowControlsMethod "setOverflow" o = Gtk.Widget.WidgetSetOverflowMethodInfo
ResolveWindowControlsMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveWindowControlsMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveWindowControlsMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveWindowControlsMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveWindowControlsMethod "setSide" o = WindowControlsSetSideMethodInfo
ResolveWindowControlsMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveWindowControlsMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveWindowControlsMethod "setSupportMultidevice" o = Gtk.Widget.WidgetSetSupportMultideviceMethodInfo
ResolveWindowControlsMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolveWindowControlsMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolveWindowControlsMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveWindowControlsMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveWindowControlsMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveWindowControlsMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveWindowControlsMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveWindowControlsMethod t WindowControls, O.MethodInfo info WindowControls p) => OL.IsLabel t (WindowControls -> p) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.overloadedMethod @info
#else
fromLabel _ = O.overloadedMethod @info
#endif
#endif
getWindowControlsDecorationLayout :: (MonadIO m, IsWindowControls o) => o -> m T.Text
getWindowControlsDecorationLayout :: o -> m Text
getWindowControlsDecorationLayout o
obj = IO Text -> m Text
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
$ Text -> IO (Maybe Text) -> IO Text
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getWindowControlsDecorationLayout" (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
"decoration-layout"
setWindowControlsDecorationLayout :: (MonadIO m, IsWindowControls o) => o -> T.Text -> m ()
setWindowControlsDecorationLayout :: o -> Text -> m ()
setWindowControlsDecorationLayout o
obj Text
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 -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"decoration-layout" (Text -> Maybe Text
forall a. a -> Maybe a
Just Text
val)
constructWindowControlsDecorationLayout :: (IsWindowControls o, MIO.MonadIO m) => T.Text -> m (GValueConstruct o)
constructWindowControlsDecorationLayout :: Text -> m (GValueConstruct o)
constructWindowControlsDecorationLayout Text
val = IO (GValueConstruct o) -> m (GValueConstruct o)
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
$ String -> Maybe Text -> IO (GValueConstruct o)
forall o. String -> Maybe Text -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyString String
"decoration-layout" (Text -> Maybe Text
forall a. a -> Maybe a
P.Just Text
val)
clearWindowControlsDecorationLayout :: (MonadIO m, IsWindowControls o) => o -> m ()
clearWindowControlsDecorationLayout :: o -> m ()
clearWindowControlsDecorationLayout o
obj = 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 -> Maybe Text -> IO ()
forall a. GObject a => a -> String -> Maybe Text -> IO ()
B.Properties.setObjectPropertyString o
obj String
"decoration-layout" (Maybe Text
forall a. Maybe a
Nothing :: Maybe T.Text)
#if defined(ENABLE_OVERLOADING)
data WindowControlsDecorationLayoutPropertyInfo
instance AttrInfo WindowControlsDecorationLayoutPropertyInfo where
type AttrAllowedOps WindowControlsDecorationLayoutPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint WindowControlsDecorationLayoutPropertyInfo = IsWindowControls
type AttrSetTypeConstraint WindowControlsDecorationLayoutPropertyInfo = (~) T.Text
type AttrTransferTypeConstraint WindowControlsDecorationLayoutPropertyInfo = (~) T.Text
type AttrTransferType WindowControlsDecorationLayoutPropertyInfo = T.Text
type AttrGetType WindowControlsDecorationLayoutPropertyInfo = T.Text
type AttrLabel WindowControlsDecorationLayoutPropertyInfo = "decoration-layout"
type AttrOrigin WindowControlsDecorationLayoutPropertyInfo = WindowControls
attrGet = getWindowControlsDecorationLayout
attrSet = setWindowControlsDecorationLayout
attrTransfer _ v = do
return v
attrConstruct = constructWindowControlsDecorationLayout
attrClear = clearWindowControlsDecorationLayout
#endif
getWindowControlsEmpty :: (MonadIO m, IsWindowControls o) => o -> m Bool
getWindowControlsEmpty :: o -> m Bool
getWindowControlsEmpty 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 String
"empty"
#if defined(ENABLE_OVERLOADING)
data WindowControlsEmptyPropertyInfo
instance AttrInfo WindowControlsEmptyPropertyInfo where
type AttrAllowedOps WindowControlsEmptyPropertyInfo = '[ 'AttrGet]
type AttrBaseTypeConstraint WindowControlsEmptyPropertyInfo = IsWindowControls
type AttrSetTypeConstraint WindowControlsEmptyPropertyInfo = (~) ()
type AttrTransferTypeConstraint WindowControlsEmptyPropertyInfo = (~) ()
type AttrTransferType WindowControlsEmptyPropertyInfo = ()
type AttrGetType WindowControlsEmptyPropertyInfo = Bool
type AttrLabel WindowControlsEmptyPropertyInfo = "empty"
type AttrOrigin WindowControlsEmptyPropertyInfo = WindowControls
attrGet = getWindowControlsEmpty
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
#endif
getWindowControlsSide :: (MonadIO m, IsWindowControls o) => o -> m Gtk.Enums.PackType
getWindowControlsSide :: o -> m PackType
getWindowControlsSide o
obj = IO PackType -> m PackType
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO PackType -> m PackType) -> IO PackType -> m PackType
forall a b. (a -> b) -> a -> b
$ o -> String -> IO PackType
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"side"
setWindowControlsSide :: (MonadIO m, IsWindowControls o) => o -> Gtk.Enums.PackType -> m ()
setWindowControlsSide :: o -> PackType -> m ()
setWindowControlsSide o
obj PackType
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 -> PackType -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"side" PackType
val
constructWindowControlsSide :: (IsWindowControls o, MIO.MonadIO m) => Gtk.Enums.PackType -> m (GValueConstruct o)
constructWindowControlsSide :: PackType -> m (GValueConstruct o)
constructWindowControlsSide PackType
val = IO (GValueConstruct o) -> m (GValueConstruct o)
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
$ String -> PackType -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"side" PackType
val
#if defined(ENABLE_OVERLOADING)
data WindowControlsSidePropertyInfo
instance AttrInfo WindowControlsSidePropertyInfo where
type AttrAllowedOps WindowControlsSidePropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint WindowControlsSidePropertyInfo = IsWindowControls
type AttrSetTypeConstraint WindowControlsSidePropertyInfo = (~) Gtk.Enums.PackType
type AttrTransferTypeConstraint WindowControlsSidePropertyInfo = (~) Gtk.Enums.PackType
type AttrTransferType WindowControlsSidePropertyInfo = Gtk.Enums.PackType
type AttrGetType WindowControlsSidePropertyInfo = Gtk.Enums.PackType
type AttrLabel WindowControlsSidePropertyInfo = "side"
type AttrOrigin WindowControlsSidePropertyInfo = WindowControls
attrGet = getWindowControlsSide
attrSet = setWindowControlsSide
attrTransfer _ v = do
return v
attrConstruct = constructWindowControlsSide
attrClear = undefined
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList WindowControls
type instance O.AttributeList WindowControls = WindowControlsAttributeList
type WindowControlsAttributeList = ('[ '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("canTarget", Gtk.Widget.WidgetCanTargetPropertyInfo), '("cssClasses", Gtk.Widget.WidgetCssClassesPropertyInfo), '("cssName", Gtk.Widget.WidgetCssNamePropertyInfo), '("cursor", Gtk.Widget.WidgetCursorPropertyInfo), '("decorationLayout", WindowControlsDecorationLayoutPropertyInfo), '("empty", WindowControlsEmptyPropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("focusable", Gtk.Widget.WidgetFocusablePropertyInfo), '("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), '("layoutManager", Gtk.Widget.WidgetLayoutManagerPropertyInfo), '("marginBottom", Gtk.Widget.WidgetMarginBottomPropertyInfo), '("marginEnd", Gtk.Widget.WidgetMarginEndPropertyInfo), '("marginStart", Gtk.Widget.WidgetMarginStartPropertyInfo), '("marginTop", Gtk.Widget.WidgetMarginTopPropertyInfo), '("name", Gtk.Widget.WidgetNamePropertyInfo), '("opacity", Gtk.Widget.WidgetOpacityPropertyInfo), '("overflow", Gtk.Widget.WidgetOverflowPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("root", Gtk.Widget.WidgetRootPropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("side", WindowControlsSidePropertyInfo), '("tooltipMarkup", Gtk.Widget.WidgetTooltipMarkupPropertyInfo), '("tooltipText", Gtk.Widget.WidgetTooltipTextPropertyInfo), '("valign", Gtk.Widget.WidgetValignPropertyInfo), '("vexpand", Gtk.Widget.WidgetVexpandPropertyInfo), '("vexpandSet", Gtk.Widget.WidgetVexpandSetPropertyInfo), '("visible", Gtk.Widget.WidgetVisiblePropertyInfo), '("widthRequest", Gtk.Widget.WidgetWidthRequestPropertyInfo)] :: [(Symbol, *)])
#endif
#if defined(ENABLE_OVERLOADING)
windowControlsDecorationLayout :: AttrLabelProxy "decorationLayout"
windowControlsDecorationLayout = AttrLabelProxy
windowControlsEmpty :: AttrLabelProxy "empty"
windowControlsEmpty = AttrLabelProxy
windowControlsSide :: AttrLabelProxy "side"
windowControlsSide = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList WindowControls = WindowControlsSignalList
type WindowControlsSignalList = ('[ '("destroy", Gtk.Widget.WidgetDestroySignalInfo), '("directionChanged", Gtk.Widget.WidgetDirectionChangedSignalInfo), '("grabNotify", Gtk.Widget.WidgetGrabNotifySignalInfo), '("hide", Gtk.Widget.WidgetHideSignalInfo), '("keynavFailed", Gtk.Widget.WidgetKeynavFailedSignalInfo), '("map", Gtk.Widget.WidgetMapSignalInfo), '("mnemonicActivate", Gtk.Widget.WidgetMnemonicActivateSignalInfo), '("moveFocus", Gtk.Widget.WidgetMoveFocusSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("queryTooltip", Gtk.Widget.WidgetQueryTooltipSignalInfo), '("realize", Gtk.Widget.WidgetRealizeSignalInfo), '("show", Gtk.Widget.WidgetShowSignalInfo), '("stateFlagsChanged", Gtk.Widget.WidgetStateFlagsChangedSignalInfo), '("unmap", Gtk.Widget.WidgetUnmapSignalInfo), '("unrealize", Gtk.Widget.WidgetUnrealizeSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_window_controls_new" gtk_window_controls_new ::
CUInt ->
IO (Ptr WindowControls)
windowControlsNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
Gtk.Enums.PackType
-> m WindowControls
windowControlsNew :: PackType -> m WindowControls
windowControlsNew PackType
side = IO WindowControls -> m WindowControls
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO WindowControls -> m WindowControls)
-> IO WindowControls -> m WindowControls
forall a b. (a -> b) -> a -> b
$ do
let side' :: CUInt
side' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (PackType -> Int) -> PackType -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. PackType -> Int
forall a. Enum a => a -> Int
fromEnum) PackType
side
Ptr WindowControls
result <- CUInt -> IO (Ptr WindowControls)
gtk_window_controls_new CUInt
side'
Text -> Ptr WindowControls -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"windowControlsNew" Ptr WindowControls
result
WindowControls
result' <- ((ManagedPtr WindowControls -> WindowControls)
-> Ptr WindowControls -> IO WindowControls
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr WindowControls -> WindowControls
WindowControls) Ptr WindowControls
result
WindowControls -> IO WindowControls
forall (m :: * -> *) a. Monad m => a -> m a
return WindowControls
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gtk_window_controls_get_decoration_layout" gtk_window_controls_get_decoration_layout ::
Ptr WindowControls ->
IO CString
windowControlsGetDecorationLayout ::
(B.CallStack.HasCallStack, MonadIO m, IsWindowControls a) =>
a
-> m T.Text
windowControlsGetDecorationLayout :: a -> m Text
windowControlsGetDecorationLayout a
self = IO Text -> m Text
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 WindowControls
self' <- a -> IO (Ptr WindowControls)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
result <- Ptr WindowControls -> IO CString
gtk_window_controls_get_decoration_layout Ptr WindowControls
self'
Text -> CString -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"windowControlsGetDecorationLayout" 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 (m :: * -> *) a. Monad m => a -> m a
return Text
result'
#if defined(ENABLE_OVERLOADING)
data WindowControlsGetDecorationLayoutMethodInfo
instance (signature ~ (m T.Text), MonadIO m, IsWindowControls a) => O.MethodInfo WindowControlsGetDecorationLayoutMethodInfo a signature where
overloadedMethod = windowControlsGetDecorationLayout
#endif
foreign import ccall "gtk_window_controls_get_empty" gtk_window_controls_get_empty ::
Ptr WindowControls ->
IO CInt
windowControlsGetEmpty ::
(B.CallStack.HasCallStack, MonadIO m, IsWindowControls a) =>
a
-> m Bool
windowControlsGetEmpty :: a -> m Bool
windowControlsGetEmpty a
self = 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 WindowControls
self' <- a -> IO (Ptr WindowControls)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CInt
result <- Ptr WindowControls -> IO CInt
gtk_window_controls_get_empty Ptr WindowControls
self'
let result' :: Bool
result' = (CInt -> CInt -> Bool
forall a. Eq a => a -> a -> Bool
/= CInt
0) CInt
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
Bool -> IO Bool
forall (m :: * -> *) a. Monad m => a -> m a
return Bool
result'
#if defined(ENABLE_OVERLOADING)
data WindowControlsGetEmptyMethodInfo
instance (signature ~ (m Bool), MonadIO m, IsWindowControls a) => O.MethodInfo WindowControlsGetEmptyMethodInfo a signature where
overloadedMethod = windowControlsGetEmpty
#endif
foreign import ccall "gtk_window_controls_get_side" gtk_window_controls_get_side ::
Ptr WindowControls ->
IO CUInt
windowControlsGetSide ::
(B.CallStack.HasCallStack, MonadIO m, IsWindowControls a) =>
a
-> m Gtk.Enums.PackType
windowControlsGetSide :: a -> m PackType
windowControlsGetSide a
self = IO PackType -> m PackType
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO PackType -> m PackType) -> IO PackType -> m PackType
forall a b. (a -> b) -> a -> b
$ do
Ptr WindowControls
self' <- a -> IO (Ptr WindowControls)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CUInt
result <- Ptr WindowControls -> IO CUInt
gtk_window_controls_get_side Ptr WindowControls
self'
let result' :: PackType
result' = (Int -> PackType
forall a. Enum a => Int -> a
toEnum (Int -> PackType) -> (CUInt -> Int) -> CUInt -> PackType
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
self
PackType -> IO PackType
forall (m :: * -> *) a. Monad m => a -> m a
return PackType
result'
#if defined(ENABLE_OVERLOADING)
data WindowControlsGetSideMethodInfo
instance (signature ~ (m Gtk.Enums.PackType), MonadIO m, IsWindowControls a) => O.MethodInfo WindowControlsGetSideMethodInfo a signature where
overloadedMethod = windowControlsGetSide
#endif
foreign import ccall "gtk_window_controls_set_decoration_layout" gtk_window_controls_set_decoration_layout ::
Ptr WindowControls ->
CString ->
IO ()
windowControlsSetDecorationLayout ::
(B.CallStack.HasCallStack, MonadIO m, IsWindowControls a) =>
a
-> Maybe (T.Text)
-> m ()
windowControlsSetDecorationLayout :: a -> Maybe Text -> m ()
windowControlsSetDecorationLayout a
self Maybe Text
layout = 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 WindowControls
self' <- a -> IO (Ptr WindowControls)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
CString
maybeLayout <- case Maybe Text
layout of
Maybe Text
Nothing -> CString -> IO CString
forall (m :: * -> *) a. Monad m => a -> m a
return CString
forall a. Ptr a
nullPtr
Just Text
jLayout -> do
CString
jLayout' <- Text -> IO CString
textToCString Text
jLayout
CString -> IO CString
forall (m :: * -> *) a. Monad m => a -> m a
return CString
jLayout'
Ptr WindowControls -> CString -> IO ()
gtk_window_controls_set_decoration_layout Ptr WindowControls
self' CString
maybeLayout
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
CString -> IO ()
forall a. Ptr a -> IO ()
freeMem CString
maybeLayout
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data WindowControlsSetDecorationLayoutMethodInfo
instance (signature ~ (Maybe (T.Text) -> m ()), MonadIO m, IsWindowControls a) => O.MethodInfo WindowControlsSetDecorationLayoutMethodInfo a signature where
overloadedMethod = windowControlsSetDecorationLayout
#endif
foreign import ccall "gtk_window_controls_set_side" gtk_window_controls_set_side ::
Ptr WindowControls ->
CUInt ->
IO ()
windowControlsSetSide ::
(B.CallStack.HasCallStack, MonadIO m, IsWindowControls a) =>
a
-> Gtk.Enums.PackType
-> m ()
windowControlsSetSide :: a -> PackType -> m ()
windowControlsSetSide a
self PackType
side = 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 WindowControls
self' <- a -> IO (Ptr WindowControls)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
self
let side' :: CUInt
side' = (Int -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CUInt) -> (PackType -> Int) -> PackType -> CUInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. PackType -> Int
forall a. Enum a => a -> Int
fromEnum) PackType
side
Ptr WindowControls -> CUInt -> IO ()
gtk_window_controls_set_side Ptr WindowControls
self' CUInt
side'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
self
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data WindowControlsSetSideMethodInfo
instance (signature ~ (Gtk.Enums.PackType -> m ()), MonadIO m, IsWindowControls a) => O.MethodInfo WindowControlsSetSideMethodInfo a signature where
overloadedMethod = windowControlsSetSide
#endif