2
-- GIMP Toolkit (GTK) Widget SeparatorMenuItem
4
-- Author : Duncan Coutts
6
-- Created: 7 April 2005
8
-- Version $Revision: 1.2 $ from $Date: 2005/10/19 12:57:37 $
10
-- Copyright (C) 2005 Duncan Coutts
12
-- This library is free software; you can redistribute it and/or
13
-- modify it under the terms of the GNU Lesser General Public
14
-- License as published by the Free Software Foundation; either
15
-- version 2.1 of the License, or (at your option) any later version.
17
-- This library is distributed in the hope that it will be useful,
18
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
19
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
-- Lesser General Public License for more details.
23
-- Maintainer : gtk2hs-users@lists.sourceforge.net
24
-- Stability : provisional
25
-- Portability : portable (depends on GHC)
27
-- A separator used in menus
29
module Graphics.UI.Gtk.MenuComboToolbar.SeparatorMenuItem (
32
-- | The 'SeparatorMenuItem' is a separator used to group items within a menu.
33
-- It displays a horizontal line with a shadow to make it appear sunken into
46
-- | +----SeparatorMenuItem
51
SeparatorMenuItemClass,
52
castToSeparatorMenuItem,
61
import System.Glib.FFI
62
import Graphics.UI.Gtk.Abstract.Object (makeNewObject)
63
{#import Graphics.UI.Gtk.Types#}
65
{# context lib="gtk" prefix="gtk" #}
70
-- | Creates a new 'SeparatorMenuItem'.
72
separatorMenuItemNew :: IO SeparatorMenuItem
73
separatorMenuItemNew =
74
makeNewObject mkSeparatorMenuItem $
75
liftM (castPtr :: Ptr Widget -> Ptr SeparatorMenuItem) $
76
{# call gtk_separator_menu_item_new #}