Update of /cvsroot/gtk2hs/gtk2hs/glib/System/Glib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30354/glib/System/Glib
Added Files:
Attributes.hs
Log Message:
Add properties.
For the first round, just the easy properties that are implemented in terms
of existing getter/setter functions and where there are no issues with
NULL/Maybe types.
Add Attributes file to glib package and modify Makefile.am accordingly.
--- NEW FILE: Attributes.hs ---
-- -*-haskell-*-
-- GIMP Toolkit (GTK) Attributes interface
--
-- Author : Duncan Coutts
--
-- Created: 21 January 2005
--
-- Copyright (C) 2005 Duncan Coutts
--
-- Partially derived from the hs-fltk and wxHaskell projects which
-- are both under LGPL compatible licenses.
--
-- 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 : gtk...@li...
-- Stability : provisional
-- Portability : non-portable (uses Gtk+ C library)
--
-- |
--
module System.Glib.Attributes where
-- | Object attributes can be get and set.
data Attr w a = Attr (w -> IO a) (w -> a -> IO ())
|