{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Objects.CellAreaContext
(
CellAreaContext(..) ,
IsCellAreaContext ,
toCellAreaContext ,
#if defined(ENABLE_OVERLOADING)
ResolveCellAreaContextMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
CellAreaContextAllocateMethodInfo ,
#endif
cellAreaContextAllocate ,
#if defined(ENABLE_OVERLOADING)
CellAreaContextGetAllocationMethodInfo ,
#endif
cellAreaContextGetAllocation ,
#if defined(ENABLE_OVERLOADING)
CellAreaContextGetAreaMethodInfo ,
#endif
cellAreaContextGetArea ,
#if defined(ENABLE_OVERLOADING)
CellAreaContextGetPreferredHeightMethodInfo,
#endif
cellAreaContextGetPreferredHeight ,
#if defined(ENABLE_OVERLOADING)
CellAreaContextGetPreferredHeightForWidthMethodInfo,
#endif
cellAreaContextGetPreferredHeightForWidth,
#if defined(ENABLE_OVERLOADING)
CellAreaContextGetPreferredWidthMethodInfo,
#endif
cellAreaContextGetPreferredWidth ,
#if defined(ENABLE_OVERLOADING)
CellAreaContextGetPreferredWidthForHeightMethodInfo,
#endif
cellAreaContextGetPreferredWidthForHeight,
#if defined(ENABLE_OVERLOADING)
CellAreaContextPushPreferredHeightMethodInfo,
#endif
cellAreaContextPushPreferredHeight ,
#if defined(ENABLE_OVERLOADING)
CellAreaContextPushPreferredWidthMethodInfo,
#endif
cellAreaContextPushPreferredWidth ,
#if defined(ENABLE_OVERLOADING)
CellAreaContextResetMethodInfo ,
#endif
cellAreaContextReset ,
#if defined(ENABLE_OVERLOADING)
CellAreaContextAreaPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
cellAreaContextArea ,
#endif
constructCellAreaContextArea ,
getCellAreaContextArea ,
#if defined(ENABLE_OVERLOADING)
CellAreaContextMinimumHeightPropertyInfo,
#endif
#if defined(ENABLE_OVERLOADING)
cellAreaContextMinimumHeight ,
#endif
getCellAreaContextMinimumHeight ,
#if defined(ENABLE_OVERLOADING)
CellAreaContextMinimumWidthPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
cellAreaContextMinimumWidth ,
#endif
getCellAreaContextMinimumWidth ,
#if defined(ENABLE_OVERLOADING)
CellAreaContextNaturalHeightPropertyInfo,
#endif
#if defined(ENABLE_OVERLOADING)
cellAreaContextNaturalHeight ,
#endif
getCellAreaContextNaturalHeight ,
#if defined(ENABLE_OVERLOADING)
CellAreaContextNaturalWidthPropertyInfo ,
#endif
#if defined(ENABLE_OVERLOADING)
cellAreaContextNaturalWidth ,
#endif
getCellAreaContextNaturalWidth ,
) 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.Atk.Objects.Object as Atk.Object
import qualified GI.Cairo.Structs.Context as Cairo.Context
import qualified GI.Cairo.Structs.FontOptions as Cairo.FontOptions
import qualified GI.Cairo.Structs.Region as Cairo.Region
import qualified GI.Cairo.Structs.Surface as Cairo.Surface
import qualified GI.GLib.Callbacks as GLib.Callbacks
import qualified GI.GLib.Structs.MarkupParser as GLib.MarkupParser
import qualified GI.GObject.Callbacks as GObject.Callbacks
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gdk.Enums as Gdk.Enums
import qualified GI.Gdk.Flags as Gdk.Flags
import qualified GI.Gdk.Objects.Device as Gdk.Device
import qualified GI.Gdk.Objects.Display as Gdk.Display
import qualified GI.Gdk.Objects.DragContext as Gdk.DragContext
import qualified GI.Gdk.Objects.FrameClock as Gdk.FrameClock
import qualified GI.Gdk.Objects.Screen as Gdk.Screen
import qualified GI.Gdk.Objects.Visual as Gdk.Visual
import qualified GI.Gdk.Objects.Window as Gdk.Window
import qualified GI.Gdk.Structs.Atom as Gdk.Atom
import qualified GI.Gdk.Structs.Color as Gdk.Color
import qualified GI.Gdk.Structs.EventAny as Gdk.EventAny
import qualified GI.Gdk.Structs.EventButton as Gdk.EventButton
import qualified GI.Gdk.Structs.EventConfigure as Gdk.EventConfigure
import qualified GI.Gdk.Structs.EventCrossing as Gdk.EventCrossing
import qualified GI.Gdk.Structs.EventExpose as Gdk.EventExpose
import qualified GI.Gdk.Structs.EventFocus as Gdk.EventFocus
import qualified GI.Gdk.Structs.EventGrabBroken as Gdk.EventGrabBroken
import qualified GI.Gdk.Structs.EventKey as Gdk.EventKey
import qualified GI.Gdk.Structs.EventMotion as Gdk.EventMotion
import qualified GI.Gdk.Structs.EventOwnerChange as Gdk.EventOwnerChange
import qualified GI.Gdk.Structs.EventProperty as Gdk.EventProperty
import qualified GI.Gdk.Structs.EventProximity as Gdk.EventProximity
import qualified GI.Gdk.Structs.EventScroll as Gdk.EventScroll
import qualified GI.Gdk.Structs.EventSelection as Gdk.EventSelection
import qualified GI.Gdk.Structs.EventVisibility as Gdk.EventVisibility
import qualified GI.Gdk.Structs.EventWindowState as Gdk.EventWindowState
import qualified GI.Gdk.Structs.Geometry as Gdk.Geometry
import qualified GI.Gdk.Structs.RGBA as Gdk.RGBA
import qualified GI.Gdk.Structs.Rectangle as Gdk.Rectangle
import qualified GI.Gdk.Unions.Event as Gdk.Event
import qualified GI.GdkPixbuf.Objects.Pixbuf as GdkPixbuf.Pixbuf
import qualified GI.Gio.Flags as Gio.Flags
import qualified GI.Gio.Interfaces.ActionGroup as Gio.ActionGroup
import qualified GI.Gio.Interfaces.ActionMap as Gio.ActionMap
import qualified GI.Gio.Interfaces.File as Gio.File
import qualified GI.Gio.Interfaces.Icon as Gio.Icon
import qualified GI.Gio.Objects.Application as Gio.Application
import qualified GI.Gio.Objects.Menu as Gio.Menu
import qualified GI.Gio.Objects.MenuModel as Gio.MenuModel
import qualified GI.Gtk.Callbacks as Gtk.Callbacks
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
import {-# SOURCE #-} qualified GI.Gtk.Flags as Gtk.Flags
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Buildable as Gtk.Buildable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.CellEditable as Gtk.CellEditable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.CellLayout as Gtk.CellLayout
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.StyleProvider as Gtk.StyleProvider
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.TreeModel as Gtk.TreeModel
import {-# SOURCE #-} qualified GI.Gtk.Objects.AccelGroup as Gtk.AccelGroup
import {-# SOURCE #-} qualified GI.Gtk.Objects.Adjustment as Gtk.Adjustment
import {-# SOURCE #-} qualified GI.Gtk.Objects.Application as Gtk.Application
import {-# SOURCE #-} qualified GI.Gtk.Objects.Bin as Gtk.Bin
import {-# SOURCE #-} qualified GI.Gtk.Objects.Builder as Gtk.Builder
import {-# SOURCE #-} qualified GI.Gtk.Objects.CellArea as Gtk.CellArea
import {-# SOURCE #-} qualified GI.Gtk.Objects.CellRenderer as Gtk.CellRenderer
import {-# SOURCE #-} qualified GI.Gtk.Objects.Clipboard as Gtk.Clipboard
import {-# SOURCE #-} qualified GI.Gtk.Objects.Container as Gtk.Container
import {-# SOURCE #-} qualified GI.Gtk.Objects.IconFactory as Gtk.IconFactory
import {-# SOURCE #-} qualified GI.Gtk.Objects.RcStyle as Gtk.RcStyle
import {-# SOURCE #-} qualified GI.Gtk.Objects.Settings as Gtk.Settings
import {-# SOURCE #-} qualified GI.Gtk.Objects.Style as Gtk.Style
import {-# SOURCE #-} qualified GI.Gtk.Objects.StyleContext as Gtk.StyleContext
import {-# SOURCE #-} qualified GI.Gtk.Objects.StyleProperties as Gtk.StyleProperties
import {-# SOURCE #-} qualified GI.Gtk.Objects.TextBuffer as Gtk.TextBuffer
import {-# SOURCE #-} qualified GI.Gtk.Objects.TextChildAnchor as Gtk.TextChildAnchor
import {-# SOURCE #-} qualified GI.Gtk.Objects.TextMark as Gtk.TextMark
import {-# SOURCE #-} qualified GI.Gtk.Objects.TextTag as Gtk.TextTag
import {-# SOURCE #-} qualified GI.Gtk.Objects.TextTagTable as Gtk.TextTagTable
import {-# SOURCE #-} qualified GI.Gtk.Objects.Tooltip as Gtk.Tooltip
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
import {-# SOURCE #-} qualified GI.Gtk.Objects.Window as Gtk.Window
import {-# SOURCE #-} qualified GI.Gtk.Objects.WindowGroup as Gtk.WindowGroup
import {-# SOURCE #-} qualified GI.Gtk.Structs.AccelGroupEntry as Gtk.AccelGroupEntry
import {-# SOURCE #-} qualified GI.Gtk.Structs.AccelKey as Gtk.AccelKey
import {-# SOURCE #-} qualified GI.Gtk.Structs.Border as Gtk.Border
import {-# SOURCE #-} qualified GI.Gtk.Structs.CssSection as Gtk.CssSection
import {-# SOURCE #-} qualified GI.Gtk.Structs.IconSet as Gtk.IconSet
import {-# SOURCE #-} qualified GI.Gtk.Structs.IconSource as Gtk.IconSource
import {-# SOURCE #-} qualified GI.Gtk.Structs.Requisition as Gtk.Requisition
import {-# SOURCE #-} qualified GI.Gtk.Structs.SelectionData as Gtk.SelectionData
import {-# SOURCE #-} qualified GI.Gtk.Structs.SettingsValue as Gtk.SettingsValue
import {-# SOURCE #-} qualified GI.Gtk.Structs.SymbolicColor as Gtk.SymbolicColor
import {-# SOURCE #-} qualified GI.Gtk.Structs.TargetEntry as Gtk.TargetEntry
import {-# SOURCE #-} qualified GI.Gtk.Structs.TargetList as Gtk.TargetList
import {-# SOURCE #-} qualified GI.Gtk.Structs.TextAppearance as Gtk.TextAppearance
import {-# SOURCE #-} qualified GI.Gtk.Structs.TextAttributes as Gtk.TextAttributes
import {-# SOURCE #-} qualified GI.Gtk.Structs.TextIter as Gtk.TextIter
import {-# SOURCE #-} qualified GI.Gtk.Structs.TreeIter as Gtk.TreeIter
import {-# SOURCE #-} qualified GI.Gtk.Structs.TreePath as Gtk.TreePath
import {-# SOURCE #-} qualified GI.Gtk.Structs.WidgetPath as Gtk.WidgetPath
import qualified GI.Pango.Enums as Pango.Enums
import qualified GI.Pango.Objects.Context as Pango.Context
import qualified GI.Pango.Objects.FontMap as Pango.FontMap
import qualified GI.Pango.Objects.Layout as Pango.Layout
import qualified GI.Pango.Structs.FontDescription as Pango.FontDescription
import qualified GI.Pango.Structs.Language as Pango.Language
import qualified GI.Pango.Structs.TabArray as Pango.TabArray
#else
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Gtk.Objects.CellArea as Gtk.CellArea
#endif
newtype CellAreaContext = CellAreaContext (SP.ManagedPtr CellAreaContext)
deriving (CellAreaContext -> CellAreaContext -> Bool
(CellAreaContext -> CellAreaContext -> Bool)
-> (CellAreaContext -> CellAreaContext -> Bool)
-> Eq CellAreaContext
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: CellAreaContext -> CellAreaContext -> Bool
== :: CellAreaContext -> CellAreaContext -> Bool
$c/= :: CellAreaContext -> CellAreaContext -> Bool
/= :: CellAreaContext -> CellAreaContext -> Bool
Eq)
instance SP.ManagedPtrNewtype CellAreaContext where
toManagedPtr :: CellAreaContext -> ManagedPtr CellAreaContext
toManagedPtr (CellAreaContext ManagedPtr CellAreaContext
p) = ManagedPtr CellAreaContext
p
foreign import ccall "gtk_cell_area_context_get_type"
c_gtk_cell_area_context_get_type :: IO B.Types.GType
instance B.Types.TypedObject CellAreaContext where
glibType :: IO GType
glibType = IO GType
c_gtk_cell_area_context_get_type
instance B.Types.GObject CellAreaContext
class (SP.GObject o, O.IsDescendantOf CellAreaContext o) => IsCellAreaContext o
instance (SP.GObject o, O.IsDescendantOf CellAreaContext o) => IsCellAreaContext o
instance O.HasParentTypes CellAreaContext
type instance O.ParentTypes CellAreaContext = '[GObject.Object.Object]
toCellAreaContext :: (MIO.MonadIO m, IsCellAreaContext o) => o -> m CellAreaContext
toCellAreaContext :: forall (m :: * -> *) o.
(MonadIO m, IsCellAreaContext o) =>
o -> m CellAreaContext
toCellAreaContext = IO CellAreaContext -> m CellAreaContext
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO CellAreaContext -> m CellAreaContext)
-> (o -> IO CellAreaContext) -> o -> m CellAreaContext
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr CellAreaContext -> CellAreaContext)
-> o -> IO CellAreaContext
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr CellAreaContext -> CellAreaContext
CellAreaContext
instance B.GValue.IsGValue (Maybe CellAreaContext) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gtk_cell_area_context_get_type
gvalueSet_ :: Ptr GValue -> Maybe CellAreaContext -> IO ()
gvalueSet_ Ptr GValue
gv Maybe CellAreaContext
P.Nothing = Ptr GValue -> Ptr CellAreaContext -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr CellAreaContext
forall a. Ptr a
FP.nullPtr :: FP.Ptr CellAreaContext)
gvalueSet_ Ptr GValue
gv (P.Just CellAreaContext
obj) = CellAreaContext -> (Ptr CellAreaContext -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr CellAreaContext
obj (Ptr GValue -> Ptr CellAreaContext -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe CellAreaContext)
gvalueGet_ Ptr GValue
gv = do
Ptr CellAreaContext
ptr <- Ptr GValue -> IO (Ptr CellAreaContext)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr CellAreaContext)
if Ptr CellAreaContext
ptr Ptr CellAreaContext -> Ptr CellAreaContext -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr CellAreaContext
forall a. Ptr a
FP.nullPtr
then CellAreaContext -> Maybe CellAreaContext
forall a. a -> Maybe a
P.Just (CellAreaContext -> Maybe CellAreaContext)
-> IO CellAreaContext -> IO (Maybe CellAreaContext)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr CellAreaContext -> CellAreaContext)
-> Ptr CellAreaContext -> IO CellAreaContext
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr CellAreaContext -> CellAreaContext
CellAreaContext Ptr CellAreaContext
ptr
else Maybe CellAreaContext -> IO (Maybe CellAreaContext)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe CellAreaContext
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveCellAreaContextMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveCellAreaContextMethod "allocate" o = CellAreaContextAllocateMethodInfo
ResolveCellAreaContextMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveCellAreaContextMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveCellAreaContextMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveCellAreaContextMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveCellAreaContextMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveCellAreaContextMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveCellAreaContextMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveCellAreaContextMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveCellAreaContextMethod "pushPreferredHeight" o = CellAreaContextPushPreferredHeightMethodInfo
ResolveCellAreaContextMethod "pushPreferredWidth" o = CellAreaContextPushPreferredWidthMethodInfo
ResolveCellAreaContextMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveCellAreaContextMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveCellAreaContextMethod "reset" o = CellAreaContextResetMethodInfo
ResolveCellAreaContextMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveCellAreaContextMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveCellAreaContextMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveCellAreaContextMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveCellAreaContextMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveCellAreaContextMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveCellAreaContextMethod "getAllocation" o = CellAreaContextGetAllocationMethodInfo
ResolveCellAreaContextMethod "getArea" o = CellAreaContextGetAreaMethodInfo
ResolveCellAreaContextMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveCellAreaContextMethod "getPreferredHeight" o = CellAreaContextGetPreferredHeightMethodInfo
ResolveCellAreaContextMethod "getPreferredHeightForWidth" o = CellAreaContextGetPreferredHeightForWidthMethodInfo
ResolveCellAreaContextMethod "getPreferredWidth" o = CellAreaContextGetPreferredWidthMethodInfo
ResolveCellAreaContextMethod "getPreferredWidthForHeight" o = CellAreaContextGetPreferredWidthForHeightMethodInfo
ResolveCellAreaContextMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveCellAreaContextMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveCellAreaContextMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveCellAreaContextMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveCellAreaContextMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveCellAreaContextMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveCellAreaContextMethod t CellAreaContext, O.OverloadedMethod info CellAreaContext p) => OL.IsLabel t (CellAreaContext -> 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 ~ ResolveCellAreaContextMethod t CellAreaContext, O.OverloadedMethod info CellAreaContext p, R.HasField t CellAreaContext p) => R.HasField t CellAreaContext p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveCellAreaContextMethod t CellAreaContext, O.OverloadedMethodInfo info CellAreaContext) => OL.IsLabel t (O.MethodProxy info CellAreaContext) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
getCellAreaContextArea :: (MonadIO m, IsCellAreaContext o) => o -> m Gtk.CellArea.CellArea
getCellAreaContextArea :: forall (m :: * -> *) o.
(MonadIO m, IsCellAreaContext o) =>
o -> m CellArea
getCellAreaContextArea o
obj = IO CellArea -> m CellArea
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO CellArea -> m CellArea) -> IO CellArea -> m CellArea
forall a b. (a -> b) -> a -> b
$ Text -> IO (Maybe CellArea) -> IO CellArea
forall a. HasCallStack => Text -> IO (Maybe a) -> IO a
checkUnexpectedNothing Text
"getCellAreaContextArea" (IO (Maybe CellArea) -> IO CellArea)
-> IO (Maybe CellArea) -> IO CellArea
forall a b. (a -> b) -> a -> b
$ o
-> String
-> (ManagedPtr CellArea -> CellArea)
-> IO (Maybe CellArea)
forall a b.
(GObject a, GObject b) =>
a -> String -> (ManagedPtr b -> b) -> IO (Maybe b)
B.Properties.getObjectPropertyObject o
obj String
"area" ManagedPtr CellArea -> CellArea
Gtk.CellArea.CellArea
constructCellAreaContextArea :: (IsCellAreaContext o, MIO.MonadIO m, Gtk.CellArea.IsCellArea a) => a -> m (GValueConstruct o)
constructCellAreaContextArea :: forall o (m :: * -> *) a.
(IsCellAreaContext o, MonadIO m, IsCellArea a) =>
a -> m (GValueConstruct o)
constructCellAreaContextArea a
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 a -> IO (GValueConstruct o)
forall a o.
GObject a =>
String -> Maybe a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyObject String
"area" (a -> Maybe a
forall a. a -> Maybe a
P.Just a
val)
#if defined(ENABLE_OVERLOADING)
data CellAreaContextAreaPropertyInfo
instance AttrInfo CellAreaContextAreaPropertyInfo where
type AttrAllowedOps CellAreaContextAreaPropertyInfo = '[ 'AttrConstruct, 'AttrGet, 'AttrClear]
type AttrBaseTypeConstraint CellAreaContextAreaPropertyInfo = IsCellAreaContext
type AttrSetTypeConstraint CellAreaContextAreaPropertyInfo = Gtk.CellArea.IsCellArea
type AttrTransferTypeConstraint CellAreaContextAreaPropertyInfo = Gtk.CellArea.IsCellArea
type AttrTransferType CellAreaContextAreaPropertyInfo = Gtk.CellArea.CellArea
type AttrGetType CellAreaContextAreaPropertyInfo = Gtk.CellArea.CellArea
type AttrLabel CellAreaContextAreaPropertyInfo = "area"
type AttrOrigin CellAreaContextAreaPropertyInfo = CellAreaContext
attrGet = getCellAreaContextArea
attrSet = undefined
attrTransfer _ v = do
unsafeCastTo Gtk.CellArea.CellArea v
attrConstruct = constructCellAreaContextArea
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.area"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#g:attr:area"
})
#endif
getCellAreaContextMinimumHeight :: (MonadIO m, IsCellAreaContext o) => o -> m Int32
getCellAreaContextMinimumHeight :: forall (m :: * -> *) o.
(MonadIO m, IsCellAreaContext o) =>
o -> m Int32
getCellAreaContextMinimumHeight o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"minimum-height"
#if defined(ENABLE_OVERLOADING)
data CellAreaContextMinimumHeightPropertyInfo
instance AttrInfo CellAreaContextMinimumHeightPropertyInfo where
type AttrAllowedOps CellAreaContextMinimumHeightPropertyInfo = '[ 'AttrGet]
type AttrBaseTypeConstraint CellAreaContextMinimumHeightPropertyInfo = IsCellAreaContext
type AttrSetTypeConstraint CellAreaContextMinimumHeightPropertyInfo = (~) ()
type AttrTransferTypeConstraint CellAreaContextMinimumHeightPropertyInfo = (~) ()
type AttrTransferType CellAreaContextMinimumHeightPropertyInfo = ()
type AttrGetType CellAreaContextMinimumHeightPropertyInfo = Int32
type AttrLabel CellAreaContextMinimumHeightPropertyInfo = "minimum-height"
type AttrOrigin CellAreaContextMinimumHeightPropertyInfo = CellAreaContext
attrGet = getCellAreaContextMinimumHeight
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.minimumHeight"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#g:attr:minimumHeight"
})
#endif
getCellAreaContextMinimumWidth :: (MonadIO m, IsCellAreaContext o) => o -> m Int32
getCellAreaContextMinimumWidth :: forall (m :: * -> *) o.
(MonadIO m, IsCellAreaContext o) =>
o -> m Int32
getCellAreaContextMinimumWidth o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"minimum-width"
#if defined(ENABLE_OVERLOADING)
data CellAreaContextMinimumWidthPropertyInfo
instance AttrInfo CellAreaContextMinimumWidthPropertyInfo where
type AttrAllowedOps CellAreaContextMinimumWidthPropertyInfo = '[ 'AttrGet]
type AttrBaseTypeConstraint CellAreaContextMinimumWidthPropertyInfo = IsCellAreaContext
type AttrSetTypeConstraint CellAreaContextMinimumWidthPropertyInfo = (~) ()
type AttrTransferTypeConstraint CellAreaContextMinimumWidthPropertyInfo = (~) ()
type AttrTransferType CellAreaContextMinimumWidthPropertyInfo = ()
type AttrGetType CellAreaContextMinimumWidthPropertyInfo = Int32
type AttrLabel CellAreaContextMinimumWidthPropertyInfo = "minimum-width"
type AttrOrigin CellAreaContextMinimumWidthPropertyInfo = CellAreaContext
attrGet = getCellAreaContextMinimumWidth
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.minimumWidth"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#g:attr:minimumWidth"
})
#endif
getCellAreaContextNaturalHeight :: (MonadIO m, IsCellAreaContext o) => o -> m Int32
getCellAreaContextNaturalHeight :: forall (m :: * -> *) o.
(MonadIO m, IsCellAreaContext o) =>
o -> m Int32
getCellAreaContextNaturalHeight o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"natural-height"
#if defined(ENABLE_OVERLOADING)
data CellAreaContextNaturalHeightPropertyInfo
instance AttrInfo CellAreaContextNaturalHeightPropertyInfo where
type AttrAllowedOps CellAreaContextNaturalHeightPropertyInfo = '[ 'AttrGet]
type AttrBaseTypeConstraint CellAreaContextNaturalHeightPropertyInfo = IsCellAreaContext
type AttrSetTypeConstraint CellAreaContextNaturalHeightPropertyInfo = (~) ()
type AttrTransferTypeConstraint CellAreaContextNaturalHeightPropertyInfo = (~) ()
type AttrTransferType CellAreaContextNaturalHeightPropertyInfo = ()
type AttrGetType CellAreaContextNaturalHeightPropertyInfo = Int32
type AttrLabel CellAreaContextNaturalHeightPropertyInfo = "natural-height"
type AttrOrigin CellAreaContextNaturalHeightPropertyInfo = CellAreaContext
attrGet = getCellAreaContextNaturalHeight
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.naturalHeight"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#g:attr:naturalHeight"
})
#endif
getCellAreaContextNaturalWidth :: (MonadIO m, IsCellAreaContext o) => o -> m Int32
getCellAreaContextNaturalWidth :: forall (m :: * -> *) o.
(MonadIO m, IsCellAreaContext o) =>
o -> m Int32
getCellAreaContextNaturalWidth o
obj = IO Int32 -> m Int32
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Int32 -> m Int32) -> IO Int32 -> m Int32
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Int32
forall a. GObject a => a -> String -> IO Int32
B.Properties.getObjectPropertyInt32 o
obj String
"natural-width"
#if defined(ENABLE_OVERLOADING)
data CellAreaContextNaturalWidthPropertyInfo
instance AttrInfo CellAreaContextNaturalWidthPropertyInfo where
type AttrAllowedOps CellAreaContextNaturalWidthPropertyInfo = '[ 'AttrGet]
type AttrBaseTypeConstraint CellAreaContextNaturalWidthPropertyInfo = IsCellAreaContext
type AttrSetTypeConstraint CellAreaContextNaturalWidthPropertyInfo = (~) ()
type AttrTransferTypeConstraint CellAreaContextNaturalWidthPropertyInfo = (~) ()
type AttrTransferType CellAreaContextNaturalWidthPropertyInfo = ()
type AttrGetType CellAreaContextNaturalWidthPropertyInfo = Int32
type AttrLabel CellAreaContextNaturalWidthPropertyInfo = "natural-width"
type AttrOrigin CellAreaContextNaturalWidthPropertyInfo = CellAreaContext
attrGet = getCellAreaContextNaturalWidth
attrSet = undefined
attrTransfer _ = undefined
attrConstruct = undefined
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.naturalWidth"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#g:attr:naturalWidth"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList CellAreaContext
type instance O.AttributeList CellAreaContext = CellAreaContextAttributeList
type CellAreaContextAttributeList = ('[ '("area", CellAreaContextAreaPropertyInfo), '("minimumHeight", CellAreaContextMinimumHeightPropertyInfo), '("minimumWidth", CellAreaContextMinimumWidthPropertyInfo), '("naturalHeight", CellAreaContextNaturalHeightPropertyInfo), '("naturalWidth", CellAreaContextNaturalWidthPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
cellAreaContextArea :: AttrLabelProxy "area"
cellAreaContextArea = AttrLabelProxy
cellAreaContextMinimumHeight :: AttrLabelProxy "minimumHeight"
cellAreaContextMinimumHeight = AttrLabelProxy
cellAreaContextMinimumWidth :: AttrLabelProxy "minimumWidth"
cellAreaContextMinimumWidth = AttrLabelProxy
cellAreaContextNaturalHeight :: AttrLabelProxy "naturalHeight"
cellAreaContextNaturalHeight = AttrLabelProxy
cellAreaContextNaturalWidth :: AttrLabelProxy "naturalWidth"
cellAreaContextNaturalWidth = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList CellAreaContext = CellAreaContextSignalList
type CellAreaContextSignalList = ('[ '("notify", GObject.Object.ObjectNotifySignalInfo)] :: [(Symbol, DK.Type)])
#endif
foreign import ccall "gtk_cell_area_context_allocate" gtk_cell_area_context_allocate ::
Ptr CellAreaContext ->
Int32 ->
Int32 ->
IO ()
cellAreaContextAllocate ::
(B.CallStack.HasCallStack, MonadIO m, IsCellAreaContext a) =>
a
-> Int32
-> Int32
-> m ()
cellAreaContextAllocate :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCellAreaContext a) =>
a -> Int32 -> Int32 -> m ()
cellAreaContextAllocate a
context Int32
width Int32
height = 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 CellAreaContext
context' <- a -> IO (Ptr CellAreaContext)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
context
Ptr CellAreaContext -> Int32 -> Int32 -> IO ()
gtk_cell_area_context_allocate Ptr CellAreaContext
context' Int32
width Int32
height
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
context
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data CellAreaContextAllocateMethodInfo
instance (signature ~ (Int32 -> Int32 -> m ()), MonadIO m, IsCellAreaContext a) => O.OverloadedMethod CellAreaContextAllocateMethodInfo a signature where
overloadedMethod = cellAreaContextAllocate
instance O.OverloadedMethodInfo CellAreaContextAllocateMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.cellAreaContextAllocate",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#v:cellAreaContextAllocate"
})
#endif
foreign import ccall "gtk_cell_area_context_get_allocation" gtk_cell_area_context_get_allocation ::
Ptr CellAreaContext ->
Ptr Int32 ->
Ptr Int32 ->
IO ()
cellAreaContextGetAllocation ::
(B.CallStack.HasCallStack, MonadIO m, IsCellAreaContext a) =>
a
-> m ((Int32, Int32))
cellAreaContextGetAllocation :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCellAreaContext a) =>
a -> m (Int32, Int32)
cellAreaContextGetAllocation a
context = IO (Int32, Int32) -> m (Int32, Int32)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Int32, Int32) -> m (Int32, Int32))
-> IO (Int32, Int32) -> m (Int32, Int32)
forall a b. (a -> b) -> a -> b
$ do
Ptr CellAreaContext
context' <- a -> IO (Ptr CellAreaContext)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
context
Ptr Int32
width <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr Int32
height <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr CellAreaContext -> Ptr Int32 -> Ptr Int32 -> IO ()
gtk_cell_area_context_get_allocation Ptr CellAreaContext
context' Ptr Int32
width Ptr Int32
height
Int32
width' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
width
Int32
height' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
height
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
context
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
width
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
height
(Int32, Int32) -> IO (Int32, Int32)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (Int32
width', Int32
height')
#if defined(ENABLE_OVERLOADING)
data CellAreaContextGetAllocationMethodInfo
instance (signature ~ (m ((Int32, Int32))), MonadIO m, IsCellAreaContext a) => O.OverloadedMethod CellAreaContextGetAllocationMethodInfo a signature where
overloadedMethod = cellAreaContextGetAllocation
instance O.OverloadedMethodInfo CellAreaContextGetAllocationMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.cellAreaContextGetAllocation",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#v:cellAreaContextGetAllocation"
})
#endif
foreign import ccall "gtk_cell_area_context_get_area" gtk_cell_area_context_get_area ::
Ptr CellAreaContext ->
IO (Ptr Gtk.CellArea.CellArea)
cellAreaContextGetArea ::
(B.CallStack.HasCallStack, MonadIO m, IsCellAreaContext a) =>
a
-> m Gtk.CellArea.CellArea
cellAreaContextGetArea :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCellAreaContext a) =>
a -> m CellArea
cellAreaContextGetArea a
context = IO CellArea -> m CellArea
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CellArea -> m CellArea) -> IO CellArea -> m CellArea
forall a b. (a -> b) -> a -> b
$ do
Ptr CellAreaContext
context' <- a -> IO (Ptr CellAreaContext)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
context
Ptr CellArea
result <- Ptr CellAreaContext -> IO (Ptr CellArea)
gtk_cell_area_context_get_area Ptr CellAreaContext
context'
Text -> Ptr CellArea -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"cellAreaContextGetArea" Ptr CellArea
result
CellArea
result' <- ((ManagedPtr CellArea -> CellArea) -> Ptr CellArea -> IO CellArea
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr CellArea -> CellArea
Gtk.CellArea.CellArea) Ptr CellArea
result
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
context
CellArea -> IO CellArea
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return CellArea
result'
#if defined(ENABLE_OVERLOADING)
data CellAreaContextGetAreaMethodInfo
instance (signature ~ (m Gtk.CellArea.CellArea), MonadIO m, IsCellAreaContext a) => O.OverloadedMethod CellAreaContextGetAreaMethodInfo a signature where
overloadedMethod = cellAreaContextGetArea
instance O.OverloadedMethodInfo CellAreaContextGetAreaMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.cellAreaContextGetArea",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#v:cellAreaContextGetArea"
})
#endif
foreign import ccall "gtk_cell_area_context_get_preferred_height" gtk_cell_area_context_get_preferred_height ::
Ptr CellAreaContext ->
Ptr Int32 ->
Ptr Int32 ->
IO ()
cellAreaContextGetPreferredHeight ::
(B.CallStack.HasCallStack, MonadIO m, IsCellAreaContext a) =>
a
-> m ((Int32, Int32))
cellAreaContextGetPreferredHeight :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCellAreaContext a) =>
a -> m (Int32, Int32)
cellAreaContextGetPreferredHeight a
context = IO (Int32, Int32) -> m (Int32, Int32)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Int32, Int32) -> m (Int32, Int32))
-> IO (Int32, Int32) -> m (Int32, Int32)
forall a b. (a -> b) -> a -> b
$ do
Ptr CellAreaContext
context' <- a -> IO (Ptr CellAreaContext)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
context
Ptr Int32
minimumHeight <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr Int32
naturalHeight <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr CellAreaContext -> Ptr Int32 -> Ptr Int32 -> IO ()
gtk_cell_area_context_get_preferred_height Ptr CellAreaContext
context' Ptr Int32
minimumHeight Ptr Int32
naturalHeight
Int32
minimumHeight' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
minimumHeight
Int32
naturalHeight' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
naturalHeight
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
context
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
minimumHeight
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
naturalHeight
(Int32, Int32) -> IO (Int32, Int32)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (Int32
minimumHeight', Int32
naturalHeight')
#if defined(ENABLE_OVERLOADING)
data CellAreaContextGetPreferredHeightMethodInfo
instance (signature ~ (m ((Int32, Int32))), MonadIO m, IsCellAreaContext a) => O.OverloadedMethod CellAreaContextGetPreferredHeightMethodInfo a signature where
overloadedMethod = cellAreaContextGetPreferredHeight
instance O.OverloadedMethodInfo CellAreaContextGetPreferredHeightMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.cellAreaContextGetPreferredHeight",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#v:cellAreaContextGetPreferredHeight"
})
#endif
foreign import ccall "gtk_cell_area_context_get_preferred_height_for_width" gtk_cell_area_context_get_preferred_height_for_width ::
Ptr CellAreaContext ->
Int32 ->
Ptr Int32 ->
Ptr Int32 ->
IO ()
cellAreaContextGetPreferredHeightForWidth ::
(B.CallStack.HasCallStack, MonadIO m, IsCellAreaContext a) =>
a
-> Int32
-> m ((Int32, Int32))
cellAreaContextGetPreferredHeightForWidth :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCellAreaContext a) =>
a -> Int32 -> m (Int32, Int32)
cellAreaContextGetPreferredHeightForWidth a
context Int32
width = IO (Int32, Int32) -> m (Int32, Int32)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Int32, Int32) -> m (Int32, Int32))
-> IO (Int32, Int32) -> m (Int32, Int32)
forall a b. (a -> b) -> a -> b
$ do
Ptr CellAreaContext
context' <- a -> IO (Ptr CellAreaContext)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
context
Ptr Int32
minimumHeight <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr Int32
naturalHeight <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr CellAreaContext -> Int32 -> Ptr Int32 -> Ptr Int32 -> IO ()
gtk_cell_area_context_get_preferred_height_for_width Ptr CellAreaContext
context' Int32
width Ptr Int32
minimumHeight Ptr Int32
naturalHeight
Int32
minimumHeight' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
minimumHeight
Int32
naturalHeight' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
naturalHeight
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
context
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
minimumHeight
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
naturalHeight
(Int32, Int32) -> IO (Int32, Int32)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (Int32
minimumHeight', Int32
naturalHeight')
#if defined(ENABLE_OVERLOADING)
data CellAreaContextGetPreferredHeightForWidthMethodInfo
instance (signature ~ (Int32 -> m ((Int32, Int32))), MonadIO m, IsCellAreaContext a) => O.OverloadedMethod CellAreaContextGetPreferredHeightForWidthMethodInfo a signature where
overloadedMethod = cellAreaContextGetPreferredHeightForWidth
instance O.OverloadedMethodInfo CellAreaContextGetPreferredHeightForWidthMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.cellAreaContextGetPreferredHeightForWidth",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#v:cellAreaContextGetPreferredHeightForWidth"
})
#endif
foreign import ccall "gtk_cell_area_context_get_preferred_width" gtk_cell_area_context_get_preferred_width ::
Ptr CellAreaContext ->
Ptr Int32 ->
Ptr Int32 ->
IO ()
cellAreaContextGetPreferredWidth ::
(B.CallStack.HasCallStack, MonadIO m, IsCellAreaContext a) =>
a
-> m ((Int32, Int32))
cellAreaContextGetPreferredWidth :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCellAreaContext a) =>
a -> m (Int32, Int32)
cellAreaContextGetPreferredWidth a
context = IO (Int32, Int32) -> m (Int32, Int32)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Int32, Int32) -> m (Int32, Int32))
-> IO (Int32, Int32) -> m (Int32, Int32)
forall a b. (a -> b) -> a -> b
$ do
Ptr CellAreaContext
context' <- a -> IO (Ptr CellAreaContext)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
context
Ptr Int32
minimumWidth <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr Int32
naturalWidth <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr CellAreaContext -> Ptr Int32 -> Ptr Int32 -> IO ()
gtk_cell_area_context_get_preferred_width Ptr CellAreaContext
context' Ptr Int32
minimumWidth Ptr Int32
naturalWidth
Int32
minimumWidth' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
minimumWidth
Int32
naturalWidth' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
naturalWidth
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
context
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
minimumWidth
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
naturalWidth
(Int32, Int32) -> IO (Int32, Int32)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (Int32
minimumWidth', Int32
naturalWidth')
#if defined(ENABLE_OVERLOADING)
data CellAreaContextGetPreferredWidthMethodInfo
instance (signature ~ (m ((Int32, Int32))), MonadIO m, IsCellAreaContext a) => O.OverloadedMethod CellAreaContextGetPreferredWidthMethodInfo a signature where
overloadedMethod = cellAreaContextGetPreferredWidth
instance O.OverloadedMethodInfo CellAreaContextGetPreferredWidthMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.cellAreaContextGetPreferredWidth",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#v:cellAreaContextGetPreferredWidth"
})
#endif
foreign import ccall "gtk_cell_area_context_get_preferred_width_for_height" gtk_cell_area_context_get_preferred_width_for_height ::
Ptr CellAreaContext ->
Int32 ->
Ptr Int32 ->
Ptr Int32 ->
IO ()
cellAreaContextGetPreferredWidthForHeight ::
(B.CallStack.HasCallStack, MonadIO m, IsCellAreaContext a) =>
a
-> Int32
-> m ((Int32, Int32))
cellAreaContextGetPreferredWidthForHeight :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCellAreaContext a) =>
a -> Int32 -> m (Int32, Int32)
cellAreaContextGetPreferredWidthForHeight a
context Int32
height = IO (Int32, Int32) -> m (Int32, Int32)
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Int32, Int32) -> m (Int32, Int32))
-> IO (Int32, Int32) -> m (Int32, Int32)
forall a b. (a -> b) -> a -> b
$ do
Ptr CellAreaContext
context' <- a -> IO (Ptr CellAreaContext)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
context
Ptr Int32
minimumWidth <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr Int32
naturalWidth <- IO (Ptr Int32)
forall a. Storable a => IO (Ptr a)
allocMem :: IO (Ptr Int32)
Ptr CellAreaContext -> Int32 -> Ptr Int32 -> Ptr Int32 -> IO ()
gtk_cell_area_context_get_preferred_width_for_height Ptr CellAreaContext
context' Int32
height Ptr Int32
minimumWidth Ptr Int32
naturalWidth
Int32
minimumWidth' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
minimumWidth
Int32
naturalWidth' <- Ptr Int32 -> IO Int32
forall a. Storable a => Ptr a -> IO a
peek Ptr Int32
naturalWidth
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
context
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
minimumWidth
Ptr Int32 -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr Int32
naturalWidth
(Int32, Int32) -> IO (Int32, Int32)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (Int32
minimumWidth', Int32
naturalWidth')
#if defined(ENABLE_OVERLOADING)
data CellAreaContextGetPreferredWidthForHeightMethodInfo
instance (signature ~ (Int32 -> m ((Int32, Int32))), MonadIO m, IsCellAreaContext a) => O.OverloadedMethod CellAreaContextGetPreferredWidthForHeightMethodInfo a signature where
overloadedMethod = cellAreaContextGetPreferredWidthForHeight
instance O.OverloadedMethodInfo CellAreaContextGetPreferredWidthForHeightMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.cellAreaContextGetPreferredWidthForHeight",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#v:cellAreaContextGetPreferredWidthForHeight"
})
#endif
foreign import ccall "gtk_cell_area_context_push_preferred_height" gtk_cell_area_context_push_preferred_height ::
Ptr CellAreaContext ->
Int32 ->
Int32 ->
IO ()
cellAreaContextPushPreferredHeight ::
(B.CallStack.HasCallStack, MonadIO m, IsCellAreaContext a) =>
a
-> Int32
-> Int32
-> m ()
cellAreaContextPushPreferredHeight :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCellAreaContext a) =>
a -> Int32 -> Int32 -> m ()
cellAreaContextPushPreferredHeight a
context Int32
minimumHeight Int32
naturalHeight = 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 CellAreaContext
context' <- a -> IO (Ptr CellAreaContext)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
context
Ptr CellAreaContext -> Int32 -> Int32 -> IO ()
gtk_cell_area_context_push_preferred_height Ptr CellAreaContext
context' Int32
minimumHeight Int32
naturalHeight
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
context
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data CellAreaContextPushPreferredHeightMethodInfo
instance (signature ~ (Int32 -> Int32 -> m ()), MonadIO m, IsCellAreaContext a) => O.OverloadedMethod CellAreaContextPushPreferredHeightMethodInfo a signature where
overloadedMethod = cellAreaContextPushPreferredHeight
instance O.OverloadedMethodInfo CellAreaContextPushPreferredHeightMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.cellAreaContextPushPreferredHeight",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#v:cellAreaContextPushPreferredHeight"
})
#endif
foreign import ccall "gtk_cell_area_context_push_preferred_width" gtk_cell_area_context_push_preferred_width ::
Ptr CellAreaContext ->
Int32 ->
Int32 ->
IO ()
cellAreaContextPushPreferredWidth ::
(B.CallStack.HasCallStack, MonadIO m, IsCellAreaContext a) =>
a
-> Int32
-> Int32
-> m ()
cellAreaContextPushPreferredWidth :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCellAreaContext a) =>
a -> Int32 -> Int32 -> m ()
cellAreaContextPushPreferredWidth a
context Int32
minimumWidth Int32
naturalWidth = 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 CellAreaContext
context' <- a -> IO (Ptr CellAreaContext)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
context
Ptr CellAreaContext -> Int32 -> Int32 -> IO ()
gtk_cell_area_context_push_preferred_width Ptr CellAreaContext
context' Int32
minimumWidth Int32
naturalWidth
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
context
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data CellAreaContextPushPreferredWidthMethodInfo
instance (signature ~ (Int32 -> Int32 -> m ()), MonadIO m, IsCellAreaContext a) => O.OverloadedMethod CellAreaContextPushPreferredWidthMethodInfo a signature where
overloadedMethod = cellAreaContextPushPreferredWidth
instance O.OverloadedMethodInfo CellAreaContextPushPreferredWidthMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.cellAreaContextPushPreferredWidth",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#v:cellAreaContextPushPreferredWidth"
})
#endif
foreign import ccall "gtk_cell_area_context_reset" gtk_cell_area_context_reset ::
Ptr CellAreaContext ->
IO ()
cellAreaContextReset ::
(B.CallStack.HasCallStack, MonadIO m, IsCellAreaContext a) =>
a
-> m ()
cellAreaContextReset :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsCellAreaContext a) =>
a -> m ()
cellAreaContextReset a
context = 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 CellAreaContext
context' <- a -> IO (Ptr CellAreaContext)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
context
Ptr CellAreaContext -> IO ()
gtk_cell_area_context_reset Ptr CellAreaContext
context'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
context
() -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data CellAreaContextResetMethodInfo
instance (signature ~ (m ()), MonadIO m, IsCellAreaContext a) => O.OverloadedMethod CellAreaContextResetMethodInfo a signature where
overloadedMethod = cellAreaContextReset
instance O.OverloadedMethodInfo CellAreaContextResetMethodInfo a where
overloadedMethodInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.CellAreaContext.cellAreaContextReset",
O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-3.0.43/docs/GI-Gtk-Objects-CellAreaContext.html#v:cellAreaContextReset"
})
#endif