{-# LANGUAGE TypeApplications #-}
#if (MIN_VERSION_haskell_gi_overloading(1,0,0) && !defined(__HADDOCK_VERSION__))
#define ENABLE_OVERLOADING
#endif
module GI.Gtk.Objects.ComboBoxText
(
ComboBoxText(..) ,
IsComboBoxText ,
toComboBoxText ,
#if defined(ENABLE_OVERLOADING)
ResolveComboBoxTextMethod ,
#endif
#if defined(ENABLE_OVERLOADING)
ComboBoxTextAppendMethodInfo ,
#endif
comboBoxTextAppend ,
#if defined(ENABLE_OVERLOADING)
ComboBoxTextAppendTextMethodInfo ,
#endif
comboBoxTextAppendText ,
#if defined(ENABLE_OVERLOADING)
ComboBoxTextGetActiveTextMethodInfo ,
#endif
comboBoxTextGetActiveText ,
#if defined(ENABLE_OVERLOADING)
ComboBoxTextInsertMethodInfo ,
#endif
comboBoxTextInsert ,
#if defined(ENABLE_OVERLOADING)
ComboBoxTextInsertTextMethodInfo ,
#endif
comboBoxTextInsertText ,
comboBoxTextNew ,
comboBoxTextNewWithEntry ,
#if defined(ENABLE_OVERLOADING)
ComboBoxTextPrependMethodInfo ,
#endif
comboBoxTextPrepend ,
#if defined(ENABLE_OVERLOADING)
ComboBoxTextPrependTextMethodInfo ,
#endif
comboBoxTextPrependText ,
#if defined(ENABLE_OVERLOADING)
ComboBoxTextRemoveMethodInfo ,
#endif
comboBoxTextRemove ,
#if defined(ENABLE_OVERLOADING)
ComboBoxTextRemoveAllMethodInfo ,
#endif
comboBoxTextRemoveAll ,
) 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.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 GHC.Records as R
import qualified GI.GObject.Objects.Object as GObject.Object
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.CellEditable as Gtk.CellEditable
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.CellLayout as Gtk.CellLayout
import {-# SOURCE #-} qualified GI.Gtk.Interfaces.ConstraintTarget as Gtk.ConstraintTarget
import {-# SOURCE #-} qualified GI.Gtk.Objects.ComboBox as Gtk.ComboBox
import {-# SOURCE #-} qualified GI.Gtk.Objects.Widget as Gtk.Widget
newtype ComboBoxText = ComboBoxText (SP.ManagedPtr ComboBoxText)
deriving (ComboBoxText -> ComboBoxText -> Bool
(ComboBoxText -> ComboBoxText -> Bool)
-> (ComboBoxText -> ComboBoxText -> Bool) -> Eq ComboBoxText
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: ComboBoxText -> ComboBoxText -> Bool
$c/= :: ComboBoxText -> ComboBoxText -> Bool
== :: ComboBoxText -> ComboBoxText -> Bool
$c== :: ComboBoxText -> ComboBoxText -> Bool
Eq)
instance SP.ManagedPtrNewtype ComboBoxText where
toManagedPtr :: ComboBoxText -> ManagedPtr ComboBoxText
toManagedPtr (ComboBoxText ManagedPtr ComboBoxText
p) = ManagedPtr ComboBoxText
p
foreign import ccall "gtk_combo_box_text_get_type"
c_gtk_combo_box_text_get_type :: IO B.Types.GType
instance B.Types.TypedObject ComboBoxText where
glibType :: IO GType
glibType = IO GType
c_gtk_combo_box_text_get_type
instance B.Types.GObject ComboBoxText
class (SP.GObject o, O.IsDescendantOf ComboBoxText o) => IsComboBoxText o
instance (SP.GObject o, O.IsDescendantOf ComboBoxText o) => IsComboBoxText o
instance O.HasParentTypes ComboBoxText
type instance O.ParentTypes ComboBoxText = '[Gtk.ComboBox.ComboBox, Gtk.Widget.Widget, GObject.Object.Object, Gtk.Accessible.Accessible, Gtk.Buildable.Buildable, Gtk.CellEditable.CellEditable, Gtk.CellLayout.CellLayout, Gtk.ConstraintTarget.ConstraintTarget]
toComboBoxText :: (MIO.MonadIO m, IsComboBoxText o) => o -> m ComboBoxText
toComboBoxText :: forall (m :: * -> *) o.
(MonadIO m, IsComboBoxText o) =>
o -> m ComboBoxText
toComboBoxText = IO ComboBoxText -> m ComboBoxText
forall (m :: * -> *) a. MonadIO m => IO a -> m a
MIO.liftIO (IO ComboBoxText -> m ComboBoxText)
-> (o -> IO ComboBoxText) -> o -> m ComboBoxText
forall b c a. (b -> c) -> (a -> b) -> a -> c
. (ManagedPtr ComboBoxText -> ComboBoxText) -> o -> IO ComboBoxText
forall o o'.
(HasCallStack, ManagedPtrNewtype o, TypedObject o,
ManagedPtrNewtype o', TypedObject o') =>
(ManagedPtr o' -> o') -> o -> IO o'
B.ManagedPtr.unsafeCastTo ManagedPtr ComboBoxText -> ComboBoxText
ComboBoxText
instance B.GValue.IsGValue (Maybe ComboBoxText) where
gvalueGType_ :: IO GType
gvalueGType_ = IO GType
c_gtk_combo_box_text_get_type
gvalueSet_ :: Ptr GValue -> Maybe ComboBoxText -> IO ()
gvalueSet_ Ptr GValue
gv Maybe ComboBoxText
P.Nothing = Ptr GValue -> Ptr ComboBoxText -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv (Ptr ComboBoxText
forall a. Ptr a
FP.nullPtr :: FP.Ptr ComboBoxText)
gvalueSet_ Ptr GValue
gv (P.Just ComboBoxText
obj) = ComboBoxText -> (Ptr ComboBoxText -> IO ()) -> IO ()
forall a c.
(HasCallStack, ManagedPtrNewtype a) =>
a -> (Ptr a -> IO c) -> IO c
B.ManagedPtr.withManagedPtr ComboBoxText
obj (Ptr GValue -> Ptr ComboBoxText -> IO ()
forall a. GObject a => Ptr GValue -> Ptr a -> IO ()
B.GValue.set_object Ptr GValue
gv)
gvalueGet_ :: Ptr GValue -> IO (Maybe ComboBoxText)
gvalueGet_ Ptr GValue
gv = do
Ptr ComboBoxText
ptr <- Ptr GValue -> IO (Ptr ComboBoxText)
forall a. GObject a => Ptr GValue -> IO (Ptr a)
B.GValue.get_object Ptr GValue
gv :: IO (FP.Ptr ComboBoxText)
if Ptr ComboBoxText
ptr Ptr ComboBoxText -> Ptr ComboBoxText -> Bool
forall a. Eq a => a -> a -> Bool
/= Ptr ComboBoxText
forall a. Ptr a
FP.nullPtr
then ComboBoxText -> Maybe ComboBoxText
forall a. a -> Maybe a
P.Just (ComboBoxText -> Maybe ComboBoxText)
-> IO ComboBoxText -> IO (Maybe ComboBoxText)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> (ManagedPtr ComboBoxText -> ComboBoxText)
-> Ptr ComboBoxText -> IO ComboBoxText
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
B.ManagedPtr.newObject ManagedPtr ComboBoxText -> ComboBoxText
ComboBoxText Ptr ComboBoxText
ptr
else Maybe ComboBoxText -> IO (Maybe ComboBoxText)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe ComboBoxText
forall a. Maybe a
P.Nothing
#if defined(ENABLE_OVERLOADING)
type family ResolveComboBoxTextMethod (t :: Symbol) (o :: *) :: * where
ResolveComboBoxTextMethod "actionSetEnabled" o = Gtk.Widget.WidgetActionSetEnabledMethodInfo
ResolveComboBoxTextMethod "activate" o = Gtk.Widget.WidgetActivateMethodInfo
ResolveComboBoxTextMethod "activateAction" o = Gtk.Widget.WidgetActivateActionMethodInfo
ResolveComboBoxTextMethod "activateDefault" o = Gtk.Widget.WidgetActivateDefaultMethodInfo
ResolveComboBoxTextMethod "addAttribute" o = Gtk.CellLayout.CellLayoutAddAttributeMethodInfo
ResolveComboBoxTextMethod "addController" o = Gtk.Widget.WidgetAddControllerMethodInfo
ResolveComboBoxTextMethod "addCssClass" o = Gtk.Widget.WidgetAddCssClassMethodInfo
ResolveComboBoxTextMethod "addMnemonicLabel" o = Gtk.Widget.WidgetAddMnemonicLabelMethodInfo
ResolveComboBoxTextMethod "addTickCallback" o = Gtk.Widget.WidgetAddTickCallbackMethodInfo
ResolveComboBoxTextMethod "allocate" o = Gtk.Widget.WidgetAllocateMethodInfo
ResolveComboBoxTextMethod "append" o = ComboBoxTextAppendMethodInfo
ResolveComboBoxTextMethod "appendText" o = ComboBoxTextAppendTextMethodInfo
ResolveComboBoxTextMethod "bindProperty" o = GObject.Object.ObjectBindPropertyMethodInfo
ResolveComboBoxTextMethod "bindPropertyFull" o = GObject.Object.ObjectBindPropertyFullMethodInfo
ResolveComboBoxTextMethod "childFocus" o = Gtk.Widget.WidgetChildFocusMethodInfo
ResolveComboBoxTextMethod "clear" o = Gtk.CellLayout.CellLayoutClearMethodInfo
ResolveComboBoxTextMethod "clearAttributes" o = Gtk.CellLayout.CellLayoutClearAttributesMethodInfo
ResolveComboBoxTextMethod "computeBounds" o = Gtk.Widget.WidgetComputeBoundsMethodInfo
ResolveComboBoxTextMethod "computeExpand" o = Gtk.Widget.WidgetComputeExpandMethodInfo
ResolveComboBoxTextMethod "computePoint" o = Gtk.Widget.WidgetComputePointMethodInfo
ResolveComboBoxTextMethod "computeTransform" o = Gtk.Widget.WidgetComputeTransformMethodInfo
ResolveComboBoxTextMethod "contains" o = Gtk.Widget.WidgetContainsMethodInfo
ResolveComboBoxTextMethod "createPangoContext" o = Gtk.Widget.WidgetCreatePangoContextMethodInfo
ResolveComboBoxTextMethod "createPangoLayout" o = Gtk.Widget.WidgetCreatePangoLayoutMethodInfo
ResolveComboBoxTextMethod "dragCheckThreshold" o = Gtk.Widget.WidgetDragCheckThresholdMethodInfo
ResolveComboBoxTextMethod "editingDone" o = Gtk.CellEditable.CellEditableEditingDoneMethodInfo
ResolveComboBoxTextMethod "errorBell" o = Gtk.Widget.WidgetErrorBellMethodInfo
ResolveComboBoxTextMethod "forceFloating" o = GObject.Object.ObjectForceFloatingMethodInfo
ResolveComboBoxTextMethod "freezeNotify" o = GObject.Object.ObjectFreezeNotifyMethodInfo
ResolveComboBoxTextMethod "getv" o = GObject.Object.ObjectGetvMethodInfo
ResolveComboBoxTextMethod "grabFocus" o = Gtk.Widget.WidgetGrabFocusMethodInfo
ResolveComboBoxTextMethod "hasCssClass" o = Gtk.Widget.WidgetHasCssClassMethodInfo
ResolveComboBoxTextMethod "hasDefault" o = Gtk.Widget.WidgetHasDefaultMethodInfo
ResolveComboBoxTextMethod "hasFocus" o = Gtk.Widget.WidgetHasFocusMethodInfo
ResolveComboBoxTextMethod "hasVisibleFocus" o = Gtk.Widget.WidgetHasVisibleFocusMethodInfo
ResolveComboBoxTextMethod "hide" o = Gtk.Widget.WidgetHideMethodInfo
ResolveComboBoxTextMethod "inDestruction" o = Gtk.Widget.WidgetInDestructionMethodInfo
ResolveComboBoxTextMethod "initTemplate" o = Gtk.Widget.WidgetInitTemplateMethodInfo
ResolveComboBoxTextMethod "insert" o = ComboBoxTextInsertMethodInfo
ResolveComboBoxTextMethod "insertActionGroup" o = Gtk.Widget.WidgetInsertActionGroupMethodInfo
ResolveComboBoxTextMethod "insertAfter" o = Gtk.Widget.WidgetInsertAfterMethodInfo
ResolveComboBoxTextMethod "insertBefore" o = Gtk.Widget.WidgetInsertBeforeMethodInfo
ResolveComboBoxTextMethod "insertText" o = ComboBoxTextInsertTextMethodInfo
ResolveComboBoxTextMethod "isAncestor" o = Gtk.Widget.WidgetIsAncestorMethodInfo
ResolveComboBoxTextMethod "isDrawable" o = Gtk.Widget.WidgetIsDrawableMethodInfo
ResolveComboBoxTextMethod "isFloating" o = GObject.Object.ObjectIsFloatingMethodInfo
ResolveComboBoxTextMethod "isFocus" o = Gtk.Widget.WidgetIsFocusMethodInfo
ResolveComboBoxTextMethod "isSensitive" o = Gtk.Widget.WidgetIsSensitiveMethodInfo
ResolveComboBoxTextMethod "isVisible" o = Gtk.Widget.WidgetIsVisibleMethodInfo
ResolveComboBoxTextMethod "keynavFailed" o = Gtk.Widget.WidgetKeynavFailedMethodInfo
ResolveComboBoxTextMethod "listMnemonicLabels" o = Gtk.Widget.WidgetListMnemonicLabelsMethodInfo
ResolveComboBoxTextMethod "map" o = Gtk.Widget.WidgetMapMethodInfo
ResolveComboBoxTextMethod "measure" o = Gtk.Widget.WidgetMeasureMethodInfo
ResolveComboBoxTextMethod "mnemonicActivate" o = Gtk.Widget.WidgetMnemonicActivateMethodInfo
ResolveComboBoxTextMethod "notify" o = GObject.Object.ObjectNotifyMethodInfo
ResolveComboBoxTextMethod "notifyByPspec" o = GObject.Object.ObjectNotifyByPspecMethodInfo
ResolveComboBoxTextMethod "observeChildren" o = Gtk.Widget.WidgetObserveChildrenMethodInfo
ResolveComboBoxTextMethod "observeControllers" o = Gtk.Widget.WidgetObserveControllersMethodInfo
ResolveComboBoxTextMethod "packEnd" o = Gtk.CellLayout.CellLayoutPackEndMethodInfo
ResolveComboBoxTextMethod "packStart" o = Gtk.CellLayout.CellLayoutPackStartMethodInfo
ResolveComboBoxTextMethod "pick" o = Gtk.Widget.WidgetPickMethodInfo
ResolveComboBoxTextMethod "popdown" o = Gtk.ComboBox.ComboBoxPopdownMethodInfo
ResolveComboBoxTextMethod "popup" o = Gtk.ComboBox.ComboBoxPopupMethodInfo
ResolveComboBoxTextMethod "popupForDevice" o = Gtk.ComboBox.ComboBoxPopupForDeviceMethodInfo
ResolveComboBoxTextMethod "prepend" o = ComboBoxTextPrependMethodInfo
ResolveComboBoxTextMethod "prependText" o = ComboBoxTextPrependTextMethodInfo
ResolveComboBoxTextMethod "queueAllocate" o = Gtk.Widget.WidgetQueueAllocateMethodInfo
ResolveComboBoxTextMethod "queueDraw" o = Gtk.Widget.WidgetQueueDrawMethodInfo
ResolveComboBoxTextMethod "queueResize" o = Gtk.Widget.WidgetQueueResizeMethodInfo
ResolveComboBoxTextMethod "realize" o = Gtk.Widget.WidgetRealizeMethodInfo
ResolveComboBoxTextMethod "ref" o = GObject.Object.ObjectRefMethodInfo
ResolveComboBoxTextMethod "refSink" o = GObject.Object.ObjectRefSinkMethodInfo
ResolveComboBoxTextMethod "remove" o = ComboBoxTextRemoveMethodInfo
ResolveComboBoxTextMethod "removeAll" o = ComboBoxTextRemoveAllMethodInfo
ResolveComboBoxTextMethod "removeController" o = Gtk.Widget.WidgetRemoveControllerMethodInfo
ResolveComboBoxTextMethod "removeCssClass" o = Gtk.Widget.WidgetRemoveCssClassMethodInfo
ResolveComboBoxTextMethod "removeMnemonicLabel" o = Gtk.Widget.WidgetRemoveMnemonicLabelMethodInfo
ResolveComboBoxTextMethod "removeTickCallback" o = Gtk.Widget.WidgetRemoveTickCallbackMethodInfo
ResolveComboBoxTextMethod "removeWidget" o = Gtk.CellEditable.CellEditableRemoveWidgetMethodInfo
ResolveComboBoxTextMethod "reorder" o = Gtk.CellLayout.CellLayoutReorderMethodInfo
ResolveComboBoxTextMethod "resetProperty" o = Gtk.Accessible.AccessibleResetPropertyMethodInfo
ResolveComboBoxTextMethod "resetRelation" o = Gtk.Accessible.AccessibleResetRelationMethodInfo
ResolveComboBoxTextMethod "resetState" o = Gtk.Accessible.AccessibleResetStateMethodInfo
ResolveComboBoxTextMethod "runDispose" o = GObject.Object.ObjectRunDisposeMethodInfo
ResolveComboBoxTextMethod "shouldLayout" o = Gtk.Widget.WidgetShouldLayoutMethodInfo
ResolveComboBoxTextMethod "show" o = Gtk.Widget.WidgetShowMethodInfo
ResolveComboBoxTextMethod "sizeAllocate" o = Gtk.Widget.WidgetSizeAllocateMethodInfo
ResolveComboBoxTextMethod "snapshotChild" o = Gtk.Widget.WidgetSnapshotChildMethodInfo
ResolveComboBoxTextMethod "startEditing" o = Gtk.CellEditable.CellEditableStartEditingMethodInfo
ResolveComboBoxTextMethod "stealData" o = GObject.Object.ObjectStealDataMethodInfo
ResolveComboBoxTextMethod "stealQdata" o = GObject.Object.ObjectStealQdataMethodInfo
ResolveComboBoxTextMethod "thawNotify" o = GObject.Object.ObjectThawNotifyMethodInfo
ResolveComboBoxTextMethod "translateCoordinates" o = Gtk.Widget.WidgetTranslateCoordinatesMethodInfo
ResolveComboBoxTextMethod "triggerTooltipQuery" o = Gtk.Widget.WidgetTriggerTooltipQueryMethodInfo
ResolveComboBoxTextMethod "unmap" o = Gtk.Widget.WidgetUnmapMethodInfo
ResolveComboBoxTextMethod "unparent" o = Gtk.Widget.WidgetUnparentMethodInfo
ResolveComboBoxTextMethod "unrealize" o = Gtk.Widget.WidgetUnrealizeMethodInfo
ResolveComboBoxTextMethod "unref" o = GObject.Object.ObjectUnrefMethodInfo
ResolveComboBoxTextMethod "unsetStateFlags" o = Gtk.Widget.WidgetUnsetStateFlagsMethodInfo
ResolveComboBoxTextMethod "updateProperty" o = Gtk.Accessible.AccessibleUpdatePropertyMethodInfo
ResolveComboBoxTextMethod "updateRelation" o = Gtk.Accessible.AccessibleUpdateRelationMethodInfo
ResolveComboBoxTextMethod "updateState" o = Gtk.Accessible.AccessibleUpdateStateMethodInfo
ResolveComboBoxTextMethod "watchClosure" o = GObject.Object.ObjectWatchClosureMethodInfo
ResolveComboBoxTextMethod "getAccessibleRole" o = Gtk.Accessible.AccessibleGetAccessibleRoleMethodInfo
ResolveComboBoxTextMethod "getActive" o = Gtk.ComboBox.ComboBoxGetActiveMethodInfo
ResolveComboBoxTextMethod "getActiveId" o = Gtk.ComboBox.ComboBoxGetActiveIdMethodInfo
ResolveComboBoxTextMethod "getActiveIter" o = Gtk.ComboBox.ComboBoxGetActiveIterMethodInfo
ResolveComboBoxTextMethod "getActiveText" o = ComboBoxTextGetActiveTextMethodInfo
ResolveComboBoxTextMethod "getAllocatedBaseline" o = Gtk.Widget.WidgetGetAllocatedBaselineMethodInfo
ResolveComboBoxTextMethod "getAllocatedHeight" o = Gtk.Widget.WidgetGetAllocatedHeightMethodInfo
ResolveComboBoxTextMethod "getAllocatedWidth" o = Gtk.Widget.WidgetGetAllocatedWidthMethodInfo
ResolveComboBoxTextMethod "getAllocation" o = Gtk.Widget.WidgetGetAllocationMethodInfo
ResolveComboBoxTextMethod "getAncestor" o = Gtk.Widget.WidgetGetAncestorMethodInfo
ResolveComboBoxTextMethod "getArea" o = Gtk.CellLayout.CellLayoutGetAreaMethodInfo
ResolveComboBoxTextMethod "getBuildableId" o = Gtk.Buildable.BuildableGetBuildableIdMethodInfo
ResolveComboBoxTextMethod "getButtonSensitivity" o = Gtk.ComboBox.ComboBoxGetButtonSensitivityMethodInfo
ResolveComboBoxTextMethod "getCanFocus" o = Gtk.Widget.WidgetGetCanFocusMethodInfo
ResolveComboBoxTextMethod "getCanTarget" o = Gtk.Widget.WidgetGetCanTargetMethodInfo
ResolveComboBoxTextMethod "getCells" o = Gtk.CellLayout.CellLayoutGetCellsMethodInfo
ResolveComboBoxTextMethod "getChild" o = Gtk.ComboBox.ComboBoxGetChildMethodInfo
ResolveComboBoxTextMethod "getChildVisible" o = Gtk.Widget.WidgetGetChildVisibleMethodInfo
ResolveComboBoxTextMethod "getClipboard" o = Gtk.Widget.WidgetGetClipboardMethodInfo
ResolveComboBoxTextMethod "getCssClasses" o = Gtk.Widget.WidgetGetCssClassesMethodInfo
ResolveComboBoxTextMethod "getCssName" o = Gtk.Widget.WidgetGetCssNameMethodInfo
ResolveComboBoxTextMethod "getCursor" o = Gtk.Widget.WidgetGetCursorMethodInfo
ResolveComboBoxTextMethod "getData" o = GObject.Object.ObjectGetDataMethodInfo
ResolveComboBoxTextMethod "getDirection" o = Gtk.Widget.WidgetGetDirectionMethodInfo
ResolveComboBoxTextMethod "getDisplay" o = Gtk.Widget.WidgetGetDisplayMethodInfo
ResolveComboBoxTextMethod "getEntryTextColumn" o = Gtk.ComboBox.ComboBoxGetEntryTextColumnMethodInfo
ResolveComboBoxTextMethod "getFirstChild" o = Gtk.Widget.WidgetGetFirstChildMethodInfo
ResolveComboBoxTextMethod "getFocusChild" o = Gtk.Widget.WidgetGetFocusChildMethodInfo
ResolveComboBoxTextMethod "getFocusOnClick" o = Gtk.Widget.WidgetGetFocusOnClickMethodInfo
ResolveComboBoxTextMethod "getFocusable" o = Gtk.Widget.WidgetGetFocusableMethodInfo
ResolveComboBoxTextMethod "getFontMap" o = Gtk.Widget.WidgetGetFontMapMethodInfo
ResolveComboBoxTextMethod "getFontOptions" o = Gtk.Widget.WidgetGetFontOptionsMethodInfo
ResolveComboBoxTextMethod "getFrameClock" o = Gtk.Widget.WidgetGetFrameClockMethodInfo
ResolveComboBoxTextMethod "getHalign" o = Gtk.Widget.WidgetGetHalignMethodInfo
ResolveComboBoxTextMethod "getHasEntry" o = Gtk.ComboBox.ComboBoxGetHasEntryMethodInfo
ResolveComboBoxTextMethod "getHasTooltip" o = Gtk.Widget.WidgetGetHasTooltipMethodInfo
ResolveComboBoxTextMethod "getHeight" o = Gtk.Widget.WidgetGetHeightMethodInfo
ResolveComboBoxTextMethod "getHexpand" o = Gtk.Widget.WidgetGetHexpandMethodInfo
ResolveComboBoxTextMethod "getHexpandSet" o = Gtk.Widget.WidgetGetHexpandSetMethodInfo
ResolveComboBoxTextMethod "getIdColumn" o = Gtk.ComboBox.ComboBoxGetIdColumnMethodInfo
ResolveComboBoxTextMethod "getLastChild" o = Gtk.Widget.WidgetGetLastChildMethodInfo
ResolveComboBoxTextMethod "getLayoutManager" o = Gtk.Widget.WidgetGetLayoutManagerMethodInfo
ResolveComboBoxTextMethod "getMapped" o = Gtk.Widget.WidgetGetMappedMethodInfo
ResolveComboBoxTextMethod "getMarginBottom" o = Gtk.Widget.WidgetGetMarginBottomMethodInfo
ResolveComboBoxTextMethod "getMarginEnd" o = Gtk.Widget.WidgetGetMarginEndMethodInfo
ResolveComboBoxTextMethod "getMarginStart" o = Gtk.Widget.WidgetGetMarginStartMethodInfo
ResolveComboBoxTextMethod "getMarginTop" o = Gtk.Widget.WidgetGetMarginTopMethodInfo
ResolveComboBoxTextMethod "getModel" o = Gtk.ComboBox.ComboBoxGetModelMethodInfo
ResolveComboBoxTextMethod "getName" o = Gtk.Widget.WidgetGetNameMethodInfo
ResolveComboBoxTextMethod "getNative" o = Gtk.Widget.WidgetGetNativeMethodInfo
ResolveComboBoxTextMethod "getNextSibling" o = Gtk.Widget.WidgetGetNextSiblingMethodInfo
ResolveComboBoxTextMethod "getOpacity" o = Gtk.Widget.WidgetGetOpacityMethodInfo
ResolveComboBoxTextMethod "getOverflow" o = Gtk.Widget.WidgetGetOverflowMethodInfo
ResolveComboBoxTextMethod "getPangoContext" o = Gtk.Widget.WidgetGetPangoContextMethodInfo
ResolveComboBoxTextMethod "getParent" o = Gtk.Widget.WidgetGetParentMethodInfo
ResolveComboBoxTextMethod "getPopupFixedWidth" o = Gtk.ComboBox.ComboBoxGetPopupFixedWidthMethodInfo
ResolveComboBoxTextMethod "getPreferredSize" o = Gtk.Widget.WidgetGetPreferredSizeMethodInfo
ResolveComboBoxTextMethod "getPrevSibling" o = Gtk.Widget.WidgetGetPrevSiblingMethodInfo
ResolveComboBoxTextMethod "getPrimaryClipboard" o = Gtk.Widget.WidgetGetPrimaryClipboardMethodInfo
ResolveComboBoxTextMethod "getProperty" o = GObject.Object.ObjectGetPropertyMethodInfo
ResolveComboBoxTextMethod "getQdata" o = GObject.Object.ObjectGetQdataMethodInfo
ResolveComboBoxTextMethod "getRealized" o = Gtk.Widget.WidgetGetRealizedMethodInfo
ResolveComboBoxTextMethod "getReceivesDefault" o = Gtk.Widget.WidgetGetReceivesDefaultMethodInfo
ResolveComboBoxTextMethod "getRequestMode" o = Gtk.Widget.WidgetGetRequestModeMethodInfo
ResolveComboBoxTextMethod "getRoot" o = Gtk.Widget.WidgetGetRootMethodInfo
ResolveComboBoxTextMethod "getScaleFactor" o = Gtk.Widget.WidgetGetScaleFactorMethodInfo
ResolveComboBoxTextMethod "getSensitive" o = Gtk.Widget.WidgetGetSensitiveMethodInfo
ResolveComboBoxTextMethod "getSettings" o = Gtk.Widget.WidgetGetSettingsMethodInfo
ResolveComboBoxTextMethod "getSize" o = Gtk.Widget.WidgetGetSizeMethodInfo
ResolveComboBoxTextMethod "getSizeRequest" o = Gtk.Widget.WidgetGetSizeRequestMethodInfo
ResolveComboBoxTextMethod "getStateFlags" o = Gtk.Widget.WidgetGetStateFlagsMethodInfo
ResolveComboBoxTextMethod "getStyleContext" o = Gtk.Widget.WidgetGetStyleContextMethodInfo
ResolveComboBoxTextMethod "getTemplateChild" o = Gtk.Widget.WidgetGetTemplateChildMethodInfo
ResolveComboBoxTextMethod "getTooltipMarkup" o = Gtk.Widget.WidgetGetTooltipMarkupMethodInfo
ResolveComboBoxTextMethod "getTooltipText" o = Gtk.Widget.WidgetGetTooltipTextMethodInfo
ResolveComboBoxTextMethod "getValign" o = Gtk.Widget.WidgetGetValignMethodInfo
ResolveComboBoxTextMethod "getVexpand" o = Gtk.Widget.WidgetGetVexpandMethodInfo
ResolveComboBoxTextMethod "getVexpandSet" o = Gtk.Widget.WidgetGetVexpandSetMethodInfo
ResolveComboBoxTextMethod "getVisible" o = Gtk.Widget.WidgetGetVisibleMethodInfo
ResolveComboBoxTextMethod "getWidth" o = Gtk.Widget.WidgetGetWidthMethodInfo
ResolveComboBoxTextMethod "setActive" o = Gtk.ComboBox.ComboBoxSetActiveMethodInfo
ResolveComboBoxTextMethod "setActiveId" o = Gtk.ComboBox.ComboBoxSetActiveIdMethodInfo
ResolveComboBoxTextMethod "setActiveIter" o = Gtk.ComboBox.ComboBoxSetActiveIterMethodInfo
ResolveComboBoxTextMethod "setButtonSensitivity" o = Gtk.ComboBox.ComboBoxSetButtonSensitivityMethodInfo
ResolveComboBoxTextMethod "setCanFocus" o = Gtk.Widget.WidgetSetCanFocusMethodInfo
ResolveComboBoxTextMethod "setCanTarget" o = Gtk.Widget.WidgetSetCanTargetMethodInfo
ResolveComboBoxTextMethod "setCellDataFunc" o = Gtk.CellLayout.CellLayoutSetCellDataFuncMethodInfo
ResolveComboBoxTextMethod "setChild" o = Gtk.ComboBox.ComboBoxSetChildMethodInfo
ResolveComboBoxTextMethod "setChildVisible" o = Gtk.Widget.WidgetSetChildVisibleMethodInfo
ResolveComboBoxTextMethod "setCssClasses" o = Gtk.Widget.WidgetSetCssClassesMethodInfo
ResolveComboBoxTextMethod "setCursor" o = Gtk.Widget.WidgetSetCursorMethodInfo
ResolveComboBoxTextMethod "setCursorFromName" o = Gtk.Widget.WidgetSetCursorFromNameMethodInfo
ResolveComboBoxTextMethod "setData" o = GObject.Object.ObjectSetDataMethodInfo
ResolveComboBoxTextMethod "setDataFull" o = GObject.Object.ObjectSetDataFullMethodInfo
ResolveComboBoxTextMethod "setDirection" o = Gtk.Widget.WidgetSetDirectionMethodInfo
ResolveComboBoxTextMethod "setEntryTextColumn" o = Gtk.ComboBox.ComboBoxSetEntryTextColumnMethodInfo
ResolveComboBoxTextMethod "setFocusChild" o = Gtk.Widget.WidgetSetFocusChildMethodInfo
ResolveComboBoxTextMethod "setFocusOnClick" o = Gtk.Widget.WidgetSetFocusOnClickMethodInfo
ResolveComboBoxTextMethod "setFocusable" o = Gtk.Widget.WidgetSetFocusableMethodInfo
ResolveComboBoxTextMethod "setFontMap" o = Gtk.Widget.WidgetSetFontMapMethodInfo
ResolveComboBoxTextMethod "setFontOptions" o = Gtk.Widget.WidgetSetFontOptionsMethodInfo
ResolveComboBoxTextMethod "setHalign" o = Gtk.Widget.WidgetSetHalignMethodInfo
ResolveComboBoxTextMethod "setHasTooltip" o = Gtk.Widget.WidgetSetHasTooltipMethodInfo
ResolveComboBoxTextMethod "setHexpand" o = Gtk.Widget.WidgetSetHexpandMethodInfo
ResolveComboBoxTextMethod "setHexpandSet" o = Gtk.Widget.WidgetSetHexpandSetMethodInfo
ResolveComboBoxTextMethod "setIdColumn" o = Gtk.ComboBox.ComboBoxSetIdColumnMethodInfo
ResolveComboBoxTextMethod "setLayoutManager" o = Gtk.Widget.WidgetSetLayoutManagerMethodInfo
ResolveComboBoxTextMethod "setMarginBottom" o = Gtk.Widget.WidgetSetMarginBottomMethodInfo
ResolveComboBoxTextMethod "setMarginEnd" o = Gtk.Widget.WidgetSetMarginEndMethodInfo
ResolveComboBoxTextMethod "setMarginStart" o = Gtk.Widget.WidgetSetMarginStartMethodInfo
ResolveComboBoxTextMethod "setMarginTop" o = Gtk.Widget.WidgetSetMarginTopMethodInfo
ResolveComboBoxTextMethod "setModel" o = Gtk.ComboBox.ComboBoxSetModelMethodInfo
ResolveComboBoxTextMethod "setName" o = Gtk.Widget.WidgetSetNameMethodInfo
ResolveComboBoxTextMethod "setOpacity" o = Gtk.Widget.WidgetSetOpacityMethodInfo
ResolveComboBoxTextMethod "setOverflow" o = Gtk.Widget.WidgetSetOverflowMethodInfo
ResolveComboBoxTextMethod "setParent" o = Gtk.Widget.WidgetSetParentMethodInfo
ResolveComboBoxTextMethod "setPopupFixedWidth" o = Gtk.ComboBox.ComboBoxSetPopupFixedWidthMethodInfo
ResolveComboBoxTextMethod "setProperty" o = GObject.Object.ObjectSetPropertyMethodInfo
ResolveComboBoxTextMethod "setReceivesDefault" o = Gtk.Widget.WidgetSetReceivesDefaultMethodInfo
ResolveComboBoxTextMethod "setRowSeparatorFunc" o = Gtk.ComboBox.ComboBoxSetRowSeparatorFuncMethodInfo
ResolveComboBoxTextMethod "setSensitive" o = Gtk.Widget.WidgetSetSensitiveMethodInfo
ResolveComboBoxTextMethod "setSizeRequest" o = Gtk.Widget.WidgetSetSizeRequestMethodInfo
ResolveComboBoxTextMethod "setStateFlags" o = Gtk.Widget.WidgetSetStateFlagsMethodInfo
ResolveComboBoxTextMethod "setTooltipMarkup" o = Gtk.Widget.WidgetSetTooltipMarkupMethodInfo
ResolveComboBoxTextMethod "setTooltipText" o = Gtk.Widget.WidgetSetTooltipTextMethodInfo
ResolveComboBoxTextMethod "setValign" o = Gtk.Widget.WidgetSetValignMethodInfo
ResolveComboBoxTextMethod "setVexpand" o = Gtk.Widget.WidgetSetVexpandMethodInfo
ResolveComboBoxTextMethod "setVexpandSet" o = Gtk.Widget.WidgetSetVexpandSetMethodInfo
ResolveComboBoxTextMethod "setVisible" o = Gtk.Widget.WidgetSetVisibleMethodInfo
ResolveComboBoxTextMethod l o = O.MethodResolutionFailed l o
instance (info ~ ResolveComboBoxTextMethod t ComboBoxText, O.OverloadedMethod info ComboBoxText p) => OL.IsLabel t (ComboBoxText -> 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 ~ ResolveComboBoxTextMethod t ComboBoxText, O.OverloadedMethod info ComboBoxText p, R.HasField t ComboBoxText p) => R.HasField t ComboBoxText p where
getField = O.overloadedMethod @info
#endif
instance (info ~ ResolveComboBoxTextMethod t ComboBoxText, O.OverloadedMethodInfo info ComboBoxText) => OL.IsLabel t (O.MethodProxy info ComboBoxText) where
#if MIN_VERSION_base(4,10,0)
fromLabel = O.MethodProxy
#else
fromLabel _ = O.MethodProxy
#endif
#endif
#if defined(ENABLE_OVERLOADING)
instance O.HasAttributeList ComboBoxText
type instance O.AttributeList ComboBoxText = ComboBoxTextAttributeList
type ComboBoxTextAttributeList = ('[ '("accessibleRole", Gtk.Accessible.AccessibleAccessibleRolePropertyInfo), '("active", Gtk.ComboBox.ComboBoxActivePropertyInfo), '("activeId", Gtk.ComboBox.ComboBoxActiveIdPropertyInfo), '("buttonSensitivity", Gtk.ComboBox.ComboBoxButtonSensitivityPropertyInfo), '("canFocus", Gtk.Widget.WidgetCanFocusPropertyInfo), '("canTarget", Gtk.Widget.WidgetCanTargetPropertyInfo), '("child", Gtk.ComboBox.ComboBoxChildPropertyInfo), '("cssClasses", Gtk.Widget.WidgetCssClassesPropertyInfo), '("cssName", Gtk.Widget.WidgetCssNamePropertyInfo), '("cursor", Gtk.Widget.WidgetCursorPropertyInfo), '("editingCanceled", Gtk.CellEditable.CellEditableEditingCanceledPropertyInfo), '("entryTextColumn", Gtk.ComboBox.ComboBoxEntryTextColumnPropertyInfo), '("focusOnClick", Gtk.Widget.WidgetFocusOnClickPropertyInfo), '("focusable", Gtk.Widget.WidgetFocusablePropertyInfo), '("halign", Gtk.Widget.WidgetHalignPropertyInfo), '("hasDefault", Gtk.Widget.WidgetHasDefaultPropertyInfo), '("hasEntry", Gtk.ComboBox.ComboBoxHasEntryPropertyInfo), '("hasFocus", Gtk.Widget.WidgetHasFocusPropertyInfo), '("hasFrame", Gtk.ComboBox.ComboBoxHasFramePropertyInfo), '("hasTooltip", Gtk.Widget.WidgetHasTooltipPropertyInfo), '("heightRequest", Gtk.Widget.WidgetHeightRequestPropertyInfo), '("hexpand", Gtk.Widget.WidgetHexpandPropertyInfo), '("hexpandSet", Gtk.Widget.WidgetHexpandSetPropertyInfo), '("idColumn", Gtk.ComboBox.ComboBoxIdColumnPropertyInfo), '("layoutManager", Gtk.Widget.WidgetLayoutManagerPropertyInfo), '("marginBottom", Gtk.Widget.WidgetMarginBottomPropertyInfo), '("marginEnd", Gtk.Widget.WidgetMarginEndPropertyInfo), '("marginStart", Gtk.Widget.WidgetMarginStartPropertyInfo), '("marginTop", Gtk.Widget.WidgetMarginTopPropertyInfo), '("model", Gtk.ComboBox.ComboBoxModelPropertyInfo), '("name", Gtk.Widget.WidgetNamePropertyInfo), '("opacity", Gtk.Widget.WidgetOpacityPropertyInfo), '("overflow", Gtk.Widget.WidgetOverflowPropertyInfo), '("parent", Gtk.Widget.WidgetParentPropertyInfo), '("popupFixedWidth", Gtk.ComboBox.ComboBoxPopupFixedWidthPropertyInfo), '("popupShown", Gtk.ComboBox.ComboBoxPopupShownPropertyInfo), '("receivesDefault", Gtk.Widget.WidgetReceivesDefaultPropertyInfo), '("root", Gtk.Widget.WidgetRootPropertyInfo), '("scaleFactor", Gtk.Widget.WidgetScaleFactorPropertyInfo), '("sensitive", Gtk.Widget.WidgetSensitivePropertyInfo), '("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)
#endif
#if defined(ENABLE_OVERLOADING)
type instance O.SignalList ComboBoxText = ComboBoxTextSignalList
type ComboBoxTextSignalList = ('[ '("changed", Gtk.ComboBox.ComboBoxChangedSignalInfo), '("destroy", Gtk.Widget.WidgetDestroySignalInfo), '("directionChanged", Gtk.Widget.WidgetDirectionChangedSignalInfo), '("editingDone", Gtk.CellEditable.CellEditableEditingDoneSignalInfo), '("formatEntryText", Gtk.ComboBox.ComboBoxFormatEntryTextSignalInfo), '("hide", Gtk.Widget.WidgetHideSignalInfo), '("keynavFailed", Gtk.Widget.WidgetKeynavFailedSignalInfo), '("map", Gtk.Widget.WidgetMapSignalInfo), '("mnemonicActivate", Gtk.Widget.WidgetMnemonicActivateSignalInfo), '("moveActive", Gtk.ComboBox.ComboBoxMoveActiveSignalInfo), '("moveFocus", Gtk.Widget.WidgetMoveFocusSignalInfo), '("notify", GObject.Object.ObjectNotifySignalInfo), '("popdown", Gtk.ComboBox.ComboBoxPopdownSignalInfo), '("popup", Gtk.ComboBox.ComboBoxPopupSignalInfo), '("queryTooltip", Gtk.Widget.WidgetQueryTooltipSignalInfo), '("realize", Gtk.Widget.WidgetRealizeSignalInfo), '("removeWidget", Gtk.CellEditable.CellEditableRemoveWidgetSignalInfo), '("show", Gtk.Widget.WidgetShowSignalInfo), '("stateFlagsChanged", Gtk.Widget.WidgetStateFlagsChangedSignalInfo), '("unmap", Gtk.Widget.WidgetUnmapSignalInfo), '("unrealize", Gtk.Widget.WidgetUnrealizeSignalInfo)] :: [(Symbol, *)])
#endif
foreign import ccall "gtk_combo_box_text_new" gtk_combo_box_text_new ::
IO (Ptr ComboBoxText)
comboBoxTextNew ::
(B.CallStack.HasCallStack, MonadIO m) =>
m ComboBoxText
comboBoxTextNew :: forall (m :: * -> *). (HasCallStack, MonadIO m) => m ComboBoxText
comboBoxTextNew = IO ComboBoxText -> m ComboBoxText
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO ComboBoxText -> m ComboBoxText)
-> IO ComboBoxText -> m ComboBoxText
forall a b. (a -> b) -> a -> b
$ do
Ptr ComboBoxText
result <- IO (Ptr ComboBoxText)
gtk_combo_box_text_new
Text -> Ptr ComboBoxText -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"comboBoxTextNew" Ptr ComboBoxText
result
ComboBoxText
result' <- ((ManagedPtr ComboBoxText -> ComboBoxText)
-> Ptr ComboBoxText -> IO ComboBoxText
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr ComboBoxText -> ComboBoxText
ComboBoxText) Ptr ComboBoxText
result
ComboBoxText -> IO ComboBoxText
forall (m :: * -> *) a. Monad m => a -> m a
return ComboBoxText
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gtk_combo_box_text_new_with_entry" gtk_combo_box_text_new_with_entry ::
IO (Ptr ComboBoxText)
comboBoxTextNewWithEntry ::
(B.CallStack.HasCallStack, MonadIO m) =>
m ComboBoxText
comboBoxTextNewWithEntry :: forall (m :: * -> *). (HasCallStack, MonadIO m) => m ComboBoxText
comboBoxTextNewWithEntry = IO ComboBoxText -> m ComboBoxText
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO ComboBoxText -> m ComboBoxText)
-> IO ComboBoxText -> m ComboBoxText
forall a b. (a -> b) -> a -> b
$ do
Ptr ComboBoxText
result <- IO (Ptr ComboBoxText)
gtk_combo_box_text_new_with_entry
Text -> Ptr ComboBoxText -> IO ()
forall a. HasCallStack => Text -> Ptr a -> IO ()
checkUnexpectedReturnNULL Text
"comboBoxTextNewWithEntry" Ptr ComboBoxText
result
ComboBoxText
result' <- ((ManagedPtr ComboBoxText -> ComboBoxText)
-> Ptr ComboBoxText -> IO ComboBoxText
forall a b.
(HasCallStack, GObject a, GObject b) =>
(ManagedPtr a -> a) -> Ptr b -> IO a
newObject ManagedPtr ComboBoxText -> ComboBoxText
ComboBoxText) Ptr ComboBoxText
result
ComboBoxText -> IO ComboBoxText
forall (m :: * -> *) a. Monad m => a -> m a
return ComboBoxText
result'
#if defined(ENABLE_OVERLOADING)
#endif
foreign import ccall "gtk_combo_box_text_append" gtk_combo_box_text_append ::
Ptr ComboBoxText ->
CString ->
CString ->
IO ()
comboBoxTextAppend ::
(B.CallStack.HasCallStack, MonadIO m, IsComboBoxText a) =>
a
-> Maybe (T.Text)
-> T.Text
-> m ()
comboBoxTextAppend :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsComboBoxText a) =>
a -> Maybe Text -> Text -> m ()
comboBoxTextAppend a
comboBox Maybe Text
id Text
text = 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 ComboBoxText
comboBox' <- a -> IO (Ptr ComboBoxText)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
comboBox
Ptr CChar
maybeId <- case Maybe Text
id of
Maybe Text
Nothing -> Ptr CChar -> IO (Ptr CChar)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr CChar
forall a. Ptr a
nullPtr
Just Text
jId -> do
Ptr CChar
jId' <- Text -> IO (Ptr CChar)
textToCString Text
jId
Ptr CChar -> IO (Ptr CChar)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr CChar
jId'
Ptr CChar
text' <- Text -> IO (Ptr CChar)
textToCString Text
text
Ptr ComboBoxText -> Ptr CChar -> Ptr CChar -> IO ()
gtk_combo_box_text_append Ptr ComboBoxText
comboBox' Ptr CChar
maybeId Ptr CChar
text'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
comboBox
Ptr CChar -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr CChar
maybeId
Ptr CChar -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr CChar
text'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ComboBoxTextAppendMethodInfo
instance (signature ~ (Maybe (T.Text) -> T.Text -> m ()), MonadIO m, IsComboBoxText a) => O.OverloadedMethod ComboBoxTextAppendMethodInfo a signature where
overloadedMethod = comboBoxTextAppend
instance O.OverloadedMethodInfo ComboBoxTextAppendMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.ComboBoxText.comboBoxTextAppend",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-ComboBoxText.html#v:comboBoxTextAppend"
}
#endif
foreign import ccall "gtk_combo_box_text_append_text" gtk_combo_box_text_append_text ::
Ptr ComboBoxText ->
CString ->
IO ()
comboBoxTextAppendText ::
(B.CallStack.HasCallStack, MonadIO m, IsComboBoxText a) =>
a
-> T.Text
-> m ()
comboBoxTextAppendText :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsComboBoxText a) =>
a -> Text -> m ()
comboBoxTextAppendText a
comboBox Text
text = 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 ComboBoxText
comboBox' <- a -> IO (Ptr ComboBoxText)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
comboBox
Ptr CChar
text' <- Text -> IO (Ptr CChar)
textToCString Text
text
Ptr ComboBoxText -> Ptr CChar -> IO ()
gtk_combo_box_text_append_text Ptr ComboBoxText
comboBox' Ptr CChar
text'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
comboBox
Ptr CChar -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr CChar
text'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ComboBoxTextAppendTextMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsComboBoxText a) => O.OverloadedMethod ComboBoxTextAppendTextMethodInfo a signature where
overloadedMethod = comboBoxTextAppendText
instance O.OverloadedMethodInfo ComboBoxTextAppendTextMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.ComboBoxText.comboBoxTextAppendText",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-ComboBoxText.html#v:comboBoxTextAppendText"
}
#endif
foreign import ccall "gtk_combo_box_text_get_active_text" gtk_combo_box_text_get_active_text ::
Ptr ComboBoxText ->
IO CString
comboBoxTextGetActiveText ::
(B.CallStack.HasCallStack, MonadIO m, IsComboBoxText a) =>
a
-> m (Maybe T.Text)
comboBoxTextGetActiveText :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsComboBoxText a) =>
a -> m (Maybe Text)
comboBoxTextGetActiveText a
comboBox = IO (Maybe Text) -> m (Maybe Text)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Maybe Text) -> m (Maybe Text))
-> IO (Maybe Text) -> m (Maybe Text)
forall a b. (a -> b) -> a -> b
$ do
Ptr ComboBoxText
comboBox' <- a -> IO (Ptr ComboBoxText)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
comboBox
Ptr CChar
result <- Ptr ComboBoxText -> IO (Ptr CChar)
gtk_combo_box_text_get_active_text Ptr ComboBoxText
comboBox'
Maybe Text
maybeResult <- Ptr CChar -> (Ptr CChar -> IO Text) -> IO (Maybe Text)
forall a b. Ptr a -> (Ptr a -> IO b) -> IO (Maybe b)
convertIfNonNull Ptr CChar
result ((Ptr CChar -> IO Text) -> IO (Maybe Text))
-> (Ptr CChar -> IO Text) -> IO (Maybe Text)
forall a b. (a -> b) -> a -> b
$ \Ptr CChar
result' -> do
Text
result'' <- HasCallStack => Ptr CChar -> IO Text
Ptr CChar -> IO Text
cstringToText Ptr CChar
result'
Ptr CChar -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr CChar
result'
Text -> IO Text
forall (m :: * -> *) a. Monad m => a -> m a
return Text
result''
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
comboBox
Maybe Text -> IO (Maybe Text)
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Text
maybeResult
#if defined(ENABLE_OVERLOADING)
data ComboBoxTextGetActiveTextMethodInfo
instance (signature ~ (m (Maybe T.Text)), MonadIO m, IsComboBoxText a) => O.OverloadedMethod ComboBoxTextGetActiveTextMethodInfo a signature where
overloadedMethod = comboBoxTextGetActiveText
instance O.OverloadedMethodInfo ComboBoxTextGetActiveTextMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.ComboBoxText.comboBoxTextGetActiveText",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-ComboBoxText.html#v:comboBoxTextGetActiveText"
}
#endif
foreign import ccall "gtk_combo_box_text_insert" gtk_combo_box_text_insert ::
Ptr ComboBoxText ->
Int32 ->
CString ->
CString ->
IO ()
comboBoxTextInsert ::
(B.CallStack.HasCallStack, MonadIO m, IsComboBoxText a) =>
a
-> Int32
-> Maybe (T.Text)
-> T.Text
-> m ()
comboBoxTextInsert :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsComboBoxText a) =>
a -> Int32 -> Maybe Text -> Text -> m ()
comboBoxTextInsert a
comboBox Int32
position Maybe Text
id Text
text = 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 ComboBoxText
comboBox' <- a -> IO (Ptr ComboBoxText)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
comboBox
Ptr CChar
maybeId <- case Maybe Text
id of
Maybe Text
Nothing -> Ptr CChar -> IO (Ptr CChar)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr CChar
forall a. Ptr a
nullPtr
Just Text
jId -> do
Ptr CChar
jId' <- Text -> IO (Ptr CChar)
textToCString Text
jId
Ptr CChar -> IO (Ptr CChar)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr CChar
jId'
Ptr CChar
text' <- Text -> IO (Ptr CChar)
textToCString Text
text
Ptr ComboBoxText -> Int32 -> Ptr CChar -> Ptr CChar -> IO ()
gtk_combo_box_text_insert Ptr ComboBoxText
comboBox' Int32
position Ptr CChar
maybeId Ptr CChar
text'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
comboBox
Ptr CChar -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr CChar
maybeId
Ptr CChar -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr CChar
text'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ComboBoxTextInsertMethodInfo
instance (signature ~ (Int32 -> Maybe (T.Text) -> T.Text -> m ()), MonadIO m, IsComboBoxText a) => O.OverloadedMethod ComboBoxTextInsertMethodInfo a signature where
overloadedMethod = comboBoxTextInsert
instance O.OverloadedMethodInfo ComboBoxTextInsertMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.ComboBoxText.comboBoxTextInsert",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-ComboBoxText.html#v:comboBoxTextInsert"
}
#endif
foreign import ccall "gtk_combo_box_text_insert_text" gtk_combo_box_text_insert_text ::
Ptr ComboBoxText ->
Int32 ->
CString ->
IO ()
comboBoxTextInsertText ::
(B.CallStack.HasCallStack, MonadIO m, IsComboBoxText a) =>
a
-> Int32
-> T.Text
-> m ()
comboBoxTextInsertText :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsComboBoxText a) =>
a -> Int32 -> Text -> m ()
comboBoxTextInsertText a
comboBox Int32
position Text
text = 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 ComboBoxText
comboBox' <- a -> IO (Ptr ComboBoxText)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
comboBox
Ptr CChar
text' <- Text -> IO (Ptr CChar)
textToCString Text
text
Ptr ComboBoxText -> Int32 -> Ptr CChar -> IO ()
gtk_combo_box_text_insert_text Ptr ComboBoxText
comboBox' Int32
position Ptr CChar
text'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
comboBox
Ptr CChar -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr CChar
text'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ComboBoxTextInsertTextMethodInfo
instance (signature ~ (Int32 -> T.Text -> m ()), MonadIO m, IsComboBoxText a) => O.OverloadedMethod ComboBoxTextInsertTextMethodInfo a signature where
overloadedMethod = comboBoxTextInsertText
instance O.OverloadedMethodInfo ComboBoxTextInsertTextMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.ComboBoxText.comboBoxTextInsertText",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-ComboBoxText.html#v:comboBoxTextInsertText"
}
#endif
foreign import ccall "gtk_combo_box_text_prepend" gtk_combo_box_text_prepend ::
Ptr ComboBoxText ->
CString ->
CString ->
IO ()
comboBoxTextPrepend ::
(B.CallStack.HasCallStack, MonadIO m, IsComboBoxText a) =>
a
-> Maybe (T.Text)
-> T.Text
-> m ()
comboBoxTextPrepend :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsComboBoxText a) =>
a -> Maybe Text -> Text -> m ()
comboBoxTextPrepend a
comboBox Maybe Text
id Text
text = 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 ComboBoxText
comboBox' <- a -> IO (Ptr ComboBoxText)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
comboBox
Ptr CChar
maybeId <- case Maybe Text
id of
Maybe Text
Nothing -> Ptr CChar -> IO (Ptr CChar)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr CChar
forall a. Ptr a
nullPtr
Just Text
jId -> do
Ptr CChar
jId' <- Text -> IO (Ptr CChar)
textToCString Text
jId
Ptr CChar -> IO (Ptr CChar)
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr CChar
jId'
Ptr CChar
text' <- Text -> IO (Ptr CChar)
textToCString Text
text
Ptr ComboBoxText -> Ptr CChar -> Ptr CChar -> IO ()
gtk_combo_box_text_prepend Ptr ComboBoxText
comboBox' Ptr CChar
maybeId Ptr CChar
text'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
comboBox
Ptr CChar -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr CChar
maybeId
Ptr CChar -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr CChar
text'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ComboBoxTextPrependMethodInfo
instance (signature ~ (Maybe (T.Text) -> T.Text -> m ()), MonadIO m, IsComboBoxText a) => O.OverloadedMethod ComboBoxTextPrependMethodInfo a signature where
overloadedMethod = comboBoxTextPrepend
instance O.OverloadedMethodInfo ComboBoxTextPrependMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.ComboBoxText.comboBoxTextPrepend",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-ComboBoxText.html#v:comboBoxTextPrepend"
}
#endif
foreign import ccall "gtk_combo_box_text_prepend_text" gtk_combo_box_text_prepend_text ::
Ptr ComboBoxText ->
CString ->
IO ()
comboBoxTextPrependText ::
(B.CallStack.HasCallStack, MonadIO m, IsComboBoxText a) =>
a
-> T.Text
-> m ()
comboBoxTextPrependText :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsComboBoxText a) =>
a -> Text -> m ()
comboBoxTextPrependText a
comboBox Text
text = 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 ComboBoxText
comboBox' <- a -> IO (Ptr ComboBoxText)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
comboBox
Ptr CChar
text' <- Text -> IO (Ptr CChar)
textToCString Text
text
Ptr ComboBoxText -> Ptr CChar -> IO ()
gtk_combo_box_text_prepend_text Ptr ComboBoxText
comboBox' Ptr CChar
text'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
comboBox
Ptr CChar -> IO ()
forall a. Ptr a -> IO ()
freeMem Ptr CChar
text'
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ComboBoxTextPrependTextMethodInfo
instance (signature ~ (T.Text -> m ()), MonadIO m, IsComboBoxText a) => O.OverloadedMethod ComboBoxTextPrependTextMethodInfo a signature where
overloadedMethod = comboBoxTextPrependText
instance O.OverloadedMethodInfo ComboBoxTextPrependTextMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.ComboBoxText.comboBoxTextPrependText",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-ComboBoxText.html#v:comboBoxTextPrependText"
}
#endif
foreign import ccall "gtk_combo_box_text_remove" gtk_combo_box_text_remove ::
Ptr ComboBoxText ->
Int32 ->
IO ()
comboBoxTextRemove ::
(B.CallStack.HasCallStack, MonadIO m, IsComboBoxText a) =>
a
-> Int32
-> m ()
comboBoxTextRemove :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsComboBoxText a) =>
a -> Int32 -> m ()
comboBoxTextRemove a
comboBox Int32
position = 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 ComboBoxText
comboBox' <- a -> IO (Ptr ComboBoxText)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
comboBox
Ptr ComboBoxText -> Int32 -> IO ()
gtk_combo_box_text_remove Ptr ComboBoxText
comboBox' Int32
position
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
comboBox
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ComboBoxTextRemoveMethodInfo
instance (signature ~ (Int32 -> m ()), MonadIO m, IsComboBoxText a) => O.OverloadedMethod ComboBoxTextRemoveMethodInfo a signature where
overloadedMethod = comboBoxTextRemove
instance O.OverloadedMethodInfo ComboBoxTextRemoveMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.ComboBoxText.comboBoxTextRemove",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-ComboBoxText.html#v:comboBoxTextRemove"
}
#endif
foreign import ccall "gtk_combo_box_text_remove_all" gtk_combo_box_text_remove_all ::
Ptr ComboBoxText ->
IO ()
comboBoxTextRemoveAll ::
(B.CallStack.HasCallStack, MonadIO m, IsComboBoxText a) =>
a
-> m ()
comboBoxTextRemoveAll :: forall (m :: * -> *) a.
(HasCallStack, MonadIO m, IsComboBoxText a) =>
a -> m ()
comboBoxTextRemoveAll a
comboBox = 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 ComboBoxText
comboBox' <- a -> IO (Ptr ComboBoxText)
forall a b. (HasCallStack, ManagedPtrNewtype a) => a -> IO (Ptr b)
unsafeManagedPtrCastPtr a
comboBox
Ptr ComboBoxText -> IO ()
gtk_combo_box_text_remove_all Ptr ComboBoxText
comboBox'
a -> IO ()
forall a. ManagedPtrNewtype a => a -> IO ()
touchManagedPtr a
comboBox
() -> IO ()
forall (m :: * -> *) a. Monad m => a -> m a
return ()
#if defined(ENABLE_OVERLOADING)
data ComboBoxTextRemoveAllMethodInfo
instance (signature ~ (m ()), MonadIO m, IsComboBoxText a) => O.OverloadedMethod ComboBoxTextRemoveAllMethodInfo a signature where
overloadedMethod = comboBoxTextRemoveAll
instance O.OverloadedMethodInfo ComboBoxTextRemoveAllMethodInfo a where
overloadedMethodInfo = O.MethodInfo {
O.overloadedMethodName = "GI.Gtk.Objects.ComboBoxText.comboBoxTextRemoveAll",
O.overloadedMethodURL = "https://hackage.haskell.org/package/gi-gtk-4.0.4/docs/GI-Gtk-Objects-ComboBoxText.html#v:comboBoxTextRemoveAll"
}
#endif