-- gtk2hs-cast-glade -- A type class for cast functions of Gtk2hs: glade
-- package
-- Copyright (c) 2009 Marco TĂșlio Gontijo e Silva <marcot@holoscopio.com>
-- CC0 Waiver 1.0 Universal [Beta 3]
-- See LICENSE

module Graphics.UI.Gtk.Glade.Cast (Cast (..), xmlGetWidgetCast) where

-- glade
import Graphics.UI.Gtk.Glade

-- gtk
import Graphics.UI.Gtk

-- gtk2hs-cast-glib
import System.Glib.Cast

xmlGetWidgetCast
  :: (Cast widget, WidgetClass widget) => GladeXML -> String -> IO widget
xmlGetWidgetCast glade = xmlGetWidget glade cast