    -- GENERATED by C->Haskell Compiler, version 0.13.13 (gtk2hs branch) "Bin IO", 27 May 2012 (Haskell)
    -- Edit the ORIGINAL .chs file instead!

    {-# LINE 1 "./Graphics/UI/Gtk/Windows/Invisible.chs" #-}
    -- -*-haskell-*-
    --  GIMP Toolkit (GTK) Window
    --
    --  Author : Andy Stewart
    --
    --  Created: 7 Oct 2009
    --
    --  Copyright (C) 2009 Andy Stewart
    --
    --  This library is free software; you can redistribute it and/or
    --  modify it under the terms of the GNU Lesser General Public
    --  License as published by the Free Software Foundation; either
    --  version 2.1 of the License, or (at your option) any later version.
    --
    --  This library is distributed in the hope that it will be useful,
    --  but WITHOUT ANY WARRANTY; without even the implied warranty of
    --  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    --  Lesser General Public License for more details.
    --
    -- |
    -- Maintainer  : gtk2hs-users@lists.sourceforge.net
    -- Stability   : provisional
    -- Portability : portable (depends on GHC)
    --
    -- A widget which is not displayed
    -- The 'Invisible' widget is used internally in GTK+, and is probably not very useful for application developers.
    -- It is used for reliable pointer grabs and selection handling in the code for drag-and-drop.
    --
    module Graphics.UI.Gtk.Windows.Invisible (

    -- * Class Hierarchy
    -- |
    -- @
    -- |  'GObject'
    -- |   +----'Object'
    -- |         +----'Widget'
    -- |               +----Invisible
    -- @

    -- * Types
      Invisible,

    -- * Constructors
      invisibleNew,
      invisibleNewForScreen,

    -- * Methods
      invisibleSetScreen,
      invisibleGetScreen,
      ) where

    import Control.Monad    (liftM)

    import System.Glib.FFI
    import Graphics.UI.Gtk.Abstract.Object  (makeNewObject)
    import Graphics.UI.Gtk.Gdk.Screen
    import Graphics.UI.Gtk.Types
    {-# LINE 57 "./Graphics/UI/Gtk/Windows/Invisible.chs" #-}

    {-# LINE 59 "./Graphics/UI/Gtk/Windows/Invisible.chs" #-}

    --------------------
    -- Constructors
    -- | Creates a new 'Invisible'.
    --
    invisibleNew :: IO Invisible
    invisibleNew :: IO Invisible
    invisibleNew =
      (ForeignPtr Invisible -> Invisible, FinalizerPtr Invisible)
    -> IO (Ptr Invisible) -> IO Invisible
    forall obj.
    GObjectClass obj =>
    (ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
    makeNewObject (ForeignPtr Invisible -> Invisible, FinalizerPtr Invisible)
    forall {a}. (ForeignPtr Invisible -> Invisible, FinalizerPtr a)
    mkInvisible (IO (Ptr Invisible) -> IO Invisible)
    -> IO (Ptr Invisible) -> IO Invisible
    forall a b. (a -> b) -> a -> b
    $
      (Ptr Widget -> Ptr Invisible)
    -> IO (Ptr Widget) -> IO (Ptr Invisible)
    forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
    liftM (Ptr Widget -> Ptr Invisible
    forall a b. Ptr a -> Ptr b
    castPtr :: Ptr Widget -> Ptr Invisible) (IO (Ptr Widget) -> IO (Ptr Invisible))
    -> IO (Ptr Widget) -> IO (Ptr Invisible)
    forall a b. (a -> b) -> a -> b
    $
      IO (Ptr Widget)
    gtk_invisible_new
    {-# LINE 69 "./Graphics/UI/Gtk/Windows/Invisible.chs" #-}

    -- | Creates a new 'Invisible' object for a specified screen
    --
    -- * Available since Gdk version 2.2
    --
    invisibleNewForScreen ::
       Screen   -- ^ @screen@ - a 'Screen' which identifies on which the new 'Invisible' will be created.
     -> IO Invisible
    invisibleNewForScreen :: Screen -> IO Invisible
    invisibleNewForScreen Screen
    screen =
      (ForeignPtr Invisible -> Invisible, FinalizerPtr Invisible)
    -> IO (Ptr Invisible) -> IO Invisible
    forall obj.
    GObjectClass obj =>
    (ForeignPtr obj -> obj, FinalizerPtr obj) -> IO (Ptr obj) -> IO obj
    makeNewObject (ForeignPtr Invisible -> Invisible, FinalizerPtr Invisible)
    forall {a}. (ForeignPtr Invisible -> Invisible, FinalizerPtr a)
    mkInvisible (IO (Ptr Invisible) -> IO Invisible)
    -> IO (Ptr Invisible) -> IO Invisible
    forall a b. (a -> b) -> a -> b
    $
      (Ptr Widget -> Ptr Invisible)
    -> IO (Ptr Widget) -> IO (Ptr Invisible)
    forall (m :: * -> *) a1 r. Monad m => (a1 -> r) -> m a1 -> m r
    liftM (Ptr Widget -> Ptr Invisible
    forall a b. Ptr a -> Ptr b
    castPtr :: Ptr Widget -> Ptr Invisible) (IO (Ptr Widget) -> IO (Ptr Invisible))
    -> IO (Ptr Widget) -> IO (Ptr Invisible)
    forall a b. (a -> b) -> a -> b
    $
      (\(Screen ForeignPtr Screen
    arg1) -> ForeignPtr Screen
    -> (Ptr Screen -> IO (Ptr Widget)) -> IO (Ptr Widget)
    forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
    withForeignPtr ForeignPtr Screen
    arg1 ((Ptr Screen -> IO (Ptr Widget)) -> IO (Ptr Widget))
    -> (Ptr Screen -> IO (Ptr Widget)) -> IO (Ptr Widget)
    forall a b. (a -> b) -> a -> b
    $ \Ptr Screen
    argPtr1 ->Ptr Screen -> IO (Ptr Widget)
    gtk_invisible_new_for_screen Ptr Screen
    argPtr1) Screen
    screen

    -- | Sets the 'Screen' where the 'Invisible' object will be displayed.
    --
    -- * Available since Gdk version 2.2
    --
    invisibleSetScreen :: Invisible
     -> Screen  -- ^ @screen@ - the 'Screen' to set
     -> IO ()
    invisibleSetScreen :: Invisible -> Screen -> IO ()
    invisibleSetScreen Invisible
    invisible Screen
    screen =
      (\(Invisible ForeignPtr Invisible
    arg1) (Screen ForeignPtr Screen
    arg2) -> ForeignPtr Invisible -> (Ptr Invisible -> IO ()) -> IO ()
    forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
    withForeignPtr ForeignPtr Invisible
    arg1 ((Ptr Invisible -> IO ()) -> IO ())
    -> (Ptr Invisible -> IO ()) -> IO ()
    forall a b. (a -> b) -> a -> b
    $ \Ptr Invisible
    argPtr1 ->ForeignPtr Screen -> (Ptr Screen -> IO ()) -> IO ()
    forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
    withForeignPtr ForeignPtr Screen
    arg2 ((Ptr Screen -> IO ()) -> IO ()) -> (Ptr Screen -> IO ()) -> IO ()
    forall a b. (a -> b) -> a -> b
    $ \Ptr Screen
    argPtr2 ->Ptr Invisible -> Ptr Screen -> IO ()
    gtk_invisible_set_screen Ptr Invisible
    argPtr1 Ptr Screen
    argPtr2) Invisible
    invisible Screen
    screen

    -- | Returns the 'Screen' object associated with invisible
    --
    -- * Available since Gdk version 2.2
    --
    invisibleGetScreen :: Invisible
     -> IO Screen
    invisibleGetScreen :: Invisible -> IO Screen
    invisibleGetScreen Invisible
    invisible =
      (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
    $
      (\(Invisible ForeignPtr Invisible
    arg1) -> ForeignPtr Invisible
    -> (Ptr Invisible -> IO (Ptr Screen)) -> IO (Ptr Screen)
    forall a b. ForeignPtr a -> (Ptr a -> IO b) -> IO b
    withForeignPtr ForeignPtr Invisible
    arg1 ((Ptr Invisible -> IO (Ptr Screen)) -> IO (Ptr Screen))
    -> (Ptr Invisible -> IO (Ptr Screen)) -> IO (Ptr Screen)
    forall a b. (a -> b) -> a -> b
    $ \Ptr Invisible
    argPtr1 ->Ptr Invisible -> IO (Ptr Screen)
    gtk_invisible_get_screen Ptr Invisible
    argPtr1) Invisible
    invisible

    foreign import ccall safe "gtk_invisible_new"
      gtk_invisible_new :: (IO (Ptr Widget))

    foreign import ccall safe "gtk_invisible_new_for_screen"
      gtk_invisible_new_for_screen :: ((Ptr Screen) -> (IO (Ptr Widget)))

    foreign import ccall safe "gtk_invisible_set_screen"
      gtk_invisible_set_screen :: ((Ptr Invisible) -> ((Ptr Screen) -> (IO ())))

    foreign import ccall safe "gtk_invisible_get_screen"
      gtk_invisible_get_screen :: ((Ptr Invisible) -> (IO (Ptr Screen)))