{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Objects.ListBase
(
ListBase(..) ,
IsListBase ,
toListBase ,
#if defined(ENABLE_OVERLOADING)
ResolveListBaseMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
ListBaseOrientationPropertyInfo ,
#endif
constructListBaseOrientation ,
getListBaseOrientation ,
#if defined(ENABLE_OVERLOADING)
listBaseOrientation ,
#endif
setListBaseOrientation ,
) 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.Cairo.Structs.Context as Cairo.Context
import qualified GI.Cairo.Structs.FontOptions as Cairo.FontOptions
import qualified GI.GLib.Callbacks as GLib.Callbacks
import qualified GI.GLib.Structs.Bytes as GLib.Bytes
import qualified GI.GObject.Objects.Object as GObject.Object
import qualified GI.Gdk.Flags as Gdk.Flags
import qualified GI.Gdk.Interfaces.Paintable as Gdk.Paintable
import qualified GI.Gdk.Objects.Clipboard as Gdk.Clipboard
import qualified GI.Gdk.Objects.Cursor as Gdk.Cursor
import qualified GI.Gdk.Objects.Device as Gdk.Device
import qualified GI.Gdk.Objects.Display as Gdk.Display
import qualified GI.Gdk.Objects.Event as Gdk.Event
import qualified GI.Gdk.Objects.FrameClock as Gdk.FrameClock
import qualified GI.Gdk.Objects.Snapshot as Gdk.Snapshot
import qualified GI.Gdk.Objects.Surface as Gdk.Surface
import qualified GI.Gdk.Objects.Texture as Gdk.Texture
import qualified GI.Gdk.Structs.RGBA as Gdk.RGBA
import qualified GI.Gdk.Structs.Rectangle as Gdk.Rectangle
import qualified GI.Gio.Interfaces.ActionGroup as Gio.ActionGroup
import qualified GI.Gio.Interfaces.Icon as Gio.Icon
import qualified GI.Gio.Interfaces.ListModel as Gio.ListModel
import qualified GI.Graphene.Structs.Matrix as Graphene.Matrix
import qualified GI.Graphene.Structs.Point as Graphene.Point
import qualified GI.Graphene.Structs.Point3D as Graphene.Point3D
import qualified GI.Graphene.Structs.Rect as Graphene.Rect
import qualified GI.Graphene.Structs.Size as Graphene.Size
import qualified GI.Graphene.Structs.Vec3 as Graphene.Vec3
import qualified GI.Graphene.Structs.Vec4 as Graphene.Vec4
import qualified GI.Gsk.Enums as Gsk.Enums
import qualified GI.Gsk.Objects.GLShader as Gsk.GLShader
import qualified GI.Gsk.Objects.RenderNode as Gsk.RenderNode
import qualified GI.Gsk.Objects.Renderer as Gsk.Renderer
import qualified GI.Gsk.Structs.ColorStop as Gsk.ColorStop
import qualified GI.Gsk.Structs.Path as Gsk.Path
import qualified GI.Gsk.Structs.RoundedRect as Gsk.RoundedRect
import qualified GI.Gsk.Structs.Shadow as Gsk.Shadow
import qualified GI.Gsk.Structs.Stroke as Gsk.Stroke
import qualified GI.Gsk.Structs.Transform as Gsk.Transform
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.Accessible as Gtk.Accessible
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.Interfaces.Native as Gtk.Native
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Orientable as Gtk.Orientable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Root as Gtk.Root
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Scrollable as Gtk.Scrollable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.StyleProvider as Gtk.StyleProvider
import {-# SOURCE #-} qualified GI.Gtk.Objects.ATContext as Gtk.ATContext
import {-# SOURCE #-} qualified GI.Gtk.Objects.Adjustment as Gtk.Adjustment
import {-# SOURCE #-} qualified GI.Gtk.Objects.EventController as Gtk.EventController
import {-# SOURCE #-} qualified GI.Gtk.Objects.LayoutChild as Gtk.LayoutChild
import {-# SOURCE #-} qualified GI.Gtk.Objects.LayoutManager as Gtk.LayoutManager
import {-# SOURCE #-} qualified GI.Gtk.Objects.Settings as Gtk.Settings
import {-# SOURCE #-} qualified GI.Gtk.Objects.Snapshot as Gtk.Snapshot
import {-# SOURCE #-} qualified GI.Gtk.Objects.StyleContext as Gtk.StyleContext
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.Structs.Border as Gtk.Border
import {-# SOURCE #-} qualified GI.Gtk.Structs.Requisition as Gtk.Requisition
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
#else
import qualified GI.GObject.Objects.Object as GObject.Object
import {-# SOURCE #-} qualified GI.Gtk.Enums as Gtk.Enums
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Accessible as Gtk.Accessible
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.Interfaces.Orientable as Gtk.Orientable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.Scrollable as Gtk.Scrollable
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
#endif
newtype ListBase = ListBase (SP.ManagedPtr ListBase)
deriving (ListBase -> ListBase -> Bool
(ListBase -> ListBase -> Bool)
-> (ListBase -> ListBase -> Bool) -> Eq ListBase
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: ListBase -> ListBase -> Bool
== :: ListBase -> ListBase -> Bool
$c/= :: ListBase -> ListBase -> Bool
/= :: ListBase -> ListBase -> Bool
Eq)
instance SP.ManagedPtrNewtype ListBase where
toManagedPtr :: ListBase -> ManagedPtr ListBase
toManagedPtr (ListBase ManagedPtr ListBase
p) = ManagedPtr ListBase
p
foreign import ccall "gtk_list_base_get_type"
c_gtk_list_base_get_type :: IO B.Types.GType
instance B.Types.TypedObject ListBase where
glibType :: IO GType
glibType = IO GType
c_gtk_list_base_get_type
instance B.Types.GObject ListBase
class (SP.GObject o, O.IsDescendantOf ListBase o) => IsListBase o
instance (SP.GObject o, O.IsDescendantOf ListBase o) => IsListBase o
instance O.HasParentTypes ListBase
type instance O.ParentTypes ListBase = '[Gtk.Widget.Widget, GObject.Object.Object, Gtk.Accessible.Accessible, Gtk.Buildable.Buildable, Gtk.ConstraintTarget.ConstraintTarget, Gtk.Orientable.Orientable, Gtk.Scrollable.Scrollable]
toListBase :: (MIO.MonadIO m, IsListBase o) => o -> m ListBase
toListBase :: forall (m :: * -> *) o.
(MonadIO m, IsListBase o) =>
o -> m ListBase
toListBase = IO ListBase -> m ListBase
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO ListBase -> m ListBase)
-> (o -> IO ListBase) -> o -> m ListBase
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr ListBase -> ListBase) -> o -> IO ListBase
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr ListBase -> ListBase
ListBase
instance B.GValue.IsGValue (Maybe ListBase) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gtk_list_base_get_type
gvalueSet_ :: Ptr GValue -> Maybe ListBase -> IO ()
gvalueSet_ Ptr GValue
gv Maybe ListBase
P.Nothing = Ptr GValue -> Ptr ListBase -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr ListBase
forall a. Ptr a
FP.nullPtr :: FP.Ptr ListBase)
gvalueSet_ Ptr GValue
gv (P.Just ListBase
obj) = ListBase -> (Ptr ListBase -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr ListBase
obj (Ptr GValue -> Ptr ListBase -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe ListBase)
gvalueGet_ Ptr GValue
gv = do
Ptr ListBase
ptr <- Ptr GValue -> IO (Ptr ListBase)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr ListBase)
if Ptr ListBase
ptr Ptr ListBase -> Ptr ListBase -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr ListBase
forall a. Ptr a
FP.nullPtr
then ListBase -> Maybe ListBase
forall a. a -> Maybe a
P.Just (ListBase -> Maybe ListBase) -> IO ListBase -> IO (Maybe ListBase)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr ListBase -> ListBase) -> Ptr ListBase -> IO ListBase
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr ListBase -> ListBase
ListBase Ptr ListBase
ptr
else Maybe ListBase -> IO (Maybe ListBase)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe ListBase
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveListBaseMethod (t :: Symbol) (o :: DK.Type) :: DK.Type where
ResolveListBaseMethod "actionSetEnabled" o = Gtk.Widget.WidgetActionSetEnabledMethodInfo
ResolveListBaseMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolveListBaseMethod "activateAction" o = Gtk.Widget.WidgetActivateActionMethodInfo
ResolveListBaseMethod "activateDefault" o = Gtk.Widget.WidgetActivateDefaultMethodInfo
ResolveListBaseMethod "addController" o = Gtk.Widget.WidgetAddControllerMethodInfo
ResolveListBaseMethod "addCssClass" o = Gtk.Widget.WidgetAddCssClassMethodInfo
ResolveListBaseMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveListBaseMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveListBaseMethod "allocate" o = Gtk.Widget.WidgetAllocateMethodInfo
ResolveListBaseMethod "announce" o = Gtk.Accessible.AccessibleAnnounceMethodInfo
ResolveListBaseMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveListBaseMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveListBaseMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveListBaseMethod "computeBounds" o = Gtk.Widget.WidgetComputeBoundsMethodInfo
ResolveListBaseMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveListBaseMethod "computePoint" o = Gtk.Widget.WidgetComputePointMethodInfo
ResolveListBaseMethod "computeTransform" o = Gtk.Widget.WidgetComputeTransformMethodInfo
ResolveListBaseMethod "contains" o = Gtk.Widget.WidgetContainsMethodInfo
ResolveListBaseMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveListBaseMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveListBaseMethod "disposeTemplate" o = Gtk.Widget.WidgetDisposeTemplateMethodInfo
ResolveListBaseMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveListBaseMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveListBaseMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveListBaseMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveListBaseMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveListBaseMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveListBaseMethod "hasCssClass" o = Gtk.Widget.WidgetHasCssClassMethodInfo
ResolveListBaseMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveListBaseMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveListBaseMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveListBaseMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveListBaseMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveListBaseMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveListBaseMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveListBaseMethod "insertAfter" o = Gtk.Widget.WidgetInsertAfterMethodInfo
ResolveListBaseMethod "insertBefore" o = Gtk.Widget.WidgetInsertBeforeMethodInfo
ResolveListBaseMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveListBaseMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveListBaseMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveListBaseMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveListBaseMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveListBaseMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveListBaseMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveListBaseMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveListBaseMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveListBaseMethod "measure" o = Gtk.Widget.WidgetMeasureMethodInfo
ResolveListBaseMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveListBaseMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveListBaseMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveListBaseMethod "observeChildren" o = Gtk.Widget.WidgetObserveChildrenMethodInfo
ResolveListBaseMethod "observeControllers" o = Gtk.Widget.WidgetObserveControllersMethodInfo
ResolveListBaseMethod "pick" o = Gtk.Widget.WidgetPickMethodInfo
ResolveListBaseMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveListBaseMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveListBaseMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveListBaseMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveListBaseMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveListBaseMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveListBaseMethod "removeController" o = Gtk.Widget.WidgetRemoveControllerMethodInfo
ResolveListBaseMethod "removeCssClass" o = Gtk.Widget.WidgetRemoveCssClassMethodInfo
ResolveListBaseMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveListBaseMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveListBaseMethod "resetProperty" o = Gtk.Accessible.AccessibleResetPropertyMethodInfo
ResolveListBaseMethod "resetRelation" o = Gtk.Accessible.AccessibleResetRelationMethodInfo
ResolveListBaseMethod "resetState" o = Gtk.Accessible.AccessibleResetStateMethodInfo
ResolveListBaseMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveListBaseMethod "shouldLayout" o = Gtk.Widget.WidgetShouldLayoutMethodInfo
ResolveListBaseMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveListBaseMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveListBaseMethod "snapshotChild" o = Gtk.Widget.WidgetSnapshotChildMethodInfo
ResolveListBaseMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveListBaseMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveListBaseMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveListBaseMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveListBaseMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveListBaseMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveListBaseMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveListBaseMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveListBaseMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveListBaseMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveListBaseMethod "updateNextAccessibleSibling" o = Gtk.Accessible.AccessibleUpdateNextAccessibleSiblingMethodInfo
ResolveListBaseMethod "updateProperty" o = Gtk.Accessible.AccessibleUpdatePropertyMethodInfo
ResolveListBaseMethod "updateRelation" o = Gtk.Accessible.AccessibleUpdateRelationMethodInfo
ResolveListBaseMethod "updateState" o = Gtk.Accessible.AccessibleUpdateStateMethodInfo
ResolveListBaseMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveListBaseMethod "getAccessibleParent" o = Gtk.Accessible.AccessibleGetAccessibleParentMethodInfo
ResolveListBaseMethod "getAccessibleRole" o = Gtk.Accessible.AccessibleGetAccessibleRoleMethodInfo
ResolveListBaseMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveListBaseMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveListBaseMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveListBaseMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveListBaseMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveListBaseMethod "getAtContext" o = Gtk.Accessible.AccessibleGetAtContextMethodInfo
ResolveListBaseMethod "getBaseline" o = Gtk.Widget.WidgetGetBaselineMethodInfo
ResolveListBaseMethod "getBorder" o = Gtk.Scrollable.ScrollableGetBorderMethodInfo
ResolveListBaseMethod "getBounds" o = Gtk.Accessible.AccessibleGetBoundsMethodInfo
ResolveListBaseMethod "getBuildableId" o = Gtk.Buildable.BuildableGetBuildableIdMethodInfo
ResolveListBaseMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveListBaseMethod "getCanTarget" o = Gtk.Widget.WidgetGetCanTargetMethodInfo
ResolveListBaseMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveListBaseMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveListBaseMethod "getColor" o = Gtk.Widget.WidgetGetColorMethodInfo
ResolveListBaseMethod "getCssClasses" o = Gtk.Widget.WidgetGetCssClassesMethodInfo
ResolveListBaseMethod "getCssName" o = Gtk.Widget.WidgetGetCssNameMethodInfo
ResolveListBaseMethod "getCursor" o = Gtk.Widget.WidgetGetCursorMethodInfo
ResolveListBaseMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveListBaseMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveListBaseMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveListBaseMethod "getFirstAccessibleChild" o = Gtk.Accessible.AccessibleGetFirstAccessibleChildMethodInfo
ResolveListBaseMethod "getFirstChild" o = Gtk.Widget.WidgetGetFirstChildMethodInfo
ResolveListBaseMethod "getFocusChild" o = Gtk.Widget.WidgetGetFocusChildMethodInfo
ResolveListBaseMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveListBaseMethod "getFocusable" o = Gtk.Widget.WidgetGetFocusableMethodInfo
ResolveListBaseMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveListBaseMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveListBaseMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveListBaseMethod "getHadjustment" o = Gtk.Scrollable.ScrollableGetHadjustmentMethodInfo
ResolveListBaseMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveListBaseMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveListBaseMethod "getHeight" o = Gtk.Widget.WidgetGetHeightMethodInfo
ResolveListBaseMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveListBaseMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveListBaseMethod "getHscrollPolicy" o = Gtk.Scrollable.ScrollableGetHscrollPolicyMethodInfo
ResolveListBaseMethod "getLastChild" o = Gtk.Widget.WidgetGetLastChildMethodInfo
ResolveListBaseMethod "getLayoutManager" o = Gtk.Widget.WidgetGetLayoutManagerMethodInfo
ResolveListBaseMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveListBaseMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveListBaseMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveListBaseMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveListBaseMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveListBaseMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveListBaseMethod "getNative" o = Gtk.Widget.WidgetGetNativeMethodInfo
ResolveListBaseMethod "getNextAccessibleSibling" o = Gtk.Accessible.AccessibleGetNextAccessibleSiblingMethodInfo
ResolveListBaseMethod "getNextSibling" o = Gtk.Widget.WidgetGetNextSiblingMethodInfo
ResolveListBaseMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveListBaseMethod "getOrientation" o = Gtk.Orientable.OrientableGetOrientationMethodInfo
ResolveListBaseMethod "getOverflow" o = Gtk.Widget.WidgetGetOverflowMethodInfo
ResolveListBaseMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveListBaseMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveListBaseMethod "getPlatformState" o = Gtk.Accessible.AccessibleGetPlatformStateMethodInfo
ResolveListBaseMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveListBaseMethod "getPrevSibling" o = Gtk.Widget.WidgetGetPrevSiblingMethodInfo
ResolveListBaseMethod "getPrimaryClipboard" o = Gtk.Widget.WidgetGetPrimaryClipboardMethodInfo
ResolveListBaseMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveListBaseMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveListBaseMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveListBaseMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveListBaseMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveListBaseMethod "getRoot" o = Gtk.Widget.WidgetGetRootMethodInfo
ResolveListBaseMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveListBaseMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveListBaseMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveListBaseMethod "getSize" o = Gtk.Widget.WidgetGetSizeMethodInfo
ResolveListBaseMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveListBaseMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveListBaseMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveListBaseMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveListBaseMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveListBaseMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveListBaseMethod "getVadjustment" o = Gtk.Scrollable.ScrollableGetVadjustmentMethodInfo
ResolveListBaseMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveListBaseMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveListBaseMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveListBaseMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveListBaseMethod "getVscrollPolicy" o = Gtk.Scrollable.ScrollableGetVscrollPolicyMethodInfo
ResolveListBaseMethod "getWidth" o = Gtk.Widget.WidgetGetWidthMethodInfo
ResolveListBaseMethod "setAccessibleParent" o = Gtk.Accessible.AccessibleSetAccessibleParentMethodInfo
ResolveListBaseMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveListBaseMethod "setCanTarget" o = Gtk.Widget.WidgetSetCanTargetMethodInfo
ResolveListBaseMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveListBaseMethod "setCssClasses" o = Gtk.Widget.WidgetSetCssClassesMethodInfo
ResolveListBaseMethod "setCursor" o = Gtk.Widget.WidgetSetCursorMethodInfo
ResolveListBaseMethod "setCursorFromName" o = Gtk.Widget.WidgetSetCursorFromNameMethodInfo
ResolveListBaseMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveListBaseMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveListBaseMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveListBaseMethod "setFocusChild" o = Gtk.Widget.WidgetSetFocusChildMethodInfo
ResolveListBaseMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveListBaseMethod "setFocusable" o = Gtk.Widget.WidgetSetFocusableMethodInfo
ResolveListBaseMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveListBaseMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveListBaseMethod "setHadjustment" o = Gtk.Scrollable.ScrollableSetHadjustmentMethodInfo
ResolveListBaseMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveListBaseMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveListBaseMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveListBaseMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveListBaseMethod "setHscrollPolicy" o = Gtk.Scrollable.ScrollableSetHscrollPolicyMethodInfo
ResolveListBaseMethod "setLayoutManager" o = Gtk.Widget.WidgetSetLayoutManagerMethodInfo
ResolveListBaseMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveListBaseMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveListBaseMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveListBaseMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveListBaseMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveListBaseMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveListBaseMethod "setOrientation" o = Gtk.Orientable.OrientableSetOrientationMethodInfo
ResolveListBaseMethod "setOverflow" o = Gtk.Widget.WidgetSetOverflowMethodInfo
ResolveListBaseMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveListBaseMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveListBaseMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveListBaseMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveListBaseMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveListBaseMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveListBaseMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolveListBaseMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolveListBaseMethod "setVadjustment" o = Gtk.Scrollable.ScrollableSetVadjustmentMethodInfo
ResolveListBaseMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveListBaseMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveListBaseMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveListBaseMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveListBaseMethod "setVscrollPolicy" o = Gtk.Scrollable.ScrollableSetVscrollPolicyMethodInfo
ResolveListBaseMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveListBaseMethod t ListBase, O.OverloadedMethod info ListBase p) => OL.IsLabel t (ListBase -> 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 ~ ResolveListBaseMethod t ListBase, O.OverloadedMethod info ListBase p, R.HasField t ListBase p) => R.HasField t ListBase p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveListBaseMethod t ListBase, O.OverloadedMethodInfo info ListBase) => OL.IsLabel t (O.MethodProxy info ListBase) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
getListBaseOrientation :: (MonadIO m, IsListBase o) => o -> m Gtk.Enums.Orientation
getListBaseOrientation :: forall (m :: * -> *) o.
(MonadIO m, IsListBase o) =>
o -> m Orientation
getListBaseOrientation o
obj = IO Orientation -> m Orientation
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO Orientation -> m Orientation)
-> IO Orientation -> m Orientation
forall a b. (a -> b) -> a -> b
$ o -> String -> IO Orientation
forall a b. (GObject a, Enum b, BoxedEnum b) => a -> String -> IO b
B.Properties.getObjectPropertyEnum o
obj String
"orientation"
setListBaseOrientation :: (MonadIO m, IsListBase o) => o -> Gtk.Enums.Orientation -> m ()
setListBaseOrientation :: forall (m :: * -> *) o.
(MonadIO m, IsListBase o) =>
o -> Orientation -> m ()
setListBaseOrientation o
obj Orientation
val = IO () -> m ()
forall a. IO a -> m a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ do
o -> String -> Orientation -> IO ()
forall a b.
(GObject a, Enum b, BoxedEnum b) =>
a -> String -> b -> IO ()
B.Properties.setObjectPropertyEnum o
obj String
"orientation" Orientation
val
constructListBaseOrientation :: (IsListBase o, MIO.MonadIO m) => Gtk.Enums.Orientation -> m (GValueConstruct o)
constructListBaseOrientation :: forall o (m :: * -> *).
(IsListBase o, MonadIO m) =>
Orientation -> m (GValueConstruct o)
constructListBaseOrientation Orientation
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 -> Orientation -> IO (GValueConstruct o)
forall a o.
(Enum a, BoxedEnum a) =>
String -> a -> IO (GValueConstruct o)
B.Properties.constructObjectPropertyEnum String
"orientation" Orientation
val
#if defined(ENABLE_OVERLOADING)
data ListBaseOrientationPropertyInfo
instance AttrInfo ListBaseOrientationPropertyInfo where
type AttrAllowedOps ListBaseOrientationPropertyInfo = '[ 'AttrSet, 'AttrConstruct, 'AttrGet]
type AttrBaseTypeConstraint ListBaseOrientationPropertyInfo = IsListBase
type AttrSetTypeConstraint ListBaseOrientationPropertyInfo = (~) Gtk.Enums.Orientation
type AttrTransferTypeConstraint ListBaseOrientationPropertyInfo = (~) Gtk.Enums.Orientation
type AttrTransferType ListBaseOrientationPropertyInfo = Gtk.Enums.Orientation
type AttrGetType ListBaseOrientationPropertyInfo = Gtk.Enums.Orientation
type AttrLabel ListBaseOrientationPropertyInfo = "orientation"
type AttrOrigin ListBaseOrientationPropertyInfo = ListBase
attrGet = getListBaseOrientation
attrSet = setListBaseOrientation
attrTransfer _ v = do
return v
attrConstruct = constructListBaseOrientation
attrClear = undefined
dbgAttrInfo = P.Just (O.ResolvedSymbolInfo {
O.resolvedSymbolName = "GI.Gtk.Objects.ListBase.orientation"
, O.resolvedSymbolURL = "https://hackage.haskell.org/package/gi-gtk-4.0.9/docs/GI-Gtk-Objects-ListBase.html#g:attr:orientation"
})
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList ListBase
type instance O.AttributeList ListBase = ListBaseAttributeList
type ListBaseAttributeList = ('[ '("accessibleRole", Gtk.Accessible.AccessibleAccessibleRolePropertyInfo), '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("canTarget", Gtk.Widget.WidgetCanTargetPropertyInfo), '("cssClasses", Gtk.Widget.WidgetCssClassesPropertyInfo), '("cssName", Gtk.Widget.WidgetCssNamePropertyInfo), '("cursor", Gtk.Widget.WidgetCursorPropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("focusable", Gtk.Widget.WidgetFocusablePropertyInfo), '("hadjustment", Gtk.Scrollable.ScrollableHadjustmentPropertyInfo), '("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), '("hscrollPolicy", Gtk.Scrollable.ScrollableHscrollPolicyPropertyInfo), '("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), '("orientation", ListBaseOrientationPropertyInfo), '("overflow", Gtk.Widget.WidgetOverflowPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("root", Gtk.Widget.WidgetRootPropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("tooltipMarkup", Gtk.Widget.WidgetTooltipMarkupPropertyInfo), '("tooltipText", Gtk.Widget.WidgetTooltipTextPropertyInfo), '("vadjustment", Gtk.Scrollable.ScrollableVadjustmentPropertyInfo), '("valign", Gtk.Widget.WidgetValignPropertyInfo), '("vexpand", Gtk.Widget.WidgetVexpandPropertyInfo), '("vexpandSet", Gtk.Widget.WidgetVexpandSetPropertyInfo), '("visible", Gtk.Widget.WidgetVisiblePropertyInfo), '("vscrollPolicy", Gtk.Scrollable.ScrollableVscrollPolicyPropertyInfo), '("widthRequest", Gtk.Widget.WidgetWidthRequestPropertyInfo)] :: [(Symbol, DK.Type)])
#endif
#if defined(ENABLE_OVERLOADING)
listBaseOrientation :: AttrLabelProxy "orientation"
listBaseOrientation = AttrLabelProxy
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList ListBase = ListBaseSignalList
type ListBaseSignalList = ('[ '("destroy", Gtk.Widget.WidgetDestroySignalInfo), '("directionChanged", Gtk.Widget.WidgetDirectionChangedSignalInfo), '("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, DK.Type)])
#endif