{-# LINE 2 "./Graphics/UI/Gtk/MenuComboToolbar/ToolPalette.chs" #-} -- -*-haskell-*- -- GIMP Toolkit (GTK) Widget ToolPalette -- -- Author : Andy Stewart -- -- Created: 08 Sep 2010 -- -- Copyright (C) 2010 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 tool palette with categories -- -- * Module available since Gtk+ version 2.20 -- -- TODO: -- -- gtk_tool_palette_add_drag_dest -- gtk_tool_palette_get_drag_item -- gtk_tool_palette_get_drag_target_group -- gtk_tool_palette_get_drag_target_item -- gtk_tool_palette_get_drop_group -- gtk_tool_palette_get_drop_item -- module Graphics.UI.Gtk.MenuComboToolbar.ToolPalette ( -- * Detail -- | A 'ToolPalette' allows you to add 'ToolItems' to a palette-like container with different -- categories and drag and drop support. -- -- A 'ToolPalette' is created with a call to 'toolPaletteNew'. -- -- 'ToolItems' cannot be added directly to a 'ToolPalette' - instead they are added to a -- 'ToolItemGroup' which can than be added to a 'ToolPalette'. To add a 'ToolItemGroup' to a -- 'ToolPalette', use 'containerAdd'. -- -- The easiest way to use drag and drop with 'ToolPalette' is to call 'toolPaletteAddDragDest' -- with the desired drag source palette and the desired drag target widget. Then -- 'toolPaletteGetDragItem' can be used to get the dragged item in the 'dragDataReceived' -- signal handler of the drag target. -- * Class Hierarchy -- | -- @ -- | 'GObject' -- | +----'Object' -- | +----'Widget' -- | +----'Container' -- | +----'ToolPalette' -- @ {-# LINE 99 "./Graphics/UI/Gtk/MenuComboToolbar/ToolPalette.chs" #-} ) where import Control.Monad (liftM) import System.Glib.FFI import System.Glib.Attributes import System.Glib.Properties import System.Glib.GList import System.Glib.UTFString import Graphics.UI.Gtk.General.Structs (IconSize (..)) import Graphics.UI.Gtk.General.Enums (ToolbarStyle (..)) import Graphics.UI.Gtk.Abstract.Object (makeNewObject) import Graphics.UI.Gtk.Types {-# LINE 112 "./Graphics/UI/Gtk/MenuComboToolbar/ToolPalette.chs" #-} import Graphics.UI.Gtk.Signals {-# LINE 113 "./Graphics/UI/Gtk/MenuComboToolbar/ToolPalette.chs" #-} {-# LINE 115 "./Graphics/UI/Gtk/MenuComboToolbar/ToolPalette.chs" #-}