{-# LINE 2 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
module Graphics.UI.Gtk.Abstract.Widget (
Widget,
WidgetClass,
castToWidget, gTypeWidget,
toWidget,
EventMask(..),
GType,
KeyVal,
Requisition(..),
Rectangle(..),
Color,
IconSize(..),
StateType(..),
TextDirection(..),
AccelFlags(..),
DirectionType(..),
StockId,
WidgetHelpType(..),
Allocation,
widgetShow,
widgetShowNow,
widgetHide,
widgetShowAll,
widgetDestroy,
widgetDraw,
widgetQueueDraw,
widgetQueueResize,
widgetQueueResizeNoRedraw,
widgetGetFrameClock,
widgetGetScaleFactor,
widgetSizeRequest,
widgetGetChildRequisition,
widgetSizeAllocate,
widgetSizeAllocateWithBaseline,
widgetAddAccelerator,
widgetRemoveAccelerator,
widgetSetAccelPath,
widgetCanActivateAccel,
widgetActivate,
widgetIntersect,
widgetHasIntersection,
widgetGetIsFocus,
widgetGrabFocus,
widgetGrabDefault,
widgetSetName,
widgetGetName,
widgetSetSensitive,
widgetSetSensitivity,
widgetGetParentWindow,
widgetDelEvents,
widgetAddEvents,
widgetGetEvents,
widgetSetEvents,
widgetGetToplevel,
widgetGetAncestor,
widgetGetPointer,
widgetIsAncestor,
widgetTranslateCoordinates,
widgetSetStyle,
widgetGetStyle,
widgetGetDefaultStyle,
widgetSetDirection,
widgetGetDirection,
widgetSetDefaultDirection,
widgetGetDefaultDirection,
widgetShapeCombineRegion,
widgetInputShapeCombineRegion,
widgetPath,
widgetClassPath,
widgetGetCompositeName,
widgetOverrideBackgroundColor,
widgetOverrideColor,
widgetOverrideFont,
widgetOverrideSymbolicColor,
widgetOverrideCursor,
widgetModifyStyle,
widgetGetModifierStyle,
widgetModifyFg,
widgetModifyBg,
widgetModifyText,
widgetModifyBase,
widgetModifyFont,
widgetRestoreFg,
widgetRestoreBg,
widgetRestoreText,
widgetRestoreBase,
widgetCreatePangoContext,
widgetGetPangoContext,
widgetCreateLayout,
widgetRenderIcon,
widgetQueueDrawArea,
widgetQueueDrawRegion,
widgetSetAppPaintable,
widgetSetDoubleBuffered,
widgetSetRedrawOnAllocate,
widgetSetCompositeName,
widgetMnemonicActivate,
widgetGetAccessible,
widgetChildFocus,
widgetGetChildVisible,
widgetGetParent,
widgetGetSettings,
widgetGetClipboard,
widgetGetDisplay,
widgetGetRootWindow,
widgetGetScreen,
widgetHasScreen,
widgetGetSizeRequest,
widgetGetPreferredSize,
widgetSetChildVisible,
widgetSetSizeRequest,
widgetSetNoShowAll,
widgetGetNoShowAll,
widgetListMnemonicLabels,
widgetAddMnemonicLabel,
widgetRemoveMnemonicLabel,
widgetIsComposited,
widgetErrorBell,
widgetKeynavFailed,
widgetGetTooltipMarkup,
widgetSetTooltipMarkup,
widgetGetTooltipText,
widgetSetTooltipText,
widgetGetTooltipWindow,
widgetSetTooltipWindow,
widgetGetHasTooltip,
widgetSetHasTooltip,
widgetTriggerTooltipQuery,
widgetGetWindow,
widgetRegisterWindow,
widgetUnregisterWindow,
cairoShouldDrawWindow,
cairoTransformToWindow,
widgetReparent,
widgetGetCanFocus,
widgetSetCanFocus,
widgetGetAllocation,
widgetGetAllocatedWidth,
widgetGetAllocatedHeight,
widgetGetAllocatedBaseline,
widgetGetClip,
widgetSetClip,
widgetGetAppPaintable,
widgetGetCanDefault,
widgetSetCanDefault,
widgetGetHasWindow,
widgetSetHasWindow,
widgetGetSensitive,
widgetIsSensitive,
widgetGetState,
widgetGetVisible,
widgetIsVisible,
widgetSetStateFlags,
widgetUnsetStateFlags,
widgetGetStateFlags,
widgetGetHasDefault,
widgetGetHasFocus,
widgetHasVisibleFocus,
widgetHasGrab,
widgetIsDrawable,
widgetIsToplevel,
widgetSetWindow,
widgetSetReceivesDefault,
widgetGetReceivesDefault,
widgetDeviceIsShadowed,
widgetGetModifierMask,
widgetSetSupportMultidevice,
widgetGetSupportMultidevice,
widgetSetState,
widgetEvent,
widgetGetHAlign,
widgetSetHAlign,
widgetGetVAlign,
widgetGetVAlignWithBaseline,
widgetSetVAlign,
widgetName,
widgetParent,
widgetWidthRequest,
widgetHeightRequest,
widgetMarginLeft,
widgetMarginRight,
widgetMarginStart,
widgetMarginEnd,
widgetMarginTop,
widgetMarginBottom,
widgetVisible,
widgetOpacity,
widgetSensitive,
widgetAppPaintable,
widgetCanFocus,
widgetHasFocus,
widgetIsFocus,
widgetCanDefault,
widgetHasDefault,
widgetReceivesDefault,
widgetCompositeChild,
widgetStyle,
widgetState,
widgetEvents,
widgetExpand,
widgetHExpand,
widgetHExpandSet,
widgetVExpand,
widgetVExpandSet,
widgetNoShowAll,
widgetChildVisible,
widgetCompositeName,
widgetDirection,
widgetTooltipMarkup,
widgetTooltipText,
widgetHasTooltip,
widgetHasRcStyle,
widgetGetRealized,
widgetGetMapped,
widgetSetRealized,
widgetSetMapped,
widgetGetStyleContext,
realize,
unrealize,
mapSignal,
unmapSignal,
sizeRequest,
sizeAllocate,
showSignal,
hideSignal,
focus,
stateChanged,
stateFlagsChanged,
parentSet,
hierarchyChanged,
styleSet,
directionChanged,
grabNotify,
popupMenuSignal,
showHelp,
accelClosuresChanged,
screenChanged,
queryTooltip,
draw,
buttonPressEvent,
buttonReleaseEvent,
configureEvent,
deleteEvent,
destroyEvent,
enterNotifyEvent,
exposeEvent,
focusInEvent,
focusOutEvent,
grabBrokenEvent,
keyPressEvent,
keyReleaseEvent,
leaveNotifyEvent,
mapEvent,
motionNotifyEvent,
noExposeEvent,
proximityInEvent,
proximityOutEvent,
scrollEvent,
unmapEvent,
visibilityNotifyEvent,
windowStateEvent,
{-# LINE 539 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
) where
import Control.Monad (liftM, unless)
import Data.Maybe (fromMaybe)
import Control.Monad.Reader (ask)
import Control.Monad.Trans (liftIO)
import System.Glib.FFI
import System.Glib.Flags (fromFlags, toFlags)
import System.Glib.GError (failOnGError)
import System.Glib.Flags (Flags)
import System.Glib.UTFString
import System.Glib.Attributes
import System.Glib.Properties
import System.Glib.GType (GType)
import System.Glib.GList (fromGList)
import Graphics.UI.Gtk.Abstract.Object (makeNewObject)
import Graphics.UI.Gtk.General.DNDTypes (Atom (Atom), SelectionTag)
import Graphics.UI.Gtk.Types
{-# LINE 559 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
import Graphics.UI.Gtk.Signals
{-# LINE 560 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
import Graphics.UI.Gtk.Gdk.Enums (EventMask(..)
)
import Graphics.UI.Gtk.Gdk.Keys (KeyVal)
import Graphics.UI.Gtk.General.Structs (Allocation, Rectangle(..)
,Requisition(..), Color, IconSize(..)
,Point
)
import Graphics.UI.Gtk.Gdk.EventM (EventM,
EventM,
EAny,
EKey,
EButton,
EScroll,
EMotion,
EExpose,
EVisibility,
ECrossing,
EFocus,
EConfigure,
EProperty,
EProximity,
EWindowState,
EGrabBroken,
)
import Graphics.UI.Gtk.General.Enums (StateType(..), TextDirection(..),
AccelFlags(..), DirectionType(..), Modifier
,StateFlags(..), Align(..)
,ModifierIntent(..)
)
import Graphics.Rendering.Pango.Types
{-# LINE 613 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
import Graphics.Rendering.Pango.BasicTypes (FontDescription(FontDescription),
PangoLayout(PangoLayout), makeNewPangoString )
import Graphics.UI.Gtk.General.StockItems (StockId)
import Data.IORef ( newIORef )
import Control.Monad.Reader ( runReaderT )
import Graphics.Rendering.Cairo.Types (Cairo(..), unCairo, Region(..), withRegion)
import Graphics.Rendering.Cairo.Internal (Render(..))
{-# LINE 624 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
widgetShow :: WidgetClass self => self -> IO ()
widgetShow :: forall self. WidgetClass self => self -> IO ()
widgetShow self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO ()
gtk_widget_show Ptr Widget
argPtr1)
{-# LINE 643 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetShowNow :: WidgetClass self => self -> IO ()
widgetShowNow :: forall self. WidgetClass self => self -> IO ()
widgetShowNow self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO ()
gtk_widget_show_now Ptr Widget
argPtr1)
{-# LINE 653 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetHide :: WidgetClass self => self -> IO ()
widgetHide :: forall self. WidgetClass self => self -> IO ()
widgetHide self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO ()
gtk_widget_hide Ptr Widget
argPtr1)
{-# LINE 661 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetShowAll :: WidgetClass self => self -> IO ()
widgetShowAll :: forall self. WidgetClass self => self -> IO ()
widgetShowAll self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO ()
gtk_widget_show_all Ptr Widget
argPtr1)
{-# LINE 669 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
{-# LINE 681 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
widgetDestroy :: WidgetClass self => self -> IO ()
widgetDestroy :: forall self. WidgetClass self => self -> IO ()
widgetDestroy self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO ()
gtk_widget_destroy Ptr Widget
argPtr1)
{-# LINE 697 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetDraw :: WidgetClass self
=> self
-> Cairo
-> IO ()
widgetDraw :: forall self. WidgetClass self => self -> Cairo -> IO ()
widgetDraw self
self Cairo
cr =
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> IO ()
gtk_widget_draw Ptr Widget
argPtr1 Ptr ()
arg2)
{-# LINE 725 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Ptr Cairo -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr (Ptr Cairo -> Ptr ()) -> Ptr Cairo -> Ptr ()
forall a b. (a -> b) -> a -> b
$ Cairo -> Ptr Cairo
unCairo Cairo
cr)
widgetQueueDraw :: WidgetClass self => self -> IO ()
widgetQueueDraw :: forall self. WidgetClass self => self -> IO ()
widgetQueueDraw self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO ()
gtk_widget_queue_draw Ptr Widget
argPtr1)
{-# LINE 738 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetQueueResize :: WidgetClass self => self -> IO ()
widgetQueueResize :: forall self. WidgetClass self => self -> IO ()
widgetQueueResize self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO ()
gtk_widget_queue_resize Ptr Widget
argPtr1)
{-# LINE 750 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetQueueResizeNoRedraw :: WidgetClass self => self -> IO ()
widgetQueueResizeNoRedraw :: forall self. WidgetClass self => self -> IO ()
widgetQueueResizeNoRedraw self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO ()
gtk_widget_queue_resize_no_redraw Ptr Widget
argPtr1)
{-# LINE 761 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGetFrameClock :: WidgetClass self => self -> IO FrameClock
widgetGetFrameClock :: forall self. WidgetClass self => self -> IO FrameClock
widgetGetFrameClock self
self =
(ForeignPtr FrameClock -> FrameClock, FinalizerPtr FrameClock)
-> IO (Ptr FrameClock) -> IO FrameClock
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr FrameClock -> FrameClock, FinalizerPtr FrameClock)
forall {a}. (ForeignPtr FrameClock -> FrameClock, FinalizerPtr a)
mkFrameClock (IO (Ptr FrameClock) -> IO FrameClock)
-> IO (Ptr FrameClock) -> IO FrameClock
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr FrameClock)) -> IO (Ptr FrameClock)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr FrameClock)) -> IO (Ptr FrameClock))
-> (Ptr Widget -> IO (Ptr FrameClock)) -> IO (Ptr FrameClock)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr FrameClock)
gtk_widget_get_frame_clock Ptr Widget
argPtr1)
{-# LINE 789 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGetScaleFactor :: WidgetClass self => self -> IO Int
widgetGetScaleFactor :: forall self. WidgetClass self => self -> IO Int
widgetGetScaleFactor self
self =
(CInt -> Int) -> IO CInt -> IO Int
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral (IO CInt -> IO Int) -> IO CInt -> IO Int
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_scale_factor Ptr Widget
argPtr1)
{-# LINE 803 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetSizeRequest :: WidgetClass self => self -> IO Requisition
widgetSizeRequest :: forall self. WidgetClass self => self -> IO Requisition
widgetSizeRequest self
self = (Ptr Requisition -> IO Requisition) -> IO Requisition
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr Requisition -> IO Requisition) -> IO Requisition)
-> (Ptr Requisition -> IO Requisition) -> IO Requisition
forall a b. (a -> b) -> a -> b
$ \Ptr Requisition
reqPtr -> do
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> IO ()
gtk_widget_size_request Ptr Widget
argPtr1 Ptr ()
arg2) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
self) (Ptr Requisition -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Requisition
reqPtr)
Ptr Requisition -> IO Requisition
forall a. Storable a => Ptr a -> IO a
peek Ptr Requisition
reqPtr
widgetGetChildRequisition :: WidgetClass self => self -> IO Requisition
widgetGetChildRequisition :: forall self. WidgetClass self => self -> IO Requisition
widgetGetChildRequisition self
self = (Ptr Requisition -> IO Requisition) -> IO Requisition
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr Requisition -> IO Requisition) -> IO Requisition)
-> (Ptr Requisition -> IO Requisition) -> IO Requisition
forall a b. (a -> b) -> a -> b
$ \Ptr Requisition
reqPtr -> do
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> IO ()
gtk_widget_get_child_requisition Ptr Widget
argPtr1 Ptr ()
arg2) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
self) (Ptr Requisition -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Requisition
reqPtr)
Ptr Requisition -> IO Requisition
forall a. Storable a => Ptr a -> IO a
peek Ptr Requisition
reqPtr
widgetSizeAllocate :: WidgetClass self => self
-> Allocation
-> IO ()
widgetSizeAllocate :: forall self. WidgetClass self => self -> Allocation -> IO ()
widgetSizeAllocate self
self Allocation
rect = Allocation -> (Ptr Allocation -> IO ()) -> IO ()
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Allocation
rect ((Ptr Allocation -> IO ()) -> IO ())
-> (Ptr Allocation -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Allocation
rectPtr ->
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> IO ()
gtk_widget_size_allocate Ptr Widget
argPtr1 Ptr ()
arg2) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
self) (Ptr Allocation -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Allocation
rectPtr)
widgetSizeAllocateWithBaseline :: WidgetClass self => self
-> Allocation
-> Int
-> IO ()
widgetSizeAllocateWithBaseline :: forall self. WidgetClass self => self -> Allocation -> Int -> IO ()
widgetSizeAllocateWithBaseline self
self Allocation
rect Int
baseline = Allocation -> (Ptr Allocation -> IO ()) -> IO ()
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Allocation
rect ((Ptr Allocation -> IO ()) -> IO ())
-> (Ptr Allocation -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Allocation
rectPtr ->
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 CInt
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> CInt -> IO ()
gtk_widget_size_allocate_with_baseline Ptr Widget
argPtr1 Ptr ()
arg2 CInt
arg3) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
self) (Ptr Allocation -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Allocation
rectPtr) (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
baseline)
widgetAddAccelerator :: (WidgetClass self, GlibString string) => self
-> string
-> AccelGroup
-> KeyVal
-> [Modifier]
-> [AccelFlags]
-> IO ()
widgetAddAccelerator :: forall self string.
(WidgetClass self, GlibString string) =>
self
-> string
-> AccelGroup
-> KeyVal
-> [Modifier]
-> [AccelFlags]
-> IO ()
widgetAddAccelerator self
self string
accelSignal AccelGroup
accelGroup KeyVal
accelKey [Modifier]
accelMods [AccelFlags]
accelFlags =
string -> (CString -> IO ()) -> IO ()
forall a. string -> (CString -> IO a) -> IO a
forall s a. GlibString s => s -> (CString -> IO a) -> IO a
withUTFString string
accelSignal ((CString -> IO ()) -> IO ()) -> (CString -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \CString
accelSignalPtr ->
(\(Widget ForeignPtr Widget
arg1) CString
arg2 (AccelGroup ForeignPtr AccelGroup
arg3) CUInt
arg4 CInt
arg5 CInt
arg6 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr AccelGroup -> (Ptr AccelGroup -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AccelGroup
arg3 ((Ptr AccelGroup -> IO ()) -> IO ())
-> (Ptr AccelGroup -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AccelGroup
argPtr3 ->Ptr Widget
-> CString -> Ptr AccelGroup -> CUInt -> CInt -> CInt -> IO ()
gtk_widget_add_accelerator Ptr Widget
argPtr1 CString
arg2 Ptr AccelGroup
argPtr3 CUInt
arg4 CInt
arg5 CInt
arg6)
{-# LINE 906 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
CString
accelSignalPtr
AccelGroup
accelGroup
(KeyVal -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral KeyVal
accelKey)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> ([Modifier] -> Int) -> [Modifier] -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. [Modifier] -> Int
forall a. Flags a => [a] -> Int
fromFlags) [Modifier]
accelMods)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> ([AccelFlags] -> Int) -> [AccelFlags] -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. [AccelFlags] -> Int
forall a. Flags a => [a] -> Int
fromFlags) [AccelFlags]
accelFlags)
widgetRemoveAccelerator :: WidgetClass self => self
-> AccelGroup
-> KeyVal
-> [Modifier]
-> IO Bool
widgetRemoveAccelerator :: forall self.
WidgetClass self =>
self -> AccelGroup -> KeyVal -> [Modifier] -> IO Bool
widgetRemoveAccelerator self
self AccelGroup
accelGroup KeyVal
accelKey [Modifier]
accelMods =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) (AccelGroup ForeignPtr AccelGroup
arg2) CUInt
arg3 CInt
arg4 -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr AccelGroup -> (Ptr AccelGroup -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AccelGroup
arg2 ((Ptr AccelGroup -> IO CInt) -> IO CInt)
-> (Ptr AccelGroup -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr AccelGroup
argPtr2 ->Ptr Widget -> Ptr AccelGroup -> CUInt -> CInt -> IO CInt
gtk_widget_remove_accelerator Ptr Widget
argPtr1 Ptr AccelGroup
argPtr2 CUInt
arg3 CInt
arg4)
{-# LINE 927 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
AccelGroup
accelGroup
(KeyVal -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral KeyVal
accelKey)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> ([Modifier] -> Int) -> [Modifier] -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. [Modifier] -> Int
forall a. Flags a => [a] -> Int
fromFlags) [Modifier]
accelMods)
widgetSetAccelPath :: (WidgetClass self, GlibString string) => self
-> string
-> AccelGroup
-> IO ()
widgetSetAccelPath :: forall self string.
(WidgetClass self, GlibString string) =>
self -> string -> AccelGroup -> IO ()
widgetSetAccelPath self
self string
accelPath AccelGroup
accelGroup =
string -> (CString -> IO ()) -> IO ()
forall a. string -> (CString -> IO a) -> IO a
forall s a. GlibString s => s -> (CString -> IO a) -> IO a
withUTFString string
accelPath ((CString -> IO ()) -> IO ()) -> (CString -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \CString
accelPathPtr ->
(\(Widget ForeignPtr Widget
arg1) CString
arg2 (AccelGroup ForeignPtr AccelGroup
arg3) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr AccelGroup -> (Ptr AccelGroup -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr AccelGroup
arg3 ((Ptr AccelGroup -> IO ()) -> IO ())
-> (Ptr AccelGroup -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr AccelGroup
argPtr3 ->Ptr Widget -> CString -> Ptr AccelGroup -> IO ()
gtk_widget_set_accel_path Ptr Widget
argPtr1 CString
arg2 Ptr AccelGroup
argPtr3)
{-# LINE 956 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
CString
accelPathPtr
AccelGroup
accelGroup
widgetCanActivateAccel :: WidgetClass self =>
(ConnectId self)
-> IO Bool
widgetCanActivateAccel :: forall self. WidgetClass self => ConnectId self -> IO Bool
widgetCanActivateAccel (ConnectId CULong
signalId self
self) =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) CUInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CUInt -> IO CInt
gtk_widget_can_activate_accel Ptr Widget
argPtr1 CUInt
arg2)
{-# LINE 977 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(CULong -> CUInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral CULong
signalId)
widgetActivate :: WidgetClass self => self
-> IO Bool
widgetActivate :: forall self. WidgetClass self => self -> IO Bool
widgetActivate self
self =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_activate Ptr Widget
argPtr1)
{-# LINE 991 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetIntersect :: WidgetClass self => self
-> Rectangle
-> IO (Maybe Rectangle)
widgetIntersect :: forall self.
WidgetClass self =>
self -> Allocation -> IO (Maybe Allocation)
widgetIntersect self
self Allocation
area =
Allocation
-> (Ptr Allocation -> IO (Maybe Allocation))
-> IO (Maybe Allocation)
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Allocation
area ((Ptr Allocation -> IO (Maybe Allocation))
-> IO (Maybe Allocation))
-> (Ptr Allocation -> IO (Maybe Allocation))
-> IO (Maybe Allocation)
forall a b. (a -> b) -> a -> b
$ \Ptr Allocation
areaPtr ->
(Ptr Allocation -> IO (Maybe Allocation)) -> IO (Maybe Allocation)
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr Allocation -> IO (Maybe Allocation))
-> IO (Maybe Allocation))
-> (Ptr Allocation -> IO (Maybe Allocation))
-> IO (Maybe Allocation)
forall a b. (a -> b) -> a -> b
$ \Ptr Allocation
intersectionPtr -> do
CInt
hasIntersection <- (\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> Ptr () -> IO CInt
gtk_widget_intersect Ptr Widget
argPtr1 Ptr ()
arg2 Ptr ()
arg3)
{-# LINE 1003 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Ptr Allocation -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Allocation
areaPtr)
(Ptr Allocation -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Allocation
intersectionPtr)
if (CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool CInt
hasIntersection)
then (Allocation -> Maybe Allocation)
-> IO Allocation -> IO (Maybe Allocation)
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM Allocation -> Maybe Allocation
forall a. a -> Maybe a
Just (IO Allocation -> IO (Maybe Allocation))
-> IO Allocation -> IO (Maybe Allocation)
forall a b. (a -> b) -> a -> b
$ Ptr Allocation -> IO Allocation
forall a. Storable a => Ptr a -> IO a
peek Ptr Allocation
intersectionPtr
else Maybe Allocation -> IO (Maybe Allocation)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Allocation
forall a. Maybe a
Nothing
widgetHasIntersection :: WidgetClass self => self
-> Rectangle
-> IO Bool
widgetHasIntersection :: forall self. WidgetClass self => self -> Allocation -> IO Bool
widgetHasIntersection self
self Allocation
area =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
Allocation -> (Ptr Allocation -> IO CInt) -> IO CInt
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Allocation
area ((Ptr Allocation -> IO CInt) -> IO CInt)
-> (Ptr Allocation -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Allocation
areaPtr ->
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> Ptr () -> IO CInt
gtk_widget_intersect Ptr Widget
argPtr1 Ptr ()
arg2 Ptr ()
arg3)
{-# LINE 1019 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Ptr Allocation -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Allocation
areaPtr)
(Ptr Any -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Any
forall a. Ptr a
nullPtr)
widgetGetIsFocus :: WidgetClass self => self
-> IO Bool
widgetGetIsFocus :: forall self. WidgetClass self => self -> IO Bool
widgetGetIsFocus self
self =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_is_focus Ptr Widget
argPtr1)
{-# LINE 1034 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGrabFocus :: WidgetClass self => self -> IO ()
widgetGrabFocus :: forall self. WidgetClass self => self -> IO ()
widgetGrabFocus self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO ()
gtk_widget_grab_focus Ptr Widget
argPtr1)
{-# LINE 1046 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGrabDefault :: WidgetClass self => self -> IO ()
widgetGrabDefault :: forall self. WidgetClass self => self -> IO ()
widgetGrabDefault self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO ()
gtk_widget_grab_default Ptr Widget
argPtr1)
{-# LINE 1057 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetSetName :: (WidgetClass self, GlibString string) => self
-> string
-> IO ()
widgetSetName :: forall self string.
(WidgetClass self, GlibString string) =>
self -> string -> IO ()
widgetSetName self
self string
name =
string -> (CString -> IO ()) -> IO ()
forall a. string -> (CString -> IO a) -> IO a
forall s a. GlibString s => s -> (CString -> IO a) -> IO a
withUTFString string
name ((CString -> IO ()) -> IO ()) -> (CString -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \CString
namePtr ->
(\(Widget ForeignPtr Widget
arg1) CString
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CString -> IO ()
gtk_widget_set_name Ptr Widget
argPtr1 CString
arg2)
{-# LINE 1073 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
CString
namePtr
widgetGetName :: (WidgetClass self, GlibString string) => self -> IO string
widgetGetName :: forall self string.
(WidgetClass self, GlibString string) =>
self -> IO string
widgetGetName self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CString) -> IO CString
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CString) -> IO CString)
-> (Ptr Widget -> IO CString) -> IO CString
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CString
gtk_widget_get_name Ptr Widget
argPtr1)
{-# LINE 1082 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
IO CString -> (CString -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= CString -> IO string
forall s. GlibString s => CString -> IO s
peekUTFString
widgetSetSensitive :: WidgetClass self => self
-> Bool
-> IO ()
widgetSetSensitive :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetSensitive self
self Bool
sensitive =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_sensitive Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 1096 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
sensitive)
widgetSetSensitivity :: WidgetClass self => self -> Bool -> IO ()
widgetSetSensitivity :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetSensitivity = self -> Bool -> IO ()
forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetSensitive
widgetGetParentWindow :: WidgetClass self => self -> IO DrawWindow
widgetGetParentWindow :: forall self. WidgetClass self => self -> IO DrawWindow
widgetGetParentWindow self
self =
(ForeignPtr DrawWindow -> DrawWindow, FinalizerPtr DrawWindow)
-> IO (Ptr DrawWindow) -> IO DrawWindow
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr DrawWindow -> DrawWindow, FinalizerPtr DrawWindow)
forall {a}. (ForeignPtr DrawWindow -> DrawWindow, FinalizerPtr a)
mkDrawWindow (IO (Ptr DrawWindow) -> IO DrawWindow)
-> IO (Ptr DrawWindow) -> IO DrawWindow
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr DrawWindow)) -> IO (Ptr DrawWindow)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr DrawWindow)) -> IO (Ptr DrawWindow))
-> (Ptr Widget -> IO (Ptr DrawWindow)) -> IO (Ptr DrawWindow)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr DrawWindow)
gtk_widget_get_parent_window Ptr Widget
argPtr1)
{-# LINE 1109 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetDelEvents :: WidgetClass self => self -> [EventMask] -> IO ()
widgetDelEvents :: forall self. WidgetClass self => self -> [EventMask] -> IO ()
widgetDelEvents self
self [EventMask]
events = do
CInt
mask <- (\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_events Ptr Widget
argPtr1) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
self)
let mask' :: CInt
mask' = CInt
mask CInt -> CInt -> CInt
forall a. Bits a => a -> a -> a
.&. (CInt -> CInt
forall a. Bits a => a -> a
complement (Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> Int -> CInt
forall a b. (a -> b) -> a -> b
$ [EventMask] -> Int
forall a. Flags a => [a] -> Int
fromFlags [EventMask]
events))
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_events Ptr Widget
argPtr1 CInt
arg2) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
self) CInt
mask'
widgetAddEvents :: WidgetClass self => self -> [EventMask] -> IO ()
widgetAddEvents :: forall self. WidgetClass self => self -> [EventMask] -> IO ()
widgetAddEvents self
self [] = () -> IO ()
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ()
widgetAddEvents self
self [EventMask]
events =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_add_events Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 1137 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> Int -> CInt
forall a b. (a -> b) -> a -> b
$ [EventMask] -> Int
forall a. Flags a => [a] -> Int
fromFlags [EventMask]
events)
widgetGetEvents :: WidgetClass self => self -> IO [EventMask]
widgetGetEvents :: forall self. WidgetClass self => self -> IO [EventMask]
widgetGetEvents self
self =
(CInt -> [EventMask]) -> IO CInt -> IO [EventMask]
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM (Int -> [EventMask]
forall a. Flags a => Int -> [a]
toFlags (Int -> [EventMask]) -> (CInt -> Int) -> CInt -> [EventMask]
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) (IO CInt -> IO [EventMask]) -> IO CInt -> IO [EventMask]
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_events Ptr Widget
argPtr1)
{-# LINE 1148 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetSetEvents :: WidgetClass self => self
-> [EventMask]
-> IO ()
widgetSetEvents :: forall self. WidgetClass self => self -> [EventMask] -> IO ()
widgetSetEvents self
self [EventMask]
events =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_events Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 1166 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> Int -> CInt
forall a b. (a -> b) -> a -> b
$ [EventMask] -> Int
forall a. Flags a => [a] -> Int
fromFlags [EventMask]
events)
{-# LINE 1194 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
widgetGetToplevel :: WidgetClass self =>
self
-> IO Widget
widgetGetToplevel :: forall self. WidgetClass self => self -> IO Widget
widgetGetToplevel self
self =
(ForeignPtr Widget -> Widget, FinalizerPtr Widget)
-> IO (Ptr Widget) -> IO Widget
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewObject (ForeignPtr Widget -> Widget, FinalizerPtr Widget)
forall {a}. (ForeignPtr Widget -> Widget, FinalizerPtr a)
mkWidget (IO (Ptr Widget) -> IO Widget) -> IO (Ptr Widget) -> IO Widget
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr Widget)) -> IO (Ptr Widget)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr Widget)) -> IO (Ptr Widget))
-> (Ptr Widget -> IO (Ptr Widget)) -> IO (Ptr Widget)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr Widget)
gtk_widget_get_toplevel Ptr Widget
argPtr1)
{-# LINE 1206 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGetAncestor :: WidgetClass self => self
-> GType
-> IO (Maybe Widget)
widgetGetAncestor :: forall self. WidgetClass self => self -> CUInt -> IO (Maybe Widget)
widgetGetAncestor self
self CUInt
widgetType = do
Ptr Widget
ptr <- (\(Widget ForeignPtr Widget
arg1) CUInt
arg2 -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr Widget)) -> IO (Ptr Widget)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr Widget)) -> IO (Ptr Widget))
-> (Ptr Widget -> IO (Ptr Widget)) -> IO (Ptr Widget)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CUInt -> IO (Ptr Widget)
gtk_widget_get_ancestor Ptr Widget
argPtr1 CUInt
arg2)
{-# LINE 1222 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
CUInt
widgetType
if Ptr Widget
ptrPtr Widget -> Ptr Widget -> Bool
forall a. Eq a => a -> a -> Bool
==Ptr Widget
forall a. Ptr a
nullPtr then Maybe Widget -> IO (Maybe Widget)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Widget
forall a. Maybe a
Nothing else
(Widget -> Maybe Widget) -> IO Widget -> IO (Maybe Widget)
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM Widget -> Maybe Widget
forall a. a -> Maybe a
Just (IO Widget -> IO (Maybe Widget)) -> IO Widget -> IO (Maybe Widget)
forall a b. (a -> b) -> a -> b
$ (ForeignPtr Widget -> Widget, FinalizerPtr Widget)
-> IO (Ptr Widget) -> IO Widget
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewObject (ForeignPtr Widget -> Widget, FinalizerPtr Widget)
forall {a}. (ForeignPtr Widget -> Widget, FinalizerPtr a)
mkWidget (Ptr Widget -> IO (Ptr Widget)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Widget
ptr)
{-# LINE 1252 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
widgetGetPointer :: WidgetClass self => self
-> IO (Int, Int)
widgetGetPointer :: forall self. WidgetClass self => self -> IO (Int, Int)
widgetGetPointer self
self =
(Ptr CInt -> IO (Int, Int)) -> IO (Int, Int)
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr CInt -> IO (Int, Int)) -> IO (Int, Int))
-> (Ptr CInt -> IO (Int, Int)) -> IO (Int, Int)
forall a b. (a -> b) -> a -> b
$ \Ptr CInt
xPtr ->
(Ptr CInt -> IO (Int, Int)) -> IO (Int, Int)
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr CInt -> IO (Int, Int)) -> IO (Int, Int))
-> (Ptr CInt -> IO (Int, Int)) -> IO (Int, Int)
forall a b. (a -> b) -> a -> b
$ \Ptr CInt
yPtr ->
(\(Widget ForeignPtr Widget
arg1) Ptr CInt
arg2 Ptr CInt
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr CInt -> Ptr CInt -> IO ()
gtk_widget_get_pointer Ptr Widget
argPtr1 Ptr CInt
arg2 Ptr CInt
arg3)
{-# LINE 1265 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
Ptr CInt
xPtr
Ptr CInt
yPtr
IO () -> IO CInt -> IO CInt
forall a b. IO a -> IO b -> IO b
forall (m :: * -> *) a b. Monad m => m a -> m b -> m b
>>
Ptr CInt -> IO CInt
forall a. Storable a => Ptr a -> IO a
peek Ptr CInt
xPtr IO CInt -> (CInt -> IO (Int, Int)) -> IO (Int, Int)
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \CInt
x ->
Ptr CInt -> IO CInt
forall a. Storable a => Ptr a -> IO a
peek Ptr CInt
yPtr IO CInt -> (CInt -> IO (Int, Int)) -> IO (Int, Int)
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \CInt
y ->
(Int, Int) -> IO (Int, Int)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral CInt
x, CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral CInt
y)
widgetIsAncestor :: (WidgetClass self, WidgetClass ancestor) =>
self
-> ancestor
-> IO Bool
widgetIsAncestor :: forall self ancestor.
(WidgetClass self, WidgetClass ancestor) =>
self -> ancestor -> IO Bool
widgetIsAncestor self
self ancestor
ancestor =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) (Widget ForeignPtr Widget
arg2) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg2 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr2 ->Ptr Widget -> Ptr Widget -> IO CInt
gtk_widget_is_ancestor Ptr Widget
argPtr1 Ptr Widget
argPtr2)
{-# LINE 1285 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(ancestor -> Widget
forall o. WidgetClass o => o -> Widget
toWidget ancestor
ancestor)
widgetTranslateCoordinates :: (WidgetClass self, WidgetClass destWidget) =>
self
-> destWidget
-> Int
-> Int
-> IO (Maybe (Int, Int))
widgetTranslateCoordinates :: forall self destWidget.
(WidgetClass self, WidgetClass destWidget) =>
self -> destWidget -> Int -> Int -> IO (Maybe (Int, Int))
widgetTranslateCoordinates self
self destWidget
destWidget Int
srcX Int
srcY =
(Ptr CInt -> IO (Maybe (Int, Int))) -> IO (Maybe (Int, Int))
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr CInt -> IO (Maybe (Int, Int))) -> IO (Maybe (Int, Int)))
-> (Ptr CInt -> IO (Maybe (Int, Int))) -> IO (Maybe (Int, Int))
forall a b. (a -> b) -> a -> b
$ \Ptr CInt
destXPtr ->
(Ptr CInt -> IO (Maybe (Int, Int))) -> IO (Maybe (Int, Int))
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr CInt -> IO (Maybe (Int, Int))) -> IO (Maybe (Int, Int)))
-> (Ptr CInt -> IO (Maybe (Int, Int))) -> IO (Maybe (Int, Int))
forall a b. (a -> b) -> a -> b
$ \Ptr CInt
destYPtr -> do
CInt
worked <- (\(Widget ForeignPtr Widget
arg1) (Widget ForeignPtr Widget
arg2) CInt
arg3 CInt
arg4 Ptr CInt
arg5 Ptr CInt
arg6 -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg2 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr2 ->Ptr Widget
-> Ptr Widget -> CInt -> CInt -> Ptr CInt -> Ptr CInt -> IO CInt
gtk_widget_translate_coordinates Ptr Widget
argPtr1 Ptr Widget
argPtr2 CInt
arg3 CInt
arg4 Ptr CInt
arg5 Ptr CInt
arg6)
{-# LINE 1306 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(destWidget -> Widget
forall o. WidgetClass o => o -> Widget
toWidget destWidget
destWidget)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
srcX)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
srcY)
Ptr CInt
destXPtr
Ptr CInt
destYPtr
if (CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool CInt
worked)
then do CInt
destX <- Ptr CInt -> IO CInt
forall a. Storable a => Ptr a -> IO a
peek Ptr CInt
destXPtr
CInt
destY <- Ptr CInt -> IO CInt
forall a. Storable a => Ptr a -> IO a
peek Ptr CInt
destYPtr
Maybe (Int, Int) -> IO (Maybe (Int, Int))
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ((Int, Int) -> Maybe (Int, Int)
forall a. a -> Maybe a
Just (CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral CInt
destX, CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral CInt
destY))
else Maybe (Int, Int) -> IO (Maybe (Int, Int))
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe (Int, Int)
forall a. Maybe a
Nothing
widgetSetStyle :: WidgetClass self => self
-> Maybe Style
-> IO ()
widgetSetStyle :: forall self. WidgetClass self => self -> Maybe Style -> IO ()
widgetSetStyle self
self Maybe Style
style =
(\(Widget ForeignPtr Widget
arg1) (Style ForeignPtr Style
arg2) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr Style -> (Ptr Style -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Style
arg2 ((Ptr Style -> IO ()) -> IO ()) -> (Ptr Style -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Style
argPtr2 ->Ptr Widget -> Ptr Style -> IO ()
gtk_widget_set_style Ptr Widget
argPtr1 Ptr Style
argPtr2)
{-# LINE 1329 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Style -> Maybe Style -> Style
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr Style -> Style
Style ForeignPtr Style
forall a. ForeignPtr a
nullForeignPtr) Maybe Style
style)
widgetGetStyle :: WidgetClass widget => widget -> IO Style
widgetGetStyle :: forall widget. WidgetClass widget => widget -> IO Style
widgetGetStyle widget
widget = do
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO ()
gtk_widget_ensure_style Ptr Widget
argPtr1) (widget -> Widget
forall o. WidgetClass o => o -> Widget
toWidget widget
widget)
(ForeignPtr Style -> Style, FinalizerPtr Style)
-> IO (Ptr Style) -> IO Style
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr Style -> Style, FinalizerPtr Style)
forall {a}. (ForeignPtr Style -> Style, FinalizerPtr a)
mkStyle (IO (Ptr Style) -> IO Style) -> IO (Ptr Style) -> IO Style
forall a b. (a -> b) -> a -> b
$ (\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr Style)) -> IO (Ptr Style)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr Style)) -> IO (Ptr Style))
-> (Ptr Widget -> IO (Ptr Style)) -> IO (Ptr Style)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr Style)
gtk_widget_get_style Ptr Widget
argPtr1) (widget -> Widget
forall o. WidgetClass o => o -> Widget
toWidget widget
widget)
{-# LINE 1372 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
widgetGetDefaultStyle ::
IO Style
widgetGetDefaultStyle :: IO Style
widgetGetDefaultStyle =
(ForeignPtr Style -> Style, FinalizerPtr Style)
-> IO (Ptr Style) -> IO Style
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr Style -> Style, FinalizerPtr Style)
forall {a}. (ForeignPtr Style -> Style, FinalizerPtr a)
mkStyle (IO (Ptr Style) -> IO Style) -> IO (Ptr Style) -> IO Style
forall a b. (a -> b) -> a -> b
$
IO (Ptr Style)
gtk_widget_get_default_style
{-# LINE 1393 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
widgetSetDirection :: WidgetClass self => self -> TextDirection -> IO ()
widgetSetDirection :: forall self. WidgetClass self => self -> TextDirection -> IO ()
widgetSetDirection self
self TextDirection
dir =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_direction Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 1408 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (TextDirection -> Int) -> TextDirection -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. TextDirection -> Int
forall a. Enum a => a -> Int
fromEnum) TextDirection
dir)
widgetGetDirection :: WidgetClass self => self -> IO TextDirection
widgetGetDirection :: forall self. WidgetClass self => self -> IO TextDirection
widgetGetDirection self
self =
(CInt -> TextDirection) -> IO CInt -> IO TextDirection
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM (Int -> TextDirection
forall a. Enum a => Int -> a
toEnum (Int -> TextDirection) -> (CInt -> Int) -> CInt -> TextDirection
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) (IO CInt -> IO TextDirection) -> IO CInt -> IO TextDirection
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_direction Ptr Widget
argPtr1)
{-# LINE 1418 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetSetDefaultDirection ::
TextDirection
-> IO ()
widgetSetDefaultDirection :: TextDirection -> IO ()
widgetSetDefaultDirection TextDirection
dir =
CInt -> IO ()
gtk_widget_set_default_direction
{-# LINE 1430 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
((fromIntegral . fromEnum) dir)
widgetGetDefaultDirection :: IO TextDirection
widgetGetDefaultDirection :: IO TextDirection
widgetGetDefaultDirection =
(CInt -> TextDirection) -> IO CInt -> IO TextDirection
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM (Int -> TextDirection
forall a. Enum a => Int -> a
toEnum (Int -> TextDirection) -> (CInt -> Int) -> CInt -> TextDirection
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) (IO CInt -> IO TextDirection) -> IO CInt -> IO TextDirection
forall a b. (a -> b) -> a -> b
$
IO CInt
gtk_widget_get_default_direction
{-# LINE 1488 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
widgetShapeCombineRegion :: WidgetClass self => self
-> Maybe Region
-> IO ()
widgetShapeCombineRegion :: forall self. WidgetClass self => self -> Maybe Region -> IO ()
widgetShapeCombineRegion self
self Maybe Region
region =
Region -> (Ptr Region -> IO ()) -> IO ()
forall {b}. Region -> (Ptr Region -> IO b) -> IO b
withRegion (Region -> Maybe Region -> Region
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr Region -> Region
Region ForeignPtr Region
forall a. ForeignPtr a
nullForeignPtr) Maybe Region
region) ((Ptr Region -> IO ()) -> IO ()) -> (Ptr Region -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Region
ptrRegion ->
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> IO ()
gtk_widget_shape_combine_region Ptr Widget
argPtr1 Ptr ()
arg2)
{-# LINE 1496 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Ptr Region -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Region
ptrRegion)
widgetInputShapeCombineRegion :: WidgetClass self => self
-> Maybe Region
-> IO ()
widgetInputShapeCombineRegion :: forall self. WidgetClass self => self -> Maybe Region -> IO ()
widgetInputShapeCombineRegion self
self Maybe Region
region =
Region -> (Ptr Region -> IO ()) -> IO ()
forall {b}. Region -> (Ptr Region -> IO b) -> IO b
withRegion (Region -> Maybe Region -> Region
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr Region -> Region
Region ForeignPtr Region
forall a. ForeignPtr a
nullForeignPtr) Maybe Region
region) ((Ptr Region -> IO ()) -> IO ()) -> (Ptr Region -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Region
ptrRegion ->
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> IO ()
gtk_widget_input_shape_combine_region Ptr Widget
argPtr1 Ptr ()
arg2)
{-# LINE 1508 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Ptr Region -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Region
ptrRegion)
{-# LINE 1546 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
widgetPath :: (WidgetClass self, GlibString string) => self
-> IO (Int, string, string)
widgetPath :: forall self string.
(WidgetClass self, GlibString string) =>
self -> IO (Int, string, string)
widgetPath self
self =
(Ptr CUInt -> IO (Int, string, string)) -> IO (Int, string, string)
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr CUInt -> IO (Int, string, string))
-> IO (Int, string, string))
-> (Ptr CUInt -> IO (Int, string, string))
-> IO (Int, string, string)
forall a b. (a -> b) -> a -> b
$ \Ptr CUInt
pathLengthPtr ->
(Ptr CString -> IO (Int, string, string))
-> IO (Int, string, string)
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr CString -> IO (Int, string, string))
-> IO (Int, string, string))
-> (Ptr CString -> IO (Int, string, string))
-> IO (Int, string, string)
forall a b. (a -> b) -> a -> b
$ \Ptr CString
pathPtr ->
(Ptr CString -> IO (Int, string, string))
-> IO (Int, string, string)
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr CString -> IO (Int, string, string))
-> IO (Int, string, string))
-> (Ptr CString -> IO (Int, string, string))
-> IO (Int, string, string)
forall a b. (a -> b) -> a -> b
$ \Ptr CString
pathReversedPtr ->
(\(Widget ForeignPtr Widget
arg1) Ptr CUInt
arg2 Ptr CString
arg3 Ptr CString
arg4 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr CUInt -> Ptr CString -> Ptr CString -> IO ()
gtk_widget_path Ptr Widget
argPtr1 Ptr CUInt
arg2 Ptr CString
arg3 Ptr CString
arg4)
{-# LINE 1567 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
Ptr CUInt
pathLengthPtr
Ptr CString
pathPtr
Ptr CString
pathReversedPtr
IO () -> IO CUInt -> IO CUInt
forall a b. IO a -> IO b -> IO b
forall (m :: * -> *) a b. Monad m => m a -> m b -> m b
>>
Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek Ptr CUInt
pathLengthPtr IO CUInt
-> (CUInt -> IO (Int, string, string)) -> IO (Int, string, string)
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \CUInt
pathLength ->
Ptr CString -> IO CString
forall a. Storable a => Ptr a -> IO a
peek Ptr CString
pathPtr IO CString -> (CString -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= CString -> IO string
forall s. GlibString s => CString -> IO s
readUTFString IO string
-> (string -> IO (Int, string, string)) -> IO (Int, string, string)
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \string
path ->
Ptr CString -> IO CString
forall a. Storable a => Ptr a -> IO a
peek Ptr CString
pathReversedPtr IO CString -> (CString -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= CString -> IO string
forall s. GlibString s => CString -> IO s
readUTFString IO string
-> (string -> IO (Int, string, string)) -> IO (Int, string, string)
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \string
pathReversed ->
(Int, string, string) -> IO (Int, string, string)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral CUInt
pathLength, string
path, string
pathReversed)
widgetClassPath :: (WidgetClass self, GlibString string) => self
-> IO (Int, string, string)
widgetClassPath :: forall self string.
(WidgetClass self, GlibString string) =>
self -> IO (Int, string, string)
widgetClassPath self
self =
(Ptr CUInt -> IO (Int, string, string)) -> IO (Int, string, string)
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr CUInt -> IO (Int, string, string))
-> IO (Int, string, string))
-> (Ptr CUInt -> IO (Int, string, string))
-> IO (Int, string, string)
forall a b. (a -> b) -> a -> b
$ \Ptr CUInt
pathLengthPtr ->
(Ptr CString -> IO (Int, string, string))
-> IO (Int, string, string)
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr CString -> IO (Int, string, string))
-> IO (Int, string, string))
-> (Ptr CString -> IO (Int, string, string))
-> IO (Int, string, string)
forall a b. (a -> b) -> a -> b
$ \Ptr CString
pathPtr ->
(Ptr CString -> IO (Int, string, string))
-> IO (Int, string, string)
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr CString -> IO (Int, string, string))
-> IO (Int, string, string))
-> (Ptr CString -> IO (Int, string, string))
-> IO (Int, string, string)
forall a b. (a -> b) -> a -> b
$ \Ptr CString
pathReversedPtr ->
(\(Widget ForeignPtr Widget
arg1) Ptr CUInt
arg2 Ptr CString
arg3 Ptr CString
arg4 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr CUInt -> Ptr CString -> Ptr CString -> IO ()
gtk_widget_class_path Ptr Widget
argPtr1 Ptr CUInt
arg2 Ptr CString
arg3 Ptr CString
arg4)
{-# LINE 1590 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
Ptr CUInt
pathLengthPtr
Ptr CString
pathPtr
Ptr CString
pathReversedPtr
IO () -> IO CUInt -> IO CUInt
forall a b. IO a -> IO b -> IO b
forall (m :: * -> *) a b. Monad m => m a -> m b -> m b
>>
Ptr CUInt -> IO CUInt
forall a. Storable a => Ptr a -> IO a
peek Ptr CUInt
pathLengthPtr IO CUInt
-> (CUInt -> IO (Int, string, string)) -> IO (Int, string, string)
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \CUInt
pathLength ->
Ptr CString -> IO CString
forall a. Storable a => Ptr a -> IO a
peek Ptr CString
pathPtr IO CString -> (CString -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= CString -> IO string
forall s. GlibString s => CString -> IO s
readUTFString IO string
-> (string -> IO (Int, string, string)) -> IO (Int, string, string)
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \string
path ->
Ptr CString -> IO CString
forall a. Storable a => Ptr a -> IO a
peek Ptr CString
pathReversedPtr IO CString -> (CString -> IO string) -> IO string
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= CString -> IO string
forall s. GlibString s => CString -> IO s
readUTFString IO string
-> (string -> IO (Int, string, string)) -> IO (Int, string, string)
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \string
pathReversed ->
(Int, string, string) -> IO (Int, string, string)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (CUInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral CUInt
pathLength, string
path, string
pathReversed)
widgetGetCompositeName :: (WidgetClass self, GlibString string) => self
-> IO (Maybe string)
widgetGetCompositeName :: forall self string.
(WidgetClass self, GlibString string) =>
self -> IO (Maybe string)
widgetGetCompositeName self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CString) -> IO CString
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CString) -> IO CString)
-> (Ptr Widget -> IO CString) -> IO CString
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CString
gtk_widget_get_composite_name Ptr Widget
argPtr1)
{-# LINE 1608 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
IO CString -> (CString -> IO (Maybe string)) -> IO (Maybe string)
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= (CString -> IO string) -> CString -> IO (Maybe string)
forall a b. (Ptr a -> IO b) -> Ptr a -> IO (Maybe b)
maybePeek CString -> IO string
forall s. GlibString s => CString -> IO s
peekUTFString
widgetOverrideBackgroundColor :: WidgetClass self => self
-> StateType
-> Maybe Color
-> IO ()
widgetOverrideBackgroundColor :: forall self.
WidgetClass self =>
self -> StateType -> Maybe Color -> IO ()
widgetOverrideBackgroundColor self
self StateType
state Maybe Color
color =
(Color -> (Ptr Color -> IO ()) -> IO ())
-> Maybe Color -> (Ptr Color -> IO ()) -> IO ()
forall a b c.
(a -> (Ptr b -> IO c) -> IO c)
-> Maybe a -> (Ptr b -> IO c) -> IO c
maybeWith Color -> (Ptr Color -> IO ()) -> IO ()
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Maybe Color
color ((Ptr Color -> IO ()) -> IO ()) -> (Ptr Color -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Color
colorPtr ->
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> Ptr () -> IO ()
gtk_widget_override_background_color Ptr Widget
argPtr1 CInt
arg2 Ptr ()
arg3)
{-# LINE 1623 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (StateType -> Int) -> StateType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. StateType -> Int
forall a. Enum a => a -> Int
fromEnum) StateType
state)
(Ptr Color -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Color
colorPtr)
widgetOverrideColor :: WidgetClass self => self
-> StateType
-> Maybe Color
-> IO ()
widgetOverrideColor :: forall self.
WidgetClass self =>
self -> StateType -> Maybe Color -> IO ()
widgetOverrideColor self
self StateType
state Maybe Color
color =
(Color -> (Ptr Color -> IO ()) -> IO ())
-> Maybe Color -> (Ptr Color -> IO ()) -> IO ()
forall a b c.
(a -> (Ptr b -> IO c) -> IO c)
-> Maybe a -> (Ptr b -> IO c) -> IO c
maybeWith Color -> (Ptr Color -> IO ()) -> IO ()
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Maybe Color
color ((Ptr Color -> IO ()) -> IO ()) -> (Ptr Color -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Color
colorPtr ->
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> Ptr () -> IO ()
gtk_widget_override_color Ptr Widget
argPtr1 CInt
arg2 Ptr ()
arg3)
{-# LINE 1658 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (StateType -> Int) -> StateType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. StateType -> Int
forall a. Enum a => a -> Int
fromEnum) StateType
state)
(Ptr Color -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Color
colorPtr)
widgetOverrideFont :: WidgetClass self => self
-> Maybe FontDescription
-> IO ()
widgetOverrideFont :: forall self.
WidgetClass self =>
self -> Maybe FontDescription -> IO ()
widgetOverrideFont self
self Maybe FontDescription
fontDesc =
(\(Widget ForeignPtr Widget
arg1) (FontDescription ForeignPtr FontDescription
arg2) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr FontDescription
-> (Ptr FontDescription -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr FontDescription
arg2 ((Ptr FontDescription -> IO ()) -> IO ())
-> (Ptr FontDescription -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr FontDescription
argPtr2 ->Ptr Widget -> Ptr FontDescription -> IO ()
gtk_widget_override_font Ptr Widget
argPtr1 Ptr FontDescription
argPtr2)
{-# LINE 1671 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(FontDescription -> Maybe FontDescription -> FontDescription
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr FontDescription -> FontDescription
FontDescription ForeignPtr FontDescription
forall a. ForeignPtr a
nullForeignPtr) Maybe FontDescription
fontDesc)
widgetOverrideSymbolicColor :: (WidgetClass self, GlibString string) => self
-> string
-> Maybe Color
-> IO ()
widgetOverrideSymbolicColor :: forall self string.
(WidgetClass self, GlibString string) =>
self -> string -> Maybe Color -> IO ()
widgetOverrideSymbolicColor self
self string
name Maybe Color
color =
string -> (CString -> IO ()) -> IO ()
forall a. string -> (CString -> IO a) -> IO a
forall s a. GlibString s => s -> (CString -> IO a) -> IO a
withUTFString string
name ((CString -> IO ()) -> IO ()) -> (CString -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \CString
namePtr ->
(Color -> (Ptr Color -> IO ()) -> IO ())
-> Maybe Color -> (Ptr Color -> IO ()) -> IO ()
forall a b c.
(a -> (Ptr b -> IO c) -> IO c)
-> Maybe a -> (Ptr b -> IO c) -> IO c
maybeWith Color -> (Ptr Color -> IO ()) -> IO ()
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Maybe Color
color ((Ptr Color -> IO ()) -> IO ()) -> (Ptr Color -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Color
colorPtr ->
(\(Widget ForeignPtr Widget
arg1) CString
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CString -> Ptr () -> IO ()
gtk_widget_override_symbolic_color Ptr Widget
argPtr1 CString
arg2 Ptr ()
arg3)
{-# LINE 1686 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
CString
namePtr
(Ptr Color -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Color
colorPtr)
widgetOverrideCursor :: WidgetClass self => self
-> Maybe Color
-> Maybe Color
-> IO ()
widgetOverrideCursor :: forall self.
WidgetClass self =>
self -> Maybe Color -> Maybe Color -> IO ()
widgetOverrideCursor self
self Maybe Color
cursor Maybe Color
secondaryCursor =
(Color -> (Ptr Color -> IO ()) -> IO ())
-> Maybe Color -> (Ptr Color -> IO ()) -> IO ()
forall a b c.
(a -> (Ptr b -> IO c) -> IO c)
-> Maybe a -> (Ptr b -> IO c) -> IO c
maybeWith Color -> (Ptr Color -> IO ()) -> IO ()
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Maybe Color
cursor ((Ptr Color -> IO ()) -> IO ()) -> (Ptr Color -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Color
cursorPtr ->
(Color -> (Ptr Color -> IO ()) -> IO ())
-> Maybe Color -> (Ptr Color -> IO ()) -> IO ()
forall a b c.
(a -> (Ptr b -> IO c) -> IO c)
-> Maybe a -> (Ptr b -> IO c) -> IO c
maybeWith Color -> (Ptr Color -> IO ()) -> IO ()
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Maybe Color
secondaryCursor ((Ptr Color -> IO ()) -> IO ()) -> (Ptr Color -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Color
secondaryCursorPtr ->
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> Ptr () -> IO ()
gtk_widget_override_cursor Ptr Widget
argPtr1 Ptr ()
arg2 Ptr ()
arg3)
{-# LINE 1705 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Ptr Color -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Color
cursorPtr)
(Ptr Color -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Color
secondaryCursorPtr)
widgetModifyStyle :: (WidgetClass self, RcStyleClass style) => self
-> style
-> IO ()
widgetModifyStyle :: forall self style.
(WidgetClass self, RcStyleClass style) =>
self -> style -> IO ()
widgetModifyStyle self
self style
style =
(\(Widget ForeignPtr Widget
arg1) (RcStyle ForeignPtr RcStyle
arg2) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr RcStyle -> (Ptr RcStyle -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr RcStyle
arg2 ((Ptr RcStyle -> IO ()) -> IO ())
-> (Ptr RcStyle -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr RcStyle
argPtr2 ->Ptr Widget -> Ptr RcStyle -> IO ()
gtk_widget_modify_style Ptr Widget
argPtr1 Ptr RcStyle
argPtr2)
{-# LINE 1731 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(style -> RcStyle
forall o. RcStyleClass o => o -> RcStyle
toRcStyle style
style)
widgetGetModifierStyle :: WidgetClass self => self -> IO RcStyle
widgetGetModifierStyle :: forall self. WidgetClass self => self -> IO RcStyle
widgetGetModifierStyle self
self =
(ForeignPtr RcStyle -> RcStyle, FinalizerPtr RcStyle)
-> IO (Ptr RcStyle) -> IO RcStyle
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr RcStyle -> RcStyle, FinalizerPtr RcStyle)
forall {a}. (ForeignPtr RcStyle -> RcStyle, FinalizerPtr a)
mkRcStyle (IO (Ptr RcStyle) -> IO RcStyle) -> IO (Ptr RcStyle) -> IO RcStyle
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr RcStyle)) -> IO (Ptr RcStyle)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr RcStyle)) -> IO (Ptr RcStyle))
-> (Ptr Widget -> IO (Ptr RcStyle)) -> IO (Ptr RcStyle)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr RcStyle)
gtk_widget_get_modifier_style Ptr Widget
argPtr1)
{-# LINE 1751 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetModifyFg :: WidgetClass self => self
-> StateType
-> Color
-> IO ()
widgetModifyFg :: forall self.
WidgetClass self =>
self -> StateType -> Color -> IO ()
widgetModifyFg self
self StateType
state Color
color =
Color -> (Ptr Color -> IO ()) -> IO ()
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Color
color ((Ptr Color -> IO ()) -> IO ()) -> (Ptr Color -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Color
colorPtr ->
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> Ptr () -> IO ()
gtk_widget_modify_fg Ptr Widget
argPtr1 CInt
arg2 Ptr ()
arg3)
{-# LINE 1765 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (StateType -> Int) -> StateType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. StateType -> Int
forall a. Enum a => a -> Int
fromEnum) StateType
state)
(Ptr Color -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Color
colorPtr)
widgetRestoreFg :: WidgetClass self => self
-> StateType
-> IO ()
widgetRestoreFg :: forall self. WidgetClass self => self -> StateType -> IO ()
widgetRestoreFg self
self StateType
state =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> Ptr () -> IO ()
gtk_widget_modify_fg Ptr Widget
argPtr1 CInt
arg2 Ptr ()
arg3)
{-# LINE 1777 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (StateType -> Int) -> StateType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. StateType -> Int
forall a. Enum a => a -> Int
fromEnum) StateType
state)
Ptr ()
forall a. Ptr a
nullPtr
widgetModifyBg :: WidgetClass self => self
-> StateType
-> Color
-> IO ()
widgetModifyBg :: forall self.
WidgetClass self =>
self -> StateType -> Color -> IO ()
widgetModifyBg self
self StateType
state Color
color =
Color -> (Ptr Color -> IO ()) -> IO ()
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Color
color ((Ptr Color -> IO ()) -> IO ()) -> (Ptr Color -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Color
colorPtr ->
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> Ptr () -> IO ()
gtk_widget_modify_bg Ptr Widget
argPtr1 CInt
arg2 Ptr ()
arg3)
{-# LINE 1800 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (StateType -> Int) -> StateType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. StateType -> Int
forall a. Enum a => a -> Int
fromEnum) StateType
state)
(Ptr Color -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Color
colorPtr)
widgetRestoreBg :: WidgetClass self => self
-> StateType
-> IO ()
widgetRestoreBg :: forall self. WidgetClass self => self -> StateType -> IO ()
widgetRestoreBg self
self StateType
state =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> Ptr () -> IO ()
gtk_widget_modify_bg Ptr Widget
argPtr1 CInt
arg2 Ptr ()
arg3)
{-# LINE 1812 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (StateType -> Int) -> StateType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. StateType -> Int
forall a. Enum a => a -> Int
fromEnum) StateType
state)
Ptr ()
forall a. Ptr a
nullPtr
widgetModifyText :: WidgetClass self => self
-> StateType
-> Color
-> IO ()
widgetModifyText :: forall self.
WidgetClass self =>
self -> StateType -> Color -> IO ()
widgetModifyText self
self StateType
state Color
color =
Color -> (Ptr Color -> IO ()) -> IO ()
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Color
color ((Ptr Color -> IO ()) -> IO ()) -> (Ptr Color -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Color
colorPtr ->
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> Ptr () -> IO ()
gtk_widget_modify_text Ptr Widget
argPtr1 CInt
arg2 Ptr ()
arg3)
{-# LINE 1830 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (StateType -> Int) -> StateType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. StateType -> Int
forall a. Enum a => a -> Int
fromEnum) StateType
state)
(Ptr Color -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Color
colorPtr)
widgetRestoreText :: WidgetClass self => self
-> StateType
-> IO ()
widgetRestoreText :: forall self. WidgetClass self => self -> StateType -> IO ()
widgetRestoreText self
self StateType
state =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> Ptr () -> IO ()
gtk_widget_modify_text Ptr Widget
argPtr1 CInt
arg2 Ptr ()
arg3)
{-# LINE 1842 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (StateType -> Int) -> StateType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. StateType -> Int
forall a. Enum a => a -> Int
fromEnum) StateType
state)
Ptr ()
forall a. Ptr a
nullPtr
widgetModifyBase :: WidgetClass self => self
-> StateType
-> Color
-> IO ()
widgetModifyBase :: forall self.
WidgetClass self =>
self -> StateType -> Color -> IO ()
widgetModifyBase self
self StateType
state Color
color =
Color -> (Ptr Color -> IO ()) -> IO ()
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Color
color ((Ptr Color -> IO ()) -> IO ()) -> (Ptr Color -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Color
colorPtr ->
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> Ptr () -> IO ()
gtk_widget_modify_base Ptr Widget
argPtr1 CInt
arg2 Ptr ()
arg3)
{-# LINE 1867 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (StateType -> Int) -> StateType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. StateType -> Int
forall a. Enum a => a -> Int
fromEnum) StateType
state)
(Ptr Color -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Color
colorPtr)
widgetRestoreBase :: WidgetClass self => self
-> StateType
-> IO ()
widgetRestoreBase :: forall self. WidgetClass self => self -> StateType -> IO ()
widgetRestoreBase self
self StateType
state =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> Ptr () -> IO ()
gtk_widget_modify_base Ptr Widget
argPtr1 CInt
arg2 Ptr ()
arg3)
{-# LINE 1879 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (StateType -> Int) -> StateType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. StateType -> Int
forall a. Enum a => a -> Int
fromEnum) StateType
state)
Ptr ()
forall a. Ptr a
nullPtr
widgetModifyFont :: WidgetClass self => self
-> Maybe FontDescription
-> IO ()
widgetModifyFont :: forall self.
WidgetClass self =>
self -> Maybe FontDescription -> IO ()
widgetModifyFont self
self Maybe FontDescription
fontDesc =
(\(Widget ForeignPtr Widget
arg1) (FontDescription ForeignPtr FontDescription
arg2) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr FontDescription
-> (Ptr FontDescription -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr FontDescription
arg2 ((Ptr FontDescription -> IO ()) -> IO ())
-> (Ptr FontDescription -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr FontDescription
argPtr2 ->Ptr Widget -> Ptr FontDescription -> IO ()
gtk_widget_modify_font Ptr Widget
argPtr1 Ptr FontDescription
argPtr2)
{-# LINE 1895 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(FontDescription -> Maybe FontDescription -> FontDescription
forall a. a -> Maybe a -> a
fromMaybe (ForeignPtr FontDescription -> FontDescription
FontDescription ForeignPtr FontDescription
forall a. ForeignPtr a
nullForeignPtr) Maybe FontDescription
fontDesc)
widgetCreatePangoContext :: WidgetClass self => self
-> IO PangoContext
widgetCreatePangoContext :: forall self. WidgetClass self => self -> IO PangoContext
widgetCreatePangoContext self
self =
(ForeignPtr PangoContext -> PangoContext,
FinalizerPtr PangoContext)
-> IO (Ptr PangoContext) -> IO PangoContext
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
wrapNewGObject (ForeignPtr PangoContext -> PangoContext,
FinalizerPtr PangoContext)
forall {a}.
(ForeignPtr PangoContext -> PangoContext, FinalizerPtr a)
mkPangoContext (IO (Ptr PangoContext) -> IO PangoContext)
-> IO (Ptr PangoContext) -> IO PangoContext
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr PangoContext)) -> IO (Ptr PangoContext)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr PangoContext)) -> IO (Ptr PangoContext))
-> (Ptr Widget -> IO (Ptr PangoContext)) -> IO (Ptr PangoContext)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr PangoContext)
gtk_widget_create_pango_context Ptr Widget
argPtr1)
{-# LINE 1907 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGetPangoContext :: WidgetClass self => self
-> IO PangoContext
widgetGetPangoContext :: forall self. WidgetClass self => self -> IO PangoContext
widgetGetPangoContext self
self =
(ForeignPtr PangoContext -> PangoContext,
FinalizerPtr PangoContext)
-> IO (Ptr PangoContext) -> IO PangoContext
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr PangoContext -> PangoContext,
FinalizerPtr PangoContext)
forall {a}.
(ForeignPtr PangoContext -> PangoContext, FinalizerPtr a)
mkPangoContext (IO (Ptr PangoContext) -> IO PangoContext)
-> IO (Ptr PangoContext) -> IO PangoContext
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr PangoContext)) -> IO (Ptr PangoContext)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr PangoContext)) -> IO (Ptr PangoContext))
-> (Ptr Widget -> IO (Ptr PangoContext)) -> IO (Ptr PangoContext)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr PangoContext)
gtk_widget_get_pango_context Ptr Widget
argPtr1)
{-# LINE 1927 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetCreateLayout :: (WidgetClass self, GlibString string) => self
-> string
-> IO PangoLayout
widgetCreateLayout :: forall self string.
(WidgetClass self, GlibString string) =>
self -> string -> IO PangoLayout
widgetCreateLayout self
self string
text = do
PangoLayoutRaw
pl <- (ForeignPtr PangoLayoutRaw -> PangoLayoutRaw,
FinalizerPtr PangoLayoutRaw)
-> IO (Ptr PangoLayoutRaw) -> IO PangoLayoutRaw
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
wrapNewGObject (ForeignPtr PangoLayoutRaw -> PangoLayoutRaw,
FinalizerPtr PangoLayoutRaw)
forall {a}.
(ForeignPtr PangoLayoutRaw -> PangoLayoutRaw, FinalizerPtr a)
mkPangoLayoutRaw (IO (Ptr PangoLayoutRaw) -> IO PangoLayoutRaw)
-> IO (Ptr PangoLayoutRaw) -> IO PangoLayoutRaw
forall a b. (a -> b) -> a -> b
$
string
-> (CString -> IO (Ptr PangoLayoutRaw)) -> IO (Ptr PangoLayoutRaw)
forall a. string -> (CString -> IO a) -> IO a
forall s a. GlibString s => s -> (CString -> IO a) -> IO a
withUTFString string
text ((CString -> IO (Ptr PangoLayoutRaw)) -> IO (Ptr PangoLayoutRaw))
-> (CString -> IO (Ptr PangoLayoutRaw)) -> IO (Ptr PangoLayoutRaw)
forall a b. (a -> b) -> a -> b
$ \CString
textPtr ->
(\(Widget ForeignPtr Widget
arg1) CString
arg2 -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr PangoLayoutRaw))
-> IO (Ptr PangoLayoutRaw)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr PangoLayoutRaw))
-> IO (Ptr PangoLayoutRaw))
-> (Ptr Widget -> IO (Ptr PangoLayoutRaw))
-> IO (Ptr PangoLayoutRaw)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CString -> IO (Ptr PangoLayoutRaw)
gtk_widget_create_pango_layout Ptr Widget
argPtr1 CString
arg2)
{-# LINE 1953 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
CString
textPtr
PangoString
ps <- string -> IO PangoString
forall string. GlibString string => string -> IO PangoString
makeNewPangoString string
text
IORef PangoString
psRef <- PangoString -> IO (IORef PangoString)
forall a. a -> IO (IORef a)
newIORef PangoString
ps
PangoLayout -> IO PangoLayout
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (IORef PangoString -> PangoLayoutRaw -> PangoLayout
PangoLayout IORef PangoString
psRef PangoLayoutRaw
pl)
widgetRenderIcon :: (WidgetClass self, GlibString string) => self
-> string
-> IconSize
-> string
-> IO (Maybe Pixbuf)
widgetRenderIcon :: forall self string.
(WidgetClass self, GlibString string) =>
self -> string -> IconSize -> string -> IO (Maybe Pixbuf)
widgetRenderIcon self
self string
stockId IconSize
size string
detail =
(IO (Ptr Pixbuf) -> IO Pixbuf)
-> IO (Ptr Pixbuf) -> IO (Maybe Pixbuf)
forall a. (IO (Ptr a) -> IO a) -> IO (Ptr a) -> IO (Maybe a)
maybeNull ((ForeignPtr Pixbuf -> Pixbuf, FinalizerPtr Pixbuf)
-> IO (Ptr Pixbuf) -> IO Pixbuf
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
wrapNewGObject (ForeignPtr Pixbuf -> Pixbuf, FinalizerPtr Pixbuf)
forall {a}. (ForeignPtr Pixbuf -> Pixbuf, FinalizerPtr a)
mkPixbuf) (IO (Ptr Pixbuf) -> IO (Maybe Pixbuf))
-> IO (Ptr Pixbuf) -> IO (Maybe Pixbuf)
forall a b. (a -> b) -> a -> b
$
string -> (CString -> IO (Ptr Pixbuf)) -> IO (Ptr Pixbuf)
forall a. string -> (CString -> IO a) -> IO a
forall s a. GlibString s => s -> (CString -> IO a) -> IO a
withUTFString string
detail ((CString -> IO (Ptr Pixbuf)) -> IO (Ptr Pixbuf))
-> (CString -> IO (Ptr Pixbuf)) -> IO (Ptr Pixbuf)
forall a b. (a -> b) -> a -> b
$ \CString
detailPtr ->
string -> (CString -> IO (Ptr Pixbuf)) -> IO (Ptr Pixbuf)
forall a. string -> (CString -> IO a) -> IO a
forall s a. GlibString s => s -> (CString -> IO a) -> IO a
withUTFString string
stockId ((CString -> IO (Ptr Pixbuf)) -> IO (Ptr Pixbuf))
-> (CString -> IO (Ptr Pixbuf)) -> IO (Ptr Pixbuf)
forall a b. (a -> b) -> a -> b
$ \CString
stockIdPtr ->
(\(Widget ForeignPtr Widget
arg1) CString
arg2 CInt
arg3 CString
arg4 -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr Pixbuf)) -> IO (Ptr Pixbuf)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr Pixbuf)) -> IO (Ptr Pixbuf))
-> (Ptr Widget -> IO (Ptr Pixbuf)) -> IO (Ptr Pixbuf)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CString -> CInt -> CString -> IO (Ptr Pixbuf)
gtk_widget_render_icon Ptr Widget
argPtr1 CString
arg2 CInt
arg3 CString
arg4)
{-# LINE 1985 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
CString
stockIdPtr
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (IconSize -> Int) -> IconSize -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. IconSize -> Int
forall a. Enum a => a -> Int
fromEnum) IconSize
size)
CString
detailPtr
widgetQueueDrawArea :: WidgetClass self => self
-> Int
-> Int
-> Int
-> Int
-> IO ()
widgetQueueDrawArea :: forall self.
WidgetClass self =>
self -> Int -> Int -> Int -> Int -> IO ()
widgetQueueDrawArea self
self Int
x Int
y Int
width Int
height =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 CInt
arg3 CInt
arg4 CInt
arg5 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> CInt -> CInt -> CInt -> IO ()
gtk_widget_queue_draw_area Ptr Widget
argPtr1 CInt
arg2 CInt
arg3 CInt
arg4 CInt
arg5)
{-# LINE 2023 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
x)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
y)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
width)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
height)
widgetQueueDrawRegion :: WidgetClass self => self
-> Region
-> IO ()
widgetQueueDrawRegion :: forall self. WidgetClass self => self -> Region -> IO ()
widgetQueueDrawRegion self
self Region
region =
Region -> (Ptr Region -> IO ()) -> IO ()
forall {b}. Region -> (Ptr Region -> IO b) -> IO b
withRegion Region
region ((Ptr Region -> IO ()) -> IO ()) -> (Ptr Region -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Region
regionPtr ->
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> IO ()
gtk_widget_queue_draw_region Ptr Widget
argPtr1 Ptr ()
arg2)
{-# LINE 2045 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Ptr Region -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Region
regionPtr)
{-# LINE 2059 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
widgetSetAppPaintable :: WidgetClass self => self
-> Bool
-> IO ()
widgetSetAppPaintable :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetAppPaintable self
self Bool
appPaintable =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_app_paintable Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 2075 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
appPaintable)
widgetSetDoubleBuffered :: WidgetClass self => self
-> Bool
-> IO ()
widgetSetDoubleBuffered :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetDoubleBuffered self
self Bool
doubleBuffered =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_double_buffered Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 2105 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
doubleBuffered)
widgetSetRedrawOnAllocate :: WidgetClass self => self
-> Bool
-> IO ()
widgetSetRedrawOnAllocate :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetRedrawOnAllocate self
self Bool
redrawOnAllocate =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_redraw_on_allocate Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 2130 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
redrawOnAllocate)
widgetSetCompositeName :: (WidgetClass self, GlibString string) => self
-> string
-> IO ()
widgetSetCompositeName :: forall self string.
(WidgetClass self, GlibString string) =>
self -> string -> IO ()
widgetSetCompositeName self
self string
name =
string -> (CString -> IO ()) -> IO ()
forall a. string -> (CString -> IO a) -> IO a
forall s a. GlibString s => s -> (CString -> IO a) -> IO a
withUTFString string
name ((CString -> IO ()) -> IO ()) -> (CString -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \CString
namePtr ->
(\(Widget ForeignPtr Widget
arg1) CString
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CString -> IO ()
gtk_widget_set_composite_name Ptr Widget
argPtr1 CString
arg2)
{-# LINE 2143 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
CString
namePtr
widgetMnemonicActivate :: WidgetClass self => self
-> Bool
-> IO Bool
widgetMnemonicActivate :: forall self. WidgetClass self => self -> Bool -> IO Bool
widgetMnemonicActivate self
self Bool
groupCycling =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO CInt
gtk_widget_mnemonic_activate Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 2156 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
groupCycling)
{-# LINE 2204 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
widgetGetAccessible :: WidgetClass self => self
-> IO GObject
widgetGetAccessible :: forall self. WidgetClass self => self -> IO GObject
widgetGetAccessible self
self =
(ForeignPtr GObject -> GObject, FinalizerPtr GObject)
-> IO (Ptr GObject) -> IO GObject
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr GObject -> GObject, FinalizerPtr GObject)
forall {a}. (ForeignPtr GObject -> GObject, FinalizerPtr a)
mkGObject (IO (Ptr GObject) -> IO GObject) -> IO (Ptr GObject) -> IO GObject
forall a b. (a -> b) -> a -> b
$
(Ptr AtkObject -> Ptr GObject)
-> IO (Ptr AtkObject) -> IO (Ptr GObject)
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM Ptr AtkObject -> Ptr GObject
forall a b. Ptr a -> Ptr b
castPtr (IO (Ptr AtkObject) -> IO (Ptr GObject))
-> IO (Ptr AtkObject) -> IO (Ptr GObject)
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr AtkObject)) -> IO (Ptr AtkObject)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr AtkObject)) -> IO (Ptr AtkObject))
-> (Ptr Widget -> IO (Ptr AtkObject)) -> IO (Ptr AtkObject)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr AtkObject)
gtk_widget_get_accessible Ptr Widget
argPtr1)
{-# LINE 2233 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetChildFocus :: WidgetClass self => self
-> DirectionType
-> IO Bool
widgetChildFocus :: forall self. WidgetClass self => self -> DirectionType -> IO Bool
widgetChildFocus self
self DirectionType
direction =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO CInt
gtk_widget_child_focus Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 2254 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (DirectionType -> Int) -> DirectionType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. DirectionType -> Int
forall a. Enum a => a -> Int
fromEnum) DirectionType
direction)
widgetGetChildVisible :: WidgetClass self => self
-> IO Bool
widgetGetChildVisible :: forall self. WidgetClass self => self -> IO Bool
widgetGetChildVisible self
self =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_child_visible Ptr Widget
argPtr1)
{-# LINE 2269 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGetParent :: WidgetClass self => self
-> IO (Maybe Widget)
widgetGetParent :: forall self. WidgetClass self => self -> IO (Maybe Widget)
widgetGetParent self
self = do
Ptr Widget
parentPtr <- (\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr Widget)) -> IO (Ptr Widget)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr Widget)) -> IO (Ptr Widget))
-> (Ptr Widget -> IO (Ptr Widget)) -> IO (Ptr Widget)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr Widget)
gtk_widget_get_parent Ptr Widget
argPtr1) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
self)
if Ptr Widget
parentPtrPtr Widget -> Ptr Widget -> Bool
forall a. Eq a => a -> a -> Bool
==Ptr Widget
forall a. Ptr a
nullPtr then Maybe Widget -> IO (Maybe Widget)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Maybe Widget
forall a. Maybe a
Nothing else
(Widget -> Maybe Widget) -> IO Widget -> IO (Maybe Widget)
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM Widget -> Maybe Widget
forall a. a -> Maybe a
Just (IO Widget -> IO (Maybe Widget)) -> IO Widget -> IO (Maybe Widget)
forall a b. (a -> b) -> a -> b
$ (ForeignPtr Widget -> Widget, FinalizerPtr Widget)
-> IO (Ptr Widget) -> IO Widget
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewObject (ForeignPtr Widget -> Widget, FinalizerPtr Widget)
forall {a}. (ForeignPtr Widget -> Widget, FinalizerPtr a)
mkWidget (Ptr Widget -> IO (Ptr Widget)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return Ptr Widget
parentPtr)
widgetGetSettings :: WidgetClass self => self
-> IO Settings
widgetGetSettings :: forall self. WidgetClass self => self -> IO Settings
widgetGetSettings self
self =
(ForeignPtr Settings -> Settings, FinalizerPtr Settings)
-> IO (Ptr Settings) -> IO Settings
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr Settings -> Settings, FinalizerPtr Settings)
forall {a}. (ForeignPtr Settings -> Settings, FinalizerPtr a)
mkSettings (IO (Ptr Settings) -> IO Settings)
-> IO (Ptr Settings) -> IO Settings
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr Settings)) -> IO (Ptr Settings)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr Settings)) -> IO (Ptr Settings))
-> (Ptr Widget -> IO (Ptr Settings)) -> IO (Ptr Settings)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr Settings)
gtk_widget_get_settings Ptr Widget
argPtr1)
{-# LINE 2296 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGetClipboard :: WidgetClass self => self
-> SelectionTag
-> IO Clipboard
widgetGetClipboard :: forall self.
WidgetClass self =>
self -> SelectionTag -> IO Clipboard
widgetGetClipboard self
self (Atom Ptr ()
tagPtr) =
(ForeignPtr Clipboard -> Clipboard, FinalizerPtr Clipboard)
-> IO (Ptr Clipboard) -> IO Clipboard
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr Clipboard -> Clipboard, FinalizerPtr Clipboard)
forall {a}. (ForeignPtr Clipboard -> Clipboard, FinalizerPtr a)
mkClipboard (IO (Ptr Clipboard) -> IO Clipboard)
-> IO (Ptr Clipboard) -> IO Clipboard
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr Clipboard)) -> IO (Ptr Clipboard)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr Clipboard)) -> IO (Ptr Clipboard))
-> (Ptr Widget -> IO (Ptr Clipboard)) -> IO (Ptr Clipboard)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> IO (Ptr Clipboard)
gtk_widget_get_clipboard Ptr Widget
argPtr1 Ptr ()
arg2)
{-# LINE 2316 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
Ptr ()
tagPtr
widgetGetDisplay :: WidgetClass self => self
-> IO Display
widgetGetDisplay :: forall self. WidgetClass self => self -> IO Display
widgetGetDisplay self
self =
(ForeignPtr Display -> Display, FinalizerPtr Display)
-> IO (Ptr Display) -> IO Display
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr Display -> Display, FinalizerPtr Display)
forall {a}. (ForeignPtr Display -> Display, FinalizerPtr a)
mkDisplay (IO (Ptr Display) -> IO Display) -> IO (Ptr Display) -> IO Display
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr Display)) -> IO (Ptr Display)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr Display)) -> IO (Ptr Display))
-> (Ptr Widget -> IO (Ptr Display)) -> IO (Ptr Display)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr Display)
gtk_widget_get_display Ptr Widget
argPtr1)
{-# LINE 2335 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGetRootWindow :: WidgetClass self => self
-> IO DrawWindow
widgetGetRootWindow :: forall self. WidgetClass self => self -> IO DrawWindow
widgetGetRootWindow self
self =
(ForeignPtr DrawWindow -> DrawWindow, FinalizerPtr DrawWindow)
-> IO (Ptr DrawWindow) -> IO DrawWindow
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr DrawWindow -> DrawWindow, FinalizerPtr DrawWindow)
forall {a}. (ForeignPtr DrawWindow -> DrawWindow, FinalizerPtr a)
mkDrawWindow (IO (Ptr DrawWindow) -> IO DrawWindow)
-> IO (Ptr DrawWindow) -> IO DrawWindow
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr DrawWindow)) -> IO (Ptr DrawWindow)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr DrawWindow)) -> IO (Ptr DrawWindow))
-> (Ptr Widget -> IO (Ptr DrawWindow)) -> IO (Ptr DrawWindow)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr DrawWindow)
gtk_widget_get_root_window Ptr Widget
argPtr1)
{-# LINE 2355 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGetScreen :: WidgetClass self => self
-> IO Screen
widgetGetScreen :: forall self. WidgetClass self => self -> IO Screen
widgetGetScreen self
self =
(ForeignPtr Screen -> Screen, FinalizerPtr Screen)
-> IO (Ptr Screen) -> IO Screen
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr Screen -> Screen, FinalizerPtr Screen)
forall {a}. (ForeignPtr Screen -> Screen, FinalizerPtr a)
mkScreen (IO (Ptr Screen) -> IO Screen) -> IO (Ptr Screen) -> IO Screen
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr Screen)) -> IO (Ptr Screen)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr Screen)) -> IO (Ptr Screen))
-> (Ptr Widget -> IO (Ptr Screen)) -> IO (Ptr Screen)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr Screen)
gtk_widget_get_screen Ptr Widget
argPtr1)
{-# LINE 2373 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetHasScreen :: WidgetClass self => self
-> IO Bool
widgetHasScreen :: forall self. WidgetClass self => self -> IO Bool
widgetHasScreen self
self =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_has_screen Ptr Widget
argPtr1)
{-# LINE 2388 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGetSizeRequest :: WidgetClass self => self
-> IO (Int, Int)
widgetGetSizeRequest :: forall self. WidgetClass self => self -> IO (Int, Int)
widgetGetSizeRequest self
self =
(Ptr CInt -> IO (Int, Int)) -> IO (Int, Int)
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr CInt -> IO (Int, Int)) -> IO (Int, Int))
-> (Ptr CInt -> IO (Int, Int)) -> IO (Int, Int)
forall a b. (a -> b) -> a -> b
$ \Ptr CInt
widthPtr ->
(Ptr CInt -> IO (Int, Int)) -> IO (Int, Int)
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr CInt -> IO (Int, Int)) -> IO (Int, Int))
-> (Ptr CInt -> IO (Int, Int)) -> IO (Int, Int)
forall a b. (a -> b) -> a -> b
$ \Ptr CInt
heightPtr -> do
(\(Widget ForeignPtr Widget
arg1) Ptr CInt
arg2 Ptr CInt
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr CInt -> Ptr CInt -> IO ()
gtk_widget_get_size_request Ptr Widget
argPtr1 Ptr CInt
arg2 Ptr CInt
arg3)
{-# LINE 2405 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
Ptr CInt
widthPtr
Ptr CInt
heightPtr
CInt
width <- Ptr CInt -> IO CInt
forall a. Storable a => Ptr a -> IO a
peek Ptr CInt
widthPtr
CInt
height <- Ptr CInt -> IO CInt
forall a. Storable a => Ptr a -> IO a
peek Ptr CInt
heightPtr
(Int, Int) -> IO (Int, Int)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral CInt
width, CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral CInt
height)
widgetGetPreferredSize :: WidgetClass self => self
-> IO (Requisition, Requisition)
widgetGetPreferredSize :: forall self.
WidgetClass self =>
self -> IO (Requisition, Requisition)
widgetGetPreferredSize self
self =
(Ptr Requisition -> IO (Requisition, Requisition))
-> IO (Requisition, Requisition)
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr Requisition -> IO (Requisition, Requisition))
-> IO (Requisition, Requisition))
-> (Ptr Requisition -> IO (Requisition, Requisition))
-> IO (Requisition, Requisition)
forall a b. (a -> b) -> a -> b
$ \Ptr Requisition
minReqPtr ->
(Ptr Requisition -> IO (Requisition, Requisition))
-> IO (Requisition, Requisition)
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr Requisition -> IO (Requisition, Requisition))
-> IO (Requisition, Requisition))
-> (Ptr Requisition -> IO (Requisition, Requisition))
-> IO (Requisition, Requisition)
forall a b. (a -> b) -> a -> b
$ \Ptr Requisition
natReqPtr -> do
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 Ptr ()
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> Ptr () -> IO ()
gtk_widget_get_preferred_size Ptr Widget
argPtr1 Ptr ()
arg2 Ptr ()
arg3) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
self) (Ptr Requisition -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Requisition
minReqPtr) (Ptr Requisition -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Requisition
natReqPtr)
Requisition
min <- Ptr Requisition -> IO Requisition
forall a. Storable a => Ptr a -> IO a
peek Ptr Requisition
minReqPtr
Requisition
nat <- Ptr Requisition -> IO Requisition
forall a. Storable a => Ptr a -> IO a
peek Ptr Requisition
natReqPtr
(Requisition, Requisition) -> IO (Requisition, Requisition)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return (Requisition
min, Requisition
nat)
widgetSetChildVisible :: WidgetClass self => self
-> Bool
-> IO ()
widgetSetChildVisible :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetChildVisible self
self Bool
isVisible =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_child_visible Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 2466 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
isVisible)
widgetSetSizeRequest :: WidgetClass self => self
-> Int
-> Int
-> IO ()
widgetSetSizeRequest :: forall self. WidgetClass self => self -> Int -> Int -> IO ()
widgetSetSizeRequest self
self Int
width Int
height =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 CInt
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> CInt -> IO ()
gtk_widget_set_size_request Ptr Widget
argPtr1 CInt
arg2 CInt
arg3)
{-# LINE 2503 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
width)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral Int
height)
widgetSetNoShowAll :: WidgetClass self => self
-> Bool
-> IO ()
widgetSetNoShowAll :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetNoShowAll self
self Bool
noShowAll =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_no_show_all Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 2522 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
noShowAll)
widgetGetNoShowAll :: WidgetClass self => self
-> IO Bool
widgetGetNoShowAll :: forall self. WidgetClass self => self -> IO Bool
widgetGetNoShowAll self
self =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_no_show_all Ptr Widget
argPtr1)
{-# LINE 2537 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetListMnemonicLabels :: WidgetClass self => self
-> IO [Widget]
widgetListMnemonicLabels :: forall self. WidgetClass self => self -> IO [Widget]
widgetListMnemonicLabels self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO (Ptr ())) -> IO (Ptr ())
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr ())) -> IO (Ptr ()))
-> (Ptr Widget -> IO (Ptr ())) -> IO (Ptr ())
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr ())
gtk_widget_list_mnemonic_labels Ptr Widget
argPtr1)
{-# LINE 2550 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
IO (Ptr ()) -> (Ptr () -> IO [Ptr Widget]) -> IO [Ptr Widget]
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= Ptr () -> IO [Ptr Widget]
forall a. Ptr () -> IO [Ptr a]
fromGList
IO [Ptr Widget] -> ([Ptr Widget] -> IO [Widget]) -> IO [Widget]
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= (Ptr Widget -> IO Widget) -> [Ptr Widget] -> IO [Widget]
forall (t :: * -> *) (m :: * -> *) a b.
(Traversable t, Monad m) =>
(a -> m b) -> t a -> m (t b)
forall (m :: * -> *) a b. Monad m => (a -> m b) -> [a] -> m [b]
mapM ((ForeignPtr Widget -> Widget, FinalizerPtr Widget)
-> IO (Ptr Widget) -> IO Widget
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr Widget -> Widget, FinalizerPtr Widget)
forall {a}. (ForeignPtr Widget -> Widget, FinalizerPtr a)
mkWidget (IO (Ptr Widget) -> IO Widget)
-> (Ptr Widget -> IO (Ptr Widget)) -> Ptr Widget -> IO Widget
forall b c a. (b -> c) -> (a -> b) -> a -> c
. Ptr Widget -> IO (Ptr Widget)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return)
widgetAddMnemonicLabel :: (WidgetClass self, WidgetClass label) => self
-> label
-> IO ()
widgetAddMnemonicLabel :: forall self label.
(WidgetClass self, WidgetClass label) =>
self -> label -> IO ()
widgetAddMnemonicLabel self
self label
label =
(\(Widget ForeignPtr Widget
arg1) (Widget ForeignPtr Widget
arg2) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg2 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr2 ->Ptr Widget -> Ptr Widget -> IO ()
gtk_widget_add_mnemonic_label Ptr Widget
argPtr1 Ptr Widget
argPtr2)
{-# LINE 2569 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(label -> Widget
forall o. WidgetClass o => o -> Widget
toWidget label
label)
widgetRemoveMnemonicLabel :: (WidgetClass self, WidgetClass label) => self
-> label
-> IO ()
widgetRemoveMnemonicLabel :: forall self label.
(WidgetClass self, WidgetClass label) =>
self -> label -> IO ()
widgetRemoveMnemonicLabel self
self label
label =
(\(Widget ForeignPtr Widget
arg1) (Widget ForeignPtr Widget
arg2) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg2 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr2 ->Ptr Widget -> Ptr Widget -> IO ()
gtk_widget_remove_mnemonic_label Ptr Widget
argPtr1 Ptr Widget
argPtr2)
{-# LINE 2585 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(label -> Widget
forall o. WidgetClass o => o -> Widget
toWidget label
label)
{-# LINE 2607 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
widgetIsComposited :: WidgetClass self => self
-> IO Bool
widgetIsComposited :: forall self. WidgetClass self => self -> IO Bool
widgetIsComposited self
self =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_is_composited Ptr Widget
argPtr1)
{-# LINE 2620 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetErrorBell :: WidgetClass self => self
-> IO ()
widgetErrorBell :: forall self. WidgetClass self => self -> IO ()
widgetErrorBell self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO ()
gtk_widget_error_bell Ptr Widget
argPtr1)
{-# LINE 2636 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetKeynavFailed :: WidgetClass self => self
-> DirectionType
-> IO Bool
widgetKeynavFailed :: forall self. WidgetClass self => self -> DirectionType -> IO Bool
widgetKeynavFailed self
self DirectionType
direction =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO CInt
gtk_widget_keynav_failed Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 2672 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (DirectionType -> Int) -> DirectionType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. DirectionType -> Int
forall a. Enum a => a -> Int
fromEnum) DirectionType
direction)
widgetGetTooltipMarkup :: (WidgetClass self, GlibString markup) => self
-> IO (Maybe markup)
widgetGetTooltipMarkup :: forall self string.
(WidgetClass self, GlibString string) =>
self -> IO (Maybe string)
widgetGetTooltipMarkup self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CString) -> IO CString
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CString) -> IO CString)
-> (Ptr Widget -> IO CString) -> IO CString
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CString
gtk_widget_get_tooltip_markup Ptr Widget
argPtr1)
{-# LINE 2680 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
IO CString -> (CString -> IO (Maybe markup)) -> IO (Maybe markup)
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= (CString -> IO markup) -> CString -> IO (Maybe markup)
forall a b. (Ptr a -> IO b) -> Ptr a -> IO (Maybe b)
maybePeek CString -> IO markup
forall s. GlibString s => CString -> IO s
peekUTFString
widgetSetTooltipMarkup :: (WidgetClass self, GlibString markup) => self
-> Maybe markup
-> IO ()
widgetSetTooltipMarkup :: forall self markup.
(WidgetClass self, GlibString markup) =>
self -> Maybe markup -> IO ()
widgetSetTooltipMarkup self
self Maybe markup
markup =
(markup -> (CString -> IO ()) -> IO ())
-> Maybe markup -> (CString -> IO ()) -> IO ()
forall a b c.
(a -> (Ptr b -> IO c) -> IO c)
-> Maybe a -> (Ptr b -> IO c) -> IO c
maybeWith markup -> (CString -> IO ()) -> IO ()
forall a. markup -> (CString -> IO a) -> IO a
forall s a. GlibString s => s -> (CString -> IO a) -> IO a
withUTFString Maybe markup
markup ((CString -> IO ()) -> IO ()) -> (CString -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \ CString
markupPtr ->
(\(Widget ForeignPtr Widget
arg1) CString
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CString -> IO ()
gtk_widget_set_tooltip_markup Ptr Widget
argPtr1 CString
arg2)
{-# LINE 2696 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
CString
markupPtr
widgetGetTooltipText :: (WidgetClass self, GlibString text) => self
-> IO (Maybe text)
widgetGetTooltipText :: forall self string.
(WidgetClass self, GlibString string) =>
self -> IO (Maybe string)
widgetGetTooltipText self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CString) -> IO CString
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CString) -> IO CString)
-> (Ptr Widget -> IO CString) -> IO CString
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CString
gtk_widget_get_tooltip_text Ptr Widget
argPtr1)
{-# LINE 2704 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
IO CString -> (CString -> IO (Maybe text)) -> IO (Maybe text)
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= (CString -> IO text) -> CString -> IO (Maybe text)
forall a b. (Ptr a -> IO b) -> Ptr a -> IO (Maybe b)
maybePeek CString -> IO text
forall s. GlibString s => CString -> IO s
peekUTFString
widgetSetTooltipText :: (WidgetClass widget, GlibString text) => widget
-> Maybe text
-> IO ()
widgetSetTooltipText :: forall self markup.
(WidgetClass self, GlibString markup) =>
self -> Maybe markup -> IO ()
widgetSetTooltipText widget
widget Maybe text
text =
(text -> (CString -> IO ()) -> IO ())
-> Maybe text -> (CString -> IO ()) -> IO ()
forall a b c.
(a -> (Ptr b -> IO c) -> IO c)
-> Maybe a -> (Ptr b -> IO c) -> IO c
maybeWith text -> (CString -> IO ()) -> IO ()
forall a. text -> (CString -> IO a) -> IO a
forall s a. GlibString s => s -> (CString -> IO a) -> IO a
withUTFString Maybe text
text ((CString -> IO ()) -> IO ()) -> (CString -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \ CString
textPtr ->
(\(Widget ForeignPtr Widget
arg1) CString
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CString -> IO ()
gtk_widget_set_tooltip_text Ptr Widget
argPtr1 CString
arg2)
{-# LINE 2718 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
CString
textPtr
widgetGetTooltipWindow :: WidgetClass self => self
-> IO Window
widgetGetTooltipWindow :: forall self. WidgetClass self => self -> IO Window
widgetGetTooltipWindow self
self =
(ForeignPtr Window -> Window, FinalizerPtr Window)
-> IO (Ptr Window) -> IO Window
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewObject (ForeignPtr Window -> Window, FinalizerPtr Window)
forall {a}. (ForeignPtr Window -> Window, FinalizerPtr a)
mkWindow (IO (Ptr Window) -> IO Window) -> IO (Ptr Window) -> IO Window
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr Window)) -> IO (Ptr Window)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr Window)) -> IO (Ptr Window))
-> (Ptr Widget -> IO (Ptr Window)) -> IO (Ptr Window)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr Window)
gtk_widget_get_tooltip_window Ptr Widget
argPtr1)
{-# LINE 2731 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetSetTooltipWindow :: (WidgetClass self, WindowClass customWindow) => self
-> Maybe customWindow
-> IO ()
widgetSetTooltipWindow :: forall self customWindow.
(WidgetClass self, WindowClass customWindow) =>
self -> Maybe customWindow -> IO ()
widgetSetTooltipWindow self
self Maybe customWindow
customWindow =
(\(Widget ForeignPtr Widget
arg1) (Window ForeignPtr Window
arg2) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr Window -> (Ptr Window -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Window
arg2 ((Ptr Window -> IO ()) -> IO ()) -> (Ptr Window -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Window
argPtr2 ->Ptr Widget -> Ptr Window -> IO ()
gtk_widget_set_tooltip_window Ptr Widget
argPtr1 Ptr Window
argPtr2)
{-# LINE 2747 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Window -> (customWindow -> Window) -> Maybe customWindow -> Window
forall b a. b -> (a -> b) -> Maybe a -> b
maybe (ForeignPtr Window -> Window
Window ForeignPtr Window
forall a. ForeignPtr a
nullForeignPtr) customWindow -> Window
forall o. WindowClass o => o -> Window
toWindow Maybe customWindow
customWindow)
widgetGetHasTooltip :: WidgetClass widget => widget
-> IO Bool
widgetGetHasTooltip :: forall self. WidgetClass self => self -> IO Bool
widgetGetHasTooltip widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_has_tooltip Ptr Widget
argPtr1)
{-# LINE 2757 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetSetHasTooltip :: WidgetClass widget => widget
-> Bool
-> IO ()
widgetSetHasTooltip :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetHasTooltip widget
widget Bool
hasTooltip =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_has_tooltip Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 2766 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
hasTooltip)
widgetTriggerTooltipQuery :: WidgetClass self => self -> IO ()
widgetTriggerTooltipQuery :: forall self. WidgetClass self => self -> IO ()
widgetTriggerTooltipQuery self
self =
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO ()
gtk_widget_trigger_tooltip_query Ptr Widget
argPtr1)
{-# LINE 2777 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGetWindow :: WidgetClass self => self -> IO (Maybe DrawWindow)
widgetGetWindow :: forall self. WidgetClass self => self -> IO (Maybe DrawWindow)
widgetGetWindow self
self =
(IO (Ptr DrawWindow) -> IO DrawWindow)
-> IO (Ptr DrawWindow) -> IO (Maybe DrawWindow)
forall a. (IO (Ptr a) -> IO a) -> IO (Ptr a) -> IO (Maybe a)
maybeNull ((ForeignPtr DrawWindow -> DrawWindow, FinalizerPtr DrawWindow)
-> IO (Ptr DrawWindow) -> IO DrawWindow
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr DrawWindow -> DrawWindow, FinalizerPtr DrawWindow)
forall {a}. (ForeignPtr DrawWindow -> DrawWindow, FinalizerPtr a)
mkDrawWindow) (IO (Ptr DrawWindow) -> IO (Maybe DrawWindow))
-> IO (Ptr DrawWindow) -> IO (Maybe DrawWindow)
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr DrawWindow)) -> IO (Ptr DrawWindow)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr DrawWindow)) -> IO (Ptr DrawWindow))
-> (Ptr Widget -> IO (Ptr DrawWindow)) -> IO (Ptr DrawWindow)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr DrawWindow)
gtk_widget_get_window Ptr Widget
argPtr1)
{-# LINE 2789 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetRegisterWindow :: (WidgetClass widget, DrawWindowClass window) => widget
-> window
-> IO ()
widgetRegisterWindow :: forall widget window.
(WidgetClass widget, DrawWindowClass window) =>
widget -> window -> IO ()
widgetRegisterWindow widget
widget window
window =
(\(Widget ForeignPtr Widget
arg1) (DrawWindow ForeignPtr DrawWindow
arg2) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr DrawWindow -> (Ptr DrawWindow -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr DrawWindow
arg2 ((Ptr DrawWindow -> IO ()) -> IO ())
-> (Ptr DrawWindow -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr DrawWindow
argPtr2 ->Ptr Widget -> Ptr DrawWindow -> IO ()
gtk_widget_register_window Ptr Widget
argPtr1 Ptr DrawWindow
argPtr2)
{-# LINE 2801 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
(window -> DrawWindow
forall o. DrawWindowClass o => o -> DrawWindow
toDrawWindow window
window)
widgetUnregisterWindow :: (WidgetClass widget, DrawWindowClass window) => widget
-> window
-> IO ()
widgetUnregisterWindow :: forall widget window.
(WidgetClass widget, DrawWindowClass window) =>
widget -> window -> IO ()
widgetUnregisterWindow widget
widget window
window =
(\(Widget ForeignPtr Widget
arg1) (DrawWindow ForeignPtr DrawWindow
arg2) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr DrawWindow -> (Ptr DrawWindow -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr DrawWindow
arg2 ((Ptr DrawWindow -> IO ()) -> IO ())
-> (Ptr DrawWindow -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr DrawWindow
argPtr2 ->Ptr Widget -> Ptr DrawWindow -> IO ()
gtk_widget_unregister_window Ptr Widget
argPtr1 Ptr DrawWindow
argPtr2)
{-# LINE 2812 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
(window -> DrawWindow
forall o. DrawWindowClass o => o -> DrawWindow
toDrawWindow window
window)
cairoShouldDrawWindow :: DrawWindowClass window
=> Cairo
-> window
-> IO Bool
cairoShouldDrawWindow :: forall window. DrawWindowClass window => Cairo -> window -> IO Bool
cairoShouldDrawWindow Cairo
cr window
window =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\Ptr ()
arg1 (DrawWindow ForeignPtr DrawWindow
arg2) -> ForeignPtr DrawWindow -> (Ptr DrawWindow -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr DrawWindow
arg2 ((Ptr DrawWindow -> IO CInt) -> IO CInt)
-> (Ptr DrawWindow -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr DrawWindow
argPtr2 ->Ptr () -> Ptr DrawWindow -> IO CInt
gtk_cairo_should_draw_window Ptr ()
arg1 Ptr DrawWindow
argPtr2)
{-# LINE 2832 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(castPtr $ unCairo cr)
(window -> DrawWindow
forall o. DrawWindowClass o => o -> DrawWindow
toDrawWindow window
window)
cairoTransformToWindow :: (WidgetClass widget, DrawWindowClass window)
=> Cairo
-> widget
-> window
-> IO ()
cairoTransformToWindow :: forall widget window.
(WidgetClass widget, DrawWindowClass window) =>
Cairo -> widget -> window -> IO ()
cairoTransformToWindow Cairo
cr widget
widget window
window =
(\Ptr ()
arg1 (Widget ForeignPtr Widget
arg2) (DrawWindow ForeignPtr DrawWindow
arg3) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg2 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr2 ->ForeignPtr DrawWindow -> (Ptr DrawWindow -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr DrawWindow
arg3 ((Ptr DrawWindow -> IO ()) -> IO ())
-> (Ptr DrawWindow -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr DrawWindow
argPtr3 ->Ptr () -> Ptr Widget -> Ptr DrawWindow -> IO ()
gtk_cairo_transform_to_window Ptr ()
arg1 Ptr Widget
argPtr2 Ptr DrawWindow
argPtr3)
{-# LINE 2850 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(castPtr $ unCairo cr)
(widget -> Widget
forall o. WidgetClass o => o -> Widget
toWidget widget
widget)
(window -> DrawWindow
forall o. DrawWindowClass o => o -> DrawWindow
toDrawWindow window
window)
widgetReparent :: (WidgetClass self, WidgetClass newParent) => self
-> newParent
-> IO ()
widgetReparent :: forall self label.
(WidgetClass self, WidgetClass label) =>
self -> label -> IO ()
widgetReparent self
self newParent
newParent =
(\(Widget ForeignPtr Widget
arg1) (Widget ForeignPtr Widget
arg2) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg2 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr2 ->Ptr Widget -> Ptr Widget -> IO ()
gtk_widget_reparent Ptr Widget
argPtr1 Ptr Widget
argPtr2)
{-# LINE 2862 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(newParent -> Widget
forall o. WidgetClass o => o -> Widget
toWidget newParent
newParent)
widgetSetCanFocus :: WidgetClass self => self -> Bool -> IO ()
widgetSetCanFocus :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetCanFocus = String -> self -> Bool -> IO ()
forall gobj. GObjectClass gobj => String -> gobj -> Bool -> IO ()
objectSetPropertyBool String
"can_focus"
widgetGetCanFocus :: WidgetClass self => self -> IO Bool
widgetGetCanFocus :: forall self. WidgetClass self => self -> IO Bool
widgetGetCanFocus = String -> self -> IO Bool
forall gobj. GObjectClass gobj => String -> gobj -> IO Bool
objectGetPropertyBool String
"can_focus"
widgetGetAllocation :: WidgetClass self => self -> IO Allocation
widgetGetAllocation :: forall self. WidgetClass self => self -> IO Allocation
widgetGetAllocation self
widget =
(Ptr Allocation -> IO Allocation) -> IO Allocation
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr Allocation -> IO Allocation) -> IO Allocation)
-> (Ptr Allocation -> IO Allocation) -> IO Allocation
forall a b. (a -> b) -> a -> b
$ \ Ptr Allocation
allocationPtr -> do
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> IO ()
gtk_widget_get_allocation Ptr Widget
argPtr1 Ptr ()
arg2) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
widget) (Ptr Allocation -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Allocation
allocationPtr)
Ptr Allocation -> IO Allocation
forall a. Storable a => Ptr a -> IO a
peek Ptr Allocation
allocationPtr
widgetGetAllocatedWidth :: WidgetClass self => self -> IO Int
widgetGetAllocatedWidth :: forall self. WidgetClass self => self -> IO Int
widgetGetAllocatedWidth self
widget =
(CInt -> Int) -> IO CInt -> IO Int
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral (IO CInt -> IO Int) -> IO CInt -> IO Int
forall a b. (a -> b) -> a -> b
$ (\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_allocated_width Ptr Widget
argPtr1) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
widget)
widgetGetAllocatedHeight :: WidgetClass self => self -> IO Int
widgetGetAllocatedHeight :: forall self. WidgetClass self => self -> IO Int
widgetGetAllocatedHeight self
widget =
(CInt -> Int) -> IO CInt -> IO Int
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral (IO CInt -> IO Int) -> IO CInt -> IO Int
forall a b. (a -> b) -> a -> b
$ (\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_allocated_height Ptr Widget
argPtr1) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
widget)
widgetGetAllocatedBaseline :: WidgetClass self => self -> IO Int
widgetGetAllocatedBaseline :: forall self. WidgetClass self => self -> IO Int
widgetGetAllocatedBaseline self
widget =
(CInt -> Int) -> IO CInt -> IO Int
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral (IO CInt -> IO Int) -> IO CInt -> IO Int
forall a b. (a -> b) -> a -> b
$ (\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_allocated_baseline Ptr Widget
argPtr1) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
widget)
widgetGetClip :: WidgetClass self => self -> IO Allocation
widgetGetClip :: forall self. WidgetClass self => self -> IO Allocation
widgetGetClip self
widget =
(Ptr Allocation -> IO Allocation) -> IO Allocation
forall a b. Storable a => (Ptr a -> IO b) -> IO b
alloca ((Ptr Allocation -> IO Allocation) -> IO Allocation)
-> (Ptr Allocation -> IO Allocation) -> IO Allocation
forall a b. (a -> b) -> a -> b
$ \ Ptr Allocation
allocationPtr -> do
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> IO ()
gtk_widget_get_clip Ptr Widget
argPtr1 Ptr ()
arg2) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
widget) (Ptr Allocation -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Allocation
allocationPtr)
Ptr Allocation -> IO Allocation
forall a. Storable a => Ptr a -> IO a
peek Ptr Allocation
allocationPtr
widgetSetClip :: WidgetClass self => self
-> Allocation
-> IO ()
widgetSetClip :: forall self. WidgetClass self => self -> Allocation -> IO ()
widgetSetClip self
self Allocation
clip = Allocation -> (Ptr Allocation -> IO ()) -> IO ()
forall a b. Storable a => a -> (Ptr a -> IO b) -> IO b
with Allocation
clip ((Ptr Allocation -> IO ()) -> IO ())
-> (Ptr Allocation -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Allocation
clipPtr ->
(\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> IO ()
gtk_widget_set_clip Ptr Widget
argPtr1 Ptr ()
arg2) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
self) (Ptr Allocation -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr Allocation
clipPtr)
widgetGetAppPaintable :: WidgetClass widget => widget
-> IO Bool
widgetGetAppPaintable :: forall self. WidgetClass self => self -> IO Bool
widgetGetAppPaintable widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_app_paintable Ptr Widget
argPtr1)
{-# LINE 2958 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetGetCanDefault :: WidgetClass widget => widget
-> IO Bool
widgetGetCanDefault :: forall self. WidgetClass self => self -> IO Bool
widgetGetCanDefault widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_can_default Ptr Widget
argPtr1)
{-# LINE 2967 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetSetCanDefault :: WidgetClass widget => widget
-> Bool
-> IO ()
widgetSetCanDefault :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetCanDefault widget
widget Bool
canDefault =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_can_default Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 2976 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
canDefault)
widgetGetHasWindow :: WidgetClass widget => widget
-> IO Bool
widgetGetHasWindow :: forall self. WidgetClass self => self -> IO Bool
widgetGetHasWindow widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_has_window Ptr Widget
argPtr1)
{-# LINE 2985 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetSetHasWindow :: WidgetClass widget => widget
-> Bool
-> IO ()
widgetSetHasWindow :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetHasWindow widget
widget Bool
hasWindow =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_has_window Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 3001 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
hasWindow)
widgetGetSensitive :: WidgetClass widget => widget
-> IO Bool
widgetGetSensitive :: forall self. WidgetClass self => self -> IO Bool
widgetGetSensitive widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_sensitive Ptr Widget
argPtr1)
{-# LINE 3014 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetIsSensitive :: WidgetClass widget => widget
-> IO Bool
widgetIsSensitive :: forall self. WidgetClass self => self -> IO Bool
widgetIsSensitive widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_is_sensitive Ptr Widget
argPtr1)
{-# LINE 3023 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetGetState :: WidgetClass self => self -> IO StateType
widgetGetState :: forall self. WidgetClass self => self -> IO StateType
widgetGetState self
widget =
(CInt -> StateType) -> IO CInt -> IO StateType
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM (Int -> StateType
forall a. Enum a => Int -> a
toEnum (Int -> StateType) -> (CInt -> Int) -> CInt -> StateType
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) (IO CInt -> IO StateType) -> IO CInt -> IO StateType
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_state Ptr Widget
argPtr1)
{-# LINE 3034 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetGetVisible :: WidgetClass widget => widget
-> IO Bool
widgetGetVisible :: forall self. WidgetClass self => self -> IO Bool
widgetGetVisible widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_visible Ptr Widget
argPtr1)
{-# LINE 3047 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetIsVisible :: WidgetClass widget => widget
-> IO Bool
widgetIsVisible :: forall self. WidgetClass self => self -> IO Bool
widgetIsVisible widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_is_visible Ptr Widget
argPtr1)
{-# LINE 3061 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetSetStateFlags :: WidgetClass widget => widget
-> [StateFlags]
-> Bool
-> IO ()
widgetSetStateFlags :: forall widget.
WidgetClass widget =>
widget -> [StateFlags] -> Bool -> IO ()
widgetSetStateFlags widget
widget [StateFlags]
flags Bool
clear =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 CInt
arg3 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> CInt -> IO ()
gtk_widget_set_state_flags Ptr Widget
argPtr1 CInt
arg2 CInt
arg3)
{-# LINE 3084 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> Int -> CInt
forall a b. (a -> b) -> a -> b
$ [StateFlags] -> Int
forall a. Flags a => [a] -> Int
fromFlags [StateFlags]
flags)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
clear)
widgetUnsetStateFlags :: WidgetClass widget => widget
-> [StateFlags]
-> IO ()
widgetUnsetStateFlags :: forall widget.
WidgetClass widget =>
widget -> [StateFlags] -> IO ()
widgetUnsetStateFlags widget
widget [StateFlags]
flags =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_unset_state_flags Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 3096 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> Int -> CInt
forall a b. (a -> b) -> a -> b
$ [StateFlags] -> Int
forall a. Flags a => [a] -> Int
fromFlags [StateFlags]
flags)
widgetGetStateFlags :: WidgetClass widget => widget
-> IO [StateFlags]
widgetGetStateFlags :: forall widget. WidgetClass widget => widget -> IO [StateFlags]
widgetGetStateFlags widget
widget =
(CInt -> [StateFlags]) -> IO CInt -> IO [StateFlags]
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM (Int -> [StateFlags]
forall a. Flags a => Int -> [a]
toFlags (Int -> [StateFlags]) -> (CInt -> Int) -> CInt -> [StateFlags]
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) (IO CInt -> IO [StateFlags]) -> IO CInt -> IO [StateFlags]
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_state_flags Ptr Widget
argPtr1)
{-# LINE 3107 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetGetHasDefault :: WidgetClass widget => widget
-> IO Bool
widgetGetHasDefault :: forall self. WidgetClass self => self -> IO Bool
widgetGetHasDefault widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_has_default Ptr Widget
argPtr1)
{-# LINE 3118 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetGetHasFocus :: WidgetClass widget => widget
-> IO Bool
widgetGetHasFocus :: forall self. WidgetClass self => self -> IO Bool
widgetGetHasFocus widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_has_focus Ptr Widget
argPtr1)
{-# LINE 3128 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetHasVisibleFocus :: WidgetClass widget => widget
-> IO Bool
widgetHasVisibleFocus :: forall self. WidgetClass self => self -> IO Bool
widgetHasVisibleFocus widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_has_visible_focus Ptr Widget
argPtr1)
{-# LINE 3144 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetHasGrab :: WidgetClass widget => widget
-> IO Bool
widgetHasGrab :: forall self. WidgetClass self => self -> IO Bool
widgetHasGrab widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_has_grab Ptr Widget
argPtr1)
{-# LINE 3157 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetIsDrawable :: WidgetClass widget => widget
-> IO Bool
widgetIsDrawable :: forall self. WidgetClass self => self -> IO Bool
widgetIsDrawable widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_is_drawable Ptr Widget
argPtr1)
{-# LINE 3166 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetIsToplevel :: WidgetClass widget => widget
-> IO Bool
widgetIsToplevel :: forall self. WidgetClass self => self -> IO Bool
widgetIsToplevel widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_is_toplevel Ptr Widget
argPtr1)
{-# LINE 3177 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetSetWindow :: (WidgetClass widget, DrawWindowClass window) => widget
-> window
-> IO ()
widgetSetWindow :: forall widget window.
(WidgetClass widget, DrawWindowClass window) =>
widget -> window -> IO ()
widgetSetWindow widget
widget window
window =
(\(Widget ForeignPtr Widget
arg1) (DrawWindow ForeignPtr DrawWindow
arg2) -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr DrawWindow -> (Ptr DrawWindow -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr DrawWindow
arg2 ((Ptr DrawWindow -> IO ()) -> IO ())
-> (Ptr DrawWindow -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr DrawWindow
argPtr2 ->Ptr Widget -> Ptr DrawWindow -> IO ()
gtk_widget_set_window Ptr Widget
argPtr1 Ptr DrawWindow
argPtr2)
{-# LINE 3194 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
(window -> DrawWindow
forall o. DrawWindowClass o => o -> DrawWindow
toDrawWindow window
window)
widgetSetReceivesDefault :: WidgetClass widget => widget
-> Bool
-> IO ()
widgetSetReceivesDefault :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetReceivesDefault widget
widget Bool
receivesDefault =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_receives_default Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 3206 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
receivesDefault)
widgetGetReceivesDefault :: WidgetClass widget => widget
-> IO Bool
widgetGetReceivesDefault :: forall self. WidgetClass self => self -> IO Bool
widgetGetReceivesDefault widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_receives_default Ptr Widget
argPtr1)
{-# LINE 3219 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetDeviceIsShadowed :: (WidgetClass widget, DeviceClass device) => widget
-> device
-> IO Bool
widgetDeviceIsShadowed :: forall widget device.
(WidgetClass widget, DeviceClass device) =>
widget -> device -> IO Bool
widgetDeviceIsShadowed widget
widget device
device =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) (Device ForeignPtr Device
arg2) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->ForeignPtr Device -> (Ptr Device -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Device
arg2 ((Ptr Device -> IO CInt) -> IO CInt)
-> (Ptr Device -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Device
argPtr2 ->Ptr Widget -> Ptr Device -> IO CInt
gtk_widget_device_is_shadowed Ptr Widget
argPtr1 Ptr Device
argPtr2)
{-# LINE 3233 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
(device -> Device
forall o. DeviceClass o => o -> Device
toDevice device
device)
widgetGetModifierMask :: WidgetClass widget => widget
-> ModifierIntent
-> IO [Modifier]
widgetGetModifierMask :: forall widget.
WidgetClass widget =>
widget -> ModifierIntent -> IO [Modifier]
widgetGetModifierMask widget
widget ModifierIntent
intent =
(CInt -> [Modifier]) -> IO CInt -> IO [Modifier]
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM (Int -> [Modifier]
forall a. Flags a => Int -> [a]
toFlags (Int -> [Modifier]) -> (CInt -> Int) -> CInt -> [Modifier]
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) (IO CInt -> IO [Modifier]) -> IO CInt -> IO [Modifier]
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO CInt
gtk_widget_get_modifier_mask Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 3248 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (ModifierIntent -> Int) -> ModifierIntent -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. ModifierIntent -> Int
forall a. Enum a => a -> Int
fromEnum) ModifierIntent
intent)
widgetSetSupportMultidevice :: WidgetClass widget => widget
-> Bool
-> IO ()
widgetSetSupportMultidevice :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetSupportMultidevice widget
widget Bool
supportMultidevice =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_support_multidevice Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 3262 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
supportMultidevice)
widgetGetSupportMultidevice :: WidgetClass widget => widget
-> IO Bool
widgetGetSupportMultidevice :: forall self. WidgetClass self => self -> IO Bool
widgetGetSupportMultidevice widget
widget =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_support_multidevice Ptr Widget
argPtr1)
{-# LINE 3272 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetSetState :: WidgetClass self => self -> StateType -> IO ()
widgetSetState :: forall self. WidgetClass self => self -> StateType -> IO ()
widgetSetState self
widget StateType
state =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_state Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 3282 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
((Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> (StateType -> Int) -> StateType -> CInt
forall b c a. (b -> c) -> (a -> b) -> a -> c
. StateType -> Int
forall a. Enum a => a -> Int
fromEnum) StateType
state)
widgetEvent :: WidgetClass self => self -> EventM t Bool
widgetEvent :: forall self t. WidgetClass self => self -> EventM t Bool
widgetEvent self
widget = do
Ptr t
ptr <- ReaderT (Ptr t) IO (Ptr t)
forall r (m :: * -> *). MonadReader r m => m r
ask
IO Bool -> EventM t Bool
forall a. IO a -> ReaderT (Ptr t) IO a
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> EventM t Bool) -> IO Bool -> EventM t Bool
forall a b. (a -> b) -> a -> b
$ (CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$ (\(Widget ForeignPtr Widget
arg1) Ptr ()
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> Ptr () -> IO CInt
gtk_widget_event Ptr Widget
argPtr1 Ptr ()
arg2) (self -> Widget
forall o. WidgetClass o => o -> Widget
toWidget self
widget) (Ptr t -> Ptr ()
forall a b. Ptr a -> Ptr b
castPtr Ptr t
ptr)
widgetName :: (WidgetClass self, GlibString string) => Attr self (Maybe string)
widgetName :: forall self string.
(WidgetClass self, GlibString string) =>
Attr self (Maybe string)
widgetName = String -> Attr self (Maybe string)
forall gobj string.
(GObjectClass gobj, GlibString string) =>
String -> Attr gobj (Maybe string)
newAttrFromMaybeStringProperty String
"name"
widgetMarginLeft :: WidgetClass self => Attr self Int
widgetMarginLeft :: forall self. WidgetClass self => Attr self Int
widgetMarginLeft = String -> Attr self Int
forall gobj. GObjectClass gobj => String -> Attr gobj Int
newAttrFromIntProperty String
"margin-left"
widgetMarginRight :: WidgetClass self => Attr self Int
widgetMarginRight :: forall self. WidgetClass self => Attr self Int
widgetMarginRight = String -> Attr self Int
forall gobj. GObjectClass gobj => String -> Attr gobj Int
newAttrFromIntProperty String
"margin-right"
widgetMarginStart :: WidgetClass self => Attr self Int
widgetMarginStart :: forall self. WidgetClass self => Attr self Int
widgetMarginStart = String -> Attr self Int
forall gobj. GObjectClass gobj => String -> Attr gobj Int
newAttrFromIntProperty String
"margin-start"
widgetMarginEnd :: WidgetClass self => Attr self Int
widgetMarginEnd :: forall self. WidgetClass self => Attr self Int
widgetMarginEnd = String -> Attr self Int
forall gobj. GObjectClass gobj => String -> Attr gobj Int
newAttrFromIntProperty String
"margin-end"
widgetMarginTop :: WidgetClass self => Attr self Int
widgetMarginTop :: forall self. WidgetClass self => Attr self Int
widgetMarginTop = String -> Attr self Int
forall gobj. GObjectClass gobj => String -> Attr gobj Int
newAttrFromIntProperty String
"margin-top"
widgetMarginBottom :: WidgetClass self => Attr self Int
widgetMarginBottom :: forall self. WidgetClass self => Attr self Int
widgetMarginBottom = String -> Attr self Int
forall gobj. GObjectClass gobj => String -> Attr gobj Int
newAttrFromIntProperty String
"margin-bottom"
widgetParent :: (WidgetClass self, ContainerClass container) => ReadWriteAttr self (Maybe Container) (Maybe container)
widgetParent :: forall self container.
(WidgetClass self, ContainerClass container) =>
ReadWriteAttr self (Maybe Container) (Maybe container)
widgetParent = String
-> CUInt -> ReadWriteAttr self (Maybe Container) (Maybe container)
forall gobj gobj' gobj''.
(GObjectClass gobj, GObjectClass gobj', GObjectClass gobj'') =>
String -> CUInt -> ReadWriteAttr gobj (Maybe gobj') (Maybe gobj'')
newAttrFromMaybeObjectProperty String
"parent" CUInt
gTypeContainer
widgetWidthRequest :: WidgetClass self => Attr self Int
widgetWidthRequest :: forall self. WidgetClass self => Attr self Int
widgetWidthRequest = String -> Attr self Int
forall gobj. GObjectClass gobj => String -> Attr gobj Int
newAttrFromIntProperty String
"width-request"
widgetHeightRequest :: WidgetClass self => Attr self Int
widgetHeightRequest :: forall self. WidgetClass self => Attr self Int
widgetHeightRequest = String -> Attr self Int
forall gobj. GObjectClass gobj => String -> Attr gobj Int
newAttrFromIntProperty String
"height-request"
widgetVisible :: WidgetClass self => Attr self Bool
widgetVisible :: forall self. WidgetClass self => Attr self Bool
widgetVisible = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"visible"
widgetOpacity :: WidgetClass self => Attr self Double
widgetOpacity :: forall self. WidgetClass self => Attr self Double
widgetOpacity = String -> Attr self Double
forall gobj. GObjectClass gobj => String -> Attr gobj Double
newAttrFromDoubleProperty String
"opacity"
widgetSensitive :: WidgetClass self => Attr self Bool
widgetSensitive :: forall self. WidgetClass self => Attr self Bool
widgetSensitive = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"sensitive"
widgetAppPaintable :: WidgetClass self => Attr self Bool
widgetAppPaintable :: forall self. WidgetClass self => Attr self Bool
widgetAppPaintable = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"app-paintable"
widgetCanFocus :: WidgetClass self => Attr self Bool
widgetCanFocus :: forall self. WidgetClass self => Attr self Bool
widgetCanFocus = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"can-focus"
widgetHasFocus :: WidgetClass self => Attr self Bool
widgetHasFocus :: forall self. WidgetClass self => Attr self Bool
widgetHasFocus = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"has-focus"
widgetIsFocus :: WidgetClass self => Attr self Bool
widgetIsFocus :: forall self. WidgetClass self => Attr self Bool
widgetIsFocus = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"is-focus"
widgetCanDefault :: WidgetClass self => Attr self Bool
widgetCanDefault :: forall self. WidgetClass self => Attr self Bool
widgetCanDefault = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"can-default"
widgetHasDefault :: WidgetClass self => Attr self Bool
widgetHasDefault :: forall self. WidgetClass self => Attr self Bool
widgetHasDefault = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"has-default"
widgetReceivesDefault :: WidgetClass self => Attr self Bool
widgetReceivesDefault :: forall self. WidgetClass self => Attr self Bool
widgetReceivesDefault = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"receives-default"
widgetCompositeChild :: WidgetClass self => ReadAttr self Bool
widgetCompositeChild :: forall self. WidgetClass self => ReadAttr self Bool
widgetCompositeChild = String -> ReadAttr self Bool
forall gobj. GObjectClass gobj => String -> ReadAttr gobj Bool
readAttrFromBoolProperty String
"composite-child"
widgetStyle :: WidgetClass self => Attr self Style
widgetStyle :: forall self. WidgetClass self => Attr self Style
widgetStyle = String -> CUInt -> ReadWriteAttr self Style Style
forall gobj gobj' gobj''.
(GObjectClass gobj, GObjectClass gobj', GObjectClass gobj'') =>
String -> CUInt -> ReadWriteAttr gobj gobj' gobj''
newAttrFromObjectProperty String
"style" CUInt
gTypeStyle
widgetState :: WidgetClass self => Attr self StateType
widgetState :: forall self. WidgetClass self => Attr self StateType
widgetState = (self -> IO StateType)
-> (self -> StateType -> IO ())
-> ReadWriteAttr self StateType StateType
forall o a b.
(o -> IO a) -> (o -> b -> IO ()) -> ReadWriteAttr o a b
newAttr
self -> IO StateType
forall self. WidgetClass self => self -> IO StateType
widgetGetState
self -> StateType -> IO ()
forall self. WidgetClass self => self -> StateType -> IO ()
widgetSetState
widgetEvents :: WidgetClass self => Attr self [EventMask]
widgetEvents :: forall self. WidgetClass self => Attr self [EventMask]
widgetEvents = String -> CUInt -> Attr self [EventMask]
forall gobj flag.
(GObjectClass gobj, Flags flag) =>
String -> CUInt -> Attr gobj [flag]
newAttrFromFlagsProperty String
"events"
CUInt
gdk_event_mask_get_type
{-# LINE 3478 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
widgetExpand :: WidgetClass self => Attr self Bool
widgetExpand :: forall self. WidgetClass self => Attr self Bool
widgetExpand = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"expand"
widgetHExpand :: WidgetClass self => Attr self Bool
widgetHExpand :: forall self. WidgetClass self => Attr self Bool
widgetHExpand = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"hexpand"
widgetHExpandSet :: WidgetClass self => Attr self Bool
widgetHExpandSet :: forall self. WidgetClass self => Attr self Bool
widgetHExpandSet = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"hexpand-set"
widgetVExpand :: WidgetClass self => Attr self Bool
widgetVExpand :: forall self. WidgetClass self => Attr self Bool
widgetVExpand = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"vexpand"
widgetVExpandSet :: WidgetClass self => Attr self Bool
widgetVExpandSet :: forall self. WidgetClass self => Attr self Bool
widgetVExpandSet = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"vexpand-set"
widgetNoShowAll :: WidgetClass self => Attr self Bool
widgetNoShowAll :: forall self. WidgetClass self => Attr self Bool
widgetNoShowAll = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"no-show-all"
widgetChildVisible :: WidgetClass self => Attr self Bool
widgetChildVisible :: forall self. WidgetClass self => Attr self Bool
widgetChildVisible = (self -> IO Bool)
-> (self -> Bool -> IO ()) -> ReadWriteAttr self Bool Bool
forall o a b.
(o -> IO a) -> (o -> b -> IO ()) -> ReadWriteAttr o a b
newAttr
self -> IO Bool
forall self. WidgetClass self => self -> IO Bool
widgetGetChildVisible
self -> Bool -> IO ()
forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetChildVisible
{-# LINE 3541 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
widgetCompositeName :: (WidgetClass self, GlibString string) => ReadWriteAttr self (Maybe string) string
widgetCompositeName :: forall self string.
(WidgetClass self, GlibString string) =>
ReadWriteAttr self (Maybe string) string
widgetCompositeName = (self -> IO (Maybe string))
-> (self -> string -> IO ())
-> ReadWriteAttr self (Maybe string) string
forall o a b.
(o -> IO a) -> (o -> b -> IO ()) -> ReadWriteAttr o a b
newAttr
self -> IO (Maybe string)
forall self string.
(WidgetClass self, GlibString string) =>
self -> IO (Maybe string)
widgetGetCompositeName
self -> string -> IO ()
forall self string.
(WidgetClass self, GlibString string) =>
self -> string -> IO ()
widgetSetCompositeName
widgetDirection :: WidgetClass self => Attr self TextDirection
widgetDirection :: forall self. WidgetClass self => Attr self TextDirection
widgetDirection = (self -> IO TextDirection)
-> (self -> TextDirection -> IO ())
-> ReadWriteAttr self TextDirection TextDirection
forall o a b.
(o -> IO a) -> (o -> b -> IO ()) -> ReadWriteAttr o a b
newAttr
self -> IO TextDirection
forall self. WidgetClass self => self -> IO TextDirection
widgetGetDirection
self -> TextDirection -> IO ()
forall self. WidgetClass self => self -> TextDirection -> IO ()
widgetSetDirection
widgetTooltipMarkup :: (WidgetClass self, GlibString markup) => Attr self (Maybe markup)
widgetTooltipMarkup :: forall self string.
(WidgetClass self, GlibString string) =>
Attr self (Maybe string)
widgetTooltipMarkup = String -> Attr self (Maybe markup)
forall gobj string.
(GObjectClass gobj, GlibString string) =>
String -> Attr gobj (Maybe string)
newAttrFromMaybeStringProperty String
"tooltip-markup"
widgetTooltipText :: (WidgetClass self, GlibString string) => Attr self (Maybe string)
widgetTooltipText :: forall self string.
(WidgetClass self, GlibString string) =>
Attr self (Maybe string)
widgetTooltipText = String -> Attr self (Maybe string)
forall gobj string.
(GObjectClass gobj, GlibString string) =>
String -> Attr gobj (Maybe string)
newAttrFromMaybeStringProperty String
"tooltip-text"
widgetHasTooltip :: WidgetClass self => Attr self Bool
widgetHasTooltip :: forall self. WidgetClass self => Attr self Bool
widgetHasTooltip = String -> Attr self Bool
forall gobj. GObjectClass gobj => String -> Attr gobj Bool
newAttrFromBoolProperty String
"has-tooltip"
widgetHasRcStyle :: WidgetClass self => self
-> IO Bool
widgetHasRcStyle :: forall self. WidgetClass self => self -> IO Bool
widgetHasRcStyle self
self =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_has_rc_style Ptr Widget
argPtr1)
{-# LINE 3609 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGetRealized :: WidgetClass self => self
-> IO Bool
widgetGetRealized :: forall self. WidgetClass self => self -> IO Bool
widgetGetRealized self
self =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_realized Ptr Widget
argPtr1)
{-# LINE 3617 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGetMapped :: WidgetClass self => self
-> IO Bool
widgetGetMapped :: forall self. WidgetClass self => self -> IO Bool
widgetGetMapped self
self =
(CInt -> Bool) -> IO CInt -> IO Bool
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM CInt -> Bool
forall a. (Eq a, Num a) => a -> Bool
toBool (IO CInt -> IO Bool) -> IO CInt -> IO Bool
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_mapped Ptr Widget
argPtr1)
{-# LINE 3625 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetSetRealized :: WidgetClass widget => widget
-> Bool
-> IO ()
widgetSetRealized :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetRealized widget
widget Bool
realized =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_realized Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 3637 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
realized)
widgetSetMapped :: WidgetClass widget => widget
-> Bool
-> IO ()
widgetSetMapped :: forall self. WidgetClass self => self -> Bool -> IO ()
widgetSetMapped widget
widget Bool
mapped =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_mapped Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 3649 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
(Bool -> CInt
forall a. Num a => Bool -> a
fromBool Bool
mapped)
widgetGetStyleContext :: WidgetClass widget
=> widget
-> IO StyleContext
widgetGetStyleContext :: forall widget. WidgetClass widget => widget -> IO StyleContext
widgetGetStyleContext widget
widget =
(ForeignPtr StyleContext -> StyleContext,
FinalizerPtr StyleContext)
-> IO (Ptr StyleContext) -> IO StyleContext
forall obj.
GObjectClass obj =>
(ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
makeNewGObject (ForeignPtr StyleContext -> StyleContext,
FinalizerPtr StyleContext)
forall {a}.
(ForeignPtr StyleContext -> StyleContext, FinalizerPtr a)
mkStyleContext (IO (Ptr StyleContext) -> IO StyleContext)
-> IO (Ptr StyleContext) -> IO StyleContext
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget
-> (Ptr Widget -> IO (Ptr StyleContext)) -> IO (Ptr StyleContext)
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO (Ptr StyleContext)) -> IO (Ptr StyleContext))
-> (Ptr Widget -> IO (Ptr StyleContext)) -> IO (Ptr StyleContext)
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO (Ptr StyleContext)
gtk_widget_get_style_context Ptr Widget
argPtr1)
{-# LINE 3661 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget widget)
widgetGetHAlign :: WidgetClass self => self -> IO Align
widgetGetHAlign :: forall self. WidgetClass self => self -> IO Align
widgetGetHAlign self
self =
(CInt -> Align) -> IO CInt -> IO Align
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM (Int -> Align
forall a. Enum a => Int -> a
toEnum (Int -> Align) -> (CInt -> Int) -> CInt -> Align
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) (IO CInt -> IO Align) -> IO CInt -> IO Align
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_halign Ptr Widget
argPtr1)
{-# LINE 3673 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetSetHAlign :: WidgetClass self => self -> Align -> IO ()
widgetSetHAlign :: forall self. WidgetClass self => self -> Align -> IO ()
widgetSetHAlign self
self Align
align =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_halign Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 3680 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> Int -> CInt
forall a b. (a -> b) -> a -> b
$ Align -> Int
forall a. Enum a => a -> Int
fromEnum Align
align)
widgetGetVAlign :: WidgetClass self => self -> IO Align
widgetGetVAlign :: forall self. WidgetClass self => self -> IO Align
widgetGetVAlign self
self =
(CInt -> Align) -> IO CInt -> IO Align
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM (Int -> Align
forall a. Enum a => Int -> a
toEnum (Int -> Align) -> (CInt -> Int) -> CInt -> Align
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) (IO CInt -> IO Align) -> IO CInt -> IO Align
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_valign Ptr Widget
argPtr1)
{-# LINE 3693 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetGetVAlignWithBaseline :: WidgetClass self => self -> IO Align
widgetGetVAlignWithBaseline :: forall self. WidgetClass self => self -> IO Align
widgetGetVAlignWithBaseline self
self =
(CInt -> Align) -> IO CInt -> IO Align
forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
liftM (Int -> Align
forall a. Enum a => Int -> a
toEnum (Int -> Align) -> (CInt -> Int) -> CInt -> Align
forall b c a. (b -> c) -> (a -> b) -> a -> c
. CInt -> Int
forall a b. (Integral a, Num b) => a -> b
fromIntegral) (IO CInt -> IO Align) -> IO CInt -> IO Align
forall a b. (a -> b) -> a -> b
$
(\(Widget ForeignPtr Widget
arg1) -> ForeignPtr Widget -> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO CInt) -> IO CInt)
-> (Ptr Widget -> IO CInt) -> IO CInt
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> IO CInt
gtk_widget_get_valign_with_baseline Ptr Widget
argPtr1)
{-# LINE 3701 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
widgetSetVAlign :: WidgetClass self => self -> Align -> IO ()
widgetSetVAlign :: forall self. WidgetClass self => self -> Align -> IO ()
widgetSetVAlign self
self Align
align =
(\(Widget ForeignPtr Widget
arg1) CInt
arg2 -> ForeignPtr Widget -> (Ptr Widget -> IO ()) -> IO ()
forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
withForeignPtr ForeignPtr Widget
arg1 ((Ptr Widget -> IO ()) -> IO ()) -> (Ptr Widget -> IO ()) -> IO ()
forall a b. (a -> b) -> a -> b
$ \Ptr Widget
argPtr1 ->Ptr Widget -> CInt -> IO ()
gtk_widget_set_valign Ptr Widget
argPtr1 CInt
arg2)
{-# LINE 3708 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
(toWidget self)
(Int -> CInt
forall a b. (Integral a, Num b) => a -> b
fromIntegral (Int -> CInt) -> Int -> CInt
forall a b. (a -> b) -> a -> b
$ Align -> Int
forall a. Enum a => a -> Int
fromEnum Align
align)
mapSignal :: WidgetClass self => Signal self (IO ())
mapSignal :: forall self. WidgetClass self => Signal self (IO ())
mapSignal = (Bool -> self -> IO () -> IO (ConnectId self))
-> Signal self (IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String -> Bool -> self -> IO () -> IO (ConnectId self)
forall obj.
GObjectClass obj =>
String -> Bool -> obj -> IO () -> IO (ConnectId obj)
connect_NONE__NONE String
"map")
unmapSignal :: WidgetClass self => Signal self (IO ())
unmapSignal :: forall self. WidgetClass self => Signal self (IO ())
unmapSignal = (Bool -> self -> IO () -> IO (ConnectId self))
-> Signal self (IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String -> Bool -> self -> IO () -> IO (ConnectId self)
forall obj.
GObjectClass obj =>
String -> Bool -> obj -> IO () -> IO (ConnectId obj)
connect_NONE__NONE String
"unmap")
realize :: WidgetClass self => Signal self (IO ())
realize :: forall self. WidgetClass self => Signal self (IO ())
realize = (Bool -> self -> IO () -> IO (ConnectId self))
-> Signal self (IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String -> Bool -> self -> IO () -> IO (ConnectId self)
forall obj.
GObjectClass obj =>
String -> Bool -> obj -> IO () -> IO (ConnectId obj)
connect_NONE__NONE String
"realize")
unrealize :: WidgetClass self => Signal self (IO ())
unrealize :: forall self. WidgetClass self => Signal self (IO ())
unrealize = (Bool -> self -> IO () -> IO (ConnectId self))
-> Signal self (IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String -> Bool -> self -> IO () -> IO (ConnectId self)
forall obj.
GObjectClass obj =>
String -> Bool -> obj -> IO () -> IO (ConnectId obj)
connect_NONE__NONE String
"unrealize")
sizeRequest :: WidgetClass self => Signal self (IO Requisition)
sizeRequest :: forall self. WidgetClass self => Signal self (IO Requisition)
sizeRequest = (Bool -> self -> IO Requisition -> IO (ConnectId self))
-> Signal self (IO Requisition)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (\Bool
after self
w IO Requisition
fun ->
String
-> Bool
-> self
-> (Ptr Requisition -> IO ())
-> IO (ConnectId self)
forall obj a.
GObjectClass obj =>
String -> Bool -> obj -> (Ptr a -> IO ()) -> IO (ConnectId obj)
connect_PTR__NONE String
"size-request" Bool
after self
w
(\Ptr Requisition
rqPtr -> IO Requisition
fun IO Requisition -> (Requisition -> IO ()) -> IO ()
forall a b. IO a -> (a -> IO b) -> IO b
forall (m :: * -> *) a b. Monad m => m a -> (a -> m b) -> m b
>>= \Requisition
req -> Bool -> IO () -> IO ()
forall (f :: * -> *). Applicative f => Bool -> f () -> f ()
unless (Ptr Requisition
rqPtrPtr Requisition -> Ptr Requisition -> Bool
forall a. Eq a => a -> a -> Bool
==Ptr Requisition
forall a. Ptr a
nullPtr) (IO () -> IO ()) -> IO () -> IO ()
forall a b. (a -> b) -> a -> b
$ Ptr Requisition -> Requisition -> IO ()
forall a. Storable a => Ptr a -> a -> IO ()
poke Ptr Requisition
rqPtr Requisition
req))
sizeAllocate :: WidgetClass self => Signal self (Allocation -> IO ())
sizeAllocate :: forall self. WidgetClass self => Signal self (Allocation -> IO ())
sizeAllocate = (Bool -> self -> (Allocation -> IO ()) -> IO (ConnectId self))
-> Signal self (Allocation -> IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> (Ptr Allocation -> IO Allocation)
-> Bool
-> self
-> (Allocation -> IO ())
-> IO (ConnectId self)
forall obj a' a.
GObjectClass obj =>
String
-> (Ptr a' -> IO a)
-> Bool
-> obj
-> (a -> IO ())
-> IO (ConnectId obj)
connect_BOXED__NONE String
"size-allocate" Ptr Allocation -> IO Allocation
forall a. Storable a => Ptr a -> IO a
peek)
showSignal :: WidgetClass self => Signal self (IO ())
showSignal :: forall self. WidgetClass self => Signal self (IO ())
showSignal = (Bool -> self -> IO () -> IO (ConnectId self))
-> Signal self (IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String -> Bool -> self -> IO () -> IO (ConnectId self)
forall obj.
GObjectClass obj =>
String -> Bool -> obj -> IO () -> IO (ConnectId obj)
connect_NONE__NONE String
"show")
hideSignal :: WidgetClass self => Signal self (IO ())
hideSignal :: forall self. WidgetClass self => Signal self (IO ())
hideSignal = (Bool -> self -> IO () -> IO (ConnectId self))
-> Signal self (IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String -> Bool -> self -> IO () -> IO (ConnectId self)
forall obj.
GObjectClass obj =>
String -> Bool -> obj -> IO () -> IO (ConnectId obj)
connect_NONE__NONE String
"hide")
focus :: WidgetClass self => Signal self (DirectionType -> IO Bool)
focus :: forall self.
WidgetClass self =>
Signal self (DirectionType -> IO Bool)
focus = (Bool -> self -> (DirectionType -> IO Bool) -> IO (ConnectId self))
-> Signal self (DirectionType -> IO Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> Bool
-> self
-> (DirectionType -> IO Bool)
-> IO (ConnectId self)
forall a obj.
(Enum a, GObjectClass obj) =>
String -> Bool -> obj -> (a -> IO Bool) -> IO (ConnectId obj)
connect_ENUM__BOOL String
"focus")
stateChanged :: WidgetClass self => Signal self (StateType -> IO ())
stateChanged :: forall self. WidgetClass self => Signal self (StateType -> IO ())
stateChanged = (Bool -> self -> (StateType -> IO ()) -> IO (ConnectId self))
-> Signal self (StateType -> IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> Bool -> self -> (StateType -> IO ()) -> IO (ConnectId self)
forall a obj.
(Enum a, GObjectClass obj) =>
String -> Bool -> obj -> (a -> IO ()) -> IO (ConnectId obj)
connect_ENUM__NONE String
"state-changed")
connect_FLAGS__NONE ::
(Flags a, GObjectClass obj) => SignalName ->
ConnectAfter -> obj ->
([a] -> IO ()) ->
IO (ConnectId obj)
connect_FLAGS__NONE :: forall a obj.
(Flags a, GObjectClass obj) =>
String -> Bool -> obj -> ([a] -> IO ()) -> IO (ConnectId obj)
connect_FLAGS__NONE String
signal Bool
after obj
obj [a] -> IO ()
user =
String
-> Bool
-> obj
-> (Ptr GObject -> Int -> IO ())
-> IO (ConnectId obj)
forall obj handler.
GObjectClass obj =>
String -> Bool -> obj -> handler -> IO (ConnectId obj)
connectGeneric String
signal Bool
after obj
obj Ptr GObject -> Int -> IO ()
action
where action :: Ptr GObject -> Int -> IO ()
action :: Ptr GObject -> Int -> IO ()
action Ptr GObject
_ Int
flags1 =
IO () -> IO ()
forall a. IO a -> IO a
failOnGError (IO () -> IO ()) -> IO () -> IO ()
forall a b. (a -> b) -> a -> b
$
[a] -> IO ()
user (Int -> [a]
forall a. Flags a => Int -> [a]
toFlags Int
flags1)
stateFlagsChanged :: WidgetClass self => Signal self ([StateFlags] -> IO ())
stateFlagsChanged :: forall self.
WidgetClass self =>
Signal self ([StateFlags] -> IO ())
stateFlagsChanged = (Bool -> self -> ([StateFlags] -> IO ()) -> IO (ConnectId self))
-> Signal self ([StateFlags] -> IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> Bool -> self -> ([StateFlags] -> IO ()) -> IO (ConnectId self)
forall a obj.
(Flags a, GObjectClass obj) =>
String -> Bool -> obj -> ([a] -> IO ()) -> IO (ConnectId obj)
connect_FLAGS__NONE String
"state-flags-changed")
parentSet :: WidgetClass self => Signal self (Maybe Widget -> IO ())
parentSet :: forall self.
WidgetClass self =>
Signal self (Maybe Widget -> IO ())
parentSet = (Bool -> self -> (Maybe Widget -> IO ()) -> IO (ConnectId self))
-> Signal self (Maybe Widget -> IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> Bool -> self -> (Maybe Widget -> IO ()) -> IO (ConnectId self)
forall a' obj.
(GObjectClass a', GObjectClass obj) =>
String -> Bool -> obj -> (Maybe a' -> IO ()) -> IO (ConnectId obj)
connect_MOBJECT__NONE String
"parent-set")
hierarchyChanged :: WidgetClass self => Signal self (Maybe Widget -> IO ())
hierarchyChanged :: forall self.
WidgetClass self =>
Signal self (Maybe Widget -> IO ())
hierarchyChanged = (Bool -> self -> (Maybe Widget -> IO ()) -> IO (ConnectId self))
-> Signal self (Maybe Widget -> IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> Bool -> self -> (Maybe Widget -> IO ()) -> IO (ConnectId self)
forall a' obj.
(GObjectClass a', GObjectClass obj) =>
String -> Bool -> obj -> (Maybe a' -> IO ()) -> IO (ConnectId obj)
connect_MOBJECT__NONE String
"hierarchy-changed")
styleSet :: WidgetClass self => Signal self (Style -> IO ())
styleSet :: forall self. WidgetClass self => Signal self (Style -> IO ())
styleSet = (Bool -> self -> (Style -> IO ()) -> IO (ConnectId self))
-> Signal self (Style -> IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String -> Bool -> self -> (Style -> IO ()) -> IO (ConnectId self)
forall a' obj.
(GObjectClass a', GObjectClass obj) =>
String -> Bool -> obj -> (a' -> IO ()) -> IO (ConnectId obj)
connect_OBJECT__NONE String
"style-set")
directionChanged :: WidgetClass self => Signal self (TextDirection -> IO ())
directionChanged :: forall self.
WidgetClass self =>
Signal self (TextDirection -> IO ())
directionChanged = (Bool -> self -> (TextDirection -> IO ()) -> IO (ConnectId self))
-> Signal self (TextDirection -> IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> Bool -> self -> (TextDirection -> IO ()) -> IO (ConnectId self)
forall a obj.
(Enum a, GObjectClass obj) =>
String -> Bool -> obj -> (a -> IO ()) -> IO (ConnectId obj)
connect_ENUM__NONE String
"direction-changed")
grabNotify :: WidgetClass self => Signal self (Bool -> IO ())
grabNotify :: forall self. WidgetClass self => Signal self (Bool -> IO ())
grabNotify = (Bool -> self -> (Bool -> IO ()) -> IO (ConnectId self))
-> Signal self (Bool -> IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String -> Bool -> self -> (Bool -> IO ()) -> IO (ConnectId self)
forall obj.
GObjectClass obj =>
String -> Bool -> obj -> (Bool -> IO ()) -> IO (ConnectId obj)
connect_BOOL__NONE String
"grab-notify")
popupMenuSignal :: WidgetClass self => Signal self (IO Bool)
= (Bool -> self -> IO Bool -> IO (ConnectId self))
-> Signal self (IO Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String -> Bool -> self -> IO Bool -> IO (ConnectId self)
forall obj.
GObjectClass obj =>
String -> Bool -> obj -> IO Bool -> IO (ConnectId obj)
connect_NONE__BOOL String
"popup-menu")
data WidgetHelpType = WidgetHelpTooltip
| WidgetHelpWhatsThis
deriving (Int -> WidgetHelpType
WidgetHelpType -> Int
WidgetHelpType -> [WidgetHelpType]
WidgetHelpType -> WidgetHelpType
WidgetHelpType -> WidgetHelpType -> [WidgetHelpType]
WidgetHelpType
-> WidgetHelpType -> WidgetHelpType -> [WidgetHelpType]
(WidgetHelpType -> WidgetHelpType)
-> (WidgetHelpType -> WidgetHelpType)
-> (Int -> WidgetHelpType)
-> (WidgetHelpType -> Int)
-> (WidgetHelpType -> [WidgetHelpType])
-> (WidgetHelpType -> WidgetHelpType -> [WidgetHelpType])
-> (WidgetHelpType -> WidgetHelpType -> [WidgetHelpType])
-> (WidgetHelpType
-> WidgetHelpType -> WidgetHelpType -> [WidgetHelpType])
-> Enum WidgetHelpType
forall a.
(a -> a)
-> (a -> a)
-> (Int -> a)
-> (a -> Int)
-> (a -> [a])
-> (a -> a -> [a])
-> (a -> a -> [a])
-> (a -> a -> a -> [a])
-> Enum a
$csucc :: WidgetHelpType -> WidgetHelpType
succ :: WidgetHelpType -> WidgetHelpType
$cpred :: WidgetHelpType -> WidgetHelpType
pred :: WidgetHelpType -> WidgetHelpType
$ctoEnum :: Int -> WidgetHelpType
toEnum :: Int -> WidgetHelpType
$cfromEnum :: WidgetHelpType -> Int
fromEnum :: WidgetHelpType -> Int
$cenumFrom :: WidgetHelpType -> [WidgetHelpType]
enumFrom :: WidgetHelpType -> [WidgetHelpType]
$cenumFromThen :: WidgetHelpType -> WidgetHelpType -> [WidgetHelpType]
enumFromThen :: WidgetHelpType -> WidgetHelpType -> [WidgetHelpType]
$cenumFromTo :: WidgetHelpType -> WidgetHelpType -> [WidgetHelpType]
enumFromTo :: WidgetHelpType -> WidgetHelpType -> [WidgetHelpType]
$cenumFromThenTo :: WidgetHelpType
-> WidgetHelpType -> WidgetHelpType -> [WidgetHelpType]
enumFromThenTo :: WidgetHelpType
-> WidgetHelpType -> WidgetHelpType -> [WidgetHelpType]
Enum,WidgetHelpType -> WidgetHelpType -> Bool
(WidgetHelpType -> WidgetHelpType -> Bool)
-> (WidgetHelpType -> WidgetHelpType -> Bool) -> Eq WidgetHelpType
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: WidgetHelpType -> WidgetHelpType -> Bool
== :: WidgetHelpType -> WidgetHelpType -> Bool
$c/= :: WidgetHelpType -> WidgetHelpType -> Bool
/= :: WidgetHelpType -> WidgetHelpType -> Bool
Eq,Int -> WidgetHelpType -> ShowS
[WidgetHelpType] -> ShowS
WidgetHelpType -> String
(Int -> WidgetHelpType -> ShowS)
-> (WidgetHelpType -> String)
-> ([WidgetHelpType] -> ShowS)
-> Show WidgetHelpType
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> WidgetHelpType -> ShowS
showsPrec :: Int -> WidgetHelpType -> ShowS
$cshow :: WidgetHelpType -> String
show :: WidgetHelpType -> String
$cshowList :: [WidgetHelpType] -> ShowS
showList :: [WidgetHelpType] -> ShowS
Show)
{-# LINE 3863 "./Graphics/UI/Gtk/Abstract/Widget.chs" #-}
showHelp :: WidgetClass self => Signal self (WidgetHelpType -> IO Bool)
showHelp :: forall self.
WidgetClass self =>
Signal self (WidgetHelpType -> IO Bool)
showHelp = (Bool
-> self -> (WidgetHelpType -> IO Bool) -> IO (ConnectId self))
-> Signal self (WidgetHelpType -> IO Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> Bool
-> self
-> (WidgetHelpType -> IO Bool)
-> IO (ConnectId self)
forall a obj.
(Enum a, GObjectClass obj) =>
String -> Bool -> obj -> (a -> IO Bool) -> IO (ConnectId obj)
connect_ENUM__BOOL String
"show-help")
accelClosuresChanged :: WidgetClass self => Signal self (IO ())
accelClosuresChanged :: forall self. WidgetClass self => Signal self (IO ())
accelClosuresChanged = (Bool -> self -> IO () -> IO (ConnectId self))
-> Signal self (IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String -> Bool -> self -> IO () -> IO (ConnectId self)
forall obj.
GObjectClass obj =>
String -> Bool -> obj -> IO () -> IO (ConnectId obj)
connect_NONE__NONE String
"accel-closures-changed")
screenChanged :: WidgetClass self => Signal self (Screen -> IO ())
screenChanged :: forall self. WidgetClass self => Signal self (Screen -> IO ())
screenChanged = (Bool -> self -> (Screen -> IO ()) -> IO (ConnectId self))
-> Signal self (Screen -> IO ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String -> Bool -> self -> (Screen -> IO ()) -> IO (ConnectId self)
forall a' obj.
(GObjectClass a', GObjectClass obj) =>
String -> Bool -> obj -> (a' -> IO ()) -> IO (ConnectId obj)
connect_OBJECT__NONE String
"screen-changed")
queryTooltip :: WidgetClass self => Signal self (Widget -> Maybe Point -> Tooltip -> IO Bool)
queryTooltip :: forall self.
WidgetClass self =>
Signal self (Widget -> Maybe (Int, Int) -> Tooltip -> IO Bool)
queryTooltip =
(Bool
-> self
-> (Widget -> Maybe (Int, Int) -> Tooltip -> IO Bool)
-> IO (ConnectId self))
-> Signal self (Widget -> Maybe (Int, Int) -> Tooltip -> IO Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (\Bool
after self
model Widget -> Maybe (Int, Int) -> Tooltip -> IO Bool
user ->
String
-> Bool
-> self
-> (Widget -> Int -> Int -> Bool -> Tooltip -> IO Bool)
-> IO (ConnectId self)
forall a' e' obj.
(GObjectClass a', GObjectClass e', GObjectClass obj) =>
String
-> Bool
-> obj
-> (a' -> Int -> Int -> Bool -> e' -> IO Bool)
-> IO (ConnectId obj)
connect_OBJECT_INT_INT_BOOL_OBJECT__BOOL String
"query-tooltip"
Bool
after self
model (\Widget
widget Int
x Int
y Bool
keyb Tooltip
tooltip ->
Widget -> Maybe (Int, Int) -> Tooltip -> IO Bool
user Widget
widget (if Bool
keyb then Maybe (Int, Int)
forall a. Maybe a
Nothing else (Int, Int) -> Maybe (Int, Int)
forall a. a -> Maybe a
Just (Int
x, Int
y)) Tooltip
tooltip))
draw :: WidgetClass self => Signal self (Render ())
draw :: forall self. WidgetClass self => Signal self (Render ())
draw =
(Bool -> self -> Render () -> IO (ConnectId self))
-> Signal self (Render ())
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (\Bool
after self
model (Render ReaderT Cairo IO ()
user) ->
String
-> Bool -> self -> (Ptr Cairo -> IO ()) -> IO (ConnectId self)
forall obj a.
GObjectClass obj =>
String -> Bool -> obj -> (Ptr a -> IO ()) -> IO (ConnectId obj)
connect_PTR__NONE String
"draw" Bool
after self
model (\Ptr Cairo
ptr -> ReaderT Cairo IO () -> Cairo -> IO ()
forall r (m :: * -> *) a. ReaderT r m a -> r -> m a
runReaderT ReaderT Cairo IO ()
user (Ptr Cairo -> Cairo
Cairo Ptr Cairo
ptr)))
eventM :: WidgetClass w => SignalName -> [EventMask] ->
ConnectAfter -> w -> (EventM t Bool) -> IO (ConnectId w)
eventM :: forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
name [EventMask]
eMask Bool
after w
obj EventM t Bool
fun = do
ConnectId w
id <- String -> Bool -> w -> (Ptr t -> IO Bool) -> IO (ConnectId w)
forall obj a.
GObjectClass obj =>
String -> Bool -> obj -> (Ptr a -> IO Bool) -> IO (ConnectId obj)
connect_PTR__BOOL String
name Bool
after w
obj (EventM t Bool -> Ptr t -> IO Bool
forall r (m :: * -> *) a. ReaderT r m a -> r -> m a
runReaderT EventM t Bool
fun)
w -> [EventMask] -> IO ()
forall self. WidgetClass self => self -> [EventMask] -> IO ()
widgetAddEvents w
obj [EventMask]
eMask
ConnectId w -> IO (ConnectId w)
forall a. a -> IO a
forall (m :: * -> *) a. Monad m => a -> m a
return ConnectId w
id
buttonPressEvent :: WidgetClass self => Signal self (EventM EButton Bool)
buttonPressEvent :: forall self. WidgetClass self => Signal self (EventM EButton Bool)
buttonPressEvent = (Bool -> self -> EventM EButton Bool -> IO (ConnectId self))
-> Signal self (EventM EButton Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EButton Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"button_press_event" [EventMask
ButtonPressMask])
buttonReleaseEvent :: WidgetClass self => Signal self (EventM EButton Bool)
buttonReleaseEvent :: forall self. WidgetClass self => Signal self (EventM EButton Bool)
buttonReleaseEvent = (Bool -> self -> EventM EButton Bool -> IO (ConnectId self))
-> Signal self (EventM EButton Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EButton Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"button_release_event" [EventMask
ButtonReleaseMask])
scrollEvent :: WidgetClass self => Signal self (EventM EScroll Bool)
scrollEvent :: forall self. WidgetClass self => Signal self (EventM EScroll Bool)
scrollEvent = (Bool -> self -> EventM EScroll Bool -> IO (ConnectId self))
-> Signal self (EventM EScroll Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EScroll Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"scroll_event" [EventMask
ScrollMask])
motionNotifyEvent :: WidgetClass self => Signal self (EventM EMotion Bool)
motionNotifyEvent :: forall self. WidgetClass self => Signal self (EventM EMotion Bool)
motionNotifyEvent = (Bool -> self -> EventM EMotion Bool -> IO (ConnectId self))
-> Signal self (EventM EMotion Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EMotion Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"motion_notify_event" [])
deleteEvent :: WidgetClass self => Signal self (EventM EAny Bool)
deleteEvent :: forall self. WidgetClass self => Signal self (EventM EAny Bool)
deleteEvent = (Bool -> self -> EventM EAny Bool -> IO (ConnectId self))
-> Signal self (EventM EAny Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EAny Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"delete_event" [])
destroyEvent :: WidgetClass self => Signal self (EventM EAny Bool)
destroyEvent :: forall self. WidgetClass self => Signal self (EventM EAny Bool)
destroyEvent = (Bool -> self -> EventM EAny Bool -> IO (ConnectId self))
-> Signal self (EventM EAny Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EAny Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"destroy_event" [])
exposeEvent :: WidgetClass self => Signal self (EventM EExpose Bool)
exposeEvent :: forall self. WidgetClass self => Signal self (EventM EExpose Bool)
exposeEvent = (Bool -> self -> EventM EExpose Bool -> IO (ConnectId self))
-> Signal self (EventM EExpose Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EExpose Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"expose_event" [])
keyPressEvent :: WidgetClass self => Signal self (EventM EKey Bool)
keyPressEvent :: forall self. WidgetClass self => Signal self (EventM EKey Bool)
keyPressEvent = (Bool -> self -> EventM EKey Bool -> IO (ConnectId self))
-> Signal self (EventM EKey Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EKey Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"key_press_event" [EventMask
KeyPressMask])
keyReleaseEvent :: WidgetClass self => Signal self (EventM EKey Bool)
keyReleaseEvent :: forall self. WidgetClass self => Signal self (EventM EKey Bool)
keyReleaseEvent = (Bool -> self -> EventM EKey Bool -> IO (ConnectId self))
-> Signal self (EventM EKey Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EKey Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"key_release_event" [EventMask
KeyReleaseMask])
enterNotifyEvent :: WidgetClass self => Signal self (EventM ECrossing Bool)
enterNotifyEvent :: forall self.
WidgetClass self =>
Signal self (EventM ECrossing Bool)
enterNotifyEvent = (Bool -> self -> EventM ECrossing Bool -> IO (ConnectId self))
-> Signal self (EventM ECrossing Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM ECrossing Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"enter_notify_event" [EventMask
EnterNotifyMask])
leaveNotifyEvent :: WidgetClass self => Signal self (EventM ECrossing Bool)
leaveNotifyEvent :: forall self.
WidgetClass self =>
Signal self (EventM ECrossing Bool)
leaveNotifyEvent = (Bool -> self -> EventM ECrossing Bool -> IO (ConnectId self))
-> Signal self (EventM ECrossing Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM ECrossing Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"leave_notify_event" [EventMask
LeaveNotifyMask])
configureEvent :: WidgetClass self => Signal self (EventM EConfigure Bool)
configureEvent :: forall self.
WidgetClass self =>
Signal self (EventM EConfigure Bool)
configureEvent = (Bool -> self -> EventM EConfigure Bool -> IO (ConnectId self))
-> Signal self (EventM EConfigure Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EConfigure Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"configure_event" [])
focusInEvent :: WidgetClass self => Signal self (EventM EFocus Bool)
focusInEvent :: forall self. WidgetClass self => Signal self (EventM EFocus Bool)
focusInEvent = (Bool -> self -> EventM EFocus Bool -> IO (ConnectId self))
-> Signal self (EventM EFocus Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EFocus Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"focus_in_event" [EventMask
FocusChangeMask])
focusOutEvent :: WidgetClass self => Signal self (EventM EFocus Bool)
focusOutEvent :: forall self. WidgetClass self => Signal self (EventM EFocus Bool)
focusOutEvent = (Bool -> self -> EventM EFocus Bool -> IO (ConnectId self))
-> Signal self (EventM EFocus Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EFocus Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"focus_out_event" [EventMask
FocusChangeMask])
mapEvent :: WidgetClass self => Signal self (EventM EAny Bool)
mapEvent :: forall self. WidgetClass self => Signal self (EventM EAny Bool)
mapEvent = (Bool -> self -> EventM EAny Bool -> IO (ConnectId self))
-> Signal self (EventM EAny Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EAny Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"map_event" [])
unmapEvent :: WidgetClass self => Signal self (EventM EAny Bool)
unmapEvent :: forall self. WidgetClass self => Signal self (EventM EAny Bool)
unmapEvent = (Bool -> self -> EventM EAny Bool -> IO (ConnectId self))
-> Signal self (EventM EAny Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EAny Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"unmap_event" [])
_propertyNotifyEvent :: WidgetClass self => Signal self (EventM EProperty Bool)
_propertyNotifyEvent :: forall self.
WidgetClass self =>
Signal self (EventM EProperty Bool)
_propertyNotifyEvent = (Bool -> self -> EventM EProperty Bool -> IO (ConnectId self))
-> Signal self (EventM EProperty Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EProperty Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"property_notify_event" [EventMask
PropertyChangeMask])
proximityInEvent :: WidgetClass self => Signal self (EventM EProximity Bool)
proximityInEvent :: forall self.
WidgetClass self =>
Signal self (EventM EProximity Bool)
proximityInEvent = (Bool -> self -> EventM EProximity Bool -> IO (ConnectId self))
-> Signal self (EventM EProximity Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EProximity Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"proximity_in_event" [EventMask
ProximityInMask])
proximityOutEvent :: WidgetClass self => Signal self (EventM EProximity Bool)
proximityOutEvent :: forall self.
WidgetClass self =>
Signal self (EventM EProximity Bool)
proximityOutEvent = (Bool -> self -> EventM EProximity Bool -> IO (ConnectId self))
-> Signal self (EventM EProximity Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EProximity Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"proximity_out_event" [EventMask
ProximityOutMask])
visibilityNotifyEvent :: WidgetClass self => Signal self (EventM EVisibility Bool)
visibilityNotifyEvent :: forall self.
WidgetClass self =>
Signal self (EventM EVisibility Bool)
visibilityNotifyEvent = (Bool -> self -> EventM EVisibility Bool -> IO (ConnectId self))
-> Signal self (EventM EVisibility Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EVisibility Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"visibility_notify_event" [EventMask
VisibilityNotifyMask])
noExposeEvent :: WidgetClass self => Signal self (EventM EAny Bool)
noExposeEvent :: forall self. WidgetClass self => Signal self (EventM EAny Bool)
noExposeEvent = (Bool -> self -> EventM EAny Bool -> IO (ConnectId self))
-> Signal self (EventM EAny Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EAny Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"no_expose_event" [])
windowStateEvent :: WidgetClass self => Signal self (EventM EWindowState Bool)
windowStateEvent :: forall self.
WidgetClass self =>
Signal self (EventM EWindowState Bool)
windowStateEvent = (Bool -> self -> EventM EWindowState Bool -> IO (ConnectId self))
-> Signal self (EventM EWindowState Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EWindowState Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"window_state_event" [])
grabBrokenEvent :: WidgetClass self => Signal self (EventM EGrabBroken Bool)
grabBrokenEvent :: forall self.
WidgetClass self =>
Signal self (EventM EGrabBroken Bool)
grabBrokenEvent = (Bool -> self -> EventM EGrabBroken Bool -> IO (ConnectId self))
-> Signal self (EventM EGrabBroken Bool)
forall object handler.
(Bool -> object -> handler -> IO (ConnectId object))
-> Signal object handler
Signal (String
-> [EventMask]
-> Bool
-> self
-> EventM EGrabBroken Bool
-> IO (ConnectId self)
forall w t.
WidgetClass w =>
String
-> [EventMask] -> Bool -> w -> EventM t Bool -> IO (ConnectId w)
eventM String
"grab_broken_event" [])
foreign import ccall safe "gtk_widget_show"
gtk_widget_show :: ((Ptr Widget) -> (IO ()))
foreign import ccall safe "gtk_widget_show_now"
gtk_widget_show_now :: ((Ptr Widget) -> (IO ()))
foreign import ccall safe "gtk_widget_hide"
gtk_widget_hide :: ((Ptr Widget) -> (IO ()))
foreign import ccall safe "gtk_widget_show_all"
gtk_widget_show_all :: ((Ptr Widget) -> (IO ()))
foreign import ccall safe "gtk_widget_destroy"
gtk_widget_destroy :: ((Ptr Widget) -> (IO ()))
foreign import ccall safe "gtk_widget_draw"
gtk_widget_draw :: ((Ptr Widget) -> ((Ptr ()) -> (IO ())))
foreign import ccall safe "gtk_widget_queue_draw"
gtk_widget_queue_draw :: ((Ptr Widget) -> (IO ()))
foreign import ccall safe "gtk_widget_queue_resize"
gtk_widget_queue_resize :: ((Ptr Widget) -> (IO ()))
foreign import ccall safe "gtk_widget_queue_resize_no_redraw"
gtk_widget_queue_resize_no_redraw :: ((Ptr Widget) -> (IO ()))
foreign import ccall safe "gtk_widget_get_frame_clock"
gtk_widget_get_frame_clock :: ((Ptr Widget) -> (IO (Ptr FrameClock)))
foreign import ccall safe "gtk_widget_get_scale_factor"
gtk_widget_get_scale_factor :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_size_request"
gtk_widget_size_request :: ((Ptr Widget) -> ((Ptr ()) -> (IO ())))
foreign import ccall safe "gtk_widget_get_child_requisition"
gtk_widget_get_child_requisition :: ((Ptr Widget) -> ((Ptr ()) -> (IO ())))
foreign import ccall safe "gtk_widget_size_allocate"
gtk_widget_size_allocate :: ((Ptr Widget) -> ((Ptr ()) -> (IO ())))
foreign import ccall safe "gtk_widget_size_allocate_with_baseline"
gtk_widget_size_allocate_with_baseline :: ((Ptr Widget) -> ((Ptr ()) -> (CInt -> (IO ()))))
foreign import ccall safe "gtk_widget_add_accelerator"
gtk_widget_add_accelerator :: ((Ptr Widget) -> ((Ptr CChar) -> ((Ptr AccelGroup) -> (CUInt -> (CInt -> (CInt -> (IO ())))))))
foreign import ccall safe "gtk_widget_remove_accelerator"
gtk_widget_remove_accelerator :: ((Ptr Widget) -> ((Ptr AccelGroup) -> (CUInt -> (CInt -> (IO CInt)))))
foreign import ccall safe "gtk_widget_set_accel_path"
gtk_widget_set_accel_path :: ((Ptr Widget) -> ((Ptr CChar) -> ((Ptr AccelGroup) -> (IO ()))))
foreign import ccall safe "gtk_widget_can_activate_accel"
gtk_widget_can_activate_accel :: ((Ptr Widget) -> (CUInt -> (IO CInt)))
foreign import ccall safe "gtk_widget_activate"
gtk_widget_activate :: ((Ptr Widget) -> (IO CInt))
foreign import ccall unsafe "gtk_widget_intersect"
gtk_widget_intersect :: ((Ptr Widget) -> ((Ptr ()) -> ((Ptr ()) -> (IO CInt))))
foreign import ccall unsafe "gtk_widget_is_focus"
gtk_widget_is_focus :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_grab_focus"
gtk_widget_grab_focus :: ((Ptr Widget) -> (IO ()))
foreign import ccall safe "gtk_widget_grab_default"
gtk_widget_grab_default :: ((Ptr Widget) -> (IO ()))
foreign import ccall safe "gtk_widget_set_name"
gtk_widget_set_name :: ((Ptr Widget) -> ((Ptr CChar) -> (IO ())))
foreign import ccall unsafe "gtk_widget_get_name"
gtk_widget_get_name :: ((Ptr Widget) -> (IO (Ptr CChar)))
foreign import ccall safe "gtk_widget_set_sensitive"
gtk_widget_set_sensitive :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_get_parent_window"
gtk_widget_get_parent_window :: ((Ptr Widget) -> (IO (Ptr DrawWindow)))
foreign import ccall unsafe "gtk_widget_get_events"
gtk_widget_get_events :: ((Ptr Widget) -> (IO CInt))
foreign import ccall unsafe "gtk_widget_set_events"
gtk_widget_set_events :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall unsafe "gtk_widget_add_events"
gtk_widget_add_events :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall unsafe "gtk_widget_get_toplevel"
gtk_widget_get_toplevel :: ((Ptr Widget) -> (IO (Ptr Widget)))
foreign import ccall safe "gtk_widget_get_ancestor"
gtk_widget_get_ancestor :: ((Ptr Widget) -> (CUInt -> (IO (Ptr Widget))))
foreign import ccall safe "gtk_widget_get_pointer"
gtk_widget_get_pointer :: ((Ptr Widget) -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))
foreign import ccall unsafe "gtk_widget_is_ancestor"
gtk_widget_is_ancestor :: ((Ptr Widget) -> ((Ptr Widget) -> (IO CInt)))
foreign import ccall safe "gtk_widget_translate_coordinates"
gtk_widget_translate_coordinates :: ((Ptr Widget) -> ((Ptr Widget) -> (CInt -> (CInt -> ((Ptr CInt) -> ((Ptr CInt) -> (IO CInt)))))))
foreign import ccall safe "gtk_widget_set_style"
gtk_widget_set_style :: ((Ptr Widget) -> ((Ptr Style) -> (IO ())))
foreign import ccall safe "gtk_widget_ensure_style"
gtk_widget_ensure_style :: ((Ptr Widget) -> (IO ()))
foreign import ccall safe "gtk_widget_get_style"
gtk_widget_get_style :: ((Ptr Widget) -> (IO (Ptr Style)))
foreign import ccall safe "gtk_widget_get_default_style"
gtk_widget_get_default_style :: (IO (Ptr Style))
foreign import ccall safe "gtk_widget_set_direction"
gtk_widget_set_direction :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_get_direction"
gtk_widget_get_direction :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_set_default_direction"
gtk_widget_set_default_direction :: (CInt -> (IO ()))
foreign import ccall safe "gtk_widget_get_default_direction"
gtk_widget_get_default_direction :: (IO CInt)
foreign import ccall safe "gtk_widget_shape_combine_region"
gtk_widget_shape_combine_region :: ((Ptr Widget) -> ((Ptr ()) -> (IO ())))
foreign import ccall safe "gtk_widget_input_shape_combine_region"
gtk_widget_input_shape_combine_region :: ((Ptr Widget) -> ((Ptr ()) -> (IO ())))
foreign import ccall safe "gtk_widget_path"
gtk_widget_path :: ((Ptr Widget) -> ((Ptr CUInt) -> ((Ptr (Ptr CChar)) -> ((Ptr (Ptr CChar)) -> (IO ())))))
foreign import ccall safe "gtk_widget_class_path"
gtk_widget_class_path :: ((Ptr Widget) -> ((Ptr CUInt) -> ((Ptr (Ptr CChar)) -> ((Ptr (Ptr CChar)) -> (IO ())))))
foreign import ccall safe "gtk_widget_get_composite_name"
gtk_widget_get_composite_name :: ((Ptr Widget) -> (IO (Ptr CChar)))
foreign import ccall safe "gtk_widget_override_background_color"
gtk_widget_override_background_color :: ((Ptr Widget) -> (CInt -> ((Ptr ()) -> (IO ()))))
foreign import ccall safe "gtk_widget_override_color"
gtk_widget_override_color :: ((Ptr Widget) -> (CInt -> ((Ptr ()) -> (IO ()))))
foreign import ccall safe "gtk_widget_override_font"
gtk_widget_override_font :: ((Ptr Widget) -> ((Ptr FontDescription) -> (IO ())))
foreign import ccall safe "gtk_widget_override_symbolic_color"
gtk_widget_override_symbolic_color :: ((Ptr Widget) -> ((Ptr CChar) -> ((Ptr ()) -> (IO ()))))
foreign import ccall safe "gtk_widget_override_cursor"
gtk_widget_override_cursor :: ((Ptr Widget) -> ((Ptr ()) -> ((Ptr ()) -> (IO ()))))
foreign import ccall safe "gtk_widget_modify_style"
gtk_widget_modify_style :: ((Ptr Widget) -> ((Ptr RcStyle) -> (IO ())))
foreign import ccall safe "gtk_widget_get_modifier_style"
gtk_widget_get_modifier_style :: ((Ptr Widget) -> (IO (Ptr RcStyle)))
foreign import ccall safe "gtk_widget_modify_fg"
gtk_widget_modify_fg :: ((Ptr Widget) -> (CInt -> ((Ptr ()) -> (IO ()))))
foreign import ccall safe "gtk_widget_modify_bg"
gtk_widget_modify_bg :: ((Ptr Widget) -> (CInt -> ((Ptr ()) -> (IO ()))))
foreign import ccall safe "gtk_widget_modify_text"
gtk_widget_modify_text :: ((Ptr Widget) -> (CInt -> ((Ptr ()) -> (IO ()))))
foreign import ccall safe "gtk_widget_modify_base"
gtk_widget_modify_base :: ((Ptr Widget) -> (CInt -> ((Ptr ()) -> (IO ()))))
foreign import ccall safe "gtk_widget_modify_font"
gtk_widget_modify_font :: ((Ptr Widget) -> ((Ptr FontDescription) -> (IO ())))
foreign import ccall safe "gtk_widget_create_pango_context"
gtk_widget_create_pango_context :: ((Ptr Widget) -> (IO (Ptr PangoContext)))
foreign import ccall safe "gtk_widget_get_pango_context"
gtk_widget_get_pango_context :: ((Ptr Widget) -> (IO (Ptr PangoContext)))
foreign import ccall unsafe "gtk_widget_create_pango_layout"
gtk_widget_create_pango_layout :: ((Ptr Widget) -> ((Ptr CChar) -> (IO (Ptr PangoLayoutRaw))))
foreign import ccall safe "gtk_widget_render_icon"
gtk_widget_render_icon :: ((Ptr Widget) -> ((Ptr CChar) -> (CInt -> ((Ptr CChar) -> (IO (Ptr Pixbuf))))))
foreign import ccall safe "gtk_widget_queue_draw_area"
gtk_widget_queue_draw_area :: ((Ptr Widget) -> (CInt -> (CInt -> (CInt -> (CInt -> (IO ()))))))
foreign import ccall safe "gtk_widget_queue_draw_region"
gtk_widget_queue_draw_region :: ((Ptr Widget) -> ((Ptr ()) -> (IO ())))
foreign import ccall safe "gtk_widget_set_app_paintable"
gtk_widget_set_app_paintable :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_set_double_buffered"
gtk_widget_set_double_buffered :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_set_redraw_on_allocate"
gtk_widget_set_redraw_on_allocate :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_set_composite_name"
gtk_widget_set_composite_name :: ((Ptr Widget) -> ((Ptr CChar) -> (IO ())))
foreign import ccall safe "gtk_widget_mnemonic_activate"
gtk_widget_mnemonic_activate :: ((Ptr Widget) -> (CInt -> (IO CInt)))
foreign import ccall safe "gtk_widget_get_accessible"
gtk_widget_get_accessible :: ((Ptr Widget) -> (IO (Ptr AtkObject)))
foreign import ccall safe "gtk_widget_child_focus"
gtk_widget_child_focus :: ((Ptr Widget) -> (CInt -> (IO CInt)))
foreign import ccall safe "gtk_widget_get_child_visible"
gtk_widget_get_child_visible :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_get_parent"
gtk_widget_get_parent :: ((Ptr Widget) -> (IO (Ptr Widget)))
foreign import ccall safe "gtk_widget_get_settings"
gtk_widget_get_settings :: ((Ptr Widget) -> (IO (Ptr Settings)))
foreign import ccall safe "gtk_widget_get_clipboard"
gtk_widget_get_clipboard :: ((Ptr Widget) -> ((Ptr ()) -> (IO (Ptr Clipboard))))
foreign import ccall safe "gtk_widget_get_display"
gtk_widget_get_display :: ((Ptr Widget) -> (IO (Ptr Display)))
foreign import ccall safe "gtk_widget_get_root_window"
gtk_widget_get_root_window :: ((Ptr Widget) -> (IO (Ptr DrawWindow)))
foreign import ccall safe "gtk_widget_get_screen"
gtk_widget_get_screen :: ((Ptr Widget) -> (IO (Ptr Screen)))
foreign import ccall safe "gtk_widget_has_screen"
gtk_widget_has_screen :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_get_size_request"
gtk_widget_get_size_request :: ((Ptr Widget) -> ((Ptr CInt) -> ((Ptr CInt) -> (IO ()))))
foreign import ccall safe "gtk_widget_get_preferred_size"
gtk_widget_get_preferred_size :: ((Ptr Widget) -> ((Ptr ()) -> ((Ptr ()) -> (IO ()))))
foreign import ccall safe "gtk_widget_set_child_visible"
gtk_widget_set_child_visible :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_set_size_request"
gtk_widget_set_size_request :: ((Ptr Widget) -> (CInt -> (CInt -> (IO ()))))
foreign import ccall safe "gtk_widget_set_no_show_all"
gtk_widget_set_no_show_all :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_get_no_show_all"
gtk_widget_get_no_show_all :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_list_mnemonic_labels"
gtk_widget_list_mnemonic_labels :: ((Ptr Widget) -> (IO (Ptr ())))
foreign import ccall safe "gtk_widget_add_mnemonic_label"
gtk_widget_add_mnemonic_label :: ((Ptr Widget) -> ((Ptr Widget) -> (IO ())))
foreign import ccall safe "gtk_widget_remove_mnemonic_label"
gtk_widget_remove_mnemonic_label :: ((Ptr Widget) -> ((Ptr Widget) -> (IO ())))
foreign import ccall safe "gtk_widget_is_composited"
gtk_widget_is_composited :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_error_bell"
gtk_widget_error_bell :: ((Ptr Widget) -> (IO ()))
foreign import ccall safe "gtk_widget_keynav_failed"
gtk_widget_keynav_failed :: ((Ptr Widget) -> (CInt -> (IO CInt)))
foreign import ccall safe "gtk_widget_get_tooltip_markup"
gtk_widget_get_tooltip_markup :: ((Ptr Widget) -> (IO (Ptr CChar)))
foreign import ccall safe "gtk_widget_set_tooltip_markup"
gtk_widget_set_tooltip_markup :: ((Ptr Widget) -> ((Ptr CChar) -> (IO ())))
foreign import ccall safe "gtk_widget_get_tooltip_text"
gtk_widget_get_tooltip_text :: ((Ptr Widget) -> (IO (Ptr CChar)))
foreign import ccall safe "gtk_widget_set_tooltip_text"
gtk_widget_set_tooltip_text :: ((Ptr Widget) -> ((Ptr CChar) -> (IO ())))
foreign import ccall safe "gtk_widget_get_tooltip_window"
gtk_widget_get_tooltip_window :: ((Ptr Widget) -> (IO (Ptr Window)))
foreign import ccall safe "gtk_widget_set_tooltip_window"
gtk_widget_set_tooltip_window :: ((Ptr Widget) -> ((Ptr Window) -> (IO ())))
foreign import ccall safe "gtk_widget_get_has_tooltip"
gtk_widget_get_has_tooltip :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_set_has_tooltip"
gtk_widget_set_has_tooltip :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_trigger_tooltip_query"
gtk_widget_trigger_tooltip_query :: ((Ptr Widget) -> (IO ()))
foreign import ccall safe "gtk_widget_get_window"
gtk_widget_get_window :: ((Ptr Widget) -> (IO (Ptr DrawWindow)))
foreign import ccall safe "gtk_widget_register_window"
gtk_widget_register_window :: ((Ptr Widget) -> ((Ptr DrawWindow) -> (IO ())))
foreign import ccall safe "gtk_widget_unregister_window"
gtk_widget_unregister_window :: ((Ptr Widget) -> ((Ptr DrawWindow) -> (IO ())))
foreign import ccall safe "gtk_cairo_should_draw_window"
gtk_cairo_should_draw_window :: ((Ptr ()) -> ((Ptr DrawWindow) -> (IO CInt)))
foreign import ccall safe "gtk_cairo_transform_to_window"
gtk_cairo_transform_to_window :: ((Ptr ()) -> ((Ptr Widget) -> ((Ptr DrawWindow) -> (IO ()))))
foreign import ccall safe "gtk_widget_reparent"
gtk_widget_reparent :: ((Ptr Widget) -> ((Ptr Widget) -> (IO ())))
foreign import ccall safe "gtk_widget_get_allocation"
gtk_widget_get_allocation :: ((Ptr Widget) -> ((Ptr ()) -> (IO ())))
foreign import ccall safe "gtk_widget_get_allocated_width"
gtk_widget_get_allocated_width :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_get_allocated_height"
gtk_widget_get_allocated_height :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_get_allocated_baseline"
gtk_widget_get_allocated_baseline :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_get_clip"
gtk_widget_get_clip :: ((Ptr Widget) -> ((Ptr ()) -> (IO ())))
foreign import ccall safe "gtk_widget_set_clip"
gtk_widget_set_clip :: ((Ptr Widget) -> ((Ptr ()) -> (IO ())))
foreign import ccall safe "gtk_widget_get_app_paintable"
gtk_widget_get_app_paintable :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_get_can_default"
gtk_widget_get_can_default :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_set_can_default"
gtk_widget_set_can_default :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_get_has_window"
gtk_widget_get_has_window :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_set_has_window"
gtk_widget_set_has_window :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_get_sensitive"
gtk_widget_get_sensitive :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_is_sensitive"
gtk_widget_is_sensitive :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_get_state"
gtk_widget_get_state :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_get_visible"
gtk_widget_get_visible :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_is_visible"
gtk_widget_is_visible :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_set_state_flags"
gtk_widget_set_state_flags :: ((Ptr Widget) -> (CInt -> (CInt -> (IO ()))))
foreign import ccall safe "gtk_widget_unset_state_flags"
gtk_widget_unset_state_flags :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_get_state_flags"
gtk_widget_get_state_flags :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_has_default"
gtk_widget_has_default :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_has_focus"
gtk_widget_has_focus :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_has_visible_focus"
gtk_widget_has_visible_focus :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_has_grab"
gtk_widget_has_grab :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_is_drawable"
gtk_widget_is_drawable :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_is_toplevel"
gtk_widget_is_toplevel :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_set_window"
gtk_widget_set_window :: ((Ptr Widget) -> ((Ptr DrawWindow) -> (IO ())))
foreign import ccall safe "gtk_widget_set_receives_default"
gtk_widget_set_receives_default :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_get_receives_default"
gtk_widget_get_receives_default :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_device_is_shadowed"
gtk_widget_device_is_shadowed :: ((Ptr Widget) -> ((Ptr Device) -> (IO CInt)))
foreign import ccall safe "gtk_widget_get_modifier_mask"
gtk_widget_get_modifier_mask :: ((Ptr Widget) -> (CInt -> (IO CInt)))
foreign import ccall safe "gtk_widget_set_support_multidevice"
gtk_widget_set_support_multidevice :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_get_support_multidevice"
gtk_widget_get_support_multidevice :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_set_state"
gtk_widget_set_state :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_event"
gtk_widget_event :: ((Ptr Widget) -> ((Ptr ()) -> (IO CInt)))
foreign import ccall unsafe "gdk_event_mask_get_type"
gdk_event_mask_get_type :: CUInt
foreign import ccall safe "gtk_widget_has_rc_style"
gtk_widget_has_rc_style :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_get_realized"
gtk_widget_get_realized :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_get_mapped"
gtk_widget_get_mapped :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_set_realized"
gtk_widget_set_realized :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_set_mapped"
gtk_widget_set_mapped :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_get_style_context"
gtk_widget_get_style_context :: ((Ptr Widget) -> (IO (Ptr StyleContext)))
foreign import ccall safe "gtk_widget_get_halign"
gtk_widget_get_halign :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_set_halign"
gtk_widget_set_halign :: ((Ptr Widget) -> (CInt -> (IO ())))
foreign import ccall safe "gtk_widget_get_valign"
gtk_widget_get_valign :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_get_valign_with_baseline"
gtk_widget_get_valign_with_baseline :: ((Ptr Widget) -> (IO CInt))
foreign import ccall safe "gtk_widget_set_valign"
gtk_widget_set_valign :: ((Ptr Widget) -> (CInt -> (IO ())))