diff --git a/HGamer3D-CEGUI-Binding.cabal b/HGamer3D-CEGUI-Binding.cabal
--- a/HGamer3D-CEGUI-Binding.cabal
+++ b/HGamer3D-CEGUI-Binding.cabal
@@ -1,11 +1,11 @@
 Name:                HGamer3D-CEGUI-Binding
-Version:             0.4.0
-Synopsis:            A Game Engine for the Haskell Programmer - CEGUI  Bindings
+Version:             0.5.0
+Synopsis:            A Toolset for the Haskell Game  Programmer - CEGUI  Bindings
 Description:         
-   HGamer3D is a game engine for developing 3D games in the programming 
-   language Haskell. This module provides the CEGUI Bindings.
-   HGamer3D-CEGUI-Binding is available on Windows and Linux.
-   
+   HGamer3D is a toolset for developing 3D games in the programming 
+   language Haskell. This module provides the CEGUI Bindings.
+   HGamer3D-CEGUI-Binding is available on Windows and Linux.
+   
 
 	
 License:             OtherLicense
@@ -16,21 +16,21 @@
 Cabal-Version:       >=1.4
 Homepage:            http://www.hgamer3d.org
 Category:            Game Engine, GUI
-Extra-source-files:  Setup.hs, include/colorvalue_struct.h, include/StructHG3DClass.h, include/ClassThumb.h, include/EnumTabPanePosition.h, include/ClassUDim.h, include/hg3dstruct.h, include/vector4_struct.h, include/HG3DCommandHandler.h, include/ClassListboxItem.h, include/ClassEditbox.h, include/ClassSchemeManager.h, include/ClassSpinner.h, include/ClassItemListbox.h, include/EnumQuadSplitMode.h, include/ClassMultiLineEditbox.h, include/ClassMenuItem.h, include/radian_struct.h, include/ClassListHeaderSegment.h, include/ClassTree.h, include/ClassHG3DEventController.h, include/CEGUIDllDefines.h, include/ClassSlider.h, include/ClassListbox.h, include/SystemHG3D.h, include/ClassMultiColumnList.h, include/HG3DEventStaticFunctions.h, include/HG3DListboxStaticFunctions.h, include/ClassScrollablePane.h, include/ClassUVector2.h, include/vector2_struct.h, include/EnumTipState.h, include/ClassFont.h, include/ClassWindowManagerHG3D.h, include/ClassScheme.h, include/EnumSelectionMode.h, include/ClassFrameWindow.h, include/ClassWindowManager.h, include/ClassHG3DListboxStaticFunctions.h, include/sharedptr_struct.h, include/ClassHG3DEventStaticFunctions.h, include/HG3DEventController.h, include/ClassTabButton.h, include/ClassPushButton.h, include/ClassFontManager.h, include/EnumMouseButton.h, include/EnumWindowUpdateMode.h, include/ClassScrollbar.h, include/EnumFWSizingLocation.h, include/ClassDefaultResourceProvider.h, include/ClassItemEntry.h, include/EnumBlendMode.h, include/ClassPtr.h, include/ClassScrolledContainer.h, include/ClassDragContainer.h, include/ClassListboxTextItem.h, include/EnumSystemKey.h, include/ClassRadioButton.h, include/ClassXMLParser.h, include/ClassComboDropList.h, include/quaternion_struct.h, include/ClassScriptModule.h, include/ClassWindow.h, include/EnumHorizontalAlignment.h, include/EnumLoggingLevel.h, include/ClassEventSet.h, include/ClassRenderer.h, include/ClassOgreResourceProvider.h, include/ClassLogger.h, include/ClassResourceProvider.h, include/ClassImageCodec.h, include/vector3_struct.h, include/ClassScrolledItemListBase.h, include/ClassEventArgs.h, include/ClassPropertySet.h, include/EnumSortDirection.h, include/EnumKeyScan.h, include/EnumVerticalAlignment.h, include/ClassImageset.h, include/ClassProgressBar.h, include/ClassSystem.h, include/ClassDefaultLogger.h, include/ClassSystemHG3D.h, include/WindowManagerHG3D.h, include/HG3DEventModule.h, include/ClassMenuBase.h, include/ClassCheckbox.h, include/ClassCombobox.h, include/degree_struct.h, include/ClassWidgetLookManager.h, include/ClassListHeader.h, include/ClassTooltip.h, include/ClassOgreRenderer.h, include/EnumTextInputMode.h, include/ClassScriptFunctor.h, include/ClassHG3DWindowStaticFunctions.h, include/HG3DWindowStaticFunctions.h
+Extra-source-files:  Setup.hs, include/CEGUIDllDefines.h, include/ClassCheckbox.h, include/ClassCombobox.h, include/ClassComboDropList.h, include/ClassDefaultLogger.h, include/ClassDefaultResourceProvider.h, include/ClassDragContainer.h, include/ClassEditbox.h, include/ClassEventArgs.h, include/ClassEventSet.h, include/ClassFont.h, include/ClassFontManager.h, include/ClassFrameWindow.h, include/ClassHG3DEventController.h, include/ClassHG3DEventStaticFunctions.h, include/ClassHG3DListboxStaticFunctions.h, include/ClassHG3DWindowStaticFunctions.h, include/ClassImageCodec.h, include/ClassImageset.h, include/ClassItemEntry.h, include/ClassItemListbox.h, include/ClassListbox.h, include/ClassListboxItem.h, include/ClassListboxTextItem.h, include/ClassListHeader.h, include/ClassListHeaderSegment.h, include/ClassLogger.h, include/ClassMenuBase.h, include/ClassMenuItem.h, include/ClassMultiColumnList.h, include/ClassMultiLineEditbox.h, include/ClassOgreRenderer.h, include/ClassOgreResourceProvider.h, include/ClassProgressBar.h, include/ClassPropertySet.h, include/ClassPtr.h, include/ClassPushButton.h, include/ClassRadioButton.h, include/ClassRenderer.h, include/ClassResourceProvider.h, include/ClassScheme.h, include/ClassSchemeManager.h, include/ClassScriptFunctor.h, include/ClassScriptModule.h, include/ClassScrollablePane.h, include/ClassScrollbar.h, include/ClassScrolledContainer.h, include/ClassScrolledItemListBase.h, include/ClassSlider.h, include/ClassSpinner.h, include/ClassSystem.h, include/ClassSystemHG3D.h, include/ClassTabButton.h, include/ClassThumb.h, include/ClassTooltip.h, include/ClassTree.h, include/ClassUDim.h, include/ClassUVector2.h, include/ClassWidgetLookManager.h, include/ClassWindow.h, include/ClassWindowManager.h, include/ClassWindowManagerHG3D.h, include/ClassXMLParser.h, include/colorvalue_struct.h, include/degree_struct.h, include/EnumBlendMode.h, include/EnumFWSizingLocation.h, include/EnumHorizontalAlignment.h, include/EnumKeyScan.h, include/EnumLoggingLevel.h, include/EnumMouseButton.h, include/EnumQuadSplitMode.h, include/EnumSelectionMode.h, include/EnumSortDirection.h, include/EnumSystemKey.h, include/EnumTabPanePosition.h, include/EnumTextInputMode.h, include/EnumTipState.h, include/EnumVerticalAlignment.h, include/EnumWindowUpdateMode.h, include/HG3DCommandHandler.h, include/HG3DEventController.h, include/HG3DEventModule.h, include/HG3DEventStaticFunctions.h, include/HG3DListboxStaticFunctions.h, include/hg3dstruct.h, include/HG3DWindowStaticFunctions.h, include/quaternion_struct.h, include/radian_struct.h, include/sharedptr_struct.h, include/StructHG3DClass.h, include/SystemHG3D.h, include/vector2_struct.h, include/vector3_struct.h, include/vector4_struct.h, include/WindowManagerHG3D.h
 
 Library
-  Build-Depends:     base >= 3 && < 5,  HGamer3D-Data >= 0.4.0 && < 0.5.0
+  Build-Depends:     base >= 3 && < 5,  HGamer3D-Data >= 0.5.0 && < 0.6.0
 
-  Exposed-modules:   HGamer3D.Bindings.CEGUI.Utils, HGamer3D.Bindings.CEGUI.StructHG3DClass, HGamer3D.Bindings.CEGUI.ClassPtr, HGamer3D.Bindings.CEGUI.EnumTextInputMode, HGamer3D.Bindings.CEGUI.EnumLoggingLevel, HGamer3D.Bindings.CEGUI.EnumWindowUpdateMode, HGamer3D.Bindings.CEGUI.EnumMouseButton, HGamer3D.Bindings.CEGUI.EnumTipState, HGamer3D.Bindings.CEGUI.EnumQuadSplitMode, HGamer3D.Bindings.CEGUI.EnumHorizontalAlignment, HGamer3D.Bindings.CEGUI.EnumKeyScan, HGamer3D.Bindings.CEGUI.EnumSelectionMode, HGamer3D.Bindings.CEGUI.EnumVerticalAlignment, HGamer3D.Bindings.CEGUI.EnumSortDirection, HGamer3D.Bindings.CEGUI.EnumTabPanePosition, HGamer3D.Bindings.CEGUI.EnumBlendMode, HGamer3D.Bindings.CEGUI.EnumFWSizingLocation, HGamer3D.Bindings.CEGUI.EnumSystemKey, HGamer3D.Bindings.CEGUI.ClassScrolledContainer, HGamer3D.Bindings.CEGUI.ClassSystem, HGamer3D.Bindings.CEGUI.ClassPushButton, HGamer3D.Bindings.CEGUI.ClassScheme, HGamer3D.Bindings.CEGUI.ClassWindowManager, HGamer3D.Bindings.CEGUI.ClassRadioButton, HGamer3D.Bindings.CEGUI.ClassMenuBase, HGamer3D.Bindings.CEGUI.ClassCombobox, HGamer3D.Bindings.CEGUI.ClassThumb, HGamer3D.Bindings.CEGUI.ClassSchemeManager, HGamer3D.Bindings.CEGUI.ClassEventArgs, HGamer3D.Bindings.CEGUI.ClassComboDropList, HGamer3D.Bindings.CEGUI.ClassImageset, HGamer3D.Bindings.CEGUI.ClassScriptFunctor, HGamer3D.Bindings.CEGUI.ClassWindowManagerHG3D, HGamer3D.Bindings.CEGUI.ClassScrollbar, HGamer3D.Bindings.CEGUI.ClassTree, HGamer3D.Bindings.CEGUI.ClassUDim, HGamer3D.Bindings.CEGUI.ClassHG3DEventStaticFunctions, HGamer3D.Bindings.CEGUI.ClassListHeaderSegment, HGamer3D.Bindings.CEGUI.ClassUVector2, HGamer3D.Bindings.CEGUI.ClassItemListbox, HGamer3D.Bindings.CEGUI.ClassCheckbox, HGamer3D.Bindings.CEGUI.ClassOgreResourceProvider, HGamer3D.Bindings.CEGUI.ClassHG3DEventController, HGamer3D.Bindings.CEGUI.ClassScrollablePane, HGamer3D.Bindings.CEGUI.ClassTooltip, HGamer3D.Bindings.CEGUI.ClassResourceProvider, HGamer3D.Bindings.CEGUI.ClassLogger, HGamer3D.Bindings.CEGUI.ClassListHeader, HGamer3D.Bindings.CEGUI.ClassPropertySet, HGamer3D.Bindings.CEGUI.ClassEventSet, HGamer3D.Bindings.CEGUI.ClassMultiColumnList, HGamer3D.Bindings.CEGUI.ClassFrameWindow, HGamer3D.Bindings.CEGUI.ClassOgreRenderer, HGamer3D.Bindings.CEGUI.ClassFont, HGamer3D.Bindings.CEGUI.ClassFontManager, HGamer3D.Bindings.CEGUI.ClassImageCodec, HGamer3D.Bindings.CEGUI.ClassDefaultResourceProvider, HGamer3D.Bindings.CEGUI.ClassWidgetLookManager, HGamer3D.Bindings.CEGUI.ClassScriptModule, HGamer3D.Bindings.CEGUI.ClassItemEntry, HGamer3D.Bindings.CEGUI.ClassRenderer, HGamer3D.Bindings.CEGUI.ClassTabButton, HGamer3D.Bindings.CEGUI.ClassMenuItem, HGamer3D.Bindings.CEGUI.ClassScrolledItemListBase, HGamer3D.Bindings.CEGUI.ClassDefaultLogger, HGamer3D.Bindings.CEGUI.ClassEditbox, HGamer3D.Bindings.CEGUI.ClassProgressBar, HGamer3D.Bindings.CEGUI.ClassMultiLineEditbox, HGamer3D.Bindings.CEGUI.ClassHG3DWindowStaticFunctions, HGamer3D.Bindings.CEGUI.ClassListboxTextItem, HGamer3D.Bindings.CEGUI.ClassSystemHG3D, HGamer3D.Bindings.CEGUI.ClassSlider, HGamer3D.Bindings.CEGUI.ClassDragContainer, HGamer3D.Bindings.CEGUI.ClassListboxItem, HGamer3D.Bindings.CEGUI.ClassXMLParser, HGamer3D.Bindings.CEGUI.ClassSpinner, HGamer3D.Bindings.CEGUI.ClassHG3DListboxStaticFunctions, HGamer3D.Bindings.CEGUI.ClassWindow, HGamer3D.Bindings.CEGUI.ClassListbox
+  Exposed-modules:   HGamer3D.Bindings.CEGUI.Utils, HGamer3D.Bindings.CEGUI.ClassPtr, HGamer3D.Bindings.CEGUI.StructHG3DClass, HGamer3D.Bindings.CEGUI.EnumBlendMode, HGamer3D.Bindings.CEGUI.EnumFWSizingLocation, HGamer3D.Bindings.CEGUI.EnumHorizontalAlignment, HGamer3D.Bindings.CEGUI.EnumKeyScan, HGamer3D.Bindings.CEGUI.EnumLoggingLevel, HGamer3D.Bindings.CEGUI.EnumMouseButton, HGamer3D.Bindings.CEGUI.EnumQuadSplitMode, HGamer3D.Bindings.CEGUI.EnumSelectionMode, HGamer3D.Bindings.CEGUI.EnumSortDirection, HGamer3D.Bindings.CEGUI.EnumSystemKey, HGamer3D.Bindings.CEGUI.EnumTabPanePosition, HGamer3D.Bindings.CEGUI.EnumTextInputMode, HGamer3D.Bindings.CEGUI.EnumTipState, HGamer3D.Bindings.CEGUI.EnumVerticalAlignment, HGamer3D.Bindings.CEGUI.EnumWindowUpdateMode, HGamer3D.Bindings.CEGUI.ClassCheckbox, HGamer3D.Bindings.CEGUI.ClassCombobox, HGamer3D.Bindings.CEGUI.ClassComboDropList, HGamer3D.Bindings.CEGUI.ClassDefaultLogger, HGamer3D.Bindings.CEGUI.ClassDefaultResourceProvider, HGamer3D.Bindings.CEGUI.ClassDragContainer, HGamer3D.Bindings.CEGUI.ClassEditbox, HGamer3D.Bindings.CEGUI.ClassEventArgs, HGamer3D.Bindings.CEGUI.ClassEventSet, HGamer3D.Bindings.CEGUI.ClassFont, HGamer3D.Bindings.CEGUI.ClassFontManager, HGamer3D.Bindings.CEGUI.ClassFrameWindow, HGamer3D.Bindings.CEGUI.ClassHG3DEventController, HGamer3D.Bindings.CEGUI.ClassHG3DEventStaticFunctions, HGamer3D.Bindings.CEGUI.ClassHG3DListboxStaticFunctions, HGamer3D.Bindings.CEGUI.ClassHG3DWindowStaticFunctions, HGamer3D.Bindings.CEGUI.ClassImageCodec, HGamer3D.Bindings.CEGUI.ClassImageset, HGamer3D.Bindings.CEGUI.ClassItemEntry, HGamer3D.Bindings.CEGUI.ClassItemListbox, HGamer3D.Bindings.CEGUI.ClassListbox, HGamer3D.Bindings.CEGUI.ClassListboxItem, HGamer3D.Bindings.CEGUI.ClassListboxTextItem, HGamer3D.Bindings.CEGUI.ClassListHeader, HGamer3D.Bindings.CEGUI.ClassListHeaderSegment, HGamer3D.Bindings.CEGUI.ClassLogger, HGamer3D.Bindings.CEGUI.ClassMenuBase, HGamer3D.Bindings.CEGUI.ClassMenuItem, HGamer3D.Bindings.CEGUI.ClassMultiColumnList, HGamer3D.Bindings.CEGUI.ClassMultiLineEditbox, HGamer3D.Bindings.CEGUI.ClassOgreRenderer, HGamer3D.Bindings.CEGUI.ClassOgreResourceProvider, HGamer3D.Bindings.CEGUI.ClassProgressBar, HGamer3D.Bindings.CEGUI.ClassPropertySet, HGamer3D.Bindings.CEGUI.ClassPushButton, HGamer3D.Bindings.CEGUI.ClassRadioButton, HGamer3D.Bindings.CEGUI.ClassRenderer, HGamer3D.Bindings.CEGUI.ClassResourceProvider, HGamer3D.Bindings.CEGUI.ClassScheme, HGamer3D.Bindings.CEGUI.ClassSchemeManager, HGamer3D.Bindings.CEGUI.ClassScriptFunctor, HGamer3D.Bindings.CEGUI.ClassScriptModule, HGamer3D.Bindings.CEGUI.ClassScrollablePane, HGamer3D.Bindings.CEGUI.ClassScrollbar, HGamer3D.Bindings.CEGUI.ClassScrolledContainer, HGamer3D.Bindings.CEGUI.ClassScrolledItemListBase, HGamer3D.Bindings.CEGUI.ClassSlider, HGamer3D.Bindings.CEGUI.ClassSpinner, HGamer3D.Bindings.CEGUI.ClassSystem, HGamer3D.Bindings.CEGUI.ClassSystemHG3D, HGamer3D.Bindings.CEGUI.ClassTabButton, HGamer3D.Bindings.CEGUI.ClassThumb, HGamer3D.Bindings.CEGUI.ClassTooltip, HGamer3D.Bindings.CEGUI.ClassTree, HGamer3D.Bindings.CEGUI.ClassUDim, HGamer3D.Bindings.CEGUI.ClassUVector2, HGamer3D.Bindings.CEGUI.ClassWidgetLookManager, HGamer3D.Bindings.CEGUI.ClassWindow, HGamer3D.Bindings.CEGUI.ClassWindowManager, HGamer3D.Bindings.CEGUI.ClassWindowManagerHG3D, HGamer3D.Bindings.CEGUI.ClassXMLParser
   Other-modules:     
 
-  ghc-options:       
+  ghc-options:       -O2
   cc-options:        -Wno-attributes 
   hs-source-dirs:    .
   Include-dirs:      include
   Build-tools:       
   build-depends:     
   if os(windows)
-     extra-libraries:   hg3dcegui040
+     extra-libraries:   hg3dcegui050
   else
-     extra-libraries:   hg3dcegui040,CEGUIBase-0.7.7,CEGUIOgreRenderer-0.7.7
+     extra-libraries:   hg3dcegui050,CEGUIBase-0.7.7,CEGUIOgreRenderer-0.7.7
diff --git a/HGamer3D/Bindings/CEGUI/ClassCheckbox.chs b/HGamer3D/Bindings/CEGUI/ClassCheckbox.chs
--- a/HGamer3D/Bindings/CEGUI/ClassCheckbox.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassCheckbox.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassCheckbox.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassCheckbox where
 
@@ -36,28 +36,28 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassCheckbox.h"
-{- function isSelected -}
-{#fun cegui_chkbx_isSelected as isSelected 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setSelected -}
-{#fun cegui_chkbx_setSelected as setSelected 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function Checkbox -}
-{#fun cegui_chkbx_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~Checkbox -}
-{#fun cegui_chkbx_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function isSelected -}
+{#fun cegui_chkbx_isSelected as isSelected 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setSelected -}
+{#fun cegui_chkbx_setSelected as setSelected 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function Checkbox -}
+{#fun cegui_chkbx_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~Checkbox -}
+{#fun cegui_chkbx_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassComboDropList.chs b/HGamer3D/Bindings/CEGUI/ClassComboDropList.chs
--- a/HGamer3D/Bindings/CEGUI/ClassComboDropList.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassComboDropList.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassComboDropList.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassComboDropList where
 
@@ -36,42 +36,42 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassComboDropList.h"
-{- function initialiseComponents -}
-{#fun cegui_cmbdrplst_initialiseComponents as initialiseComponents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setArmed -}
-{#fun cegui_cmbdrplst_setArmed as setArmed 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isArmed -}
-{#fun cegui_cmbdrplst_isArmed as isArmed 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setAutoArmEnabled -}
-{#fun cegui_cmbdrplst_setAutoArmEnabled as setAutoArmEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isAutoArmEnabled -}
-{#fun cegui_cmbdrplst_isAutoArmEnabled as isAutoArmEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function ComboDropList -}
-{#fun cegui_cmbdrplst_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~ComboDropList -}
-{#fun cegui_cmbdrplst_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function initialiseComponents -}
+{#fun cegui_cmbdrplst_initialiseComponents as initialiseComponents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setArmed -}
+{#fun cegui_cmbdrplst_setArmed as setArmed 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isArmed -}
+{#fun cegui_cmbdrplst_isArmed as isArmed 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setAutoArmEnabled -}
+{#fun cegui_cmbdrplst_setAutoArmEnabled as setAutoArmEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isAutoArmEnabled -}
+{#fun cegui_cmbdrplst_isAutoArmEnabled as isAutoArmEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function ComboDropList -}
+{#fun cegui_cmbdrplst_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~ComboDropList -}
+{#fun cegui_cmbdrplst_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassCombobox.chs b/HGamer3D/Bindings/CEGUI/ClassCombobox.chs
--- a/HGamer3D/Bindings/CEGUI/ClassCombobox.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassCombobox.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassCombobox.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassCombobox where
 
@@ -36,246 +36,246 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassCombobox.h"
-{- function getSingleClickEnabled -}
-{#fun cegui_cmbbx_getSingleClickEnabled as getSingleClickEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isDropDownListVisible -}
-{#fun cegui_cmbbx_isDropDownListVisible as isDropDownListVisible 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getEditbox -}
-{#fun cegui_cmbbx_getEditbox as getEditbox 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getPushButton -}
-{#fun cegui_cmbbx_getPushButton as getPushButton 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getDropList -}
-{#fun cegui_cmbbx_getDropList as getDropList 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function hasInputFocus -}
-{#fun cegui_cmbbx_hasInputFocus as hasInputFocus 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isReadOnly -}
-{#fun cegui_cmbbx_isReadOnly as isReadOnly 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isTextValid -}
-{#fun cegui_cmbbx_isTextValid as isTextValid 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getValidationString -}
-{#fun cegui_cmbbx_getValidationString as getValidationString 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getCaratIndex -}
-{#fun cegui_cmbbx_getCaratIndex as getCaratIndex 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSelectionStartIndex -}
-{#fun cegui_cmbbx_getSelectionStartIndex as getSelectionStartIndex 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSelectionEndIndex -}
-{#fun cegui_cmbbx_getSelectionEndIndex as getSelectionEndIndex 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSelectionLength -}
-{#fun cegui_cmbbx_getSelectionLength as getSelectionLength 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getMaxTextLength -}
-{#fun cegui_cmbbx_getMaxTextLength as getMaxTextLength 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getItemCount -}
-{#fun cegui_cmbbx_getItemCount as getItemCount 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSelectedItem -}
-{#fun cegui_cmbbx_getSelectedItem as getSelectedItem 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getListboxItemFromIndex -}
-{#fun cegui_cmbbx_getListboxItemFromIndex as getListboxItemFromIndex 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getItemIndex -}
-{#fun cegui_cmbbx_getItemIndex as getItemIndex 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function isSortEnabled -}
-{#fun cegui_cmbbx_isSortEnabled as isSortEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isItemSelected -}
-{#fun cegui_cmbbx_isItemSelected as isItemSelected 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function findItemWithText -}
-{#fun cegui_cmbbx_findItemWithText as findItemWithText 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function isListboxItemInList -}
-{#fun cegui_cmbbx_isListboxItemInList as isListboxItemInList 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isVertScrollbarAlwaysShown -}
-{#fun cegui_cmbbx_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isHorzScrollbarAlwaysShown -}
-{#fun cegui_cmbbx_isHorzScrollbarAlwaysShown as isHorzScrollbarAlwaysShown 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function initialiseComponents -}
-{#fun cegui_cmbbx_initialiseComponents as initialiseComponents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function showDropList -}
-{#fun cegui_cmbbx_showDropList as showDropList 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function hideDropList -}
-{#fun cegui_cmbbx_hideDropList as hideDropList 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setSingleClickEnabled -}
-{#fun cegui_cmbbx_setSingleClickEnabled as setSingleClickEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setReadOnly -}
-{#fun cegui_cmbbx_setReadOnly as setReadOnly 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setValidationString -}
-{#fun cegui_cmbbx_setValidationString as setValidationString 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function setCaratIndex -}
-{#fun cegui_cmbbx_setCaratIndex as setCaratIndex 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setSelection -}
-{#fun cegui_cmbbx_setSelection as setSelection 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setMaxTextLength -}
-{#fun cegui_cmbbx_setMaxTextLength as setMaxTextLength 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function activateEditbox -}
-{#fun cegui_cmbbx_activateEditbox as activateEditbox 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function resetList -}
-{#fun cegui_cmbbx_resetList as resetList 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function addItem -}
-{#fun cegui_cmbbx_addItem as addItem 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function insertItem -}
-{#fun cegui_cmbbx_insertItem as insertItem 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function removeItem -}
-{#fun cegui_cmbbx_removeItem as removeItem 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function clearAllSelections -}
-{#fun cegui_cmbbx_clearAllSelections as clearAllSelections 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setSortingEnabled -}
-{#fun cegui_cmbbx_setSortingEnabled as setSortingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setShowVertScrollbar -}
-{#fun cegui_cmbbx_setShowVertScrollbar as setShowVertScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setShowHorzScrollbar -}
-{#fun cegui_cmbbx_setShowHorzScrollbar as setShowHorzScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setItemSelectState -}
-{#fun cegui_cmbbx_setItemSelectState as setItemSelectState 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setItemSelectState2 -}
-{#fun cegui_cmbbx_setItemSelectState2 as setItemSelectState2 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function handleUpdatedListItemData -}
-{#fun cegui_cmbbx_handleUpdatedListItemData as handleUpdatedListItemData 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function Combobox -}
-{#fun cegui_cmbbx_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~Combobox -}
-{#fun cegui_cmbbx_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function getSingleClickEnabled -}
+{#fun cegui_cmbbx_getSingleClickEnabled as getSingleClickEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isDropDownListVisible -}
+{#fun cegui_cmbbx_isDropDownListVisible as isDropDownListVisible 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getEditbox -}
+{#fun cegui_cmbbx_getEditbox as getEditbox 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getPushButton -}
+{#fun cegui_cmbbx_getPushButton as getPushButton 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getDropList -}
+{#fun cegui_cmbbx_getDropList as getDropList 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function hasInputFocus -}
+{#fun cegui_cmbbx_hasInputFocus as hasInputFocus 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isReadOnly -}
+{#fun cegui_cmbbx_isReadOnly as isReadOnly 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isTextValid -}
+{#fun cegui_cmbbx_isTextValid as isTextValid 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getValidationString -}
+{#fun cegui_cmbbx_getValidationString as getValidationString 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getCaratIndex -}
+{#fun cegui_cmbbx_getCaratIndex as getCaratIndex 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSelectionStartIndex -}
+{#fun cegui_cmbbx_getSelectionStartIndex as getSelectionStartIndex 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSelectionEndIndex -}
+{#fun cegui_cmbbx_getSelectionEndIndex as getSelectionEndIndex 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSelectionLength -}
+{#fun cegui_cmbbx_getSelectionLength as getSelectionLength 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getMaxTextLength -}
+{#fun cegui_cmbbx_getMaxTextLength as getMaxTextLength 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getItemCount -}
+{#fun cegui_cmbbx_getItemCount as getItemCount 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSelectedItem -}
+{#fun cegui_cmbbx_getSelectedItem as getSelectedItem 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getListboxItemFromIndex -}
+{#fun cegui_cmbbx_getListboxItemFromIndex as getListboxItemFromIndex 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getItemIndex -}
+{#fun cegui_cmbbx_getItemIndex as getItemIndex 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function isSortEnabled -}
+{#fun cegui_cmbbx_isSortEnabled as isSortEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isItemSelected -}
+{#fun cegui_cmbbx_isItemSelected as isItemSelected 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function findItemWithText -}
+{#fun cegui_cmbbx_findItemWithText as findItemWithText 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function isListboxItemInList -}
+{#fun cegui_cmbbx_isListboxItemInList as isListboxItemInList 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isVertScrollbarAlwaysShown -}
+{#fun cegui_cmbbx_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isHorzScrollbarAlwaysShown -}
+{#fun cegui_cmbbx_isHorzScrollbarAlwaysShown as isHorzScrollbarAlwaysShown 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function initialiseComponents -}
+{#fun cegui_cmbbx_initialiseComponents as initialiseComponents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function showDropList -}
+{#fun cegui_cmbbx_showDropList as showDropList 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function hideDropList -}
+{#fun cegui_cmbbx_hideDropList as hideDropList 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setSingleClickEnabled -}
+{#fun cegui_cmbbx_setSingleClickEnabled as setSingleClickEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setReadOnly -}
+{#fun cegui_cmbbx_setReadOnly as setReadOnly 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setValidationString -}
+{#fun cegui_cmbbx_setValidationString as setValidationString 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setCaratIndex -}
+{#fun cegui_cmbbx_setCaratIndex as setCaratIndex 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setSelection -}
+{#fun cegui_cmbbx_setSelection as setSelection 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setMaxTextLength -}
+{#fun cegui_cmbbx_setMaxTextLength as setMaxTextLength 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function activateEditbox -}
+{#fun cegui_cmbbx_activateEditbox as activateEditbox 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function resetList -}
+{#fun cegui_cmbbx_resetList as resetList 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function addItem -}
+{#fun cegui_cmbbx_addItem as addItem 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function insertItem -}
+{#fun cegui_cmbbx_insertItem as insertItem 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function removeItem -}
+{#fun cegui_cmbbx_removeItem as removeItem 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function clearAllSelections -}
+{#fun cegui_cmbbx_clearAllSelections as clearAllSelections 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setSortingEnabled -}
+{#fun cegui_cmbbx_setSortingEnabled as setSortingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setShowVertScrollbar -}
+{#fun cegui_cmbbx_setShowVertScrollbar as setShowVertScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setShowHorzScrollbar -}
+{#fun cegui_cmbbx_setShowHorzScrollbar as setShowHorzScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setItemSelectState -}
+{#fun cegui_cmbbx_setItemSelectState as setItemSelectState 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setItemSelectState2 -}
+{#fun cegui_cmbbx_setItemSelectState2 as setItemSelectState2 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function handleUpdatedListItemData -}
+{#fun cegui_cmbbx_handleUpdatedListItemData as handleUpdatedListItemData 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function Combobox -}
+{#fun cegui_cmbbx_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~Combobox -}
+{#fun cegui_cmbbx_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassDefaultLogger.chs b/HGamer3D/Bindings/CEGUI/ClassDefaultLogger.chs
--- a/HGamer3D/Bindings/CEGUI/ClassDefaultLogger.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassDefaultLogger.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassDefaultLogger.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassDefaultLogger where
 
@@ -36,29 +36,29 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
-{# import HGamer3D.Bindings.CEGUI.EnumLoggingLevel #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.EnumLoggingLevel #}
 
 #include "ClassDefaultLogger.h"
-{- function DefaultLogger -}
-{#fun cegui_dfltlgr_construct as new 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~DefaultLogger -}
-{#fun cegui_dfltlgr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function logEvent -}
-{#fun cegui_dfltlgr_logEvent as logEvent 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- cIntFromEnum `EnumLoggingLevel' } -> `()'  #}
-
-{- function setLogFilename -}
-{#fun cegui_dfltlgr_setLogFilename as setLogFilename 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- fromBool `Bool' } -> `()'  #}
-
+{- function DefaultLogger -}
+{#fun cegui_dfltlgr_construct as new 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~DefaultLogger -}
+{#fun cegui_dfltlgr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function logEvent -}
+{#fun cegui_dfltlgr_logEvent as logEvent 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ cIntFromEnum `EnumLoggingLevel' } -> `()'  #}
+
+{- function setLogFilename -}
+{#fun cegui_dfltlgr_setLogFilename as setLogFilename 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ fromBool `Bool' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassDefaultResourceProvider.chs b/HGamer3D/Bindings/CEGUI/ClassDefaultResourceProvider.chs
--- a/HGamer3D/Bindings/CEGUI/ClassDefaultResourceProvider.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassDefaultResourceProvider.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassDefaultResourceProvider.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassDefaultResourceProvider where
 
@@ -36,33 +36,33 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassDefaultResourceProvider.h"
-{- function DefaultResourceProvider -}
-{#fun cegui_drpr_construct as new 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~DefaultResourceProvider -}
-{#fun cegui_drpr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setResourceGroupDirectory -}
-{#fun cegui_drpr_setResourceGroupDirectory as setResourceGroupDirectory 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function getResourceGroupDirectory -}
-{#fun cegui_drpr_getResourceGroupDirectory as getResourceGroupDirectory 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function clearResourceGroupDirectory -}
-{#fun cegui_drpr_clearResourceGroupDirectory as clearResourceGroupDirectory 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
+{- function DefaultResourceProvider -}
+{#fun cegui_drpr_construct as new 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~DefaultResourceProvider -}
+{#fun cegui_drpr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setResourceGroupDirectory -}
+{#fun cegui_drpr_setResourceGroupDirectory as setResourceGroupDirectory 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function getResourceGroupDirectory -}
+{#fun cegui_drpr_getResourceGroupDirectory as getResourceGroupDirectory 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function clearResourceGroupDirectory -}
+{#fun cegui_drpr_clearResourceGroupDirectory as clearResourceGroupDirectory 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassDragContainer.chs b/HGamer3D/Bindings/CEGUI/ClassDragContainer.chs
--- a/HGamer3D/Bindings/CEGUI/ClassDragContainer.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassDragContainer.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassDragContainer.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassDragContainer where
 
@@ -36,100 +36,100 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassDragContainer.h"
-{- function DragContainer -}
-{#fun cegui_drgcnt_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~DragContainer -}
-{#fun cegui_drgcnt_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function isDraggingEnabled -}
-{#fun cegui_drgcnt_isDraggingEnabled as isDraggingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setDraggingEnabled -}
-{#fun cegui_drgcnt_setDraggingEnabled as setDraggingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isBeingDragged -}
-{#fun cegui_drgcnt_isBeingDragged as isBeingDragged 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getPixelDragThreshold -}
-{#fun cegui_drgcnt_getPixelDragThreshold as getPixelDragThreshold 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setPixelDragThreshold -}
-{#fun cegui_drgcnt_setPixelDragThreshold as setPixelDragThreshold 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function getDragAlpha -}
-{#fun cegui_drgcnt_getDragAlpha as getDragAlpha 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setDragAlpha -}
-{#fun cegui_drgcnt_setDragAlpha as setDragAlpha 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setDragCursorImage3 -}
-{#fun cegui_drgcnt_setDragCursorImage3 as setDragCursorImage3 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function getCurrentDropTarget -}
-{#fun cegui_drgcnt_getCurrentDropTarget as getCurrentDropTarget 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function isStickyModeEnabled -}
-{#fun cegui_drgcnt_isStickyModeEnabled as isStickyModeEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setStickyModeEnabled -}
-{#fun cegui_drgcnt_setStickyModeEnabled as setStickyModeEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function pickUp -}
-{#fun cegui_drgcnt_pickUp as pickUp 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setFixedDragOffset -}
-{#fun cegui_drgcnt_setFixedDragOffset as setFixedDragOffset 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getFixedDragOffset -}
-{#fun cegui_drgcnt_getFixedDragOffset as getFixedDragOffset 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setUsingFixedDragOffset -}
-{#fun cegui_drgcnt_setUsingFixedDragOffset as setUsingFixedDragOffset 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isUsingFixedDragOffset -}
-{#fun cegui_drgcnt_isUsingFixedDragOffset as isUsingFixedDragOffset 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
+{- function DragContainer -}
+{#fun cegui_drgcnt_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~DragContainer -}
+{#fun cegui_drgcnt_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function isDraggingEnabled -}
+{#fun cegui_drgcnt_isDraggingEnabled as isDraggingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setDraggingEnabled -}
+{#fun cegui_drgcnt_setDraggingEnabled as setDraggingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isBeingDragged -}
+{#fun cegui_drgcnt_isBeingDragged as isBeingDragged 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getPixelDragThreshold -}
+{#fun cegui_drgcnt_getPixelDragThreshold as getPixelDragThreshold 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setPixelDragThreshold -}
+{#fun cegui_drgcnt_setPixelDragThreshold as setPixelDragThreshold 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function getDragAlpha -}
+{#fun cegui_drgcnt_getDragAlpha as getDragAlpha 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setDragAlpha -}
+{#fun cegui_drgcnt_setDragAlpha as setDragAlpha 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setDragCursorImage3 -}
+{#fun cegui_drgcnt_setDragCursorImage3 as setDragCursorImage3 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function getCurrentDropTarget -}
+{#fun cegui_drgcnt_getCurrentDropTarget as getCurrentDropTarget 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function isStickyModeEnabled -}
+{#fun cegui_drgcnt_isStickyModeEnabled as isStickyModeEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setStickyModeEnabled -}
+{#fun cegui_drgcnt_setStickyModeEnabled as setStickyModeEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function pickUp -}
+{#fun cegui_drgcnt_pickUp as pickUp 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setFixedDragOffset -}
+{#fun cegui_drgcnt_setFixedDragOffset as setFixedDragOffset 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getFixedDragOffset -}
+{#fun cegui_drgcnt_getFixedDragOffset as getFixedDragOffset 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setUsingFixedDragOffset -}
+{#fun cegui_drgcnt_setUsingFixedDragOffset as setUsingFixedDragOffset 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isUsingFixedDragOffset -}
+{#fun cegui_drgcnt_isUsingFixedDragOffset as isUsingFixedDragOffset 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassEditbox.chs b/HGamer3D/Bindings/CEGUI/ClassEditbox.chs
--- a/HGamer3D/Bindings/CEGUI/ClassEditbox.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassEditbox.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassEditbox.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassEditbox where
 
@@ -36,109 +36,109 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassEditbox.h"
-{- function hasInputFocus -}
-{#fun cegui_edtbx_hasInputFocus as hasInputFocus 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isReadOnly -}
-{#fun cegui_edtbx_isReadOnly as isReadOnly 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isTextMasked -}
-{#fun cegui_edtbx_isTextMasked as isTextMasked 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isTextValid -}
-{#fun cegui_edtbx_isTextValid as isTextValid 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getValidationString -}
-{#fun cegui_edtbx_getValidationString as getValidationString 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getCaratIndex -}
-{#fun cegui_edtbx_getCaratIndex as getCaratIndex 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSelectionStartIndex -}
-{#fun cegui_edtbx_getSelectionStartIndex as getSelectionStartIndex 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSelectionEndIndex -}
-{#fun cegui_edtbx_getSelectionEndIndex as getSelectionEndIndex 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSelectionLength -}
-{#fun cegui_edtbx_getSelectionLength as getSelectionLength 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getMaskCodePoint -}
-{#fun cegui_edtbx_getMaskCodePoint as getMaskCodePoint 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getMaxTextLength -}
-{#fun cegui_edtbx_getMaxTextLength as getMaxTextLength 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function setReadOnly -}
-{#fun cegui_edtbx_setReadOnly as setReadOnly 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setTextMasked -}
-{#fun cegui_edtbx_setTextMasked as setTextMasked 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setValidationString -}
-{#fun cegui_edtbx_setValidationString as setValidationString 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function setCaratIndex -}
-{#fun cegui_edtbx_setCaratIndex as setCaratIndex 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setSelection -}
-{#fun cegui_edtbx_setSelection as setSelection 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setMaskCodePoint -}
-{#fun cegui_edtbx_setMaskCodePoint as setMaskCodePoint 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setMaxTextLength -}
-{#fun cegui_edtbx_setMaxTextLength as setMaxTextLength 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function Editbox -}
-{#fun cegui_edtbx_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~Editbox -}
-{#fun cegui_edtbx_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function hasInputFocus -}
+{#fun cegui_edtbx_hasInputFocus as hasInputFocus 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isReadOnly -}
+{#fun cegui_edtbx_isReadOnly as isReadOnly 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isTextMasked -}
+{#fun cegui_edtbx_isTextMasked as isTextMasked 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isTextValid -}
+{#fun cegui_edtbx_isTextValid as isTextValid 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getValidationString -}
+{#fun cegui_edtbx_getValidationString as getValidationString 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getCaratIndex -}
+{#fun cegui_edtbx_getCaratIndex as getCaratIndex 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSelectionStartIndex -}
+{#fun cegui_edtbx_getSelectionStartIndex as getSelectionStartIndex 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSelectionEndIndex -}
+{#fun cegui_edtbx_getSelectionEndIndex as getSelectionEndIndex 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSelectionLength -}
+{#fun cegui_edtbx_getSelectionLength as getSelectionLength 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getMaskCodePoint -}
+{#fun cegui_edtbx_getMaskCodePoint as getMaskCodePoint 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getMaxTextLength -}
+{#fun cegui_edtbx_getMaxTextLength as getMaxTextLength 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function setReadOnly -}
+{#fun cegui_edtbx_setReadOnly as setReadOnly 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setTextMasked -}
+{#fun cegui_edtbx_setTextMasked as setTextMasked 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setValidationString -}
+{#fun cegui_edtbx_setValidationString as setValidationString 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setCaratIndex -}
+{#fun cegui_edtbx_setCaratIndex as setCaratIndex 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setSelection -}
+{#fun cegui_edtbx_setSelection as setSelection 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setMaskCodePoint -}
+{#fun cegui_edtbx_setMaskCodePoint as setMaskCodePoint 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setMaxTextLength -}
+{#fun cegui_edtbx_setMaxTextLength as setMaxTextLength 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function Editbox -}
+{#fun cegui_edtbx_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~Editbox -}
+{#fun cegui_edtbx_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassEventArgs.chs b/HGamer3D/Bindings/CEGUI/ClassEventArgs.chs
--- a/HGamer3D/Bindings/CEGUI/ClassEventArgs.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassEventArgs.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassEventArgs.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassEventArgs where
 
@@ -36,16 +36,16 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassEventArgs.h"
-{- function EventArgs -}
-{#fun cegui_evntargs_construct as new 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~EventArgs -}
-{#fun cegui_evntargs_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function EventArgs -}
+{#fun cegui_evntargs_construct as new 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~EventArgs -}
+{#fun cegui_evntargs_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassEventSet.chs b/HGamer3D/Bindings/CEGUI/ClassEventSet.chs
--- a/HGamer3D/Bindings/CEGUI/ClassEventSet.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassEventSet.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassEventSet.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassEventSet where
 
@@ -36,53 +36,53 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassEventSet.h"
-{- function EventSet -}
-{#fun cegui_evtst_construct as new 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~EventSet -}
-{#fun cegui_evtst_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function addEvent -}
-{#fun cegui_evtst_addEvent as addEvent 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function removeEvent -}
-{#fun cegui_evtst_removeEvent as removeEvent 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function removeAllEvents -}
-{#fun cegui_evtst_removeAllEvents as removeAllEvents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function isEventPresent -}
-{#fun cegui_evtst_isEventPresent as isEventPresent 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function fireEvent -}
-{#fun cegui_evtst_fireEvent as fireEvent 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function isMuted -}
-{#fun cegui_evtst_isMuted as isMuted 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setMutedState -}
-{#fun cegui_evtst_setMutedState as setMutedState 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
+{- function EventSet -}
+{#fun cegui_evtst_construct as new 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~EventSet -}
+{#fun cegui_evtst_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function addEvent -}
+{#fun cegui_evtst_addEvent as addEvent 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function removeEvent -}
+{#fun cegui_evtst_removeEvent as removeEvent 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function removeAllEvents -}
+{#fun cegui_evtst_removeAllEvents as removeAllEvents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function isEventPresent -}
+{#fun cegui_evtst_isEventPresent as isEventPresent 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function fireEvent -}
+{#fun cegui_evtst_fireEvent as fireEvent 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function isMuted -}
+{#fun cegui_evtst_isMuted as isMuted 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setMutedState -}
+{#fun cegui_evtst_setMutedState as setMutedState 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassFont.chs b/HGamer3D/Bindings/CEGUI/ClassFont.chs
--- a/HGamer3D/Bindings/CEGUI/ClassFont.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassFont.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassFont.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassFont where
 
@@ -36,88 +36,88 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassFont.h"
-{- function ~Font -}
-{#fun cegui_fnt_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getName -}
-{#fun cegui_fnt_getName as getName 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getTypeName -}
-{#fun cegui_fnt_getTypeName as getTypeName 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function isCodepointAvailable -}
-{#fun cegui_fnt_isCodepointAvailable as isCodepointAvailable 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setAutoScaled -}
-{#fun cegui_fnt_setAutoScaled as setAutoScaled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isAutoScaled -}
-{#fun cegui_fnt_isAutoScaled as isAutoScaled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getLineSpacing -}
-{#fun cegui_fnt_getLineSpacing as getLineSpacing 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getFontHeight -}
-{#fun cegui_fnt_getFontHeight as getFontHeight 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getBaseline -}
-{#fun cegui_fnt_getBaseline as getBaseline 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getTextExtent -}
-{#fun cegui_fnt_getTextExtent as getTextExtent 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- realToFrac `Float' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getCharAtPixel -}
-{#fun cegui_fnt_getCharAtPixel as getCharAtPixel 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- realToFrac `Float' ,
- realToFrac `Float' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getCharAtPixel2 -}
-{#fun cegui_fnt_getCharAtPixel2 as getCharAtPixel2 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- fromIntegral `Int' ,
- realToFrac `Float' ,
- realToFrac `Float' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function setDefaultResourceGroup -}
-{#fun cegui_fnt_setDefaultResourceGroup as setDefaultResourceGroup 
-{ withCString* `String' } -> `()'  #}
-
-{- function getDefaultResourceGroup -}
-{#fun cegui_fnt_getDefaultResourceGroup as getDefaultResourceGroup 
-{ alloc64k- `String' peekCString*} -> `()'  #}
-
+{- function ~Font -}
+{#fun cegui_fnt_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getName -}
+{#fun cegui_fnt_getName as getName 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getTypeName -}
+{#fun cegui_fnt_getTypeName as getTypeName 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function isCodepointAvailable -}
+{#fun cegui_fnt_isCodepointAvailable as isCodepointAvailable 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setAutoScaled -}
+{#fun cegui_fnt_setAutoScaled as setAutoScaled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isAutoScaled -}
+{#fun cegui_fnt_isAutoScaled as isAutoScaled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getLineSpacing -}
+{#fun cegui_fnt_getLineSpacing as getLineSpacing 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getFontHeight -}
+{#fun cegui_fnt_getFontHeight as getFontHeight 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getBaseline -}
+{#fun cegui_fnt_getBaseline as getBaseline 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getTextExtent -}
+{#fun cegui_fnt_getTextExtent as getTextExtent 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ realToFrac `Float' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getCharAtPixel -}
+{#fun cegui_fnt_getCharAtPixel as getCharAtPixel 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ realToFrac `Float' ,
+ realToFrac `Float' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getCharAtPixel2 -}
+{#fun cegui_fnt_getCharAtPixel2 as getCharAtPixel2 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ fromIntegral `Int' ,
+ realToFrac `Float' ,
+ realToFrac `Float' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function setDefaultResourceGroup -}
+{#fun cegui_fnt_setDefaultResourceGroup as setDefaultResourceGroup 
+{ withCString* `String' } -> `()'  #}
+
+{- function getDefaultResourceGroup -}
+{#fun cegui_fnt_getDefaultResourceGroup as getDefaultResourceGroup 
+{ alloc64k- `String' peekCString*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassFontManager.chs b/HGamer3D/Bindings/CEGUI/ClassFontManager.chs
--- a/HGamer3D/Bindings/CEGUI/ClassFontManager.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassFontManager.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassFontManager.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassFontManager where
 
@@ -36,16 +36,16 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassFontManager.h"
-{- function FontManager -}
-{#fun cegui_fntmgr_construct as new 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~FontManager -}
-{#fun cegui_fntmgr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function FontManager -}
+{#fun cegui_fntmgr_construct as new 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~FontManager -}
+{#fun cegui_fntmgr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassFrameWindow.chs b/HGamer3D/Bindings/CEGUI/ClassFrameWindow.chs
--- a/HGamer3D/Bindings/CEGUI/ClassFrameWindow.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassFrameWindow.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassFrameWindow.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassFrameWindow where
 
@@ -36,130 +36,130 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassFrameWindow.h"
-{- function initialiseComponents -}
-{#fun cegui_frmwndw_initialiseComponents as initialiseComponents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function isSizingEnabled -}
-{#fun cegui_frmwndw_isSizingEnabled as isSizingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isFrameEnabled -}
-{#fun cegui_frmwndw_isFrameEnabled as isFrameEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isTitleBarEnabled -}
-{#fun cegui_frmwndw_isTitleBarEnabled as isTitleBarEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isCloseButtonEnabled -}
-{#fun cegui_frmwndw_isCloseButtonEnabled as isCloseButtonEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isRollupEnabled -}
-{#fun cegui_frmwndw_isRollupEnabled as isRollupEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isRolledup -}
-{#fun cegui_frmwndw_isRolledup as isRolledup 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getSizingBorderThickness -}
-{#fun cegui_frmwndw_getSizingBorderThickness as getSizingBorderThickness 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setSizingEnabled -}
-{#fun cegui_frmwndw_setSizingEnabled as setSizingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setFrameEnabled -}
-{#fun cegui_frmwndw_setFrameEnabled as setFrameEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setTitleBarEnabled -}
-{#fun cegui_frmwndw_setTitleBarEnabled as setTitleBarEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setCloseButtonEnabled -}
-{#fun cegui_frmwndw_setCloseButtonEnabled as setCloseButtonEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setRollupEnabled -}
-{#fun cegui_frmwndw_setRollupEnabled as setRollupEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function toggleRollup -}
-{#fun cegui_frmwndw_toggleRollup as toggleRollup 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setSizingBorderThickness -}
-{#fun cegui_frmwndw_setSizingBorderThickness as setSizingBorderThickness 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function isDragMovingEnabled -}
-{#fun cegui_frmwndw_isDragMovingEnabled as isDragMovingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setDragMovingEnabled -}
-{#fun cegui_frmwndw_setDragMovingEnabled as setDragMovingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setNSSizingCursorImage2 -}
-{#fun cegui_frmwndw_setNSSizingCursorImage2 as setNSSizingCursorImage2 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function setEWSizingCursorImage2 -}
-{#fun cegui_frmwndw_setEWSizingCursorImage2 as setEWSizingCursorImage2 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function setNWSESizingCursorImage2 -}
-{#fun cegui_frmwndw_setNWSESizingCursorImage2 as setNWSESizingCursorImage2 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function setNESWSizingCursorImage2 -}
-{#fun cegui_frmwndw_setNESWSizingCursorImage2 as setNESWSizingCursorImage2 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function getCloseButton -}
-{#fun cegui_frmwndw_getCloseButton as getCloseButton 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function FrameWindow -}
-{#fun cegui_frmwndw_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~FrameWindow -}
-{#fun cegui_frmwndw_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function initialiseComponents -}
+{#fun cegui_frmwndw_initialiseComponents as initialiseComponents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function isSizingEnabled -}
+{#fun cegui_frmwndw_isSizingEnabled as isSizingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isFrameEnabled -}
+{#fun cegui_frmwndw_isFrameEnabled as isFrameEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isTitleBarEnabled -}
+{#fun cegui_frmwndw_isTitleBarEnabled as isTitleBarEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isCloseButtonEnabled -}
+{#fun cegui_frmwndw_isCloseButtonEnabled as isCloseButtonEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isRollupEnabled -}
+{#fun cegui_frmwndw_isRollupEnabled as isRollupEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isRolledup -}
+{#fun cegui_frmwndw_isRolledup as isRolledup 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getSizingBorderThickness -}
+{#fun cegui_frmwndw_getSizingBorderThickness as getSizingBorderThickness 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setSizingEnabled -}
+{#fun cegui_frmwndw_setSizingEnabled as setSizingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setFrameEnabled -}
+{#fun cegui_frmwndw_setFrameEnabled as setFrameEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setTitleBarEnabled -}
+{#fun cegui_frmwndw_setTitleBarEnabled as setTitleBarEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setCloseButtonEnabled -}
+{#fun cegui_frmwndw_setCloseButtonEnabled as setCloseButtonEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setRollupEnabled -}
+{#fun cegui_frmwndw_setRollupEnabled as setRollupEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function toggleRollup -}
+{#fun cegui_frmwndw_toggleRollup as toggleRollup 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setSizingBorderThickness -}
+{#fun cegui_frmwndw_setSizingBorderThickness as setSizingBorderThickness 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function isDragMovingEnabled -}
+{#fun cegui_frmwndw_isDragMovingEnabled as isDragMovingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setDragMovingEnabled -}
+{#fun cegui_frmwndw_setDragMovingEnabled as setDragMovingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setNSSizingCursorImage2 -}
+{#fun cegui_frmwndw_setNSSizingCursorImage2 as setNSSizingCursorImage2 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setEWSizingCursorImage2 -}
+{#fun cegui_frmwndw_setEWSizingCursorImage2 as setEWSizingCursorImage2 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setNWSESizingCursorImage2 -}
+{#fun cegui_frmwndw_setNWSESizingCursorImage2 as setNWSESizingCursorImage2 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setNESWSizingCursorImage2 -}
+{#fun cegui_frmwndw_setNESWSizingCursorImage2 as setNESWSizingCursorImage2 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function getCloseButton -}
+{#fun cegui_frmwndw_getCloseButton as getCloseButton 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function FrameWindow -}
+{#fun cegui_frmwndw_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~FrameWindow -}
+{#fun cegui_frmwndw_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassHG3DEventController.chs b/HGamer3D/Bindings/CEGUI/ClassHG3DEventController.chs
--- a/HGamer3D/Bindings/CEGUI/ClassHG3DEventController.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassHG3DEventController.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassHG3DEventController.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassHG3DEventController where
 
@@ -36,35 +36,35 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassHG3DEventController.h"
-{- function HG3DEventController -}
-{#fun construct as new 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~HG3DEventController -}
-{#fun destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function pushEvent -}
-{#fun pushEvent as pushEvent 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function eventsAvailable -}
-{#fun eventsAvailable as eventsAvailable 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function popEvent -}
-{#fun popEvent as popEvent 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*,
- alloc64k- `String' peekCString*,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
+{- function HG3DEventController -}
+{#fun construct as new 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~HG3DEventController -}
+{#fun destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function pushEvent -}
+{#fun pushEvent as pushEvent 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function eventsAvailable -}
+{#fun eventsAvailable as eventsAvailable 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function popEvent -}
+{#fun popEvent as popEvent 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*,
+ alloc64k- `String' peekCString*,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassHG3DEventStaticFunctions.chs b/HGamer3D/Bindings/CEGUI/ClassHG3DEventStaticFunctions.chs
--- a/HGamer3D/Bindings/CEGUI/ClassHG3DEventStaticFunctions.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassHG3DEventStaticFunctions.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassHG3DEventStaticFunctions.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassHG3DEventStaticFunctions where
 
@@ -36,14 +36,14 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassHG3DEventStaticFunctions.h"
-{- function subscribeScriptedEvent -}
-{#fun cegui_hg3devtsf_subscribeScriptedEvent as subscribeScriptedEvent 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
+{- function subscribeScriptedEvent -}
+{#fun cegui_hg3devtsf_subscribeScriptedEvent as subscribeScriptedEvent 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassHG3DListboxStaticFunctions.chs b/HGamer3D/Bindings/CEGUI/ClassHG3DListboxStaticFunctions.chs
--- a/HGamer3D/Bindings/CEGUI/ClassHG3DListboxStaticFunctions.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassHG3DListboxStaticFunctions.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassHG3DListboxStaticFunctions.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassHG3DListboxStaticFunctions where
 
@@ -36,18 +36,18 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassHG3DListboxStaticFunctions.h"
-{- function listboxAddItem -}
-{#fun cegui_hg3dlstbxsf_listboxAddItem as listboxAddItem 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function comboboxAddItem -}
-{#fun cegui_hg3dlstbxsf_comboboxAddItem as comboboxAddItem 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
+{- function listboxAddItem -}
+{#fun cegui_hg3dlstbxsf_listboxAddItem as listboxAddItem 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function comboboxAddItem -}
+{#fun cegui_hg3dlstbxsf_comboboxAddItem as comboboxAddItem 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassHG3DWindowStaticFunctions.chs b/HGamer3D/Bindings/CEGUI/ClassHG3DWindowStaticFunctions.chs
--- a/HGamer3D/Bindings/CEGUI/ClassHG3DWindowStaticFunctions.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassHG3DWindowStaticFunctions.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassHG3DWindowStaticFunctions.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassHG3DWindowStaticFunctions where
 
@@ -36,109 +36,109 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassHG3DWindowStaticFunctions.h"
-{- function castWindowToPushButton -}
-{#fun cegui_hg3dwsfs_castWindowToPushButton as castWindowToPushButton 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function castWindowToListbox -}
-{#fun cegui_hg3dwsfs_castWindowToListbox as castWindowToListbox 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function castWindowToCombobox -}
-{#fun cegui_hg3dwsfs_castWindowToCombobox as castWindowToCombobox 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function castWindowToRadioButton -}
-{#fun cegui_hg3dwsfs_castWindowToRadioButton as castWindowToRadioButton 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function castWindowToEditbox -}
-{#fun cegui_hg3dwsfs_castWindowToEditbox as castWindowToEditbox 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function castWindowToMultiLineEditbox -}
-{#fun cegui_hg3dwsfs_castWindowToMultiLineEditbox as castWindowToMultiLineEditbox 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function castWindowToFrameWindow -}
-{#fun cegui_hg3dwsfs_castWindowToFrameWindow as castWindowToFrameWindow 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function castWindowToProgressBar -}
-{#fun cegui_hg3dwsfs_castWindowToProgressBar as castWindowToProgressBar 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function castWindowToSlider -}
-{#fun cegui_hg3dwsfs_castWindowToSlider as castWindowToSlider 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function castWindowToSpinner -}
-{#fun cegui_hg3dwsfs_castWindowToSpinner as castWindowToSpinner 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function castWindowToMultiColumnList -}
-{#fun cegui_hg3dwsfs_castWindowToMultiColumnList as castWindowToMultiColumnList 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function udScale -}
-{#fun cegui_hg3dwsfs_udScale as udScale 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function udOffset -}
-{#fun cegui_hg3dwsfs_udOffset as udOffset 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function v2X -}
-{#fun cegui_hg3dwsfs_v2X as v2X 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function v2Y -}
-{#fun cegui_hg3dwsfs_v2Y as v2Y 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getWindowWidth -}
-{#fun cegui_hg3dwsfs_getWindowWidth as getWindowWidth 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getWindowHeight -}
-{#fun cegui_hg3dwsfs_getWindowHeight as getWindowHeight 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setNewWindowSize -}
-{#fun cegui_hg3dwsfs_setNewWindowSize as setNewWindowSize 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function getWindowMargin -}
-{#fun cegui_hg3dwsfs_getWindowMargin as getWindowMargin 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setWindowMargin -}
-{#fun cegui_hg3dwsfs_setWindowMargin as setWindowMargin 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function castWindowToPushButton -}
+{#fun cegui_hg3dwsfs_castWindowToPushButton as castWindowToPushButton 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function castWindowToListbox -}
+{#fun cegui_hg3dwsfs_castWindowToListbox as castWindowToListbox 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function castWindowToCombobox -}
+{#fun cegui_hg3dwsfs_castWindowToCombobox as castWindowToCombobox 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function castWindowToRadioButton -}
+{#fun cegui_hg3dwsfs_castWindowToRadioButton as castWindowToRadioButton 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function castWindowToEditbox -}
+{#fun cegui_hg3dwsfs_castWindowToEditbox as castWindowToEditbox 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function castWindowToMultiLineEditbox -}
+{#fun cegui_hg3dwsfs_castWindowToMultiLineEditbox as castWindowToMultiLineEditbox 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function castWindowToFrameWindow -}
+{#fun cegui_hg3dwsfs_castWindowToFrameWindow as castWindowToFrameWindow 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function castWindowToProgressBar -}
+{#fun cegui_hg3dwsfs_castWindowToProgressBar as castWindowToProgressBar 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function castWindowToSlider -}
+{#fun cegui_hg3dwsfs_castWindowToSlider as castWindowToSlider 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function castWindowToSpinner -}
+{#fun cegui_hg3dwsfs_castWindowToSpinner as castWindowToSpinner 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function castWindowToMultiColumnList -}
+{#fun cegui_hg3dwsfs_castWindowToMultiColumnList as castWindowToMultiColumnList 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function udScale -}
+{#fun cegui_hg3dwsfs_udScale as udScale 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function udOffset -}
+{#fun cegui_hg3dwsfs_udOffset as udOffset 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function v2X -}
+{#fun cegui_hg3dwsfs_v2X as v2X 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function v2Y -}
+{#fun cegui_hg3dwsfs_v2Y as v2Y 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getWindowWidth -}
+{#fun cegui_hg3dwsfs_getWindowWidth as getWindowWidth 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getWindowHeight -}
+{#fun cegui_hg3dwsfs_getWindowHeight as getWindowHeight 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setNewWindowSize -}
+{#fun cegui_hg3dwsfs_setNewWindowSize as setNewWindowSize 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function getWindowMargin -}
+{#fun cegui_hg3dwsfs_getWindowMargin as getWindowMargin 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setWindowMargin -}
+{#fun cegui_hg3dwsfs_setWindowMargin as setWindowMargin 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassImageCodec.chs b/HGamer3D/Bindings/CEGUI/ClassImageCodec.chs
--- a/HGamer3D/Bindings/CEGUI/ClassImageCodec.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassImageCodec.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassImageCodec.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassImageCodec where
 
@@ -36,22 +36,22 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassImageCodec.h"
-{- function ~ImageCodec -}
-{#fun cegui_imgcdc_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getIdentifierString -}
-{#fun cegui_imgcdc_getIdentifierString as getIdentifierString 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getSupportedFormat -}
-{#fun cegui_imgcdc_getSupportedFormat as getSupportedFormat 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
+{- function ~ImageCodec -}
+{#fun cegui_imgcdc_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getIdentifierString -}
+{#fun cegui_imgcdc_getIdentifierString as getIdentifierString 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getSupportedFormat -}
+{#fun cegui_imgcdc_getSupportedFormat as getSupportedFormat 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassImageset.chs b/HGamer3D/Bindings/CEGUI/ClassImageset.chs
--- a/HGamer3D/Bindings/CEGUI/ClassImageset.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassImageset.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassImageset.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassImageset where
 
@@ -36,86 +36,86 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassImageset.h"
-{- function Imageset2 -}
-{#fun cegui_imgst_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~Imageset -}
-{#fun cegui_imgst_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getName -}
-{#fun cegui_imgst_getName as getName 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getImageCount -}
-{#fun cegui_imgst_getImageCount as getImageCount 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function isImageDefined -}
-{#fun cegui_imgst_isImageDefined as isImageDefined 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function undefineImage -}
-{#fun cegui_imgst_undefineImage as undefineImage 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function undefineAllImages -}
-{#fun cegui_imgst_undefineAllImages as undefineAllImages 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getImageWidth -}
-{#fun cegui_imgst_getImageWidth as getImageWidth 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getImageHeight -}
-{#fun cegui_imgst_getImageHeight as getImageHeight 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getImageOffsetX -}
-{#fun cegui_imgst_getImageOffsetX as getImageOffsetX 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getImageOffsetY -}
-{#fun cegui_imgst_getImageOffsetY as getImageOffsetY 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function isAutoScaled -}
-{#fun cegui_imgst_isAutoScaled as isAutoScaled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setAutoScalingEnabled -}
-{#fun cegui_imgst_setAutoScalingEnabled as setAutoScalingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setDefaultResourceGroup -}
-{#fun cegui_imgst_setDefaultResourceGroup as setDefaultResourceGroup 
-{ withCString* `String' } -> `()'  #}
-
-{- function getDefaultResourceGroup -}
-{#fun cegui_imgst_getDefaultResourceGroup as getDefaultResourceGroup 
-{ alloc64k- `String' peekCString*} -> `()'  #}
-
+{- function Imageset2 -}
+{#fun cegui_imgst_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~Imageset -}
+{#fun cegui_imgst_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getName -}
+{#fun cegui_imgst_getName as getName 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getImageCount -}
+{#fun cegui_imgst_getImageCount as getImageCount 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function isImageDefined -}
+{#fun cegui_imgst_isImageDefined as isImageDefined 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function undefineImage -}
+{#fun cegui_imgst_undefineImage as undefineImage 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function undefineAllImages -}
+{#fun cegui_imgst_undefineAllImages as undefineAllImages 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getImageWidth -}
+{#fun cegui_imgst_getImageWidth as getImageWidth 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getImageHeight -}
+{#fun cegui_imgst_getImageHeight as getImageHeight 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getImageOffsetX -}
+{#fun cegui_imgst_getImageOffsetX as getImageOffsetX 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getImageOffsetY -}
+{#fun cegui_imgst_getImageOffsetY as getImageOffsetY 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function isAutoScaled -}
+{#fun cegui_imgst_isAutoScaled as isAutoScaled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setAutoScalingEnabled -}
+{#fun cegui_imgst_setAutoScalingEnabled as setAutoScalingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setDefaultResourceGroup -}
+{#fun cegui_imgst_setDefaultResourceGroup as setDefaultResourceGroup 
+{ withCString* `String' } -> `()'  #}
+
+{- function getDefaultResourceGroup -}
+{#fun cegui_imgst_getDefaultResourceGroup as getDefaultResourceGroup 
+{ alloc64k- `String' peekCString*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassItemEntry.chs b/HGamer3D/Bindings/CEGUI/ClassItemEntry.chs
--- a/HGamer3D/Bindings/CEGUI/ClassItemEntry.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassItemEntry.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassItemEntry.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassItemEntry where
 
@@ -36,52 +36,52 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassItemEntry.h"
-{- function isSelected -}
-{#fun cegui_itmentr_isSelected as isSelected 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isSelectable -}
-{#fun cegui_itmentr_isSelectable as isSelectable 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setSelected -}
-{#fun cegui_itmentr_setSelected as setSelected 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function select -}
-{#fun cegui_itmentr_select as select 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function deselect -}
-{#fun cegui_itmentr_deselect as deselect 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setSelected_impl -}
-{#fun cegui_itmentr_setSelected_impl as setSelectedImpl 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setSelectable -}
-{#fun cegui_itmentr_setSelectable as setSelectable 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function ItemEntry -}
-{#fun cegui_itmentr_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~ItemEntry -}
-{#fun cegui_itmentr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function isSelected -}
+{#fun cegui_itmentr_isSelected as isSelected 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isSelectable -}
+{#fun cegui_itmentr_isSelectable as isSelectable 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setSelected -}
+{#fun cegui_itmentr_setSelected as setSelected 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function select -}
+{#fun cegui_itmentr_select as select 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function deselect -}
+{#fun cegui_itmentr_deselect as deselect 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setSelected_impl -}
+{#fun cegui_itmentr_setSelected_impl as setSelectedImpl 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setSelectable -}
+{#fun cegui_itmentr_setSelectable as setSelectable 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function ItemEntry -}
+{#fun cegui_itmentr_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~ItemEntry -}
+{#fun cegui_itmentr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassItemListbox.chs b/HGamer3D/Bindings/CEGUI/ClassItemListbox.chs
--- a/HGamer3D/Bindings/CEGUI/ClassItemListbox.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassItemListbox.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassItemListbox.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassItemListbox where
 
@@ -36,100 +36,100 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassItemListbox.h"
-{- function getSelectedCount -}
-{#fun cegui_itmlstbx_getSelectedCount as getSelectedCount 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getLastSelectedItem -}
-{#fun cegui_itmlstbx_getLastSelectedItem as getLastSelectedItem 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getFirstSelectedItem -}
-{#fun cegui_itmlstbx_getFirstSelectedItem as getFirstSelectedItem 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getNextSelectedItem -}
-{#fun cegui_itmlstbx_getNextSelectedItem as getNextSelectedItem 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getNextSelectedItemAfter -}
-{#fun cegui_itmlstbx_getNextSelectedItemAfter as getNextSelectedItemAfter 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function isMultiSelectEnabled -}
-{#fun cegui_itmlstbx_isMultiSelectEnabled as isMultiSelectEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isItemSelected -}
-{#fun cegui_itmlstbx_isItemSelected as isItemSelected 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function initialiseComponents -}
-{#fun cegui_itmlstbx_initialiseComponents as initialiseComponents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setMultiSelectEnabled -}
-{#fun cegui_itmlstbx_setMultiSelectEnabled as setMultiSelectEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function clearAllSelections -}
-{#fun cegui_itmlstbx_clearAllSelections as clearAllSelections 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function selectRange -}
-{#fun cegui_itmlstbx_selectRange as selectRange 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function selectAllItems -}
-{#fun cegui_itmlstbx_selectAllItems as selectAllItems 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function ItemListbox -}
-{#fun cegui_itmlstbx_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~ItemListbox -}
-{#fun cegui_itmlstbx_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function layoutItemWidgets -}
-{#fun cegui_itmlstbx_layoutItemWidgets as layoutItemWidgets 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function testClassName_impl -}
-{#fun cegui_itmlstbx_testClassName_impl as testClassNameImpl 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function notifyItemClicked -}
-{#fun cegui_itmlstbx_notifyItemClicked as notifyItemClicked 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function notifyItemSelectState -}
-{#fun cegui_itmlstbx_notifyItemSelectState as notifyItemSelectState 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
+{- function getSelectedCount -}
+{#fun cegui_itmlstbx_getSelectedCount as getSelectedCount 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getLastSelectedItem -}
+{#fun cegui_itmlstbx_getLastSelectedItem as getLastSelectedItem 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getFirstSelectedItem -}
+{#fun cegui_itmlstbx_getFirstSelectedItem as getFirstSelectedItem 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getNextSelectedItem -}
+{#fun cegui_itmlstbx_getNextSelectedItem as getNextSelectedItem 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getNextSelectedItemAfter -}
+{#fun cegui_itmlstbx_getNextSelectedItemAfter as getNextSelectedItemAfter 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function isMultiSelectEnabled -}
+{#fun cegui_itmlstbx_isMultiSelectEnabled as isMultiSelectEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isItemSelected -}
+{#fun cegui_itmlstbx_isItemSelected as isItemSelected 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function initialiseComponents -}
+{#fun cegui_itmlstbx_initialiseComponents as initialiseComponents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setMultiSelectEnabled -}
+{#fun cegui_itmlstbx_setMultiSelectEnabled as setMultiSelectEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function clearAllSelections -}
+{#fun cegui_itmlstbx_clearAllSelections as clearAllSelections 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function selectRange -}
+{#fun cegui_itmlstbx_selectRange as selectRange 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function selectAllItems -}
+{#fun cegui_itmlstbx_selectAllItems as selectAllItems 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function ItemListbox -}
+{#fun cegui_itmlstbx_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~ItemListbox -}
+{#fun cegui_itmlstbx_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function layoutItemWidgets -}
+{#fun cegui_itmlstbx_layoutItemWidgets as layoutItemWidgets 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function testClassName_impl -}
+{#fun cegui_itmlstbx_testClassName_impl as testClassNameImpl 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function notifyItemClicked -}
+{#fun cegui_itmlstbx_notifyItemClicked as notifyItemClicked 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function notifyItemSelectState -}
+{#fun cegui_itmlstbx_notifyItemSelectState as notifyItemSelectState 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassListHeader.chs b/HGamer3D/Bindings/CEGUI/ClassListHeader.chs
--- a/HGamer3D/Bindings/CEGUI/ClassListHeader.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassListHeader.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassListHeader.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassListHeader where
 
@@ -36,209 +36,209 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
-{# import HGamer3D.Bindings.CEGUI.EnumSortDirection #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.EnumSortDirection #}
 
 #include "ClassListHeader.h"
-{- function getColumnCount -}
-{#fun cegui_lsthdr_getColumnCount as getColumnCount 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSegmentFromColumn -}
-{#fun cegui_lsthdr_getSegmentFromColumn as getSegmentFromColumn 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getSegmentFromID -}
-{#fun cegui_lsthdr_getSegmentFromID as getSegmentFromID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getSortSegment -}
-{#fun cegui_lsthdr_getSortSegment as getSortSegment 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getColumnFromSegment -}
-{#fun cegui_lsthdr_getColumnFromSegment as getColumnFromSegment 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getColumnFromID -}
-{#fun cegui_lsthdr_getColumnFromID as getColumnFromID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSortColumn -}
-{#fun cegui_lsthdr_getSortColumn as getSortColumn 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getColumnWithText -}
-{#fun cegui_lsthdr_getColumnWithText as getColumnWithText 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getPixelOffsetToSegment -}
-{#fun cegui_lsthdr_getPixelOffsetToSegment as getPixelOffsetToSegment 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getPixelOffsetToColumn -}
-{#fun cegui_lsthdr_getPixelOffsetToColumn as getPixelOffsetToColumn 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getTotalSegmentsPixelExtent -}
-{#fun cegui_lsthdr_getTotalSegmentsPixelExtent as getTotalSegmentsPixelExtent 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getSortDirection -}
-{#fun cegui_lsthdr_getSortDirection as getSortDirection 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `EnumSortDirection' peekEnumUtil*} -> `()'  #}
-
-{- function isSortingEnabled -}
-{#fun cegui_lsthdr_isSortingEnabled as isSortingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isColumnSizingEnabled -}
-{#fun cegui_lsthdr_isColumnSizingEnabled as isColumnSizingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isColumnDraggingEnabled -}
-{#fun cegui_lsthdr_isColumnDraggingEnabled as isColumnDraggingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getSegmentOffset -}
-{#fun cegui_lsthdr_getSegmentOffset as getSegmentOffset 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setSortingEnabled -}
-{#fun cegui_lsthdr_setSortingEnabled as setSortingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setSortDirection -}
-{#fun cegui_lsthdr_setSortDirection as setSortDirection 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumSortDirection' } -> `()'  #}
-
-{- function setSortSegment -}
-{#fun cegui_lsthdr_setSortSegment as setSortSegment 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setSortColumn -}
-{#fun cegui_lsthdr_setSortColumn as setSortColumn 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setSortColumnFromID -}
-{#fun cegui_lsthdr_setSortColumnFromID as setSortColumnFromID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setColumnSizingEnabled -}
-{#fun cegui_lsthdr_setColumnSizingEnabled as setColumnSizingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setColumnDraggingEnabled -}
-{#fun cegui_lsthdr_setColumnDraggingEnabled as setColumnDraggingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function addColumn -}
-{#fun cegui_lsthdr_addColumn as addColumn 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- fromIntegral `Int' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function insertColumn -}
-{#fun cegui_lsthdr_insertColumn as insertColumn 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- fromIntegral `Int' ,
- withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function insertColumn2 -}
-{#fun cegui_lsthdr_insertColumn2 as insertColumn2 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- fromIntegral `Int' ,
- withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function removeColumn -}
-{#fun cegui_lsthdr_removeColumn as removeColumn 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function removeSegment -}
-{#fun cegui_lsthdr_removeSegment as removeSegment 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function moveColumn -}
-{#fun cegui_lsthdr_moveColumn as moveColumn 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function moveColumn2 -}
-{#fun cegui_lsthdr_moveColumn2 as moveColumn2 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function moveSegment -}
-{#fun cegui_lsthdr_moveSegment as moveSegment 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function moveSegment2 -}
-{#fun cegui_lsthdr_moveSegment2 as moveSegment2 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setSegmentOffset -}
-{#fun cegui_lsthdr_setSegmentOffset as setSegmentOffset 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setColumnWidth -}
-{#fun cegui_lsthdr_setColumnWidth as setColumnWidth 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function ListHeader -}
-{#fun cegui_lsthdr_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~ListHeader -}
-{#fun cegui_lsthdr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function getColumnCount -}
+{#fun cegui_lsthdr_getColumnCount as getColumnCount 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSegmentFromColumn -}
+{#fun cegui_lsthdr_getSegmentFromColumn as getSegmentFromColumn 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getSegmentFromID -}
+{#fun cegui_lsthdr_getSegmentFromID as getSegmentFromID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getSortSegment -}
+{#fun cegui_lsthdr_getSortSegment as getSortSegment 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getColumnFromSegment -}
+{#fun cegui_lsthdr_getColumnFromSegment as getColumnFromSegment 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getColumnFromID -}
+{#fun cegui_lsthdr_getColumnFromID as getColumnFromID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSortColumn -}
+{#fun cegui_lsthdr_getSortColumn as getSortColumn 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getColumnWithText -}
+{#fun cegui_lsthdr_getColumnWithText as getColumnWithText 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getPixelOffsetToSegment -}
+{#fun cegui_lsthdr_getPixelOffsetToSegment as getPixelOffsetToSegment 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getPixelOffsetToColumn -}
+{#fun cegui_lsthdr_getPixelOffsetToColumn as getPixelOffsetToColumn 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getTotalSegmentsPixelExtent -}
+{#fun cegui_lsthdr_getTotalSegmentsPixelExtent as getTotalSegmentsPixelExtent 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getSortDirection -}
+{#fun cegui_lsthdr_getSortDirection as getSortDirection 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `EnumSortDirection' peekEnumUtil*} -> `()'  #}
+
+{- function isSortingEnabled -}
+{#fun cegui_lsthdr_isSortingEnabled as isSortingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isColumnSizingEnabled -}
+{#fun cegui_lsthdr_isColumnSizingEnabled as isColumnSizingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isColumnDraggingEnabled -}
+{#fun cegui_lsthdr_isColumnDraggingEnabled as isColumnDraggingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getSegmentOffset -}
+{#fun cegui_lsthdr_getSegmentOffset as getSegmentOffset 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setSortingEnabled -}
+{#fun cegui_lsthdr_setSortingEnabled as setSortingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setSortDirection -}
+{#fun cegui_lsthdr_setSortDirection as setSortDirection 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumSortDirection' } -> `()'  #}
+
+{- function setSortSegment -}
+{#fun cegui_lsthdr_setSortSegment as setSortSegment 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setSortColumn -}
+{#fun cegui_lsthdr_setSortColumn as setSortColumn 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setSortColumnFromID -}
+{#fun cegui_lsthdr_setSortColumnFromID as setSortColumnFromID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setColumnSizingEnabled -}
+{#fun cegui_lsthdr_setColumnSizingEnabled as setColumnSizingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setColumnDraggingEnabled -}
+{#fun cegui_lsthdr_setColumnDraggingEnabled as setColumnDraggingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function addColumn -}
+{#fun cegui_lsthdr_addColumn as addColumn 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ fromIntegral `Int' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function insertColumn -}
+{#fun cegui_lsthdr_insertColumn as insertColumn 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ fromIntegral `Int' ,
+ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function insertColumn2 -}
+{#fun cegui_lsthdr_insertColumn2 as insertColumn2 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ fromIntegral `Int' ,
+ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function removeColumn -}
+{#fun cegui_lsthdr_removeColumn as removeColumn 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function removeSegment -}
+{#fun cegui_lsthdr_removeSegment as removeSegment 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function moveColumn -}
+{#fun cegui_lsthdr_moveColumn as moveColumn 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function moveColumn2 -}
+{#fun cegui_lsthdr_moveColumn2 as moveColumn2 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function moveSegment -}
+{#fun cegui_lsthdr_moveSegment as moveSegment 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function moveSegment2 -}
+{#fun cegui_lsthdr_moveSegment2 as moveSegment2 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setSegmentOffset -}
+{#fun cegui_lsthdr_setSegmentOffset as setSegmentOffset 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setColumnWidth -}
+{#fun cegui_lsthdr_setColumnWidth as setColumnWidth 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function ListHeader -}
+{#fun cegui_lsthdr_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~ListHeader -}
+{#fun cegui_lsthdr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassListHeaderSegment.chs b/HGamer3D/Bindings/CEGUI/ClassListHeaderSegment.chs
--- a/HGamer3D/Bindings/CEGUI/ClassListHeaderSegment.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassListHeaderSegment.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassListHeaderSegment.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassListHeaderSegment where
 
@@ -36,96 +36,96 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
-{# import HGamer3D.Bindings.CEGUI.EnumSortDirection #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.EnumSortDirection #}
 
 #include "ClassListHeaderSegment.h"
-{- function isSizingEnabled -}
-{#fun cegui_lsthdrsgm_isSizingEnabled as isSizingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getSortDirection -}
-{#fun cegui_lsthdrsgm_getSortDirection as getSortDirection 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `EnumSortDirection' peekEnumUtil*} -> `()'  #}
-
-{- function isDragMovingEnabled -}
-{#fun cegui_lsthdrsgm_isDragMovingEnabled as isDragMovingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isClickable -}
-{#fun cegui_lsthdrsgm_isClickable as isClickable 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isSegmentHovering -}
-{#fun cegui_lsthdrsgm_isSegmentHovering as isSegmentHovering 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isSegmentPushed -}
-{#fun cegui_lsthdrsgm_isSegmentPushed as isSegmentPushed 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isSplitterHovering -}
-{#fun cegui_lsthdrsgm_isSplitterHovering as isSplitterHovering 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isBeingDragMoved -}
-{#fun cegui_lsthdrsgm_isBeingDragMoved as isBeingDragMoved 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isBeingDragSized -}
-{#fun cegui_lsthdrsgm_isBeingDragSized as isBeingDragSized 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setSizingEnabled -}
-{#fun cegui_lsthdrsgm_setSizingEnabled as setSizingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setSortDirection -}
-{#fun cegui_lsthdrsgm_setSortDirection as setSortDirection 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumSortDirection' } -> `()'  #}
-
-{- function setDragMovingEnabled -}
-{#fun cegui_lsthdrsgm_setDragMovingEnabled as setDragMovingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setClickable -}
-{#fun cegui_lsthdrsgm_setClickable as setClickable 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setSizingCursorImage2 -}
-{#fun cegui_lsthdrsgm_setSizingCursorImage2 as setSizingCursorImage2 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function setMovingCursorImage2 -}
-{#fun cegui_lsthdrsgm_setMovingCursorImage2 as setMovingCursorImage2 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function ListHeaderSegment -}
-{#fun cegui_lsthdrsgm_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~ListHeaderSegment -}
-{#fun cegui_lsthdrsgm_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function isSizingEnabled -}
+{#fun cegui_lsthdrsgm_isSizingEnabled as isSizingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getSortDirection -}
+{#fun cegui_lsthdrsgm_getSortDirection as getSortDirection 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `EnumSortDirection' peekEnumUtil*} -> `()'  #}
+
+{- function isDragMovingEnabled -}
+{#fun cegui_lsthdrsgm_isDragMovingEnabled as isDragMovingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isClickable -}
+{#fun cegui_lsthdrsgm_isClickable as isClickable 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isSegmentHovering -}
+{#fun cegui_lsthdrsgm_isSegmentHovering as isSegmentHovering 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isSegmentPushed -}
+{#fun cegui_lsthdrsgm_isSegmentPushed as isSegmentPushed 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isSplitterHovering -}
+{#fun cegui_lsthdrsgm_isSplitterHovering as isSplitterHovering 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isBeingDragMoved -}
+{#fun cegui_lsthdrsgm_isBeingDragMoved as isBeingDragMoved 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isBeingDragSized -}
+{#fun cegui_lsthdrsgm_isBeingDragSized as isBeingDragSized 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setSizingEnabled -}
+{#fun cegui_lsthdrsgm_setSizingEnabled as setSizingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setSortDirection -}
+{#fun cegui_lsthdrsgm_setSortDirection as setSortDirection 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumSortDirection' } -> `()'  #}
+
+{- function setDragMovingEnabled -}
+{#fun cegui_lsthdrsgm_setDragMovingEnabled as setDragMovingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setClickable -}
+{#fun cegui_lsthdrsgm_setClickable as setClickable 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setSizingCursorImage2 -}
+{#fun cegui_lsthdrsgm_setSizingCursorImage2 as setSizingCursorImage2 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setMovingCursorImage2 -}
+{#fun cegui_lsthdrsgm_setMovingCursorImage2 as setMovingCursorImage2 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function ListHeaderSegment -}
+{#fun cegui_lsthdrsgm_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~ListHeaderSegment -}
+{#fun cegui_lsthdrsgm_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassListbox.chs b/HGamer3D/Bindings/CEGUI/ClassListbox.chs
--- a/HGamer3D/Bindings/CEGUI/ClassListbox.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassListbox.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassListbox.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassListbox where
 
@@ -36,194 +36,194 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassListbox.h"
-{- function getItemCount -}
-{#fun cegui_lstbx_getItemCount as getItemCount 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSelectedCount -}
-{#fun cegui_lstbx_getSelectedCount as getSelectedCount 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getFirstSelectedItem -}
-{#fun cegui_lstbx_getFirstSelectedItem as getFirstSelectedItem 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getNextSelected -}
-{#fun cegui_lstbx_getNextSelected as getNextSelected 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getListboxItemFromIndex -}
-{#fun cegui_lstbx_getListboxItemFromIndex as getListboxItemFromIndex 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getItemIndex -}
-{#fun cegui_lstbx_getItemIndex as getItemIndex 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function isSortEnabled -}
-{#fun cegui_lstbx_isSortEnabled as isSortEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isMultiselectEnabled -}
-{#fun cegui_lstbx_isMultiselectEnabled as isMultiselectEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isItemTooltipsEnabled -}
-{#fun cegui_lstbx_isItemTooltipsEnabled as isItemTooltipsEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isItemSelected -}
-{#fun cegui_lstbx_isItemSelected as isItemSelected 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function findItemWithText -}
-{#fun cegui_lstbx_findItemWithText as findItemWithText 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function isListboxItemInList -}
-{#fun cegui_lstbx_isListboxItemInList as isListboxItemInList 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isVertScrollbarAlwaysShown -}
-{#fun cegui_lstbx_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isHorzScrollbarAlwaysShown -}
-{#fun cegui_lstbx_isHorzScrollbarAlwaysShown as isHorzScrollbarAlwaysShown 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function initialiseComponents -}
-{#fun cegui_lstbx_initialiseComponents as initialiseComponents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function resetList -}
-{#fun cegui_lstbx_resetList as resetList 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function addItem -}
-{#fun cegui_lstbx_addItem as addItem 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function insertItem -}
-{#fun cegui_lstbx_insertItem as insertItem 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function removeItem -}
-{#fun cegui_lstbx_removeItem as removeItem 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function clearAllSelections -}
-{#fun cegui_lstbx_clearAllSelections as clearAllSelections 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setSortingEnabled -}
-{#fun cegui_lstbx_setSortingEnabled as setSortingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setMultiselectEnabled -}
-{#fun cegui_lstbx_setMultiselectEnabled as setMultiselectEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setShowVertScrollbar -}
-{#fun cegui_lstbx_setShowVertScrollbar as setShowVertScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setShowHorzScrollbar -}
-{#fun cegui_lstbx_setShowHorzScrollbar as setShowHorzScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setItemTooltipsEnabled -}
-{#fun cegui_lstbx_setItemTooltipsEnabled as setItemTooltipsEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setItemSelectState -}
-{#fun cegui_lstbx_setItemSelectState as setItemSelectState 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setItemSelectState2 -}
-{#fun cegui_lstbx_setItemSelectState2 as setItemSelectState2 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function handleUpdatedItemData -}
-{#fun cegui_lstbx_handleUpdatedItemData as handleUpdatedItemData 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function ensureItemIsVisible -}
-{#fun cegui_lstbx_ensureItemIsVisible as ensureItemIsVisible 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function ensureItemIsVisible2 -}
-{#fun cegui_lstbx_ensureItemIsVisible2 as ensureItemIsVisible2 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getVertScrollbar -}
-{#fun cegui_lstbx_getVertScrollbar as getVertScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getHorzScrollbar -}
-{#fun cegui_lstbx_getHorzScrollbar as getHorzScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getTotalItemsHeight -}
-{#fun cegui_lstbx_getTotalItemsHeight as getTotalItemsHeight 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getWidestItemWidth -}
-{#fun cegui_lstbx_getWidestItemWidth as getWidestItemWidth 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function Listbox -}
-{#fun cegui_lstbx_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~Listbox -}
-{#fun cegui_lstbx_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function getItemCount -}
+{#fun cegui_lstbx_getItemCount as getItemCount 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSelectedCount -}
+{#fun cegui_lstbx_getSelectedCount as getSelectedCount 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getFirstSelectedItem -}
+{#fun cegui_lstbx_getFirstSelectedItem as getFirstSelectedItem 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getNextSelected -}
+{#fun cegui_lstbx_getNextSelected as getNextSelected 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getListboxItemFromIndex -}
+{#fun cegui_lstbx_getListboxItemFromIndex as getListboxItemFromIndex 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getItemIndex -}
+{#fun cegui_lstbx_getItemIndex as getItemIndex 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function isSortEnabled -}
+{#fun cegui_lstbx_isSortEnabled as isSortEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isMultiselectEnabled -}
+{#fun cegui_lstbx_isMultiselectEnabled as isMultiselectEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isItemTooltipsEnabled -}
+{#fun cegui_lstbx_isItemTooltipsEnabled as isItemTooltipsEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isItemSelected -}
+{#fun cegui_lstbx_isItemSelected as isItemSelected 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function findItemWithText -}
+{#fun cegui_lstbx_findItemWithText as findItemWithText 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function isListboxItemInList -}
+{#fun cegui_lstbx_isListboxItemInList as isListboxItemInList 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isVertScrollbarAlwaysShown -}
+{#fun cegui_lstbx_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isHorzScrollbarAlwaysShown -}
+{#fun cegui_lstbx_isHorzScrollbarAlwaysShown as isHorzScrollbarAlwaysShown 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function initialiseComponents -}
+{#fun cegui_lstbx_initialiseComponents as initialiseComponents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function resetList -}
+{#fun cegui_lstbx_resetList as resetList 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function addItem -}
+{#fun cegui_lstbx_addItem as addItem 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function insertItem -}
+{#fun cegui_lstbx_insertItem as insertItem 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function removeItem -}
+{#fun cegui_lstbx_removeItem as removeItem 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function clearAllSelections -}
+{#fun cegui_lstbx_clearAllSelections as clearAllSelections 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setSortingEnabled -}
+{#fun cegui_lstbx_setSortingEnabled as setSortingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setMultiselectEnabled -}
+{#fun cegui_lstbx_setMultiselectEnabled as setMultiselectEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setShowVertScrollbar -}
+{#fun cegui_lstbx_setShowVertScrollbar as setShowVertScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setShowHorzScrollbar -}
+{#fun cegui_lstbx_setShowHorzScrollbar as setShowHorzScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setItemTooltipsEnabled -}
+{#fun cegui_lstbx_setItemTooltipsEnabled as setItemTooltipsEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setItemSelectState -}
+{#fun cegui_lstbx_setItemSelectState as setItemSelectState 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setItemSelectState2 -}
+{#fun cegui_lstbx_setItemSelectState2 as setItemSelectState2 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function handleUpdatedItemData -}
+{#fun cegui_lstbx_handleUpdatedItemData as handleUpdatedItemData 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function ensureItemIsVisible -}
+{#fun cegui_lstbx_ensureItemIsVisible as ensureItemIsVisible 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function ensureItemIsVisible2 -}
+{#fun cegui_lstbx_ensureItemIsVisible2 as ensureItemIsVisible2 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getVertScrollbar -}
+{#fun cegui_lstbx_getVertScrollbar as getVertScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getHorzScrollbar -}
+{#fun cegui_lstbx_getHorzScrollbar as getHorzScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getTotalItemsHeight -}
+{#fun cegui_lstbx_getTotalItemsHeight as getTotalItemsHeight 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getWidestItemWidth -}
+{#fun cegui_lstbx_getWidestItemWidth as getWidestItemWidth 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function Listbox -}
+{#fun cegui_lstbx_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~Listbox -}
+{#fun cegui_lstbx_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassListboxItem.chs b/HGamer3D/Bindings/CEGUI/ClassListboxItem.chs
--- a/HGamer3D/Bindings/CEGUI/ClassListboxItem.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassListboxItem.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassListboxItem.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassListboxItem where
 
@@ -36,93 +36,93 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassListboxItem.h"
-{- function ~ListboxItem -}
-{#fun cegui_lstbxitm_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getTooltipText -}
-{#fun cegui_lstbxitm_getTooltipText as getTooltipText 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getText -}
-{#fun cegui_lstbxitm_getText as getText 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getTextVisual -}
-{#fun cegui_lstbxitm_getTextVisual as getTextVisual 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getID -}
-{#fun cegui_lstbxitm_getID as getID 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function isSelected -}
-{#fun cegui_lstbxitm_isSelected as isSelected 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isDisabled -}
-{#fun cegui_lstbxitm_isDisabled as isDisabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isAutoDeleted -}
-{#fun cegui_lstbxitm_isAutoDeleted as isAutoDeleted 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getOwnerWindow -}
-{#fun cegui_lstbxitm_getOwnerWindow as getOwnerWindow 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setText -}
-{#fun cegui_lstbxitm_setText as setText 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function setTooltipText -}
-{#fun cegui_lstbxitm_setTooltipText as setTooltipText 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function setID -}
-{#fun cegui_lstbxitm_setID as setID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setSelected -}
-{#fun cegui_lstbxitm_setSelected as setSelected 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setDisabled -}
-{#fun cegui_lstbxitm_setDisabled as setDisabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setAutoDeleted -}
-{#fun cegui_lstbxitm_setAutoDeleted as setAutoDeleted 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setOwnerWindow -}
-{#fun cegui_lstbxitm_setOwnerWindow as setOwnerWindow 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setSelectionBrushImage2 -}
-{#fun cegui_lstbxitm_setSelectionBrushImage2 as setSelectionBrushImage2 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
+{- function ~ListboxItem -}
+{#fun cegui_lstbxitm_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getTooltipText -}
+{#fun cegui_lstbxitm_getTooltipText as getTooltipText 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getText -}
+{#fun cegui_lstbxitm_getText as getText 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getTextVisual -}
+{#fun cegui_lstbxitm_getTextVisual as getTextVisual 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getID -}
+{#fun cegui_lstbxitm_getID as getID 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function isSelected -}
+{#fun cegui_lstbxitm_isSelected as isSelected 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isDisabled -}
+{#fun cegui_lstbxitm_isDisabled as isDisabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isAutoDeleted -}
+{#fun cegui_lstbxitm_isAutoDeleted as isAutoDeleted 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getOwnerWindow -}
+{#fun cegui_lstbxitm_getOwnerWindow as getOwnerWindow 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setText -}
+{#fun cegui_lstbxitm_setText as setText 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setTooltipText -}
+{#fun cegui_lstbxitm_setTooltipText as setTooltipText 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setID -}
+{#fun cegui_lstbxitm_setID as setID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setSelected -}
+{#fun cegui_lstbxitm_setSelected as setSelected 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setDisabled -}
+{#fun cegui_lstbxitm_setDisabled as setDisabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setAutoDeleted -}
+{#fun cegui_lstbxitm_setAutoDeleted as setAutoDeleted 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setOwnerWindow -}
+{#fun cegui_lstbxitm_setOwnerWindow as setOwnerWindow 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setSelectionBrushImage2 -}
+{#fun cegui_lstbxitm_setSelectionBrushImage2 as setSelectionBrushImage2 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassListboxTextItem.chs b/HGamer3D/Bindings/CEGUI/ClassListboxTextItem.chs
--- a/HGamer3D/Bindings/CEGUI/ClassListboxTextItem.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassListboxTextItem.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassListboxTextItem.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassListboxTextItem where
 
@@ -36,42 +36,42 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassListboxTextItem.h"
-{- function ~ListboxTextItem -}
-{#fun cegui_lstbxti_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getFont -}
-{#fun cegui_lstbxti_getFont as getFont 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setFont -}
-{#fun cegui_lstbxti_setFont as setFont 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setFont2 -}
-{#fun cegui_lstbxti_setFont2 as setFont2 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function setTextParsingEnabled -}
-{#fun cegui_lstbxti_setTextParsingEnabled as setTextParsingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isTextParsingEnabled -}
-{#fun cegui_lstbxti_isTextParsingEnabled as isTextParsingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setText -}
-{#fun cegui_lstbxti_setText as setText 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
+{- function ~ListboxTextItem -}
+{#fun cegui_lstbxti_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getFont -}
+{#fun cegui_lstbxti_getFont as getFont 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setFont -}
+{#fun cegui_lstbxti_setFont as setFont 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setFont2 -}
+{#fun cegui_lstbxti_setFont2 as setFont2 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setTextParsingEnabled -}
+{#fun cegui_lstbxti_setTextParsingEnabled as setTextParsingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isTextParsingEnabled -}
+{#fun cegui_lstbxti_isTextParsingEnabled as isTextParsingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setText -}
+{#fun cegui_lstbxti_setText as setText 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassLogger.chs b/HGamer3D/Bindings/CEGUI/ClassLogger.chs
--- a/HGamer3D/Bindings/CEGUI/ClassLogger.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassLogger.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassLogger.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassLogger where
 
@@ -36,35 +36,35 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
-{# import HGamer3D.Bindings.CEGUI.EnumLoggingLevel #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.EnumLoggingLevel #}
 
 #include "ClassLogger.h"
-{- function ~Logger -}
-{#fun cegui_lggr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setLoggingLevel -}
-{#fun cegui_lggr_setLoggingLevel as setLoggingLevel 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumLoggingLevel' } -> `()'  #}
-
-{- function getLoggingLevel -}
-{#fun cegui_lggr_getLoggingLevel as getLoggingLevel 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `EnumLoggingLevel' peekEnumUtil*} -> `()'  #}
-
-{- function logEvent -}
-{#fun cegui_lggr_logEvent as logEvent 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- cIntFromEnum `EnumLoggingLevel' } -> `()'  #}
-
-{- function setLogFilename -}
-{#fun cegui_lggr_setLogFilename as setLogFilename 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- fromBool `Bool' } -> `()'  #}
-
+{- function ~Logger -}
+{#fun cegui_lggr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setLoggingLevel -}
+{#fun cegui_lggr_setLoggingLevel as setLoggingLevel 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumLoggingLevel' } -> `()'  #}
+
+{- function getLoggingLevel -}
+{#fun cegui_lggr_getLoggingLevel as getLoggingLevel 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `EnumLoggingLevel' peekEnumUtil*} -> `()'  #}
+
+{- function logEvent -}
+{#fun cegui_lggr_logEvent as logEvent 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ cIntFromEnum `EnumLoggingLevel' } -> `()'  #}
+
+{- function setLogFilename -}
+{#fun cegui_lggr_setLogFilename as setLogFilename 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ fromBool `Bool' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassMenuBase.chs b/HGamer3D/Bindings/CEGUI/ClassMenuBase.chs
--- a/HGamer3D/Bindings/CEGUI/ClassMenuBase.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassMenuBase.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassMenuBase.chs
 
--- abstrakte Klasse!
+-- abstrakte Klasse!
 
 module HGamer3D.Bindings.CEGUI.ClassMenuBase where
 
@@ -36,52 +36,52 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassMenuBase.h"
-{- function getItemSpacing -}
-{#fun cegui_mnbs_getItemSpacing as getItemSpacing 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function isMultiplePopupsAllowed -}
-{#fun cegui_mnbs_isMultiplePopupsAllowed as isMultiplePopupsAllowed 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getAutoCloseNestedPopups -}
-{#fun cegui_mnbs_getAutoCloseNestedPopups as getAutoCloseNestedPopups 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getPopupMenuItem -}
-{#fun cegui_mnbs_getPopupMenuItem as getPopupMenuItem 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setItemSpacing -}
-{#fun cegui_mnbs_setItemSpacing as setItemSpacing 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function changePopupMenuItem -}
-{#fun cegui_mnbs_changePopupMenuItem as changePopupMenuItem 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setAllowMultiplePopups -}
-{#fun cegui_mnbs_setAllowMultiplePopups as setAllowMultiplePopups 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setAutoCloseNestedPopups -}
-{#fun cegui_mnbs_setAutoCloseNestedPopups as setAutoCloseNestedPopups 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setPopupMenuItemClosing -}
-{#fun cegui_mnbs_setPopupMenuItemClosing as setPopupMenuItemClosing 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function getItemSpacing -}
+{#fun cegui_mnbs_getItemSpacing as getItemSpacing 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function isMultiplePopupsAllowed -}
+{#fun cegui_mnbs_isMultiplePopupsAllowed as isMultiplePopupsAllowed 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getAutoCloseNestedPopups -}
+{#fun cegui_mnbs_getAutoCloseNestedPopups as getAutoCloseNestedPopups 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getPopupMenuItem -}
+{#fun cegui_mnbs_getPopupMenuItem as getPopupMenuItem 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setItemSpacing -}
+{#fun cegui_mnbs_setItemSpacing as setItemSpacing 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function changePopupMenuItem -}
+{#fun cegui_mnbs_changePopupMenuItem as changePopupMenuItem 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setAllowMultiplePopups -}
+{#fun cegui_mnbs_setAllowMultiplePopups as setAllowMultiplePopups 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setAutoCloseNestedPopups -}
+{#fun cegui_mnbs_setAutoCloseNestedPopups as setAutoCloseNestedPopups 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setPopupMenuItemClosing -}
+{#fun cegui_mnbs_setPopupMenuItemClosing as setPopupMenuItemClosing 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassMenuItem.chs b/HGamer3D/Bindings/CEGUI/ClassMenuItem.chs
--- a/HGamer3D/Bindings/CEGUI/ClassMenuItem.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassMenuItem.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassMenuItem.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassMenuItem where
 
@@ -36,86 +36,86 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassMenuItem.h"
-{- function isHovering -}
-{#fun cegui_mnitm_isHovering as isHovering 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isPushed -}
-{#fun cegui_mnitm_isPushed as isPushed 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isOpened -}
-{#fun cegui_mnitm_isOpened as isOpened 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isPopupClosing -}
-{#fun cegui_mnitm_isPopupClosing as isPopupClosing 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function hasAutoPopup -}
-{#fun cegui_mnitm_hasAutoPopup as hasAutoPopup 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getAutoPopupTimeout -}
-{#fun cegui_mnitm_getAutoPopupTimeout as getAutoPopupTimeout 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setAutoPopupTimeout -}
-{#fun cegui_mnitm_setAutoPopupTimeout as setAutoPopupTimeout 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function getPopupOffset -}
-{#fun cegui_mnitm_getPopupOffset as getPopupOffset 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setPopupOffset -}
-{#fun cegui_mnitm_setPopupOffset as setPopupOffset 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function openPopupMenu -}
-{#fun cegui_mnitm_openPopupMenu as openPopupMenu 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function closePopupMenu -}
-{#fun cegui_mnitm_closePopupMenu as closePopupMenu 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function togglePopupMenu -}
-{#fun cegui_mnitm_togglePopupMenu as togglePopupMenu 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function startPopupClosing -}
-{#fun cegui_mnitm_startPopupClosing as startPopupClosing 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function startPopupOpening -}
-{#fun cegui_mnitm_startPopupOpening as startPopupOpening 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function MenuItem -}
-{#fun cegui_mnitm_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~MenuItem -}
-{#fun cegui_mnitm_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function isHovering -}
+{#fun cegui_mnitm_isHovering as isHovering 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isPushed -}
+{#fun cegui_mnitm_isPushed as isPushed 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isOpened -}
+{#fun cegui_mnitm_isOpened as isOpened 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isPopupClosing -}
+{#fun cegui_mnitm_isPopupClosing as isPopupClosing 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function hasAutoPopup -}
+{#fun cegui_mnitm_hasAutoPopup as hasAutoPopup 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getAutoPopupTimeout -}
+{#fun cegui_mnitm_getAutoPopupTimeout as getAutoPopupTimeout 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setAutoPopupTimeout -}
+{#fun cegui_mnitm_setAutoPopupTimeout as setAutoPopupTimeout 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function getPopupOffset -}
+{#fun cegui_mnitm_getPopupOffset as getPopupOffset 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setPopupOffset -}
+{#fun cegui_mnitm_setPopupOffset as setPopupOffset 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function openPopupMenu -}
+{#fun cegui_mnitm_openPopupMenu as openPopupMenu 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function closePopupMenu -}
+{#fun cegui_mnitm_closePopupMenu as closePopupMenu 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function togglePopupMenu -}
+{#fun cegui_mnitm_togglePopupMenu as togglePopupMenu 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function startPopupClosing -}
+{#fun cegui_mnitm_startPopupClosing as startPopupClosing 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function startPopupOpening -}
+{#fun cegui_mnitm_startPopupOpening as startPopupOpening 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function MenuItem -}
+{#fun cegui_mnitm_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~MenuItem -}
+{#fun cegui_mnitm_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassMultiColumnList.chs b/HGamer3D/Bindings/CEGUI/ClassMultiColumnList.chs
--- a/HGamer3D/Bindings/CEGUI/ClassMultiColumnList.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassMultiColumnList.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassMultiColumnList.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassMultiColumnList where
 
@@ -36,402 +36,402 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
-{# import HGamer3D.Bindings.CEGUI.EnumSortDirection #}
-{# import HGamer3D.Bindings.CEGUI.EnumSelectionMode #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.EnumSortDirection #}
+{# import HGamer3D.Bindings.CEGUI.EnumSelectionMode #}
 
 #include "ClassMultiColumnList.h"
-{- function isUserSortControlEnabled -}
-{#fun cegui_mltclmlst_isUserSortControlEnabled as isUserSortControlEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isUserColumnSizingEnabled -}
-{#fun cegui_mltclmlst_isUserColumnSizingEnabled as isUserColumnSizingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isUserColumnDraggingEnabled -}
-{#fun cegui_mltclmlst_isUserColumnDraggingEnabled as isUserColumnDraggingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getColumnCount -}
-{#fun cegui_mltclmlst_getColumnCount as getColumnCount 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getRowCount -}
-{#fun cegui_mltclmlst_getRowCount as getRowCount 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSortColumn -}
-{#fun cegui_mltclmlst_getSortColumn as getSortColumn 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getColumnWithID -}
-{#fun cegui_mltclmlst_getColumnWithID as getColumnWithID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getColumnWithHeaderText -}
-{#fun cegui_mltclmlst_getColumnWithHeaderText as getColumnWithHeaderText 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSortDirection -}
-{#fun cegui_mltclmlst_getSortDirection as getSortDirection 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `EnumSortDirection' peekEnumUtil*} -> `()'  #}
-
-{- function getHeaderSegmentForColumn -}
-{#fun cegui_mltclmlst_getHeaderSegmentForColumn as getHeaderSegmentForColumn 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getItemRowIndex -}
-{#fun cegui_mltclmlst_getItemRowIndex as getItemRowIndex 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getItemColumnIndex -}
-{#fun cegui_mltclmlst_getItemColumnIndex as getItemColumnIndex 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function isListboxItemInColumn -}
-{#fun cegui_mltclmlst_isListboxItemInColumn as isListboxItemInColumn 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isListboxItemInRow -}
-{#fun cegui_mltclmlst_isListboxItemInRow as isListboxItemInRow 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isListboxItemInList -}
-{#fun cegui_mltclmlst_isListboxItemInList as isListboxItemInList 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function findColumnItemWithText -}
-{#fun cegui_mltclmlst_findColumnItemWithText as findColumnItemWithText 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- fromIntegral `Int' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function findRowItemWithText -}
-{#fun cegui_mltclmlst_findRowItemWithText as findRowItemWithText 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- fromIntegral `Int' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function findListItemWithText -}
-{#fun cegui_mltclmlst_findListItemWithText as findListItemWithText 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getFirstSelectedItem -}
-{#fun cegui_mltclmlst_getFirstSelectedItem as getFirstSelectedItem 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getNextSelected -}
-{#fun cegui_mltclmlst_getNextSelected as getNextSelected 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getSelectedCount -}
-{#fun cegui_mltclmlst_getSelectedCount as getSelectedCount 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getNominatedSelectionColumnID -}
-{#fun cegui_mltclmlst_getNominatedSelectionColumnID as getNominatedSelectionColumnID 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getNominatedSelectionColumn -}
-{#fun cegui_mltclmlst_getNominatedSelectionColumn as getNominatedSelectionColumn 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getNominatedSelectionRow -}
-{#fun cegui_mltclmlst_getNominatedSelectionRow as getNominatedSelectionRow 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSelectionMode -}
-{#fun cegui_mltclmlst_getSelectionMode as getSelectionMode 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `EnumSelectionMode' peekEnumUtil*} -> `()'  #}
-
-{- function isVertScrollbarAlwaysShown -}
-{#fun cegui_mltclmlst_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isHorzScrollbarAlwaysShown -}
-{#fun cegui_mltclmlst_isHorzScrollbarAlwaysShown as isHorzScrollbarAlwaysShown 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getColumnID -}
-{#fun cegui_mltclmlst_getColumnID as getColumnID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getRowID -}
-{#fun cegui_mltclmlst_getRowID as getRowID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getRowWithID -}
-{#fun cegui_mltclmlst_getRowWithID as getRowWithID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getVertScrollbar -}
-{#fun cegui_mltclmlst_getVertScrollbar as getVertScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getHorzScrollbar -}
-{#fun cegui_mltclmlst_getHorzScrollbar as getHorzScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getListHeader -}
-{#fun cegui_mltclmlst_getListHeader as getListHeader 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getTotalRowsHeight -}
-{#fun cegui_mltclmlst_getTotalRowsHeight as getTotalRowsHeight 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getWidestColumnItemWidth -}
-{#fun cegui_mltclmlst_getWidestColumnItemWidth as getWidestColumnItemWidth 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getHighestRowItemHeight -}
-{#fun cegui_mltclmlst_getHighestRowItemHeight as getHighestRowItemHeight 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function initialiseComponents -}
-{#fun cegui_mltclmlst_initialiseComponents as initialiseComponents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function resetList -}
-{#fun cegui_mltclmlst_resetList as resetList 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function addColumn -}
-{#fun cegui_mltclmlst_addColumn as addColumn 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- fromIntegral `Int' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function insertColumn -}
-{#fun cegui_mltclmlst_insertColumn as insertColumn 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- fromIntegral `Int' ,
- withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function removeColumn -}
-{#fun cegui_mltclmlst_removeColumn as removeColumn 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function removeColumnWithID -}
-{#fun cegui_mltclmlst_removeColumnWithID as removeColumnWithID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function moveColumn -}
-{#fun cegui_mltclmlst_moveColumn as moveColumn 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function moveColumnWithID -}
-{#fun cegui_mltclmlst_moveColumnWithID as moveColumnWithID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function addRow -}
-{#fun cegui_mltclmlst_addRow as addRow 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function addRow2 -}
-{#fun cegui_mltclmlst_addRow2 as addRow2 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromIntegral `Int' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function insertRow -}
-{#fun cegui_mltclmlst_insertRow as insertRow 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromIntegral `Int' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function insertRow2 -}
-{#fun cegui_mltclmlst_insertRow2 as insertRow2 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromIntegral `Int' ,
- fromIntegral `Int' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function removeRow -}
-{#fun cegui_mltclmlst_removeRow as removeRow 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setItem2 -}
-{#fun cegui_mltclmlst_setItem2 as setItem2 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setSelectionMode -}
-{#fun cegui_mltclmlst_setSelectionMode as setSelectionMode 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumSelectionMode' } -> `()'  #}
-
-{- function setNominatedSelectionColumnID -}
-{#fun cegui_mltclmlst_setNominatedSelectionColumnID as setNominatedSelectionColumnID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setNominatedSelectionColumn -}
-{#fun cegui_mltclmlst_setNominatedSelectionColumn as setNominatedSelectionColumn 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setNominatedSelectionRow -}
-{#fun cegui_mltclmlst_setNominatedSelectionRow as setNominatedSelectionRow 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setSortDirection -}
-{#fun cegui_mltclmlst_setSortDirection as setSortDirection 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumSortDirection' } -> `()'  #}
-
-{- function setSortColumn -}
-{#fun cegui_mltclmlst_setSortColumn as setSortColumn 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setSortColumnByID -}
-{#fun cegui_mltclmlst_setSortColumnByID as setSortColumnByID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setShowVertScrollbar -}
-{#fun cegui_mltclmlst_setShowVertScrollbar as setShowVertScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setShowHorzScrollbar -}
-{#fun cegui_mltclmlst_setShowHorzScrollbar as setShowHorzScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function clearAllSelections -}
-{#fun cegui_mltclmlst_clearAllSelections as clearAllSelections 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setItemSelectState -}
-{#fun cegui_mltclmlst_setItemSelectState as setItemSelectState 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function handleUpdatedItemData -}
-{#fun cegui_mltclmlst_handleUpdatedItemData as handleUpdatedItemData 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setColumnHeaderWidth -}
-{#fun cegui_mltclmlst_setColumnHeaderWidth as setColumnHeaderWidth 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setUserSortControlEnabled -}
-{#fun cegui_mltclmlst_setUserSortControlEnabled as setUserSortControlEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setUserColumnSizingEnabled -}
-{#fun cegui_mltclmlst_setUserColumnSizingEnabled as setUserColumnSizingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setUserColumnDraggingEnabled -}
-{#fun cegui_mltclmlst_setUserColumnDraggingEnabled as setUserColumnDraggingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function autoSizeColumnHeader -}
-{#fun cegui_mltclmlst_autoSizeColumnHeader as autoSizeColumnHeader 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setRowID -}
-{#fun cegui_mltclmlst_setRowID as setRowID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function MultiColumnList -}
-{#fun cegui_mltclmlst_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~MultiColumnList -}
-{#fun cegui_mltclmlst_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function isUserSortControlEnabled -}
+{#fun cegui_mltclmlst_isUserSortControlEnabled as isUserSortControlEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isUserColumnSizingEnabled -}
+{#fun cegui_mltclmlst_isUserColumnSizingEnabled as isUserColumnSizingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isUserColumnDraggingEnabled -}
+{#fun cegui_mltclmlst_isUserColumnDraggingEnabled as isUserColumnDraggingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getColumnCount -}
+{#fun cegui_mltclmlst_getColumnCount as getColumnCount 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getRowCount -}
+{#fun cegui_mltclmlst_getRowCount as getRowCount 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSortColumn -}
+{#fun cegui_mltclmlst_getSortColumn as getSortColumn 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getColumnWithID -}
+{#fun cegui_mltclmlst_getColumnWithID as getColumnWithID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getColumnWithHeaderText -}
+{#fun cegui_mltclmlst_getColumnWithHeaderText as getColumnWithHeaderText 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSortDirection -}
+{#fun cegui_mltclmlst_getSortDirection as getSortDirection 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `EnumSortDirection' peekEnumUtil*} -> `()'  #}
+
+{- function getHeaderSegmentForColumn -}
+{#fun cegui_mltclmlst_getHeaderSegmentForColumn as getHeaderSegmentForColumn 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getItemRowIndex -}
+{#fun cegui_mltclmlst_getItemRowIndex as getItemRowIndex 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getItemColumnIndex -}
+{#fun cegui_mltclmlst_getItemColumnIndex as getItemColumnIndex 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function isListboxItemInColumn -}
+{#fun cegui_mltclmlst_isListboxItemInColumn as isListboxItemInColumn 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isListboxItemInRow -}
+{#fun cegui_mltclmlst_isListboxItemInRow as isListboxItemInRow 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isListboxItemInList -}
+{#fun cegui_mltclmlst_isListboxItemInList as isListboxItemInList 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function findColumnItemWithText -}
+{#fun cegui_mltclmlst_findColumnItemWithText as findColumnItemWithText 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ fromIntegral `Int' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function findRowItemWithText -}
+{#fun cegui_mltclmlst_findRowItemWithText as findRowItemWithText 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ fromIntegral `Int' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function findListItemWithText -}
+{#fun cegui_mltclmlst_findListItemWithText as findListItemWithText 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getFirstSelectedItem -}
+{#fun cegui_mltclmlst_getFirstSelectedItem as getFirstSelectedItem 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getNextSelected -}
+{#fun cegui_mltclmlst_getNextSelected as getNextSelected 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getSelectedCount -}
+{#fun cegui_mltclmlst_getSelectedCount as getSelectedCount 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getNominatedSelectionColumnID -}
+{#fun cegui_mltclmlst_getNominatedSelectionColumnID as getNominatedSelectionColumnID 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getNominatedSelectionColumn -}
+{#fun cegui_mltclmlst_getNominatedSelectionColumn as getNominatedSelectionColumn 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getNominatedSelectionRow -}
+{#fun cegui_mltclmlst_getNominatedSelectionRow as getNominatedSelectionRow 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSelectionMode -}
+{#fun cegui_mltclmlst_getSelectionMode as getSelectionMode 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `EnumSelectionMode' peekEnumUtil*} -> `()'  #}
+
+{- function isVertScrollbarAlwaysShown -}
+{#fun cegui_mltclmlst_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isHorzScrollbarAlwaysShown -}
+{#fun cegui_mltclmlst_isHorzScrollbarAlwaysShown as isHorzScrollbarAlwaysShown 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getColumnID -}
+{#fun cegui_mltclmlst_getColumnID as getColumnID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getRowID -}
+{#fun cegui_mltclmlst_getRowID as getRowID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getRowWithID -}
+{#fun cegui_mltclmlst_getRowWithID as getRowWithID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getVertScrollbar -}
+{#fun cegui_mltclmlst_getVertScrollbar as getVertScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getHorzScrollbar -}
+{#fun cegui_mltclmlst_getHorzScrollbar as getHorzScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getListHeader -}
+{#fun cegui_mltclmlst_getListHeader as getListHeader 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getTotalRowsHeight -}
+{#fun cegui_mltclmlst_getTotalRowsHeight as getTotalRowsHeight 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getWidestColumnItemWidth -}
+{#fun cegui_mltclmlst_getWidestColumnItemWidth as getWidestColumnItemWidth 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getHighestRowItemHeight -}
+{#fun cegui_mltclmlst_getHighestRowItemHeight as getHighestRowItemHeight 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function initialiseComponents -}
+{#fun cegui_mltclmlst_initialiseComponents as initialiseComponents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function resetList -}
+{#fun cegui_mltclmlst_resetList as resetList 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function addColumn -}
+{#fun cegui_mltclmlst_addColumn as addColumn 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ fromIntegral `Int' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function insertColumn -}
+{#fun cegui_mltclmlst_insertColumn as insertColumn 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ fromIntegral `Int' ,
+ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function removeColumn -}
+{#fun cegui_mltclmlst_removeColumn as removeColumn 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function removeColumnWithID -}
+{#fun cegui_mltclmlst_removeColumnWithID as removeColumnWithID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function moveColumn -}
+{#fun cegui_mltclmlst_moveColumn as moveColumn 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function moveColumnWithID -}
+{#fun cegui_mltclmlst_moveColumnWithID as moveColumnWithID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function addRow -}
+{#fun cegui_mltclmlst_addRow as addRow 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function addRow2 -}
+{#fun cegui_mltclmlst_addRow2 as addRow2 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromIntegral `Int' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function insertRow -}
+{#fun cegui_mltclmlst_insertRow as insertRow 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromIntegral `Int' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function insertRow2 -}
+{#fun cegui_mltclmlst_insertRow2 as insertRow2 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromIntegral `Int' ,
+ fromIntegral `Int' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function removeRow -}
+{#fun cegui_mltclmlst_removeRow as removeRow 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setItem2 -}
+{#fun cegui_mltclmlst_setItem2 as setItem2 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setSelectionMode -}
+{#fun cegui_mltclmlst_setSelectionMode as setSelectionMode 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumSelectionMode' } -> `()'  #}
+
+{- function setNominatedSelectionColumnID -}
+{#fun cegui_mltclmlst_setNominatedSelectionColumnID as setNominatedSelectionColumnID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setNominatedSelectionColumn -}
+{#fun cegui_mltclmlst_setNominatedSelectionColumn as setNominatedSelectionColumn 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setNominatedSelectionRow -}
+{#fun cegui_mltclmlst_setNominatedSelectionRow as setNominatedSelectionRow 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setSortDirection -}
+{#fun cegui_mltclmlst_setSortDirection as setSortDirection 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumSortDirection' } -> `()'  #}
+
+{- function setSortColumn -}
+{#fun cegui_mltclmlst_setSortColumn as setSortColumn 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setSortColumnByID -}
+{#fun cegui_mltclmlst_setSortColumnByID as setSortColumnByID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setShowVertScrollbar -}
+{#fun cegui_mltclmlst_setShowVertScrollbar as setShowVertScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setShowHorzScrollbar -}
+{#fun cegui_mltclmlst_setShowHorzScrollbar as setShowHorzScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function clearAllSelections -}
+{#fun cegui_mltclmlst_clearAllSelections as clearAllSelections 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setItemSelectState -}
+{#fun cegui_mltclmlst_setItemSelectState as setItemSelectState 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function handleUpdatedItemData -}
+{#fun cegui_mltclmlst_handleUpdatedItemData as handleUpdatedItemData 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setColumnHeaderWidth -}
+{#fun cegui_mltclmlst_setColumnHeaderWidth as setColumnHeaderWidth 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setUserSortControlEnabled -}
+{#fun cegui_mltclmlst_setUserSortControlEnabled as setUserSortControlEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setUserColumnSizingEnabled -}
+{#fun cegui_mltclmlst_setUserColumnSizingEnabled as setUserColumnSizingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setUserColumnDraggingEnabled -}
+{#fun cegui_mltclmlst_setUserColumnDraggingEnabled as setUserColumnDraggingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function autoSizeColumnHeader -}
+{#fun cegui_mltclmlst_autoSizeColumnHeader as autoSizeColumnHeader 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setRowID -}
+{#fun cegui_mltclmlst_setRowID as setRowID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function MultiColumnList -}
+{#fun cegui_mltclmlst_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~MultiColumnList -}
+{#fun cegui_mltclmlst_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassMultiLineEditbox.chs b/HGamer3D/Bindings/CEGUI/ClassMultiLineEditbox.chs
--- a/HGamer3D/Bindings/CEGUI/ClassMultiLineEditbox.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassMultiLineEditbox.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassMultiLineEditbox.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassMultiLineEditbox where
 
@@ -36,118 +36,118 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassMultiLineEditbox.h"
-{- function hasInputFocus -}
-{#fun cegui_mltlnedtbx_hasInputFocus as hasInputFocus 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isReadOnly -}
-{#fun cegui_mltlnedtbx_isReadOnly as isReadOnly 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getCaratIndex -}
-{#fun cegui_mltlnedtbx_getCaratIndex as getCaratIndex 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSelectionStartIndex -}
-{#fun cegui_mltlnedtbx_getSelectionStartIndex as getSelectionStartIndex 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSelectionEndIndex -}
-{#fun cegui_mltlnedtbx_getSelectionEndIndex as getSelectionEndIndex 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSelectionLength -}
-{#fun cegui_mltlnedtbx_getSelectionLength as getSelectionLength 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getMaxTextLength -}
-{#fun cegui_mltlnedtbx_getMaxTextLength as getMaxTextLength 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function isWordWrapped -}
-{#fun cegui_mltlnedtbx_isWordWrapped as isWordWrapped 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getVertScrollbar -}
-{#fun cegui_mltlnedtbx_getVertScrollbar as getVertScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function isVertScrollbarAlwaysShown -}
-{#fun cegui_mltlnedtbx_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getHorzScrollbar -}
-{#fun cegui_mltlnedtbx_getHorzScrollbar as getHorzScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getLineNumberFromIndex -}
-{#fun cegui_mltlnedtbx_getLineNumberFromIndex as getLineNumberFromIndex 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function initialiseComponents -}
-{#fun cegui_mltlnedtbx_initialiseComponents as initialiseComponents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setReadOnly -}
-{#fun cegui_mltlnedtbx_setReadOnly as setReadOnly 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setCaratIndex -}
-{#fun cegui_mltlnedtbx_setCaratIndex as setCaratIndex 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setSelection -}
-{#fun cegui_mltlnedtbx_setSelection as setSelection 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setMaxTextLength -}
-{#fun cegui_mltlnedtbx_setMaxTextLength as setMaxTextLength 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function ensureCaratIsVisible -}
-{#fun cegui_mltlnedtbx_ensureCaratIsVisible as ensureCaratIsVisible 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setWordWrapping -}
-{#fun cegui_mltlnedtbx_setWordWrapping as setWordWrapping 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setShowVertScrollbar -}
-{#fun cegui_mltlnedtbx_setShowVertScrollbar as setShowVertScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function MultiLineEditbox -}
-{#fun cegui_mltlnedtbx_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~MultiLineEditbox -}
-{#fun cegui_mltlnedtbx_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function hasInputFocus -}
+{#fun cegui_mltlnedtbx_hasInputFocus as hasInputFocus 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isReadOnly -}
+{#fun cegui_mltlnedtbx_isReadOnly as isReadOnly 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getCaratIndex -}
+{#fun cegui_mltlnedtbx_getCaratIndex as getCaratIndex 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSelectionStartIndex -}
+{#fun cegui_mltlnedtbx_getSelectionStartIndex as getSelectionStartIndex 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSelectionEndIndex -}
+{#fun cegui_mltlnedtbx_getSelectionEndIndex as getSelectionEndIndex 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSelectionLength -}
+{#fun cegui_mltlnedtbx_getSelectionLength as getSelectionLength 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getMaxTextLength -}
+{#fun cegui_mltlnedtbx_getMaxTextLength as getMaxTextLength 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function isWordWrapped -}
+{#fun cegui_mltlnedtbx_isWordWrapped as isWordWrapped 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getVertScrollbar -}
+{#fun cegui_mltlnedtbx_getVertScrollbar as getVertScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function isVertScrollbarAlwaysShown -}
+{#fun cegui_mltlnedtbx_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getHorzScrollbar -}
+{#fun cegui_mltlnedtbx_getHorzScrollbar as getHorzScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getLineNumberFromIndex -}
+{#fun cegui_mltlnedtbx_getLineNumberFromIndex as getLineNumberFromIndex 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function initialiseComponents -}
+{#fun cegui_mltlnedtbx_initialiseComponents as initialiseComponents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setReadOnly -}
+{#fun cegui_mltlnedtbx_setReadOnly as setReadOnly 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setCaratIndex -}
+{#fun cegui_mltlnedtbx_setCaratIndex as setCaratIndex 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setSelection -}
+{#fun cegui_mltlnedtbx_setSelection as setSelection 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setMaxTextLength -}
+{#fun cegui_mltlnedtbx_setMaxTextLength as setMaxTextLength 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function ensureCaratIsVisible -}
+{#fun cegui_mltlnedtbx_ensureCaratIsVisible as ensureCaratIsVisible 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setWordWrapping -}
+{#fun cegui_mltlnedtbx_setWordWrapping as setWordWrapping 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setShowVertScrollbar -}
+{#fun cegui_mltlnedtbx_setShowVertScrollbar as setShowVertScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function MultiLineEditbox -}
+{#fun cegui_mltlnedtbx_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~MultiLineEditbox -}
+{#fun cegui_mltlnedtbx_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassOgreRenderer.chs b/HGamer3D/Bindings/CEGUI/ClassOgreRenderer.chs
--- a/HGamer3D/Bindings/CEGUI/ClassOgreRenderer.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassOgreRenderer.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassOgreRenderer.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassOgreRenderer where
 
@@ -36,93 +36,93 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
-{# import HGamer3D.Bindings.CEGUI.EnumBlendMode #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.EnumBlendMode #}
 
 #include "ClassOgreRenderer.h"
-{- function bootstrapSystem -}
-{#fun cegui_ogrrndr_bootstrapSystem as bootstrapSystem 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function destroySystem -}
-{#fun cegui_ogrrndr_destroySystem as destroySystem 
-{ } -> `()'  #}
-
-{- function create -}
-{#fun cegui_ogrrndr_create as create 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function destroy -}
-{#fun cegui_ogrrndr_destroy as destroy 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function createOgreResourceProvider -}
-{#fun cegui_ogrrndr_createOgreResourceProvider as createOgreResourceProvider 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function destroyOgreResourceProvider -}
-{#fun cegui_ogrrndr_destroyOgreResourceProvider as destroyOgreResourceProvider 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setRenderingEnabled -}
-{#fun cegui_ogrrndr_setRenderingEnabled as setRenderingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isRenderingEnabled -}
-{#fun cegui_ogrrndr_isRenderingEnabled as isRenderingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setupRenderingBlendMode -}
-{#fun cegui_ogrrndr_setupRenderingBlendMode as setupRenderingBlendMode 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumBlendMode' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setFrameControlExecutionEnabled -}
-{#fun cegui_ogrrndr_setFrameControlExecutionEnabled as setFrameControlExecutionEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isFrameControlExecutionEnabled -}
-{#fun cegui_ogrrndr_isFrameControlExecutionEnabled as isFrameControlExecutionEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function initialiseRenderStateSettings -}
-{#fun cegui_ogrrndr_initialiseRenderStateSettings as initialiseRenderStateSettings 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function destroyAllGeometryBuffers -}
-{#fun cegui_ogrrndr_destroyAllGeometryBuffers as destroyAllGeometryBuffers 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function destroyAllTextureTargets -}
-{#fun cegui_ogrrndr_destroyAllTextureTargets as destroyAllTextureTargets 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function destroyAllTextures -}
-{#fun cegui_ogrrndr_destroyAllTextures as destroyAllTextures 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function beginRendering -}
-{#fun cegui_ogrrndr_beginRendering as beginRendering 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function endRendering -}
-{#fun cegui_ogrrndr_endRendering as endRendering 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getMaxTextureSize -}
-{#fun cegui_ogrrndr_getMaxTextureSize as getMaxTextureSize 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getIdentifierString -}
-{#fun cegui_ogrrndr_getIdentifierString as getIdentifierString 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
+{- function bootstrapSystem -}
+{#fun cegui_ogrrndr_bootstrapSystem as bootstrapSystem 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function destroySystem -}
+{#fun cegui_ogrrndr_destroySystem as destroySystem 
+{ } -> `()'  #}
+
+{- function create -}
+{#fun cegui_ogrrndr_create as create 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function destroy -}
+{#fun cegui_ogrrndr_destroy as destroy 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function createOgreResourceProvider -}
+{#fun cegui_ogrrndr_createOgreResourceProvider as createOgreResourceProvider 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function destroyOgreResourceProvider -}
+{#fun cegui_ogrrndr_destroyOgreResourceProvider as destroyOgreResourceProvider 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setRenderingEnabled -}
+{#fun cegui_ogrrndr_setRenderingEnabled as setRenderingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isRenderingEnabled -}
+{#fun cegui_ogrrndr_isRenderingEnabled as isRenderingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setupRenderingBlendMode -}
+{#fun cegui_ogrrndr_setupRenderingBlendMode as setupRenderingBlendMode 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumBlendMode' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setFrameControlExecutionEnabled -}
+{#fun cegui_ogrrndr_setFrameControlExecutionEnabled as setFrameControlExecutionEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isFrameControlExecutionEnabled -}
+{#fun cegui_ogrrndr_isFrameControlExecutionEnabled as isFrameControlExecutionEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function initialiseRenderStateSettings -}
+{#fun cegui_ogrrndr_initialiseRenderStateSettings as initialiseRenderStateSettings 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function destroyAllGeometryBuffers -}
+{#fun cegui_ogrrndr_destroyAllGeometryBuffers as destroyAllGeometryBuffers 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function destroyAllTextureTargets -}
+{#fun cegui_ogrrndr_destroyAllTextureTargets as destroyAllTextureTargets 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function destroyAllTextures -}
+{#fun cegui_ogrrndr_destroyAllTextures as destroyAllTextures 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function beginRendering -}
+{#fun cegui_ogrrndr_beginRendering as beginRendering 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function endRendering -}
+{#fun cegui_ogrrndr_endRendering as endRendering 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getMaxTextureSize -}
+{#fun cegui_ogrrndr_getMaxTextureSize as getMaxTextureSize 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getIdentifierString -}
+{#fun cegui_ogrrndr_getIdentifierString as getIdentifierString 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassOgreResourceProvider.chs b/HGamer3D/Bindings/CEGUI/ClassOgreResourceProvider.chs
--- a/HGamer3D/Bindings/CEGUI/ClassOgreResourceProvider.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassOgreResourceProvider.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassOgreResourceProvider.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassOgreResourceProvider where
 
@@ -36,8 +36,8 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassOgreResourceProvider.h"
diff --git a/HGamer3D/Bindings/CEGUI/ClassProgressBar.chs b/HGamer3D/Bindings/CEGUI/ClassProgressBar.chs
--- a/HGamer3D/Bindings/CEGUI/ClassProgressBar.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassProgressBar.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassProgressBar.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassProgressBar where
 
@@ -36,47 +36,47 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassProgressBar.h"
-{- function getProgress -}
-{#fun cegui_prgbr_getProgress as getProgress 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getStep -}
-{#fun cegui_prgbr_getStep as getStep 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setProgress -}
-{#fun cegui_prgbr_setProgress as setProgress 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setStepSize -}
-{#fun cegui_prgbr_setStepSize as setStepSize 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function step -}
-{#fun cegui_prgbr_step as step 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function adjustProgress -}
-{#fun cegui_prgbr_adjustProgress as adjustProgress 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function ProgressBar -}
-{#fun cegui_prgbr_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~ProgressBar -}
-{#fun cegui_prgbr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function getProgress -}
+{#fun cegui_prgbr_getProgress as getProgress 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getStep -}
+{#fun cegui_prgbr_getStep as getStep 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setProgress -}
+{#fun cegui_prgbr_setProgress as setProgress 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setStepSize -}
+{#fun cegui_prgbr_setStepSize as setStepSize 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function step -}
+{#fun cegui_prgbr_step as step 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function adjustProgress -}
+{#fun cegui_prgbr_adjustProgress as adjustProgress 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function ProgressBar -}
+{#fun cegui_prgbr_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~ProgressBar -}
+{#fun cegui_prgbr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassPropertySet.chs b/HGamer3D/Bindings/CEGUI/ClassPropertySet.chs
--- a/HGamer3D/Bindings/CEGUI/ClassPropertySet.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassPropertySet.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassPropertySet.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassPropertySet where
 
@@ -36,61 +36,61 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassPropertySet.h"
-{- function PropertySet -}
-{#fun cegui_prpst_construct as new 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~PropertySet -}
-{#fun cegui_prpst_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function removeProperty -}
-{#fun cegui_prpst_removeProperty as removeProperty 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function clearProperties -}
-{#fun cegui_prpst_clearProperties as clearProperties 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function isPropertyPresent -}
-{#fun cegui_prpst_isPropertyPresent as isPropertyPresent 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getPropertyHelp -}
-{#fun cegui_prpst_getPropertyHelp as getPropertyHelp 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getProperty -}
-{#fun cegui_prpst_getProperty as getProperty 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function setProperty -}
-{#fun cegui_prpst_setProperty as setProperty 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function isPropertyDefault -}
-{#fun cegui_prpst_isPropertyDefault as isPropertyDefault 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getPropertyDefault -}
-{#fun cegui_prpst_getPropertyDefault as getPropertyDefault 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
+{- function PropertySet -}
+{#fun cegui_prpst_construct as new 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~PropertySet -}
+{#fun cegui_prpst_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function removeProperty -}
+{#fun cegui_prpst_removeProperty as removeProperty 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function clearProperties -}
+{#fun cegui_prpst_clearProperties as clearProperties 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function isPropertyPresent -}
+{#fun cegui_prpst_isPropertyPresent as isPropertyPresent 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getPropertyHelp -}
+{#fun cegui_prpst_getPropertyHelp as getPropertyHelp 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getProperty -}
+{#fun cegui_prpst_getProperty as getProperty 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function setProperty -}
+{#fun cegui_prpst_setProperty as setProperty 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function isPropertyDefault -}
+{#fun cegui_prpst_isPropertyDefault as isPropertyDefault 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getPropertyDefault -}
+{#fun cegui_prpst_getPropertyDefault as getPropertyDefault 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassPtr.chs b/HGamer3D/Bindings/CEGUI/ClassPtr.chs
--- a/HGamer3D/Bindings/CEGUI/ClassPtr.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassPtr.chs
@@ -1,10 +1,10 @@
-{-# LANGUAGE EmptyDataDecls #-}
+{-# LANGUAGE EmptyDataDecls #-}
 {-# LANGUAGE ForeignFunctionInterface #-}
 {-# LANGUAGE TypeSynonymInstances #-}
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -19,12 +19,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassPtr.chs
 
--- Class Ptr Utilities
+-- Class Ptr Utilities
 
 module HGamer3D.Bindings.CEGUI.ClassPtr where
 
@@ -37,128 +37,128 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
 
 #include "ClassPtr.h"
-{- class ClassCheckbox -}
-{#pointer *ClassCheckbox as ClassCheckbox#}
-{- class ClassCombobox -}
-{#pointer *ClassCombobox as ClassCombobox#}
-{- class ClassComboDropList -}
-{#pointer *ClassComboDropList as ClassComboDropList#}
-{- class ClassDefaultLogger -}
-{#pointer *ClassDefaultLogger as ClassDefaultLogger#}
-{- class ClassDefaultResourceProvider -}
-{#pointer *ClassDefaultResourceProvider as ClassDefaultResourceProvider#}
-{- class ClassDragContainer -}
-{#pointer *ClassDragContainer as ClassDragContainer#}
-{- class ClassEditbox -}
-{#pointer *ClassEditbox as ClassEditbox#}
-{- class ClassEventArgs -}
-{#pointer *ClassEventArgs as ClassEventArgs#}
-{- class ClassEventSet -}
-{#pointer *ClassEventSet as ClassEventSet#}
-{- class ClassFont -}
-{#pointer *ClassFont as ClassFont#}
-{- class ClassFontManager -}
-{#pointer *ClassFontManager as ClassFontManager#}
-{- class ClassFrameWindow -}
-{#pointer *ClassFrameWindow as ClassFrameWindow#}
-{- class ClassImageCodec -}
-{#pointer *ClassImageCodec as ClassImageCodec#}
-{- class ClassImageset -}
-{#pointer *ClassImageset as ClassImageset#}
-{- class ClassItemEntry -}
-{#pointer *ClassItemEntry as ClassItemEntry#}
-{- class ClassItemListbox -}
-{#pointer *ClassItemListbox as ClassItemListbox#}
-{- class ClassListbox -}
-{#pointer *ClassListbox as ClassListbox#}
-{- class ClassListboxItem -}
-{#pointer *ClassListboxItem as ClassListboxItem#}
-{- class ClassListboxTextItem -}
-{#pointer *ClassListboxTextItem as ClassListboxTextItem#}
-{- class ClassListHeader -}
-{#pointer *ClassListHeader as ClassListHeader#}
-{- class ClassListHeaderSegment -}
-{#pointer *ClassListHeaderSegment as ClassListHeaderSegment#}
-{- class ClassLogger -}
-{#pointer *ClassLogger as ClassLogger#}
-{- class ClassMenuBase -}
-{#pointer *ClassMenuBase as ClassMenuBase#}
-{- class ClassMenuItem -}
-{#pointer *ClassMenuItem as ClassMenuItem#}
-{- class ClassMultiColumnList -}
-{#pointer *ClassMultiColumnList as ClassMultiColumnList#}
-{- class ClassMultiLineEditbox -}
-{#pointer *ClassMultiLineEditbox as ClassMultiLineEditbox#}
-{- class ClassOgreRenderer -}
-{#pointer *ClassOgreRenderer as ClassOgreRenderer#}
-{- class ClassOgreResourceProvider -}
-{#pointer *ClassOgreResourceProvider as ClassOgreResourceProvider#}
-{- class ClassProgressBar -}
-{#pointer *ClassProgressBar as ClassProgressBar#}
-{- class ClassPropertySet -}
-{#pointer *ClassPropertySet as ClassPropertySet#}
-{- class ClassPushButton -}
-{#pointer *ClassPushButton as ClassPushButton#}
-{- class ClassRadioButton -}
-{#pointer *ClassRadioButton as ClassRadioButton#}
-{- class ClassRenderer -}
-{#pointer *ClassRenderer as ClassRenderer#}
-{- class ClassResourceProvider -}
-{#pointer *ClassResourceProvider as ClassResourceProvider#}
-{- class ClassScheme -}
-{#pointer *ClassScheme as ClassScheme#}
-{- class ClassSchemeManager -}
-{#pointer *ClassSchemeManager as ClassSchemeManager#}
-{- class ClassScriptFunctor -}
-{#pointer *ClassScriptFunctor as ClassScriptFunctor#}
-{- class ClassScriptModule -}
-{#pointer *ClassScriptModule as ClassScriptModule#}
-{- class ClassScrollablePane -}
-{#pointer *ClassScrollablePane as ClassScrollablePane#}
-{- class ClassScrollbar -}
-{#pointer *ClassScrollbar as ClassScrollbar#}
-{- class ClassScrolledContainer -}
-{#pointer *ClassScrolledContainer as ClassScrolledContainer#}
-{- class ClassScrolledItemListBase -}
-{#pointer *ClassScrolledItemListBase as ClassScrolledItemListBase#}
-{- class ClassSlider -}
-{#pointer *ClassSlider as ClassSlider#}
-{- class ClassSpinner -}
-{#pointer *ClassSpinner as ClassSpinner#}
-{- class ClassSystem -}
-{#pointer *ClassSystem as ClassSystem#}
-{- class ClassTabButton -}
-{#pointer *ClassTabButton as ClassTabButton#}
-{- class ClassThumb -}
-{#pointer *ClassThumb as ClassThumb#}
-{- class ClassTooltip -}
-{#pointer *ClassTooltip as ClassTooltip#}
-{- class ClassTree -}
-{#pointer *ClassTree as ClassTree#}
-{- class ClassUDim -}
-{#pointer *ClassUDim as ClassUDim#}
-{- class ClassUVector2 -}
-{#pointer *ClassUVector2 as ClassUVector2#}
-{- class ClassWidgetLookManager -}
-{#pointer *ClassWidgetLookManager as ClassWidgetLookManager#}
-{- class ClassWindow -}
-{#pointer *ClassWindow as ClassWindow#}
-{- class ClassWindowManager -}
-{#pointer *ClassWindowManager as ClassWindowManager#}
-{- class ClassXMLParser -}
-{#pointer *ClassXMLParser as ClassXMLParser#}
-{- class ClassHG3DEventController -}
-{#pointer *ClassHG3DEventController as ClassHG3DEventController#}
-{- class ClassHG3DEventStaticFunctions -}
-{#pointer *ClassHG3DEventStaticFunctions as ClassHG3DEventStaticFunctions#}
-{- class ClassHG3DListboxStaticFunctions -}
-{#pointer *ClassHG3DListboxStaticFunctions as ClassHG3DListboxStaticFunctions#}
-{- class ClassHG3DWindowStaticFunctions -}
-{#pointer *ClassHG3DWindowStaticFunctions as ClassHG3DWindowStaticFunctions#}
-{- class ClassSystemHG3D -}
-{#pointer *ClassSystemHG3D as ClassSystemHG3D#}
-{- class ClassWindowManagerHG3D -}
-{#pointer *ClassWindowManagerHG3D as ClassWindowManagerHG3D#}
+{- class ClassCheckbox -}
+{#pointer *ClassCheckbox as ClassCheckbox#}
+{- class ClassCombobox -}
+{#pointer *ClassCombobox as ClassCombobox#}
+{- class ClassComboDropList -}
+{#pointer *ClassComboDropList as ClassComboDropList#}
+{- class ClassDefaultLogger -}
+{#pointer *ClassDefaultLogger as ClassDefaultLogger#}
+{- class ClassDefaultResourceProvider -}
+{#pointer *ClassDefaultResourceProvider as ClassDefaultResourceProvider#}
+{- class ClassDragContainer -}
+{#pointer *ClassDragContainer as ClassDragContainer#}
+{- class ClassEditbox -}
+{#pointer *ClassEditbox as ClassEditbox#}
+{- class ClassEventArgs -}
+{#pointer *ClassEventArgs as ClassEventArgs#}
+{- class ClassEventSet -}
+{#pointer *ClassEventSet as ClassEventSet#}
+{- class ClassFont -}
+{#pointer *ClassFont as ClassFont#}
+{- class ClassFontManager -}
+{#pointer *ClassFontManager as ClassFontManager#}
+{- class ClassFrameWindow -}
+{#pointer *ClassFrameWindow as ClassFrameWindow#}
+{- class ClassImageCodec -}
+{#pointer *ClassImageCodec as ClassImageCodec#}
+{- class ClassImageset -}
+{#pointer *ClassImageset as ClassImageset#}
+{- class ClassItemEntry -}
+{#pointer *ClassItemEntry as ClassItemEntry#}
+{- class ClassItemListbox -}
+{#pointer *ClassItemListbox as ClassItemListbox#}
+{- class ClassListbox -}
+{#pointer *ClassListbox as ClassListbox#}
+{- class ClassListboxItem -}
+{#pointer *ClassListboxItem as ClassListboxItem#}
+{- class ClassListboxTextItem -}
+{#pointer *ClassListboxTextItem as ClassListboxTextItem#}
+{- class ClassListHeader -}
+{#pointer *ClassListHeader as ClassListHeader#}
+{- class ClassListHeaderSegment -}
+{#pointer *ClassListHeaderSegment as ClassListHeaderSegment#}
+{- class ClassLogger -}
+{#pointer *ClassLogger as ClassLogger#}
+{- class ClassMenuBase -}
+{#pointer *ClassMenuBase as ClassMenuBase#}
+{- class ClassMenuItem -}
+{#pointer *ClassMenuItem as ClassMenuItem#}
+{- class ClassMultiColumnList -}
+{#pointer *ClassMultiColumnList as ClassMultiColumnList#}
+{- class ClassMultiLineEditbox -}
+{#pointer *ClassMultiLineEditbox as ClassMultiLineEditbox#}
+{- class ClassOgreRenderer -}
+{#pointer *ClassOgreRenderer as ClassOgreRenderer#}
+{- class ClassOgreResourceProvider -}
+{#pointer *ClassOgreResourceProvider as ClassOgreResourceProvider#}
+{- class ClassProgressBar -}
+{#pointer *ClassProgressBar as ClassProgressBar#}
+{- class ClassPropertySet -}
+{#pointer *ClassPropertySet as ClassPropertySet#}
+{- class ClassPushButton -}
+{#pointer *ClassPushButton as ClassPushButton#}
+{- class ClassRadioButton -}
+{#pointer *ClassRadioButton as ClassRadioButton#}
+{- class ClassRenderer -}
+{#pointer *ClassRenderer as ClassRenderer#}
+{- class ClassResourceProvider -}
+{#pointer *ClassResourceProvider as ClassResourceProvider#}
+{- class ClassScheme -}
+{#pointer *ClassScheme as ClassScheme#}
+{- class ClassSchemeManager -}
+{#pointer *ClassSchemeManager as ClassSchemeManager#}
+{- class ClassScriptFunctor -}
+{#pointer *ClassScriptFunctor as ClassScriptFunctor#}
+{- class ClassScriptModule -}
+{#pointer *ClassScriptModule as ClassScriptModule#}
+{- class ClassScrollablePane -}
+{#pointer *ClassScrollablePane as ClassScrollablePane#}
+{- class ClassScrollbar -}
+{#pointer *ClassScrollbar as ClassScrollbar#}
+{- class ClassScrolledContainer -}
+{#pointer *ClassScrolledContainer as ClassScrolledContainer#}
+{- class ClassScrolledItemListBase -}
+{#pointer *ClassScrolledItemListBase as ClassScrolledItemListBase#}
+{- class ClassSlider -}
+{#pointer *ClassSlider as ClassSlider#}
+{- class ClassSpinner -}
+{#pointer *ClassSpinner as ClassSpinner#}
+{- class ClassSystem -}
+{#pointer *ClassSystem as ClassSystem#}
+{- class ClassTabButton -}
+{#pointer *ClassTabButton as ClassTabButton#}
+{- class ClassThumb -}
+{#pointer *ClassThumb as ClassThumb#}
+{- class ClassTooltip -}
+{#pointer *ClassTooltip as ClassTooltip#}
+{- class ClassTree -}
+{#pointer *ClassTree as ClassTree#}
+{- class ClassUDim -}
+{#pointer *ClassUDim as ClassUDim#}
+{- class ClassUVector2 -}
+{#pointer *ClassUVector2 as ClassUVector2#}
+{- class ClassWidgetLookManager -}
+{#pointer *ClassWidgetLookManager as ClassWidgetLookManager#}
+{- class ClassWindow -}
+{#pointer *ClassWindow as ClassWindow#}
+{- class ClassWindowManager -}
+{#pointer *ClassWindowManager as ClassWindowManager#}
+{- class ClassXMLParser -}
+{#pointer *ClassXMLParser as ClassXMLParser#}
+{- class ClassHG3DEventController -}
+{#pointer *ClassHG3DEventController as ClassHG3DEventController#}
+{- class ClassHG3DEventStaticFunctions -}
+{#pointer *ClassHG3DEventStaticFunctions as ClassHG3DEventStaticFunctions#}
+{- class ClassHG3DListboxStaticFunctions -}
+{#pointer *ClassHG3DListboxStaticFunctions as ClassHG3DListboxStaticFunctions#}
+{- class ClassHG3DWindowStaticFunctions -}
+{#pointer *ClassHG3DWindowStaticFunctions as ClassHG3DWindowStaticFunctions#}
+{- class ClassSystemHG3D -}
+{#pointer *ClassSystemHG3D as ClassSystemHG3D#}
+{- class ClassWindowManagerHG3D -}
+{#pointer *ClassWindowManagerHG3D as ClassWindowManagerHG3D#}
diff --git a/HGamer3D/Bindings/CEGUI/ClassPushButton.chs b/HGamer3D/Bindings/CEGUI/ClassPushButton.chs
--- a/HGamer3D/Bindings/CEGUI/ClassPushButton.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassPushButton.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassPushButton.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassPushButton where
 
@@ -36,18 +36,18 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassPushButton.h"
-{- function PushButton -}
-{#fun cegui_pshbttn_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~PushButton -}
-{#fun cegui_pshbttn_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function PushButton -}
+{#fun cegui_pshbttn_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~PushButton -}
+{#fun cegui_pshbttn_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassRadioButton.chs b/HGamer3D/Bindings/CEGUI/ClassRadioButton.chs
--- a/HGamer3D/Bindings/CEGUI/ClassRadioButton.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassRadioButton.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassRadioButton.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassRadioButton where
 
@@ -36,33 +36,33 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassRadioButton.h"
-{- function isSelected -}
-{#fun cegui_rdbttn_isSelected as isSelected 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getSelectedButtonInGroup -}
-{#fun cegui_rdbttn_getSelectedButtonInGroup as getSelectedButtonInGroup 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setSelected -}
-{#fun cegui_rdbttn_setSelected as setSelected 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function RadioButton -}
-{#fun cegui_rdbttn_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~RadioButton -}
-{#fun cegui_rdbttn_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function isSelected -}
+{#fun cegui_rdbttn_isSelected as isSelected 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getSelectedButtonInGroup -}
+{#fun cegui_rdbttn_getSelectedButtonInGroup as getSelectedButtonInGroup 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setSelected -}
+{#fun cegui_rdbttn_setSelected as setSelected 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function RadioButton -}
+{#fun cegui_rdbttn_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~RadioButton -}
+{#fun cegui_rdbttn_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassRenderer.chs b/HGamer3D/Bindings/CEGUI/ClassRenderer.chs
--- a/HGamer3D/Bindings/CEGUI/ClassRenderer.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassRenderer.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassRenderer.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassRenderer where
 
@@ -36,42 +36,42 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassRenderer.h"
-{- function destroyAllGeometryBuffers -}
-{#fun cegui_rndr_destroyAllGeometryBuffers as destroyAllGeometryBuffers 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function destroyAllTextureTargets -}
-{#fun cegui_rndr_destroyAllTextureTargets as destroyAllTextureTargets 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function destroyAllTextures -}
-{#fun cegui_rndr_destroyAllTextures as destroyAllTextures 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function beginRendering -}
-{#fun cegui_rndr_beginRendering as beginRendering 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function endRendering -}
-{#fun cegui_rndr_endRendering as endRendering 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getMaxTextureSize -}
-{#fun cegui_rndr_getMaxTextureSize as getMaxTextureSize 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getIdentifierString -}
-{#fun cegui_rndr_getIdentifierString as getIdentifierString 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function ~Renderer -}
-{#fun cegui_rndr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function destroyAllGeometryBuffers -}
+{#fun cegui_rndr_destroyAllGeometryBuffers as destroyAllGeometryBuffers 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function destroyAllTextureTargets -}
+{#fun cegui_rndr_destroyAllTextureTargets as destroyAllTextureTargets 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function destroyAllTextures -}
+{#fun cegui_rndr_destroyAllTextures as destroyAllTextures 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function beginRendering -}
+{#fun cegui_rndr_beginRendering as beginRendering 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function endRendering -}
+{#fun cegui_rndr_endRendering as endRendering 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getMaxTextureSize -}
+{#fun cegui_rndr_getMaxTextureSize as getMaxTextureSize 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getIdentifierString -}
+{#fun cegui_rndr_getIdentifierString as getIdentifierString 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function ~Renderer -}
+{#fun cegui_rndr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassResourceProvider.chs b/HGamer3D/Bindings/CEGUI/ClassResourceProvider.chs
--- a/HGamer3D/Bindings/CEGUI/ClassResourceProvider.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassResourceProvider.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassResourceProvider.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassResourceProvider where
 
@@ -36,22 +36,22 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassResourceProvider.h"
-{- function ~ResourceProvider -}
-{#fun cegui_rsrcpr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getDefaultResourceGroup -}
-{#fun cegui_rsrcpr_getDefaultResourceGroup as getDefaultResourceGroup 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function setDefaultResourceGroup -}
-{#fun cegui_rsrcpr_setDefaultResourceGroup as setDefaultResourceGroup 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
+{- function ~ResourceProvider -}
+{#fun cegui_rsrcpr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getDefaultResourceGroup -}
+{#fun cegui_rsrcpr_getDefaultResourceGroup as getDefaultResourceGroup 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function setDefaultResourceGroup -}
+{#fun cegui_rsrcpr_setDefaultResourceGroup as setDefaultResourceGroup 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassScheme.chs b/HGamer3D/Bindings/CEGUI/ClassScheme.chs
--- a/HGamer3D/Bindings/CEGUI/ClassScheme.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassScheme.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassScheme.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassScheme where
 
@@ -36,38 +36,38 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassScheme.h"
-{- function loadResources -}
-{#fun cegui_schm_loadResources as loadResources 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function unloadResources -}
-{#fun cegui_schm_unloadResources as unloadResources 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function resourcesLoaded -}
-{#fun cegui_schm_resourcesLoaded as resourcesLoaded 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getName -}
-{#fun cegui_schm_getName as getName 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function ~Scheme -}
-{#fun cegui_schm_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getDefaultResourceGroup -}
-{#fun cegui_schm_getDefaultResourceGroup as getDefaultResourceGroup 
-{ alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function setDefaultResourceGroup -}
-{#fun cegui_schm_setDefaultResourceGroup as setDefaultResourceGroup 
-{ withCString* `String' } -> `()'  #}
-
+{- function loadResources -}
+{#fun cegui_schm_loadResources as loadResources 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function unloadResources -}
+{#fun cegui_schm_unloadResources as unloadResources 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function resourcesLoaded -}
+{#fun cegui_schm_resourcesLoaded as resourcesLoaded 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getName -}
+{#fun cegui_schm_getName as getName 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function ~Scheme -}
+{#fun cegui_schm_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getDefaultResourceGroup -}
+{#fun cegui_schm_getDefaultResourceGroup as getDefaultResourceGroup 
+{ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function setDefaultResourceGroup -}
+{#fun cegui_schm_setDefaultResourceGroup as setDefaultResourceGroup 
+{ withCString* `String' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassSchemeManager.chs b/HGamer3D/Bindings/CEGUI/ClassSchemeManager.chs
--- a/HGamer3D/Bindings/CEGUI/ClassSchemeManager.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassSchemeManager.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassSchemeManager.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassSchemeManager where
 
@@ -36,16 +36,16 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassSchemeManager.h"
-{- function SchemeManager -}
-{#fun cegui_schmmgr_construct as new 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~SchemeManager -}
-{#fun cegui_schmmgr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function SchemeManager -}
+{#fun cegui_schmmgr_construct as new 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~SchemeManager -}
+{#fun cegui_schmmgr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassScriptFunctor.chs b/HGamer3D/Bindings/CEGUI/ClassScriptFunctor.chs
--- a/HGamer3D/Bindings/CEGUI/ClassScriptFunctor.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassScriptFunctor.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassScriptFunctor.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassScriptFunctor where
 
@@ -36,13 +36,13 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassScriptFunctor.h"
-{- function ScriptFunctor -}
-{#fun cegui_scrfnct_construct as new 
-{ withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
+{- function ScriptFunctor -}
+{#fun cegui_scrfnct_construct as new 
+{ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassScriptModule.chs b/HGamer3D/Bindings/CEGUI/ClassScriptModule.chs
--- a/HGamer3D/Bindings/CEGUI/ClassScriptModule.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassScriptModule.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassScriptModule.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassScriptModule where
 
@@ -36,57 +36,57 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassScriptModule.h"
-{- function ~ScriptModule -}
-{#fun cegui_scrmd_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function executeScriptFile -}
-{#fun cegui_scrmd_executeScriptFile as executeScriptFile 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function executeScriptGlobal -}
-{#fun cegui_scrmd_executeScriptGlobal as executeScriptGlobal 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function executeScriptedEventHandler -}
-{#fun cegui_scrmd_executeScriptedEventHandler as executeScriptedEventHandler 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function executeString -}
-{#fun cegui_scrmd_executeString as executeString 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function createBindings -}
-{#fun cegui_scrmd_createBindings as createBindings 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function destroyBindings -}
-{#fun cegui_scrmd_destroyBindings as destroyBindings 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getIdentifierString -}
-{#fun cegui_scrmd_getIdentifierString as getIdentifierString 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function setDefaultResourceGroup -}
-{#fun cegui_scrmd_setDefaultResourceGroup as setDefaultResourceGroup 
-{ withCString* `String' } -> `()'  #}
-
-{- function getDefaultResourceGroup -}
-{#fun cegui_scrmd_getDefaultResourceGroup as getDefaultResourceGroup 
-{ alloc64k- `String' peekCString*} -> `()'  #}
-
+{- function ~ScriptModule -}
+{#fun cegui_scrmd_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function executeScriptFile -}
+{#fun cegui_scrmd_executeScriptFile as executeScriptFile 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function executeScriptGlobal -}
+{#fun cegui_scrmd_executeScriptGlobal as executeScriptGlobal 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function executeScriptedEventHandler -}
+{#fun cegui_scrmd_executeScriptedEventHandler as executeScriptedEventHandler 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function executeString -}
+{#fun cegui_scrmd_executeString as executeString 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function createBindings -}
+{#fun cegui_scrmd_createBindings as createBindings 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function destroyBindings -}
+{#fun cegui_scrmd_destroyBindings as destroyBindings 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getIdentifierString -}
+{#fun cegui_scrmd_getIdentifierString as getIdentifierString 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function setDefaultResourceGroup -}
+{#fun cegui_scrmd_setDefaultResourceGroup as setDefaultResourceGroup 
+{ withCString* `String' } -> `()'  #}
+
+{- function getDefaultResourceGroup -}
+{#fun cegui_scrmd_getDefaultResourceGroup as getDefaultResourceGroup 
+{ alloc64k- `String' peekCString*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassScrollablePane.chs b/HGamer3D/Bindings/CEGUI/ClassScrollablePane.chs
--- a/HGamer3D/Bindings/CEGUI/ClassScrollablePane.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassScrollablePane.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassScrollablePane.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassScrollablePane where
 
@@ -36,131 +36,131 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassScrollablePane.h"
-{- function ScrollablePane -}
-{#fun cegui_scrlpn_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~ScrollablePane -}
-{#fun cegui_scrlpn_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getContentPane -}
-{#fun cegui_scrlpn_getContentPane as getContentPane 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function isVertScrollbarAlwaysShown -}
-{#fun cegui_scrlpn_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setShowVertScrollbar -}
-{#fun cegui_scrlpn_setShowVertScrollbar as setShowVertScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isHorzScrollbarAlwaysShown -}
-{#fun cegui_scrlpn_isHorzScrollbarAlwaysShown as isHorzScrollbarAlwaysShown 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setShowHorzScrollbar -}
-{#fun cegui_scrlpn_setShowHorzScrollbar as setShowHorzScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isContentPaneAutoSized -}
-{#fun cegui_scrlpn_isContentPaneAutoSized as isContentPaneAutoSized 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setContentPaneAutoSized -}
-{#fun cegui_scrlpn_setContentPaneAutoSized as setContentPaneAutoSized 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function getHorizontalStepSize -}
-{#fun cegui_scrlpn_getHorizontalStepSize as getHorizontalStepSize 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setHorizontalStepSize -}
-{#fun cegui_scrlpn_setHorizontalStepSize as setHorizontalStepSize 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function getHorizontalOverlapSize -}
-{#fun cegui_scrlpn_getHorizontalOverlapSize as getHorizontalOverlapSize 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setHorizontalOverlapSize -}
-{#fun cegui_scrlpn_setHorizontalOverlapSize as setHorizontalOverlapSize 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function getHorizontalScrollPosition -}
-{#fun cegui_scrlpn_getHorizontalScrollPosition as getHorizontalScrollPosition 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setHorizontalScrollPosition -}
-{#fun cegui_scrlpn_setHorizontalScrollPosition as setHorizontalScrollPosition 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function getVerticalStepSize -}
-{#fun cegui_scrlpn_getVerticalStepSize as getVerticalStepSize 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setVerticalStepSize -}
-{#fun cegui_scrlpn_setVerticalStepSize as setVerticalStepSize 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function getVerticalOverlapSize -}
-{#fun cegui_scrlpn_getVerticalOverlapSize as getVerticalOverlapSize 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setVerticalOverlapSize -}
-{#fun cegui_scrlpn_setVerticalOverlapSize as setVerticalOverlapSize 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function getVerticalScrollPosition -}
-{#fun cegui_scrlpn_getVerticalScrollPosition as getVerticalScrollPosition 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setVerticalScrollPosition -}
-{#fun cegui_scrlpn_setVerticalScrollPosition as setVerticalScrollPosition 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function getVertScrollbar -}
-{#fun cegui_scrlpn_getVertScrollbar as getVertScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getHorzScrollbar -}
-{#fun cegui_scrlpn_getHorzScrollbar as getHorzScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function initialiseComponents -}
-{#fun cegui_scrlpn_initialiseComponents as initialiseComponents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function destroy -}
-{#fun cegui_scrlpn_destroy as destroy 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function ScrollablePane -}
+{#fun cegui_scrlpn_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~ScrollablePane -}
+{#fun cegui_scrlpn_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getContentPane -}
+{#fun cegui_scrlpn_getContentPane as getContentPane 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function isVertScrollbarAlwaysShown -}
+{#fun cegui_scrlpn_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setShowVertScrollbar -}
+{#fun cegui_scrlpn_setShowVertScrollbar as setShowVertScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isHorzScrollbarAlwaysShown -}
+{#fun cegui_scrlpn_isHorzScrollbarAlwaysShown as isHorzScrollbarAlwaysShown 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setShowHorzScrollbar -}
+{#fun cegui_scrlpn_setShowHorzScrollbar as setShowHorzScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isContentPaneAutoSized -}
+{#fun cegui_scrlpn_isContentPaneAutoSized as isContentPaneAutoSized 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setContentPaneAutoSized -}
+{#fun cegui_scrlpn_setContentPaneAutoSized as setContentPaneAutoSized 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function getHorizontalStepSize -}
+{#fun cegui_scrlpn_getHorizontalStepSize as getHorizontalStepSize 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setHorizontalStepSize -}
+{#fun cegui_scrlpn_setHorizontalStepSize as setHorizontalStepSize 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function getHorizontalOverlapSize -}
+{#fun cegui_scrlpn_getHorizontalOverlapSize as getHorizontalOverlapSize 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setHorizontalOverlapSize -}
+{#fun cegui_scrlpn_setHorizontalOverlapSize as setHorizontalOverlapSize 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function getHorizontalScrollPosition -}
+{#fun cegui_scrlpn_getHorizontalScrollPosition as getHorizontalScrollPosition 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setHorizontalScrollPosition -}
+{#fun cegui_scrlpn_setHorizontalScrollPosition as setHorizontalScrollPosition 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function getVerticalStepSize -}
+{#fun cegui_scrlpn_getVerticalStepSize as getVerticalStepSize 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setVerticalStepSize -}
+{#fun cegui_scrlpn_setVerticalStepSize as setVerticalStepSize 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function getVerticalOverlapSize -}
+{#fun cegui_scrlpn_getVerticalOverlapSize as getVerticalOverlapSize 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setVerticalOverlapSize -}
+{#fun cegui_scrlpn_setVerticalOverlapSize as setVerticalOverlapSize 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function getVerticalScrollPosition -}
+{#fun cegui_scrlpn_getVerticalScrollPosition as getVerticalScrollPosition 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setVerticalScrollPosition -}
+{#fun cegui_scrlpn_setVerticalScrollPosition as setVerticalScrollPosition 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function getVertScrollbar -}
+{#fun cegui_scrlpn_getVertScrollbar as getVertScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getHorzScrollbar -}
+{#fun cegui_scrlpn_getHorzScrollbar as getHorzScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function initialiseComponents -}
+{#fun cegui_scrlpn_initialiseComponents as initialiseComponents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function destroy -}
+{#fun cegui_scrlpn_destroy as destroy 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassScrollbar.chs b/HGamer3D/Bindings/CEGUI/ClassScrollbar.chs
--- a/HGamer3D/Bindings/CEGUI/ClassScrollbar.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassScrollbar.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassScrollbar.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassScrollbar where
 
@@ -36,97 +36,97 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassScrollbar.h"
-{- function getDocumentSize -}
-{#fun cegui_scrlbr_getDocumentSize as getDocumentSize 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getPageSize -}
-{#fun cegui_scrlbr_getPageSize as getPageSize 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getStepSize -}
-{#fun cegui_scrlbr_getStepSize as getStepSize 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getOverlapSize -}
-{#fun cegui_scrlbr_getOverlapSize as getOverlapSize 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getScrollPosition -}
-{#fun cegui_scrlbr_getScrollPosition as getScrollPosition 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getIncreaseButton -}
-{#fun cegui_scrlbr_getIncreaseButton as getIncreaseButton 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getDecreaseButton -}
-{#fun cegui_scrlbr_getDecreaseButton as getDecreaseButton 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getThumb -}
-{#fun cegui_scrlbr_getThumb as getThumb 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function initialiseComponents -}
-{#fun cegui_scrlbr_initialiseComponents as initialiseComponents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setDocumentSize -}
-{#fun cegui_scrlbr_setDocumentSize as setDocumentSize 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setPageSize -}
-{#fun cegui_scrlbr_setPageSize as setPageSize 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setStepSize -}
-{#fun cegui_scrlbr_setStepSize as setStepSize 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setOverlapSize -}
-{#fun cegui_scrlbr_setOverlapSize as setOverlapSize 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setScrollPosition -}
-{#fun cegui_scrlbr_setScrollPosition as setScrollPosition 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setEndLockEnabled -}
-{#fun cegui_scrlbr_setEndLockEnabled as setEndLockEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isEndLockEnabled -}
-{#fun cegui_scrlbr_isEndLockEnabled as isEndLockEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function Scrollbar -}
-{#fun cegui_scrlbr_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~Scrollbar -}
-{#fun cegui_scrlbr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function getDocumentSize -}
+{#fun cegui_scrlbr_getDocumentSize as getDocumentSize 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getPageSize -}
+{#fun cegui_scrlbr_getPageSize as getPageSize 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getStepSize -}
+{#fun cegui_scrlbr_getStepSize as getStepSize 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getOverlapSize -}
+{#fun cegui_scrlbr_getOverlapSize as getOverlapSize 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getScrollPosition -}
+{#fun cegui_scrlbr_getScrollPosition as getScrollPosition 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getIncreaseButton -}
+{#fun cegui_scrlbr_getIncreaseButton as getIncreaseButton 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getDecreaseButton -}
+{#fun cegui_scrlbr_getDecreaseButton as getDecreaseButton 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getThumb -}
+{#fun cegui_scrlbr_getThumb as getThumb 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function initialiseComponents -}
+{#fun cegui_scrlbr_initialiseComponents as initialiseComponents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setDocumentSize -}
+{#fun cegui_scrlbr_setDocumentSize as setDocumentSize 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setPageSize -}
+{#fun cegui_scrlbr_setPageSize as setPageSize 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setStepSize -}
+{#fun cegui_scrlbr_setStepSize as setStepSize 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setOverlapSize -}
+{#fun cegui_scrlbr_setOverlapSize as setOverlapSize 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setScrollPosition -}
+{#fun cegui_scrlbr_setScrollPosition as setScrollPosition 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setEndLockEnabled -}
+{#fun cegui_scrlbr_setEndLockEnabled as setEndLockEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isEndLockEnabled -}
+{#fun cegui_scrlbr_isEndLockEnabled as isEndLockEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function Scrollbar -}
+{#fun cegui_scrlbr_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~Scrollbar -}
+{#fun cegui_scrlbr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassScrolledContainer.chs b/HGamer3D/Bindings/CEGUI/ClassScrolledContainer.chs
--- a/HGamer3D/Bindings/CEGUI/ClassScrolledContainer.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassScrolledContainer.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassScrolledContainer.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassScrolledContainer where
 
@@ -36,28 +36,28 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassScrolledContainer.h"
-{- function ScrolledContainer -}
-{#fun cegui_scrlcnt_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~ScrolledContainer -}
-{#fun cegui_scrlcnt_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function isContentPaneAutoSized -}
-{#fun cegui_scrlcnt_isContentPaneAutoSized as isContentPaneAutoSized 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setContentPaneAutoSized -}
-{#fun cegui_scrlcnt_setContentPaneAutoSized as setContentPaneAutoSized 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
+{- function ScrolledContainer -}
+{#fun cegui_scrlcnt_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~ScrolledContainer -}
+{#fun cegui_scrlcnt_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function isContentPaneAutoSized -}
+{#fun cegui_scrlcnt_isContentPaneAutoSized as isContentPaneAutoSized 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setContentPaneAutoSized -}
+{#fun cegui_scrlcnt_setContentPaneAutoSized as setContentPaneAutoSized 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassScrolledItemListBase.chs b/HGamer3D/Bindings/CEGUI/ClassScrolledItemListBase.chs
--- a/HGamer3D/Bindings/CEGUI/ClassScrolledItemListBase.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassScrolledItemListBase.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassScrolledItemListBase.chs
 
--- abstrakte Klasse!
+-- abstrakte Klasse!
 
 module HGamer3D.Bindings.CEGUI.ClassScrolledItemListBase where
 
@@ -36,52 +36,52 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassScrolledItemListBase.h"
-{- function isVertScrollbarAlwaysShown -}
-{#fun cegui_scrlitmlstbs_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isHorzScrollbarAlwaysShown -}
-{#fun cegui_scrlitmlstbs_isHorzScrollbarAlwaysShown as isHorzScrollbarAlwaysShown 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getVertScrollbar -}
-{#fun cegui_scrlitmlstbs_getVertScrollbar as getVertScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getHorzScrollbar -}
-{#fun cegui_scrlitmlstbs_getHorzScrollbar as getHorzScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setShowVertScrollbar -}
-{#fun cegui_scrlitmlstbs_setShowVertScrollbar as setShowVertScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setShowHorzScrollbar -}
-{#fun cegui_scrlitmlstbs_setShowHorzScrollbar as setShowHorzScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function ensureItemIsVisibleVert -}
-{#fun cegui_scrlitmlstbs_ensureItemIsVisibleVert as ensureItemIsVisibleVert 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function ensureItemIsVisibleHorz -}
-{#fun cegui_scrlitmlstbs_ensureItemIsVisibleHorz as ensureItemIsVisibleHorz 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function initialiseComponents -}
-{#fun cegui_scrlitmlstbs_initialiseComponents as initialiseComponents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function isVertScrollbarAlwaysShown -}
+{#fun cegui_scrlitmlstbs_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isHorzScrollbarAlwaysShown -}
+{#fun cegui_scrlitmlstbs_isHorzScrollbarAlwaysShown as isHorzScrollbarAlwaysShown 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getVertScrollbar -}
+{#fun cegui_scrlitmlstbs_getVertScrollbar as getVertScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getHorzScrollbar -}
+{#fun cegui_scrlitmlstbs_getHorzScrollbar as getHorzScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setShowVertScrollbar -}
+{#fun cegui_scrlitmlstbs_setShowVertScrollbar as setShowVertScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setShowHorzScrollbar -}
+{#fun cegui_scrlitmlstbs_setShowHorzScrollbar as setShowHorzScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function ensureItemIsVisibleVert -}
+{#fun cegui_scrlitmlstbs_ensureItemIsVisibleVert as ensureItemIsVisibleVert 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function ensureItemIsVisibleHorz -}
+{#fun cegui_scrlitmlstbs_ensureItemIsVisibleHorz as ensureItemIsVisibleHorz 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function initialiseComponents -}
+{#fun cegui_scrlitmlstbs_initialiseComponents as initialiseComponents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassSlider.chs b/HGamer3D/Bindings/CEGUI/ClassSlider.chs
--- a/HGamer3D/Bindings/CEGUI/ClassSlider.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassSlider.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassSlider.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassSlider where
 
@@ -36,57 +36,57 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassSlider.h"
-{- function getCurrentValue -}
-{#fun cegui_sldr_getCurrentValue as getCurrentValue 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getMaxValue -}
-{#fun cegui_sldr_getMaxValue as getMaxValue 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getClickStep -}
-{#fun cegui_sldr_getClickStep as getClickStep 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getThumb -}
-{#fun cegui_sldr_getThumb as getThumb 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function initialiseComponents -}
-{#fun cegui_sldr_initialiseComponents as initialiseComponents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setMaxValue -}
-{#fun cegui_sldr_setMaxValue as setMaxValue 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setCurrentValue -}
-{#fun cegui_sldr_setCurrentValue as setCurrentValue 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setClickStep -}
-{#fun cegui_sldr_setClickStep as setClickStep 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function Slider -}
-{#fun cegui_sldr_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~Slider -}
-{#fun cegui_sldr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function getCurrentValue -}
+{#fun cegui_sldr_getCurrentValue as getCurrentValue 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getMaxValue -}
+{#fun cegui_sldr_getMaxValue as getMaxValue 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getClickStep -}
+{#fun cegui_sldr_getClickStep as getClickStep 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getThumb -}
+{#fun cegui_sldr_getThumb as getThumb 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function initialiseComponents -}
+{#fun cegui_sldr_initialiseComponents as initialiseComponents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setMaxValue -}
+{#fun cegui_sldr_setMaxValue as setMaxValue 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setCurrentValue -}
+{#fun cegui_sldr_setCurrentValue as setCurrentValue 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setClickStep -}
+{#fun cegui_sldr_setClickStep as setClickStep 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function Slider -}
+{#fun cegui_sldr_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~Slider -}
+{#fun cegui_sldr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassSpinner.chs b/HGamer3D/Bindings/CEGUI/ClassSpinner.chs
--- a/HGamer3D/Bindings/CEGUI/ClassSpinner.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassSpinner.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassSpinner.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassSpinner where
 
@@ -36,73 +36,73 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
-{# import HGamer3D.Bindings.CEGUI.EnumTextInputMode #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.EnumTextInputMode #}
 
 #include "ClassSpinner.h"
-{- function Spinner -}
-{#fun cegui_spnnr_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~Spinner -}
-{#fun cegui_spnnr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function initialiseComponents -}
-{#fun cegui_spnnr_initialiseComponents as initialiseComponents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getCurrentValue -}
-{#fun cegui_spnnr_getCurrentValue as getCurrentValue 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Double' peekFloatConv*} -> `()'  #}
-
-{- function getStepSize -}
-{#fun cegui_spnnr_getStepSize as getStepSize 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Double' peekFloatConv*} -> `()'  #}
-
-{- function getMaximumValue -}
-{#fun cegui_spnnr_getMaximumValue as getMaximumValue 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Double' peekFloatConv*} -> `()'  #}
-
-{- function getMinimumValue -}
-{#fun cegui_spnnr_getMinimumValue as getMinimumValue 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Double' peekFloatConv*} -> `()'  #}
-
-{- function getTextInputMode -}
-{#fun cegui_spnnr_getTextInputMode as getTextInputMode 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `EnumTextInputMode' peekEnumUtil*} -> `()'  #}
-
-{- function setCurrentValue -}
-{#fun cegui_spnnr_setCurrentValue as setCurrentValue 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Double' } -> `()'  #}
-
-{- function setStepSize -}
-{#fun cegui_spnnr_setStepSize as setStepSize 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Double' } -> `()'  #}
-
-{- function setMaximumValue -}
-{#fun cegui_spnnr_setMaximumValue as setMaximumValue 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Double' } -> `()'  #}
-
-{- function setMinimumValue -}
-{#fun cegui_spnnr_setMinimumValue as setMinimumValue 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Double' } -> `()'  #}
-
-{- function setTextInputMode -}
-{#fun cegui_spnnr_setTextInputMode as setTextInputMode 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumTextInputMode' } -> `()'  #}
-
+{- function Spinner -}
+{#fun cegui_spnnr_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~Spinner -}
+{#fun cegui_spnnr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function initialiseComponents -}
+{#fun cegui_spnnr_initialiseComponents as initialiseComponents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getCurrentValue -}
+{#fun cegui_spnnr_getCurrentValue as getCurrentValue 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Double' peekFloatConv*} -> `()'  #}
+
+{- function getStepSize -}
+{#fun cegui_spnnr_getStepSize as getStepSize 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Double' peekFloatConv*} -> `()'  #}
+
+{- function getMaximumValue -}
+{#fun cegui_spnnr_getMaximumValue as getMaximumValue 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Double' peekFloatConv*} -> `()'  #}
+
+{- function getMinimumValue -}
+{#fun cegui_spnnr_getMinimumValue as getMinimumValue 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Double' peekFloatConv*} -> `()'  #}
+
+{- function getTextInputMode -}
+{#fun cegui_spnnr_getTextInputMode as getTextInputMode 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `EnumTextInputMode' peekEnumUtil*} -> `()'  #}
+
+{- function setCurrentValue -}
+{#fun cegui_spnnr_setCurrentValue as setCurrentValue 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Double' } -> `()'  #}
+
+{- function setStepSize -}
+{#fun cegui_spnnr_setStepSize as setStepSize 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Double' } -> `()'  #}
+
+{- function setMaximumValue -}
+{#fun cegui_spnnr_setMaximumValue as setMaximumValue 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Double' } -> `()'  #}
+
+{- function setMinimumValue -}
+{#fun cegui_spnnr_setMinimumValue as setMinimumValue 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Double' } -> `()'  #}
+
+{- function setTextInputMode -}
+{#fun cegui_spnnr_setTextInputMode as setTextInputMode 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumTextInputMode' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassSystem.chs b/HGamer3D/Bindings/CEGUI/ClassSystem.chs
--- a/HGamer3D/Bindings/CEGUI/ClassSystem.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassSystem.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassSystem.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassSystem where
 
@@ -36,328 +36,328 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
-{# import HGamer3D.Bindings.CEGUI.EnumMouseButton #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.EnumMouseButton #}
 
 #include "ClassSystem.h"
-{- function create -}
-{#fun cegui_sstm_create as create 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function destroy -}
-{#fun cegui_sstm_destroy as destroy 
-{ } -> `()'  #}
-
-{- function getSingleton -}
-{#fun cegui_sstm_getSingleton as getSingleton 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getSingletonPtr -}
-{#fun cegui_sstm_getSingletonPtr as getSingletonPtr 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setDefaultXMLParserName -}
-{#fun cegui_sstm_setDefaultXMLParserName as setDefaultXMLParserName 
-{ withCString* `String' } -> `()'  #}
-
-{- function getDefaultXMLParserName -}
-{#fun cegui_sstm_getDefaultXMLParserName as getDefaultXMLParserName 
-{ alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function setDefaultImageCodecName -}
-{#fun cegui_sstm_setDefaultImageCodecName as setDefaultImageCodecName 
-{ withCString* `String' } -> `()'  #}
-
-{- function getDefaultImageCodecName -}
-{#fun cegui_sstm_getDefaultImageCodecName as getDefaultImageCodecName 
-{ alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getRenderer -}
-{#fun cegui_sstm_getRenderer as getRenderer 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setDefaultFont -}
-{#fun cegui_sstm_setDefaultFont as setDefaultFont 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function setDefaultFont2 -}
-{#fun cegui_sstm_setDefaultFont2 as setDefaultFont2 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getDefaultFont -}
-{#fun cegui_sstm_getDefaultFont as getDefaultFont 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function signalRedraw -}
-{#fun cegui_sstm_signalRedraw as signalRedraw 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function isRedrawRequested -}
-{#fun cegui_sstm_isRedrawRequested as isRedrawRequested 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function renderGUI -}
-{#fun cegui_sstm_renderGUI as renderGUI 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setGUISheet -}
-{#fun cegui_sstm_setGUISheet as setGUISheet 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getGUISheet -}
-{#fun cegui_sstm_getGUISheet as getGUISheet 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getSingleClickTimeout -}
-{#fun cegui_sstm_getSingleClickTimeout as getSingleClickTimeout 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Double' peekFloatConv*} -> `()'  #}
-
-{- function getMultiClickTimeout -}
-{#fun cegui_sstm_getMultiClickTimeout as getMultiClickTimeout 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Double' peekFloatConv*} -> `()'  #}
-
-{- function setSingleClickTimeout -}
-{#fun cegui_sstm_setSingleClickTimeout as setSingleClickTimeout 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Double' } -> `()'  #}
-
-{- function setMultiClickTimeout -}
-{#fun cegui_sstm_setMultiClickTimeout as setMultiClickTimeout 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Double' } -> `()'  #}
-
-{- function isMouseClickEventGenerationEnabled -}
-{#fun cegui_sstm_isMouseClickEventGenerationEnabled as isMouseClickEventGenerationEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setMouseClickEventGenerationEnabled -}
-{#fun cegui_sstm_setMouseClickEventGenerationEnabled as setMouseClickEventGenerationEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setDefaultMouseCursor3 -}
-{#fun cegui_sstm_setDefaultMouseCursor3 as setDefaultMouseCursor3 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function getWindowContainingMouse -}
-{#fun cegui_sstm_getWindowContainingMouse as getWindowContainingMouse 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getScriptingModule -}
-{#fun cegui_sstm_getScriptingModule as getScriptingModule 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setScriptingModule -}
-{#fun cegui_sstm_setScriptingModule as setScriptingModule 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getResourceProvider -}
-{#fun cegui_sstm_getResourceProvider as getResourceProvider 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function executeScriptFile -}
-{#fun cegui_sstm_executeScriptFile as executeScriptFile 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function executeScriptGlobal -}
-{#fun cegui_sstm_executeScriptGlobal as executeScriptGlobal 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function executeScriptString -}
-{#fun cegui_sstm_executeScriptString as executeScriptString 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function getMouseMoveScaling -}
-{#fun cegui_sstm_getMouseMoveScaling as getMouseMoveScaling 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setMouseMoveScaling -}
-{#fun cegui_sstm_setMouseMoveScaling as setMouseMoveScaling 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function notifyWindowDestroyed -}
-{#fun cegui_sstm_notifyWindowDestroyed as notifyWindowDestroyed 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getSystemKeys -}
-{#fun cegui_sstm_getSystemKeys as getSystemKeys 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function setXMLParser -}
-{#fun cegui_sstm_setXMLParser as setXMLParser 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function setXMLParser2 -}
-{#fun cegui_sstm_setXMLParser2 as setXMLParser2 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getXMLParser -}
-{#fun cegui_sstm_getXMLParser as getXMLParser 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setDefaultTooltip -}
-{#fun cegui_sstm_setDefaultTooltip as setDefaultTooltip 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setDefaultTooltip2 -}
-{#fun cegui_sstm_setDefaultTooltip2 as setDefaultTooltip2 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function getDefaultTooltip -}
-{#fun cegui_sstm_getDefaultTooltip as getDefaultTooltip 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setModalTarget -}
-{#fun cegui_sstm_setModalTarget as setModalTarget 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getModalTarget -}
-{#fun cegui_sstm_getModalTarget as getModalTarget 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function updateWindowContainingMouse -}
-{#fun cegui_sstm_updateWindowContainingMouse as updateWindowContainingMouse 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getImageCodec -}
-{#fun cegui_sstm_getImageCodec as getImageCodec 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function setImageCodec -}
-{#fun cegui_sstm_setImageCodec as setImageCodec 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function setImageCodec2 -}
-{#fun cegui_sstm_setImageCodec2 as setImageCodec2 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function invalidateAllCachedRendering -}
-{#fun cegui_sstm_invalidateAllCachedRendering as invalidateAllCachedRendering 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function injectMouseMove -}
-{#fun cegui_sstm_injectMouseMove as injectMouseMove 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' ,
- realToFrac `Float' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function injectMouseLeaves -}
-{#fun cegui_sstm_injectMouseLeaves as injectMouseLeaves 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function injectMouseButtonDown -}
-{#fun cegui_sstm_injectMouseButtonDown as injectMouseButtonDown 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumMouseButton' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function injectMouseButtonUp -}
-{#fun cegui_sstm_injectMouseButtonUp as injectMouseButtonUp 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumMouseButton' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function injectKeyDown -}
-{#fun cegui_sstm_injectKeyDown as injectKeyDown 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function injectKeyUp -}
-{#fun cegui_sstm_injectKeyUp as injectKeyUp 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function injectChar -}
-{#fun cegui_sstm_injectChar as injectChar 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function injectMouseWheelChange -}
-{#fun cegui_sstm_injectMouseWheelChange as injectMouseWheelChange 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function injectMousePosition -}
-{#fun cegui_sstm_injectMousePosition as injectMousePosition 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' ,
- realToFrac `Float' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function injectTimePulse -}
-{#fun cegui_sstm_injectTimePulse as injectTimePulse 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function injectMouseButtonClick -}
-{#fun cegui_sstm_injectMouseButtonClick as injectMouseButtonClick 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumMouseButton' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function injectMouseButtonDoubleClick -}
-{#fun cegui_sstm_injectMouseButtonDoubleClick as injectMouseButtonDoubleClick 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumMouseButton' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function injectMouseButtonTripleClick -}
-{#fun cegui_sstm_injectMouseButtonTripleClick as injectMouseButtonTripleClick 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumMouseButton' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
+{- function create -}
+{#fun cegui_sstm_create as create 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function destroy -}
+{#fun cegui_sstm_destroy as destroy 
+{ } -> `()'  #}
+
+{- function getSingleton -}
+{#fun cegui_sstm_getSingleton as getSingleton 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getSingletonPtr -}
+{#fun cegui_sstm_getSingletonPtr as getSingletonPtr 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setDefaultXMLParserName -}
+{#fun cegui_sstm_setDefaultXMLParserName as setDefaultXMLParserName 
+{ withCString* `String' } -> `()'  #}
+
+{- function getDefaultXMLParserName -}
+{#fun cegui_sstm_getDefaultXMLParserName as getDefaultXMLParserName 
+{ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function setDefaultImageCodecName -}
+{#fun cegui_sstm_setDefaultImageCodecName as setDefaultImageCodecName 
+{ withCString* `String' } -> `()'  #}
+
+{- function getDefaultImageCodecName -}
+{#fun cegui_sstm_getDefaultImageCodecName as getDefaultImageCodecName 
+{ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getRenderer -}
+{#fun cegui_sstm_getRenderer as getRenderer 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setDefaultFont -}
+{#fun cegui_sstm_setDefaultFont as setDefaultFont 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setDefaultFont2 -}
+{#fun cegui_sstm_setDefaultFont2 as setDefaultFont2 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getDefaultFont -}
+{#fun cegui_sstm_getDefaultFont as getDefaultFont 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function signalRedraw -}
+{#fun cegui_sstm_signalRedraw as signalRedraw 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function isRedrawRequested -}
+{#fun cegui_sstm_isRedrawRequested as isRedrawRequested 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function renderGUI -}
+{#fun cegui_sstm_renderGUI as renderGUI 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setGUISheet -}
+{#fun cegui_sstm_setGUISheet as setGUISheet 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getGUISheet -}
+{#fun cegui_sstm_getGUISheet as getGUISheet 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getSingleClickTimeout -}
+{#fun cegui_sstm_getSingleClickTimeout as getSingleClickTimeout 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Double' peekFloatConv*} -> `()'  #}
+
+{- function getMultiClickTimeout -}
+{#fun cegui_sstm_getMultiClickTimeout as getMultiClickTimeout 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Double' peekFloatConv*} -> `()'  #}
+
+{- function setSingleClickTimeout -}
+{#fun cegui_sstm_setSingleClickTimeout as setSingleClickTimeout 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Double' } -> `()'  #}
+
+{- function setMultiClickTimeout -}
+{#fun cegui_sstm_setMultiClickTimeout as setMultiClickTimeout 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Double' } -> `()'  #}
+
+{- function isMouseClickEventGenerationEnabled -}
+{#fun cegui_sstm_isMouseClickEventGenerationEnabled as isMouseClickEventGenerationEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setMouseClickEventGenerationEnabled -}
+{#fun cegui_sstm_setMouseClickEventGenerationEnabled as setMouseClickEventGenerationEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setDefaultMouseCursor3 -}
+{#fun cegui_sstm_setDefaultMouseCursor3 as setDefaultMouseCursor3 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function getWindowContainingMouse -}
+{#fun cegui_sstm_getWindowContainingMouse as getWindowContainingMouse 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getScriptingModule -}
+{#fun cegui_sstm_getScriptingModule as getScriptingModule 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setScriptingModule -}
+{#fun cegui_sstm_setScriptingModule as setScriptingModule 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getResourceProvider -}
+{#fun cegui_sstm_getResourceProvider as getResourceProvider 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function executeScriptFile -}
+{#fun cegui_sstm_executeScriptFile as executeScriptFile 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function executeScriptGlobal -}
+{#fun cegui_sstm_executeScriptGlobal as executeScriptGlobal 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function executeScriptString -}
+{#fun cegui_sstm_executeScriptString as executeScriptString 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function getMouseMoveScaling -}
+{#fun cegui_sstm_getMouseMoveScaling as getMouseMoveScaling 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setMouseMoveScaling -}
+{#fun cegui_sstm_setMouseMoveScaling as setMouseMoveScaling 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function notifyWindowDestroyed -}
+{#fun cegui_sstm_notifyWindowDestroyed as notifyWindowDestroyed 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getSystemKeys -}
+{#fun cegui_sstm_getSystemKeys as getSystemKeys 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function setXMLParser -}
+{#fun cegui_sstm_setXMLParser as setXMLParser 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setXMLParser2 -}
+{#fun cegui_sstm_setXMLParser2 as setXMLParser2 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getXMLParser -}
+{#fun cegui_sstm_getXMLParser as getXMLParser 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setDefaultTooltip -}
+{#fun cegui_sstm_setDefaultTooltip as setDefaultTooltip 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setDefaultTooltip2 -}
+{#fun cegui_sstm_setDefaultTooltip2 as setDefaultTooltip2 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function getDefaultTooltip -}
+{#fun cegui_sstm_getDefaultTooltip as getDefaultTooltip 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setModalTarget -}
+{#fun cegui_sstm_setModalTarget as setModalTarget 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getModalTarget -}
+{#fun cegui_sstm_getModalTarget as getModalTarget 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function updateWindowContainingMouse -}
+{#fun cegui_sstm_updateWindowContainingMouse as updateWindowContainingMouse 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getImageCodec -}
+{#fun cegui_sstm_getImageCodec as getImageCodec 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function setImageCodec -}
+{#fun cegui_sstm_setImageCodec as setImageCodec 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setImageCodec2 -}
+{#fun cegui_sstm_setImageCodec2 as setImageCodec2 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function invalidateAllCachedRendering -}
+{#fun cegui_sstm_invalidateAllCachedRendering as invalidateAllCachedRendering 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function injectMouseMove -}
+{#fun cegui_sstm_injectMouseMove as injectMouseMove 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' ,
+ realToFrac `Float' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function injectMouseLeaves -}
+{#fun cegui_sstm_injectMouseLeaves as injectMouseLeaves 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function injectMouseButtonDown -}
+{#fun cegui_sstm_injectMouseButtonDown as injectMouseButtonDown 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumMouseButton' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function injectMouseButtonUp -}
+{#fun cegui_sstm_injectMouseButtonUp as injectMouseButtonUp 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumMouseButton' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function injectKeyDown -}
+{#fun cegui_sstm_injectKeyDown as injectKeyDown 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function injectKeyUp -}
+{#fun cegui_sstm_injectKeyUp as injectKeyUp 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function injectChar -}
+{#fun cegui_sstm_injectChar as injectChar 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function injectMouseWheelChange -}
+{#fun cegui_sstm_injectMouseWheelChange as injectMouseWheelChange 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function injectMousePosition -}
+{#fun cegui_sstm_injectMousePosition as injectMousePosition 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' ,
+ realToFrac `Float' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function injectTimePulse -}
+{#fun cegui_sstm_injectTimePulse as injectTimePulse 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function injectMouseButtonClick -}
+{#fun cegui_sstm_injectMouseButtonClick as injectMouseButtonClick 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumMouseButton' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function injectMouseButtonDoubleClick -}
+{#fun cegui_sstm_injectMouseButtonDoubleClick as injectMouseButtonDoubleClick 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumMouseButton' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function injectMouseButtonTripleClick -}
+{#fun cegui_sstm_injectMouseButtonTripleClick as injectMouseButtonTripleClick 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumMouseButton' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassSystemHG3D.chs b/HGamer3D/Bindings/CEGUI/ClassSystemHG3D.chs
--- a/HGamer3D/Bindings/CEGUI/ClassSystemHG3D.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassSystemHG3D.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassSystemHG3D.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassSystemHG3D where
 
@@ -36,39 +36,39 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassSystemHG3D.h"
-{- function createNoLogger -}
-{#fun cegui_sstm_hg3d_createNoLogger as createNoLogger 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getDefaultResourceProvider -}
-{#fun cegui_sstm_hg3d_getDefaultResourceProvider as getDefaultResourceProvider 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getSchemeManagerSingleton -}
-{#fun cegui_sstm_hg3d_getSchemeManagerSingleton as getSchemeManagerSingleton 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function schemeManagerCreate -}
-{#fun cegui_sstm_hg3d_schemeManagerCreate as schemeManagerCreate 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function fontManagerCreate -}
-{#fun cegui_sstm_hg3d_fontManagerCreate as fontManagerCreate 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function getFontManagerSingleton -}
-{#fun cegui_sstm_hg3d_getFontManagerSingleton as getFontManagerSingleton 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getLoggerSingleton -}
-{#fun cegui_sstm_hg3d_getLoggerSingleton as getLoggerSingleton 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
+{- function createNoLogger -}
+{#fun cegui_sstm_hg3d_createNoLogger as createNoLogger 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getDefaultResourceProvider -}
+{#fun cegui_sstm_hg3d_getDefaultResourceProvider as getDefaultResourceProvider 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getSchemeManagerSingleton -}
+{#fun cegui_sstm_hg3d_getSchemeManagerSingleton as getSchemeManagerSingleton 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function schemeManagerCreate -}
+{#fun cegui_sstm_hg3d_schemeManagerCreate as schemeManagerCreate 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function fontManagerCreate -}
+{#fun cegui_sstm_hg3d_fontManagerCreate as fontManagerCreate 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function getFontManagerSingleton -}
+{#fun cegui_sstm_hg3d_getFontManagerSingleton as getFontManagerSingleton 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getLoggerSingleton -}
+{#fun cegui_sstm_hg3d_getLoggerSingleton as getLoggerSingleton 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassTabButton.chs b/HGamer3D/Bindings/CEGUI/ClassTabButton.chs
--- a/HGamer3D/Bindings/CEGUI/ClassTabButton.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassTabButton.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassTabButton.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassTabButton where
 
@@ -36,38 +36,38 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassTabButton.h"
-{- function TabButton -}
-{#fun cegui_tbbtn_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~TabButton -}
-{#fun cegui_tbbtn_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setSelected -}
-{#fun cegui_tbbtn_setSelected as setSelected 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isSelected -}
-{#fun cegui_tbbtn_isSelected as isSelected 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setTargetWindow -}
-{#fun cegui_tbbtn_setTargetWindow as setTargetWindow 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getTargetWindow -}
-{#fun cegui_tbbtn_getTargetWindow as getTargetWindow 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
+{- function TabButton -}
+{#fun cegui_tbbtn_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~TabButton -}
+{#fun cegui_tbbtn_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setSelected -}
+{#fun cegui_tbbtn_setSelected as setSelected 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isSelected -}
+{#fun cegui_tbbtn_isSelected as isSelected 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setTargetWindow -}
+{#fun cegui_tbbtn_setTargetWindow as setTargetWindow 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getTargetWindow -}
+{#fun cegui_tbbtn_getTargetWindow as getTargetWindow 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassThumb.chs b/HGamer3D/Bindings/CEGUI/ClassThumb.chs
--- a/HGamer3D/Bindings/CEGUI/ClassThumb.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassThumb.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassThumb.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassThumb where
 
@@ -36,60 +36,60 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassThumb.h"
-{- function isHotTracked -}
-{#fun cegui_thmb_isHotTracked as isHotTracked 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isVertFree -}
-{#fun cegui_thmb_isVertFree as isVertFree 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isHorzFree -}
-{#fun cegui_thmb_isHorzFree as isHorzFree 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setHotTracked -}
-{#fun cegui_thmb_setHotTracked as setHotTracked 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setVertFree -}
-{#fun cegui_thmb_setVertFree as setVertFree 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setHorzFree -}
-{#fun cegui_thmb_setHorzFree as setHorzFree 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setVertRange -}
-{#fun cegui_thmb_setVertRange as setVertRange 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setHorzRange -}
-{#fun cegui_thmb_setHorzRange as setHorzRange 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function Thumb -}
-{#fun cegui_thmb_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~Thumb -}
-{#fun cegui_thmb_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function isHotTracked -}
+{#fun cegui_thmb_isHotTracked as isHotTracked 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isVertFree -}
+{#fun cegui_thmb_isVertFree as isVertFree 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isHorzFree -}
+{#fun cegui_thmb_isHorzFree as isHorzFree 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setHotTracked -}
+{#fun cegui_thmb_setHotTracked as setHotTracked 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setVertFree -}
+{#fun cegui_thmb_setVertFree as setVertFree 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setHorzFree -}
+{#fun cegui_thmb_setHorzFree as setHorzFree 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setVertRange -}
+{#fun cegui_thmb_setVertRange as setVertRange 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setHorzRange -}
+{#fun cegui_thmb_setHorzRange as setHorzRange 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function Thumb -}
+{#fun cegui_thmb_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~Thumb -}
+{#fun cegui_thmb_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassTooltip.chs b/HGamer3D/Bindings/CEGUI/ClassTooltip.chs
--- a/HGamer3D/Bindings/CEGUI/ClassTooltip.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassTooltip.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassTooltip.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassTooltip where
 
@@ -36,70 +36,70 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassTooltip.h"
-{- function Tooltip -}
-{#fun cegui_tltp_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~Tooltip -}
-{#fun cegui_tltp_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setTargetWindow -}
-{#fun cegui_tltp_setTargetWindow as setTargetWindow 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getTargetWindow -}
-{#fun cegui_tltp_getTargetWindow as getTargetWindow 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function resetTimer -}
-{#fun cegui_tltp_resetTimer as resetTimer 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getHoverTime -}
-{#fun cegui_tltp_getHoverTime as getHoverTime 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setDisplayTime -}
-{#fun cegui_tltp_setDisplayTime as setDisplayTime 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function getFadeTime -}
-{#fun cegui_tltp_getFadeTime as getFadeTime 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setHoverTime -}
-{#fun cegui_tltp_setHoverTime as setHoverTime 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function getDisplayTime -}
-{#fun cegui_tltp_getDisplayTime as getDisplayTime 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function setFadeTime -}
-{#fun cegui_tltp_setFadeTime as setFadeTime 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function positionSelf -}
-{#fun cegui_tltp_positionSelf as positionSelf 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function sizeSelf -}
-{#fun cegui_tltp_sizeSelf as sizeSelf 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function Tooltip -}
+{#fun cegui_tltp_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~Tooltip -}
+{#fun cegui_tltp_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setTargetWindow -}
+{#fun cegui_tltp_setTargetWindow as setTargetWindow 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getTargetWindow -}
+{#fun cegui_tltp_getTargetWindow as getTargetWindow 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function resetTimer -}
+{#fun cegui_tltp_resetTimer as resetTimer 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getHoverTime -}
+{#fun cegui_tltp_getHoverTime as getHoverTime 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setDisplayTime -}
+{#fun cegui_tltp_setDisplayTime as setDisplayTime 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function getFadeTime -}
+{#fun cegui_tltp_getFadeTime as getFadeTime 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setHoverTime -}
+{#fun cegui_tltp_setHoverTime as setHoverTime 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function getDisplayTime -}
+{#fun cegui_tltp_getDisplayTime as getDisplayTime 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function setFadeTime -}
+{#fun cegui_tltp_setFadeTime as setFadeTime 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function positionSelf -}
+{#fun cegui_tltp_positionSelf as positionSelf 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function sizeSelf -}
+{#fun cegui_tltp_sizeSelf as sizeSelf 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassTree.chs b/HGamer3D/Bindings/CEGUI/ClassTree.chs
--- a/HGamer3D/Bindings/CEGUI/ClassTree.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassTree.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassTree.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassTree where
 
@@ -36,123 +36,123 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassTree.h"
-{- function doTreeRender -}
-{#fun cegui_tree_doTreeRender as doTreeRender 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function doScrollbars -}
-{#fun cegui_tree_doScrollbars as doScrollbars 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getItemCount -}
-{#fun cegui_tree_getItemCount as getItemCount 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getSelectedCount -}
-{#fun cegui_tree_getSelectedCount as getSelectedCount 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function isSortEnabled -}
-{#fun cegui_tree_isSortEnabled as isSortEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getVertScrollbar -}
-{#fun cegui_tree_getVertScrollbar as getVertScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getHorzScrollbar -}
-{#fun cegui_tree_getHorzScrollbar as getHorzScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function isMultiselectEnabled -}
-{#fun cegui_tree_isMultiselectEnabled as isMultiselectEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isItemTooltipsEnabled -}
-{#fun cegui_tree_isItemTooltipsEnabled as isItemTooltipsEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isVertScrollbarAlwaysShown -}
-{#fun cegui_tree_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isHorzScrollbarAlwaysShown -}
-{#fun cegui_tree_isHorzScrollbarAlwaysShown as isHorzScrollbarAlwaysShown 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function initialise -}
-{#fun cegui_tree_initialise as initialise 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function resetList -}
-{#fun cegui_tree_resetList as resetList 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function clearAllSelections -}
-{#fun cegui_tree_clearAllSelections as clearAllSelections 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setSortingEnabled -}
-{#fun cegui_tree_setSortingEnabled as setSortingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setMultiselectEnabled -}
-{#fun cegui_tree_setMultiselectEnabled as setMultiselectEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setShowVertScrollbar -}
-{#fun cegui_tree_setShowVertScrollbar as setShowVertScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setShowHorzScrollbar -}
-{#fun cegui_tree_setShowHorzScrollbar as setShowHorzScrollbar 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setItemTooltipsEnabled -}
-{#fun cegui_tree_setItemTooltipsEnabled as setItemTooltipsEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setItemSelectState2 -}
-{#fun cegui_tree_setItemSelectState2 as setItemSelectState2 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setLookNFeel -}
-{#fun cegui_tree_setLookNFeel as setLookNFeel 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function handleUpdatedItemData -}
-{#fun cegui_tree_handleUpdatedItemData as handleUpdatedItemData 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function Tree -}
-{#fun cegui_tree_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~Tree -}
-{#fun cegui_tree_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function doTreeRender -}
+{#fun cegui_tree_doTreeRender as doTreeRender 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function doScrollbars -}
+{#fun cegui_tree_doScrollbars as doScrollbars 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getItemCount -}
+{#fun cegui_tree_getItemCount as getItemCount 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getSelectedCount -}
+{#fun cegui_tree_getSelectedCount as getSelectedCount 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function isSortEnabled -}
+{#fun cegui_tree_isSortEnabled as isSortEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getVertScrollbar -}
+{#fun cegui_tree_getVertScrollbar as getVertScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getHorzScrollbar -}
+{#fun cegui_tree_getHorzScrollbar as getHorzScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function isMultiselectEnabled -}
+{#fun cegui_tree_isMultiselectEnabled as isMultiselectEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isItemTooltipsEnabled -}
+{#fun cegui_tree_isItemTooltipsEnabled as isItemTooltipsEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isVertScrollbarAlwaysShown -}
+{#fun cegui_tree_isVertScrollbarAlwaysShown as isVertScrollbarAlwaysShown 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isHorzScrollbarAlwaysShown -}
+{#fun cegui_tree_isHorzScrollbarAlwaysShown as isHorzScrollbarAlwaysShown 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function initialise -}
+{#fun cegui_tree_initialise as initialise 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function resetList -}
+{#fun cegui_tree_resetList as resetList 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function clearAllSelections -}
+{#fun cegui_tree_clearAllSelections as clearAllSelections 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setSortingEnabled -}
+{#fun cegui_tree_setSortingEnabled as setSortingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setMultiselectEnabled -}
+{#fun cegui_tree_setMultiselectEnabled as setMultiselectEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setShowVertScrollbar -}
+{#fun cegui_tree_setShowVertScrollbar as setShowVertScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setShowHorzScrollbar -}
+{#fun cegui_tree_setShowHorzScrollbar as setShowHorzScrollbar 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setItemTooltipsEnabled -}
+{#fun cegui_tree_setItemTooltipsEnabled as setItemTooltipsEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setItemSelectState2 -}
+{#fun cegui_tree_setItemSelectState2 as setItemSelectState2 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setLookNFeel -}
+{#fun cegui_tree_setLookNFeel as setLookNFeel 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function handleUpdatedItemData -}
+{#fun cegui_tree_handleUpdatedItemData as handleUpdatedItemData 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function Tree -}
+{#fun cegui_tree_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~Tree -}
+{#fun cegui_tree_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassUDim.chs b/HGamer3D/Bindings/CEGUI/ClassUDim.chs
--- a/HGamer3D/Bindings/CEGUI/ClassUDim.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassUDim.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassUDim.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassUDim where
 
@@ -36,30 +36,30 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassUDim.h"
-{- function UDim2 -}
-{#fun cegui_udim_construct as new 
-{ realToFrac `Float' ,
- realToFrac `Float' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~UDim -}
-{#fun cegui_udim_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function asAbsolute -}
-{#fun cegui_udim_asAbsolute as asAbsolute 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function asRelative -}
-{#fun cegui_udim_asRelative as asRelative 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
+{- function UDim2 -}
+{#fun cegui_udim_construct as new 
+{ realToFrac `Float' ,
+ realToFrac `Float' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~UDim -}
+{#fun cegui_udim_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function asAbsolute -}
+{#fun cegui_udim_asAbsolute as asAbsolute 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function asRelative -}
+{#fun cegui_udim_asRelative as asRelative 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassUVector2.chs b/HGamer3D/Bindings/CEGUI/ClassUVector2.chs
--- a/HGamer3D/Bindings/CEGUI/ClassUVector2.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassUVector2.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassUVector2.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassUVector2 where
 
@@ -36,18 +36,18 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassUVector2.h"
-{- function UVector22 -}
-{#fun cegui_uv2_construct as new 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~UVector2 -}
-{#fun cegui_uv2_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
+{- function UVector22 -}
+{#fun cegui_uv2_construct as new 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~UVector2 -}
+{#fun cegui_uv2_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassWidgetLookManager.chs b/HGamer3D/Bindings/CEGUI/ClassWidgetLookManager.chs
--- a/HGamer3D/Bindings/CEGUI/ClassWidgetLookManager.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassWidgetLookManager.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassWidgetLookManager.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassWidgetLookManager where
 
@@ -36,49 +36,49 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassWidgetLookManager.h"
-{- function WidgetLookManager -}
-{#fun cegui_wdgtlmgr_construct as new 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~WidgetLookManager -}
-{#fun cegui_wdgtlmgr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function parseLookNFeelSpecification -}
-{#fun cegui_wdgtlmgr_parseLookNFeelSpecification as parseLookNFeelSpecification 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function isWidgetLookAvailable -}
-{#fun cegui_wdgtlmgr_isWidgetLookAvailable as isWidgetLookAvailable 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function eraseWidgetLook -}
-{#fun cegui_wdgtlmgr_eraseWidgetLook as eraseWidgetLook 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function getSingleton -}
-{#fun cegui_wdgtlmgr_getSingleton as getSingleton 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getSingletonPtr -}
-{#fun cegui_wdgtlmgr_getSingletonPtr as getSingletonPtr 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getDefaultResourceGroup -}
-{#fun cegui_wdgtlmgr_getDefaultResourceGroup as getDefaultResourceGroup 
-{ alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function setDefaultResourceGroup -}
-{#fun cegui_wdgtlmgr_setDefaultResourceGroup as setDefaultResourceGroup 
-{ withCString* `String' } -> `()'  #}
-
+{- function WidgetLookManager -}
+{#fun cegui_wdgtlmgr_construct as new 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~WidgetLookManager -}
+{#fun cegui_wdgtlmgr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function parseLookNFeelSpecification -}
+{#fun cegui_wdgtlmgr_parseLookNFeelSpecification as parseLookNFeelSpecification 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function isWidgetLookAvailable -}
+{#fun cegui_wdgtlmgr_isWidgetLookAvailable as isWidgetLookAvailable 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function eraseWidgetLook -}
+{#fun cegui_wdgtlmgr_eraseWidgetLook as eraseWidgetLook 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function getSingleton -}
+{#fun cegui_wdgtlmgr_getSingleton as getSingleton 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getSingletonPtr -}
+{#fun cegui_wdgtlmgr_getSingletonPtr as getSingletonPtr 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getDefaultResourceGroup -}
+{#fun cegui_wdgtlmgr_getDefaultResourceGroup as getDefaultResourceGroup 
+{ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function setDefaultResourceGroup -}
+{#fun cegui_wdgtlmgr_setDefaultResourceGroup as setDefaultResourceGroup 
+{ withCString* `String' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassWindow.chs b/HGamer3D/Bindings/CEGUI/ClassWindow.chs
--- a/HGamer3D/Bindings/CEGUI/ClassWindow.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassWindow.chs
@@ -3,886 +3,886 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
-
--- (c) 2011-2014 Peter Althainz
--- 
--- Licensed under the Apache License, Version 2.0 (the "License");
--- you may not use this file except in compliance with the License.
--- You may obtain a copy of the License at
--- 
---     http://www.apache.org/licenses/LICENSE-2.0
--- 
--- Unless required by applicable law or agreed to in writing, software
--- distributed under the License is distributed on an "AS IS" BASIS,
--- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
--- See the License for the specific language governing permissions and
--- limitations under the License.
--- 
-
-
--- ClassWindow.chs
-
--- 
-
-module HGamer3D.Bindings.CEGUI.ClassWindow where
-
-import Foreign
-import Foreign.Ptr
-import Foreign.C
-
-import HGamer3D.Data.HG3DClass
-import HGamer3D.Data.Vector
-import HGamer3D.Data.Colour
-import HGamer3D.Data.Angle
-
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
-{# import HGamer3D.Bindings.CEGUI.EnumVerticalAlignment #}
-{# import HGamer3D.Bindings.CEGUI.EnumHorizontalAlignment #}
-{# import HGamer3D.Bindings.CEGUI.EnumWindowUpdateMode #}
-
-#include "ClassWindow.h"
-{- function Window -}
-{#fun cegui_wnd_construct as new 
-{ withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~Window -}
-{#fun cegui_wnd_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getType -}
-{#fun cegui_wnd_getType as getType 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getName -}
-{#fun cegui_wnd_getName as getName 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function isDestroyedByParent -}
-{#fun cegui_wnd_isDestroyedByParent as isDestroyedByParent 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isAlwaysOnTop -}
-{#fun cegui_wnd_isAlwaysOnTop as isAlwaysOnTop 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isDisabled -}
-{#fun cegui_wnd_isDisabled as isDisabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isVisible -}
-{#fun cegui_wnd_isVisible as isVisible 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isActive -}
-{#fun cegui_wnd_isActive as isActive 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isClippedByParent -}
-{#fun cegui_wnd_isClippedByParent as isClippedByParent 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getID -}
-{#fun cegui_wnd_getID as getID 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function getChildCount -}
-{#fun cegui_wnd_getChildCount as getChildCount 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function isChild -}
-{#fun cegui_wnd_isChild as isChild 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isChild2 -}
-{#fun cegui_wnd_isChild2 as isChild2 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isChildRecursive -}
-{#fun cegui_wnd_isChildRecursive as isChildRecursive 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isChild3 -}
-{#fun cegui_wnd_isChild3 as isChild3 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getChild -}
-{#fun cegui_wnd_getChild as getChild 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getChild2 -}
-{#fun cegui_wnd_getChild2 as getChild2 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getChildRecursive -}
-{#fun cegui_wnd_getChildRecursive as getChildRecursive 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getChildRecursive2 -}
-{#fun cegui_wnd_getChildRecursive2 as getChildRecursive2 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getChildAtIdx -}
-{#fun cegui_wnd_getChildAtIdx as getChildAtIdx 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getActiveChild -}
-{#fun cegui_wnd_getActiveChild as getActiveChild 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getActiveChild2 -}
-{#fun cegui_wnd_getActiveChild2 as getActiveChild2 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function isAncestor -}
-{#fun cegui_wnd_isAncestor as isAncestor 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isAncestor2 -}
-{#fun cegui_wnd_isAncestor2 as isAncestor2 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isAncestor3 -}
-{#fun cegui_wnd_isAncestor3 as isAncestor3 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getFont -}
-{#fun cegui_wnd_getFont as getFont 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getText -}
-{#fun cegui_wnd_getText as getText 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getTextVisual -}
-{#fun cegui_wnd_getTextVisual as getTextVisual 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function inheritsAlpha -}
-{#fun cegui_wnd_inheritsAlpha as inheritsAlpha 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getAlpha -}
-{#fun cegui_wnd_getAlpha as getAlpha 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getEffectiveAlpha -}
-{#fun cegui_wnd_getEffectiveAlpha as getEffectiveAlpha 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function isCapturedByThis -}
-{#fun cegui_wnd_isCapturedByThis as isCapturedByThis 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isCapturedByAncestor -}
-{#fun cegui_wnd_isCapturedByAncestor as isCapturedByAncestor 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isCapturedByChild -}
-{#fun cegui_wnd_isCapturedByChild as isCapturedByChild 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getParent -}
-{#fun cegui_wnd_getParent as getParent 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function restoresOldCapture -}
-{#fun cegui_wnd_restoresOldCapture as restoresOldCapture 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isZOrderingEnabled -}
-{#fun cegui_wnd_isZOrderingEnabled as isZOrderingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function wantsMultiClickEvents -}
-{#fun cegui_wnd_wantsMultiClickEvents as wantsMultiClickEvents 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isMouseAutoRepeatEnabled -}
-{#fun cegui_wnd_isMouseAutoRepeatEnabled as isMouseAutoRepeatEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getAutoRepeatDelay -}
-{#fun cegui_wnd_getAutoRepeatDelay as getAutoRepeatDelay 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getAutoRepeatRate -}
-{#fun cegui_wnd_getAutoRepeatRate as getAutoRepeatRate 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function distributesCapturedInputs -}
-{#fun cegui_wnd_distributesCapturedInputs as distributesCapturedInputs 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isUsingDefaultTooltip -}
-{#fun cegui_wnd_isUsingDefaultTooltip as isUsingDefaultTooltip 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getTooltip -}
-{#fun cegui_wnd_getTooltip as getTooltip 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getTooltipType -}
-{#fun cegui_wnd_getTooltipType as getTooltipType 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getTooltipText -}
-{#fun cegui_wnd_getTooltipText as getTooltipText 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function inheritsTooltipText -}
-{#fun cegui_wnd_inheritsTooltipText as inheritsTooltipText 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isRiseOnClickEnabled -}
-{#fun cegui_wnd_isRiseOnClickEnabled as isRiseOnClickEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function testClassName -}
-{#fun cegui_wnd_testClassName as testClassName 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getVerticalAlignment -}
-{#fun cegui_wnd_getVerticalAlignment as getVerticalAlignment 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `EnumVerticalAlignment' peekEnumUtil*} -> `()'  #}
-
-{- function getHorizontalAlignment -}
-{#fun cegui_wnd_getHorizontalAlignment as getHorizontalAlignment 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `EnumHorizontalAlignment' peekEnumUtil*} -> `()'  #}
-
-{- function getLookNFeel -}
-{#fun cegui_wnd_getLookNFeel as getLookNFeel 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function getModalState -}
-{#fun cegui_wnd_getModalState as getModalState 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getUserString -}
-{#fun cegui_wnd_getUserString as getUserString 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function isUserStringDefined -}
-{#fun cegui_wnd_isUserStringDefined as isUserStringDefined 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getActiveSibling -}
-{#fun cegui_wnd_getActiveSibling as getActiveSibling 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getParentPixelWidth -}
-{#fun cegui_wnd_getParentPixelWidth as getParentPixelWidth 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function getParentPixelHeight -}
-{#fun cegui_wnd_getParentPixelHeight as getParentPixelHeight 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Float' peekFloatConv*} -> `()'  #}
-
-{- function isMousePassThroughEnabled -}
-{#fun cegui_wnd_isMousePassThroughEnabled as isMousePassThroughEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isAutoWindow -}
-{#fun cegui_wnd_isAutoWindow as isAutoWindow 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isWritingXMLAllowed -}
-{#fun cegui_wnd_isWritingXMLAllowed as isWritingXMLAllowed 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isDragDropTarget -}
-{#fun cegui_wnd_isDragDropTarget as isDragDropTarget 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isUsingAutoRenderingSurface -}
-{#fun cegui_wnd_isUsingAutoRenderingSurface as isUsingAutoRenderingSurface 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getRootWindow -}
-{#fun cegui_wnd_getRootWindow as getRootWindow 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getRootWindow2 -}
-{#fun cegui_wnd_getRootWindow2 as getRootWindow2 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function isNonClientWindow -}
-{#fun cegui_wnd_isNonClientWindow as isNonClientWindow 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function rename -}
-{#fun cegui_wnd_rename as rename 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function initialiseComponents -}
-{#fun cegui_wnd_initialiseComponents as initialiseComponents 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setDestroyedByParent -}
-{#fun cegui_wnd_setDestroyedByParent as setDestroyedByParent 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setAlwaysOnTop -}
-{#fun cegui_wnd_setAlwaysOnTop as setAlwaysOnTop 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setEnabled -}
-{#fun cegui_wnd_setEnabled as setEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function enable -}
-{#fun cegui_wnd_enable as enable 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function disable -}
-{#fun cegui_wnd_disable as disable 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setVisible -}
-{#fun cegui_wnd_setVisible as setVisible 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function show -}
-{#fun cegui_wnd_show as show 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function hide -}
-{#fun cegui_wnd_hide as hide 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function activate -}
-{#fun cegui_wnd_activate as activate 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function deactivate -}
-{#fun cegui_wnd_deactivate as deactivate 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setClippedByParent -}
-{#fun cegui_wnd_setClippedByParent as setClippedByParent 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setID -}
-{#fun cegui_wnd_setID as setID 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function setText -}
-{#fun cegui_wnd_setText as setText 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function appendText -}
-{#fun cegui_wnd_appendText as appendText 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function setFont -}
-{#fun cegui_wnd_setFont as setFont 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setFont2 -}
-{#fun cegui_wnd_setFont2 as setFont2 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function addChildWindow -}
-{#fun cegui_wnd_addChildWindow as addChildWindow 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function addChildWindow2 -}
-{#fun cegui_wnd_addChildWindow2 as addChildWindow2 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function removeChildWindow -}
-{#fun cegui_wnd_removeChildWindow as removeChildWindow 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function removeChildWindow2 -}
-{#fun cegui_wnd_removeChildWindow2 as removeChildWindow2 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function removeChildWindow3 -}
-{#fun cegui_wnd_removeChildWindow3 as removeChildWindow3 
-{ withHG3DClass* `HG3DClass' ,
- fromIntegral `Int' } -> `()'  #}
-
-{- function moveToFront -}
-{#fun cegui_wnd_moveToFront as moveToFront 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function moveToBack -}
-{#fun cegui_wnd_moveToBack as moveToBack 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function captureInput -}
-{#fun cegui_wnd_captureInput as captureInput 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function releaseInput -}
-{#fun cegui_wnd_releaseInput as releaseInput 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setRestoreCapture -}
-{#fun cegui_wnd_setRestoreCapture as setRestoreCapture 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setAlpha -}
-{#fun cegui_wnd_setAlpha as setAlpha 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setInheritsAlpha -}
-{#fun cegui_wnd_setInheritsAlpha as setInheritsAlpha 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function invalidate -}
-{#fun cegui_wnd_invalidate as invalidate 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function invalidate2 -}
-{#fun cegui_wnd_invalidate2 as invalidate2 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setMouseCursor3 -}
-{#fun cegui_wnd_setMouseCursor3 as setMouseCursor3 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function setZOrderingEnabled -}
-{#fun cegui_wnd_setZOrderingEnabled as setZOrderingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setWantsMultiClickEvents -}
-{#fun cegui_wnd_setWantsMultiClickEvents as setWantsMultiClickEvents 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setMouseAutoRepeatEnabled -}
-{#fun cegui_wnd_setMouseAutoRepeatEnabled as setMouseAutoRepeatEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setAutoRepeatDelay -}
-{#fun cegui_wnd_setAutoRepeatDelay as setAutoRepeatDelay 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setAutoRepeatRate -}
-{#fun cegui_wnd_setAutoRepeatRate as setAutoRepeatRate 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function setDistributesCapturedInputs -}
-{#fun cegui_wnd_setDistributesCapturedInputs as setDistributesCapturedInputs 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function notifyDragDropItemEnters -}
-{#fun cegui_wnd_notifyDragDropItemEnters as notifyDragDropItemEnters 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function notifyDragDropItemLeaves -}
-{#fun cegui_wnd_notifyDragDropItemLeaves as notifyDragDropItemLeaves 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function notifyDragDropItemDropped -}
-{#fun cegui_wnd_notifyDragDropItemDropped as notifyDragDropItemDropped 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function destroy -}
-{#fun cegui_wnd_destroy as destroy 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setTooltip -}
-{#fun cegui_wnd_setTooltip as setTooltip 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setTooltipType -}
-{#fun cegui_wnd_setTooltipType as setTooltipType 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function setTooltipText -}
-{#fun cegui_wnd_setTooltipText as setTooltipText 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function setInheritsTooltipText -}
-{#fun cegui_wnd_setInheritsTooltipText as setInheritsTooltipText 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setRiseOnClickEnabled -}
-{#fun cegui_wnd_setRiseOnClickEnabled as setRiseOnClickEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setVerticalAlignment -}
-{#fun cegui_wnd_setVerticalAlignment as setVerticalAlignment 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumVerticalAlignment' } -> `()'  #}
-
-{- function setHorizontalAlignment -}
-{#fun cegui_wnd_setHorizontalAlignment as setHorizontalAlignment 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumHorizontalAlignment' } -> `()'  #}
-
-{- function setLookNFeel -}
-{#fun cegui_wnd_setLookNFeel as setLookNFeel 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function setModalState -}
-{#fun cegui_wnd_setModalState as setModalState 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function performChildWindowLayout -}
-{#fun cegui_wnd_performChildWindowLayout as performChildWindowLayout 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setUserString -}
-{#fun cegui_wnd_setUserString as setUserString 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function setArea -}
-{#fun cegui_wnd_setArea as setArea 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setArea2 -}
-{#fun cegui_wnd_setArea2 as setArea2 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setPosition -}
-{#fun cegui_wnd_setPosition as setPosition 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setXPosition -}
-{#fun cegui_wnd_setXPosition as setXPosition 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setYPosition -}
-{#fun cegui_wnd_setYPosition as setYPosition 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setSize -}
-{#fun cegui_wnd_setSize as setSize 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setWidth -}
-{#fun cegui_wnd_setWidth as setWidth 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setHeight -}
-{#fun cegui_wnd_setHeight as setHeight 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setMaxSize -}
-{#fun cegui_wnd_setMaxSize as setMaxSize 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setMinSize -}
-{#fun cegui_wnd_setMinSize as setMinSize 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getPosition -}
-{#fun cegui_wnd_getPosition as getPosition 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getXPosition -}
-{#fun cegui_wnd_getXPosition as getXPosition 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getYPosition -}
-{#fun cegui_wnd_getYPosition as getYPosition 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getMaxSize -}
-{#fun cegui_wnd_getMaxSize as getMaxSize 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getMinSize -}
-{#fun cegui_wnd_getMinSize as getMinSize 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function render -}
-{#fun cegui_wnd_render as render 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function update -}
-{#fun cegui_wnd_update as update 
-{ withHG3DClass* `HG3DClass' ,
- realToFrac `Float' } -> `()'  #}
-
-{- function beginInitialisation -}
-{#fun cegui_wnd_beginInitialisation as beginInitialisation 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function endInitialisation -}
-{#fun cegui_wnd_endInitialisation as endInitialisation 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setMousePassThroughEnabled -}
-{#fun cegui_wnd_setMousePassThroughEnabled as setMousePassThroughEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setWindowRenderer -}
-{#fun cegui_wnd_setWindowRenderer as setWindowRenderer 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function getWindowRendererName -}
-{#fun cegui_wnd_getWindowRendererName as getWindowRendererName 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function setWritingXMLAllowed -}
-{#fun cegui_wnd_setWritingXMLAllowed as setWritingXMLAllowed 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function notifyScreenAreaChanged -}
-{#fun cegui_wnd_notifyScreenAreaChanged as notifyScreenAreaChanged 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setFalagardType -}
-{#fun cegui_wnd_setFalagardType as setFalagardType 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function setDragDropTarget -}
-{#fun cegui_wnd_setDragDropTarget as setDragDropTarget 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function invalidateRenderingSurface -}
-{#fun cegui_wnd_invalidateRenderingSurface as invalidateRenderingSurface 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function setUsingAutoRenderingSurface -}
-{#fun cegui_wnd_setUsingAutoRenderingSurface as setUsingAutoRenderingSurface 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function setNonClientWindow -}
-{#fun cegui_wnd_setNonClientWindow as setNonClientWindow 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isTextParsingEnabled -}
-{#fun cegui_wnd_isTextParsingEnabled as isTextParsingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setTextParsingEnabled -}
-{#fun cegui_wnd_setTextParsingEnabled as setTextParsingEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function banPropertyFromXML -}
-{#fun cegui_wnd_banPropertyFromXML as banPropertyFromXML 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function unbanPropertyFromXML -}
-{#fun cegui_wnd_unbanPropertyFromXML as unbanPropertyFromXML 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function isPropertyBannedFromXML -}
-{#fun cegui_wnd_isPropertyBannedFromXML as isPropertyBannedFromXML 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function setUpdateMode -}
-{#fun cegui_wnd_setUpdateMode as setUpdateMode 
-{ withHG3DClass* `HG3DClass' ,
- cIntFromEnum `EnumWindowUpdateMode' } -> `()'  #}
-
-{- function getUpdateMode -}
-{#fun cegui_wnd_getUpdateMode as getUpdateMode 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `EnumWindowUpdateMode' peekEnumUtil*} -> `()'  #}
-
-{- function setMouseInputPropagationEnabled -}
-{#fun cegui_wnd_setMouseInputPropagationEnabled as setMouseInputPropagationEnabled 
-{ withHG3DClass* `HG3DClass' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function isMouseInputPropagationEnabled -}
-{#fun cegui_wnd_isMouseInputPropagationEnabled as isMouseInputPropagationEnabled 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function clone -}
-{#fun cegui_wnd_clone as clone 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- fromBool `Bool' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function clonePropertiesTo -}
-{#fun cegui_wnd_clonePropertiesTo as clonePropertiesTo 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function cloneChildWidgetsTo -}
-{#fun cegui_wnd_cloneChildWidgetsTo as cloneChildWidgetsTo 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getZIndex -}
-{#fun cegui_wnd_getZIndex as getZIndex 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Int' peekIntConv*} -> `()'  #}
-
-{- function isInFront -}
-{#fun cegui_wnd_isInFront as isInFront 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function isBehind -}
-{#fun cegui_wnd_isBehind as isBehind 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getCaptureWindow -}
-{#fun cegui_wnd_getCaptureWindow as getCaptureWindow 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
+-- 
+
+-- (c) 2011-2014 Peter Althainz
+-- 
+-- Licensed under the Apache License, Version 2.0 (the "License");
+-- you may not use this file except in compliance with the License.
+-- You may obtain a copy of the License at
+-- 
+--     http://www.apache.org/licenses/LICENSE-2.0
+-- 
+-- Unless required by applicable law or agreed to in writing, software
+-- distributed under the License is distributed on an "AS IS" BASIS,
+-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+-- See the License for the specific language governing permissions and
+-- limitations under the License.
+-- 
+
+
+-- ClassWindow.chs
+
+-- 
+
+module HGamer3D.Bindings.CEGUI.ClassWindow where
+
+import Foreign
+import Foreign.Ptr
+import Foreign.C
+
+import HGamer3D.Data.HG3DClass
+import HGamer3D.Data.Vector
+import HGamer3D.Data.Colour
+import HGamer3D.Data.Angle
+
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.EnumVerticalAlignment #}
+{# import HGamer3D.Bindings.CEGUI.EnumHorizontalAlignment #}
+{# import HGamer3D.Bindings.CEGUI.EnumWindowUpdateMode #}
+
+#include "ClassWindow.h"
+{- function Window -}
+{#fun cegui_wnd_construct as new 
+{ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~Window -}
+{#fun cegui_wnd_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getType -}
+{#fun cegui_wnd_getType as getType 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getName -}
+{#fun cegui_wnd_getName as getName 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function isDestroyedByParent -}
+{#fun cegui_wnd_isDestroyedByParent as isDestroyedByParent 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isAlwaysOnTop -}
+{#fun cegui_wnd_isAlwaysOnTop as isAlwaysOnTop 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isDisabled -}
+{#fun cegui_wnd_isDisabled as isDisabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isVisible -}
+{#fun cegui_wnd_isVisible as isVisible 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isActive -}
+{#fun cegui_wnd_isActive as isActive 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isClippedByParent -}
+{#fun cegui_wnd_isClippedByParent as isClippedByParent 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getID -}
+{#fun cegui_wnd_getID as getID 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function getChildCount -}
+{#fun cegui_wnd_getChildCount as getChildCount 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function isChild -}
+{#fun cegui_wnd_isChild as isChild 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isChild2 -}
+{#fun cegui_wnd_isChild2 as isChild2 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isChildRecursive -}
+{#fun cegui_wnd_isChildRecursive as isChildRecursive 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isChild3 -}
+{#fun cegui_wnd_isChild3 as isChild3 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getChild -}
+{#fun cegui_wnd_getChild as getChild 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getChild2 -}
+{#fun cegui_wnd_getChild2 as getChild2 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getChildRecursive -}
+{#fun cegui_wnd_getChildRecursive as getChildRecursive 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getChildRecursive2 -}
+{#fun cegui_wnd_getChildRecursive2 as getChildRecursive2 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getChildAtIdx -}
+{#fun cegui_wnd_getChildAtIdx as getChildAtIdx 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getActiveChild -}
+{#fun cegui_wnd_getActiveChild as getActiveChild 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getActiveChild2 -}
+{#fun cegui_wnd_getActiveChild2 as getActiveChild2 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function isAncestor -}
+{#fun cegui_wnd_isAncestor as isAncestor 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isAncestor2 -}
+{#fun cegui_wnd_isAncestor2 as isAncestor2 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isAncestor3 -}
+{#fun cegui_wnd_isAncestor3 as isAncestor3 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getFont -}
+{#fun cegui_wnd_getFont as getFont 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getText -}
+{#fun cegui_wnd_getText as getText 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getTextVisual -}
+{#fun cegui_wnd_getTextVisual as getTextVisual 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function inheritsAlpha -}
+{#fun cegui_wnd_inheritsAlpha as inheritsAlpha 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getAlpha -}
+{#fun cegui_wnd_getAlpha as getAlpha 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getEffectiveAlpha -}
+{#fun cegui_wnd_getEffectiveAlpha as getEffectiveAlpha 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function isCapturedByThis -}
+{#fun cegui_wnd_isCapturedByThis as isCapturedByThis 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isCapturedByAncestor -}
+{#fun cegui_wnd_isCapturedByAncestor as isCapturedByAncestor 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isCapturedByChild -}
+{#fun cegui_wnd_isCapturedByChild as isCapturedByChild 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getParent -}
+{#fun cegui_wnd_getParent as getParent 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function restoresOldCapture -}
+{#fun cegui_wnd_restoresOldCapture as restoresOldCapture 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isZOrderingEnabled -}
+{#fun cegui_wnd_isZOrderingEnabled as isZOrderingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function wantsMultiClickEvents -}
+{#fun cegui_wnd_wantsMultiClickEvents as wantsMultiClickEvents 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isMouseAutoRepeatEnabled -}
+{#fun cegui_wnd_isMouseAutoRepeatEnabled as isMouseAutoRepeatEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getAutoRepeatDelay -}
+{#fun cegui_wnd_getAutoRepeatDelay as getAutoRepeatDelay 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getAutoRepeatRate -}
+{#fun cegui_wnd_getAutoRepeatRate as getAutoRepeatRate 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function distributesCapturedInputs -}
+{#fun cegui_wnd_distributesCapturedInputs as distributesCapturedInputs 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isUsingDefaultTooltip -}
+{#fun cegui_wnd_isUsingDefaultTooltip as isUsingDefaultTooltip 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getTooltip -}
+{#fun cegui_wnd_getTooltip as getTooltip 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getTooltipType -}
+{#fun cegui_wnd_getTooltipType as getTooltipType 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getTooltipText -}
+{#fun cegui_wnd_getTooltipText as getTooltipText 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function inheritsTooltipText -}
+{#fun cegui_wnd_inheritsTooltipText as inheritsTooltipText 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isRiseOnClickEnabled -}
+{#fun cegui_wnd_isRiseOnClickEnabled as isRiseOnClickEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function testClassName -}
+{#fun cegui_wnd_testClassName as testClassName 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getVerticalAlignment -}
+{#fun cegui_wnd_getVerticalAlignment as getVerticalAlignment 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `EnumVerticalAlignment' peekEnumUtil*} -> `()'  #}
+
+{- function getHorizontalAlignment -}
+{#fun cegui_wnd_getHorizontalAlignment as getHorizontalAlignment 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `EnumHorizontalAlignment' peekEnumUtil*} -> `()'  #}
+
+{- function getLookNFeel -}
+{#fun cegui_wnd_getLookNFeel as getLookNFeel 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function getModalState -}
+{#fun cegui_wnd_getModalState as getModalState 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getUserString -}
+{#fun cegui_wnd_getUserString as getUserString 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function isUserStringDefined -}
+{#fun cegui_wnd_isUserStringDefined as isUserStringDefined 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getActiveSibling -}
+{#fun cegui_wnd_getActiveSibling as getActiveSibling 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getParentPixelWidth -}
+{#fun cegui_wnd_getParentPixelWidth as getParentPixelWidth 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function getParentPixelHeight -}
+{#fun cegui_wnd_getParentPixelHeight as getParentPixelHeight 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Float' peekFloatConv*} -> `()'  #}
+
+{- function isMousePassThroughEnabled -}
+{#fun cegui_wnd_isMousePassThroughEnabled as isMousePassThroughEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isAutoWindow -}
+{#fun cegui_wnd_isAutoWindow as isAutoWindow 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isWritingXMLAllowed -}
+{#fun cegui_wnd_isWritingXMLAllowed as isWritingXMLAllowed 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isDragDropTarget -}
+{#fun cegui_wnd_isDragDropTarget as isDragDropTarget 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isUsingAutoRenderingSurface -}
+{#fun cegui_wnd_isUsingAutoRenderingSurface as isUsingAutoRenderingSurface 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getRootWindow -}
+{#fun cegui_wnd_getRootWindow as getRootWindow 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getRootWindow2 -}
+{#fun cegui_wnd_getRootWindow2 as getRootWindow2 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function isNonClientWindow -}
+{#fun cegui_wnd_isNonClientWindow as isNonClientWindow 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function rename -}
+{#fun cegui_wnd_rename as rename 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function initialiseComponents -}
+{#fun cegui_wnd_initialiseComponents as initialiseComponents 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setDestroyedByParent -}
+{#fun cegui_wnd_setDestroyedByParent as setDestroyedByParent 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setAlwaysOnTop -}
+{#fun cegui_wnd_setAlwaysOnTop as setAlwaysOnTop 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setEnabled -}
+{#fun cegui_wnd_setEnabled as setEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function enable -}
+{#fun cegui_wnd_enable as enable 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function disable -}
+{#fun cegui_wnd_disable as disable 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setVisible -}
+{#fun cegui_wnd_setVisible as setVisible 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function show -}
+{#fun cegui_wnd_show as show 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function hide -}
+{#fun cegui_wnd_hide as hide 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function activate -}
+{#fun cegui_wnd_activate as activate 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function deactivate -}
+{#fun cegui_wnd_deactivate as deactivate 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setClippedByParent -}
+{#fun cegui_wnd_setClippedByParent as setClippedByParent 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setID -}
+{#fun cegui_wnd_setID as setID 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function setText -}
+{#fun cegui_wnd_setText as setText 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function appendText -}
+{#fun cegui_wnd_appendText as appendText 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setFont -}
+{#fun cegui_wnd_setFont as setFont 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setFont2 -}
+{#fun cegui_wnd_setFont2 as setFont2 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function addChildWindow -}
+{#fun cegui_wnd_addChildWindow as addChildWindow 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function addChildWindow2 -}
+{#fun cegui_wnd_addChildWindow2 as addChildWindow2 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function removeChildWindow -}
+{#fun cegui_wnd_removeChildWindow as removeChildWindow 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function removeChildWindow2 -}
+{#fun cegui_wnd_removeChildWindow2 as removeChildWindow2 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function removeChildWindow3 -}
+{#fun cegui_wnd_removeChildWindow3 as removeChildWindow3 
+{ withHG3DClass* `HG3DClass' ,
+ fromIntegral `Int' } -> `()'  #}
+
+{- function moveToFront -}
+{#fun cegui_wnd_moveToFront as moveToFront 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function moveToBack -}
+{#fun cegui_wnd_moveToBack as moveToBack 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function captureInput -}
+{#fun cegui_wnd_captureInput as captureInput 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function releaseInput -}
+{#fun cegui_wnd_releaseInput as releaseInput 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setRestoreCapture -}
+{#fun cegui_wnd_setRestoreCapture as setRestoreCapture 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setAlpha -}
+{#fun cegui_wnd_setAlpha as setAlpha 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setInheritsAlpha -}
+{#fun cegui_wnd_setInheritsAlpha as setInheritsAlpha 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function invalidate -}
+{#fun cegui_wnd_invalidate as invalidate 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function invalidate2 -}
+{#fun cegui_wnd_invalidate2 as invalidate2 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setMouseCursor3 -}
+{#fun cegui_wnd_setMouseCursor3 as setMouseCursor3 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setZOrderingEnabled -}
+{#fun cegui_wnd_setZOrderingEnabled as setZOrderingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setWantsMultiClickEvents -}
+{#fun cegui_wnd_setWantsMultiClickEvents as setWantsMultiClickEvents 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setMouseAutoRepeatEnabled -}
+{#fun cegui_wnd_setMouseAutoRepeatEnabled as setMouseAutoRepeatEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setAutoRepeatDelay -}
+{#fun cegui_wnd_setAutoRepeatDelay as setAutoRepeatDelay 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setAutoRepeatRate -}
+{#fun cegui_wnd_setAutoRepeatRate as setAutoRepeatRate 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function setDistributesCapturedInputs -}
+{#fun cegui_wnd_setDistributesCapturedInputs as setDistributesCapturedInputs 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function notifyDragDropItemEnters -}
+{#fun cegui_wnd_notifyDragDropItemEnters as notifyDragDropItemEnters 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function notifyDragDropItemLeaves -}
+{#fun cegui_wnd_notifyDragDropItemLeaves as notifyDragDropItemLeaves 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function notifyDragDropItemDropped -}
+{#fun cegui_wnd_notifyDragDropItemDropped as notifyDragDropItemDropped 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function destroy -}
+{#fun cegui_wnd_destroy as destroy 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setTooltip -}
+{#fun cegui_wnd_setTooltip as setTooltip 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setTooltipType -}
+{#fun cegui_wnd_setTooltipType as setTooltipType 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setTooltipText -}
+{#fun cegui_wnd_setTooltipText as setTooltipText 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setInheritsTooltipText -}
+{#fun cegui_wnd_setInheritsTooltipText as setInheritsTooltipText 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setRiseOnClickEnabled -}
+{#fun cegui_wnd_setRiseOnClickEnabled as setRiseOnClickEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setVerticalAlignment -}
+{#fun cegui_wnd_setVerticalAlignment as setVerticalAlignment 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumVerticalAlignment' } -> `()'  #}
+
+{- function setHorizontalAlignment -}
+{#fun cegui_wnd_setHorizontalAlignment as setHorizontalAlignment 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumHorizontalAlignment' } -> `()'  #}
+
+{- function setLookNFeel -}
+{#fun cegui_wnd_setLookNFeel as setLookNFeel 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setModalState -}
+{#fun cegui_wnd_setModalState as setModalState 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function performChildWindowLayout -}
+{#fun cegui_wnd_performChildWindowLayout as performChildWindowLayout 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setUserString -}
+{#fun cegui_wnd_setUserString as setUserString 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setArea -}
+{#fun cegui_wnd_setArea as setArea 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setArea2 -}
+{#fun cegui_wnd_setArea2 as setArea2 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setPosition -}
+{#fun cegui_wnd_setPosition as setPosition 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setXPosition -}
+{#fun cegui_wnd_setXPosition as setXPosition 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setYPosition -}
+{#fun cegui_wnd_setYPosition as setYPosition 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setSize -}
+{#fun cegui_wnd_setSize as setSize 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setWidth -}
+{#fun cegui_wnd_setWidth as setWidth 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setHeight -}
+{#fun cegui_wnd_setHeight as setHeight 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setMaxSize -}
+{#fun cegui_wnd_setMaxSize as setMaxSize 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setMinSize -}
+{#fun cegui_wnd_setMinSize as setMinSize 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getPosition -}
+{#fun cegui_wnd_getPosition as getPosition 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getXPosition -}
+{#fun cegui_wnd_getXPosition as getXPosition 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getYPosition -}
+{#fun cegui_wnd_getYPosition as getYPosition 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getMaxSize -}
+{#fun cegui_wnd_getMaxSize as getMaxSize 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getMinSize -}
+{#fun cegui_wnd_getMinSize as getMinSize 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function render -}
+{#fun cegui_wnd_render as render 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function update -}
+{#fun cegui_wnd_update as update 
+{ withHG3DClass* `HG3DClass' ,
+ realToFrac `Float' } -> `()'  #}
+
+{- function beginInitialisation -}
+{#fun cegui_wnd_beginInitialisation as beginInitialisation 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function endInitialisation -}
+{#fun cegui_wnd_endInitialisation as endInitialisation 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setMousePassThroughEnabled -}
+{#fun cegui_wnd_setMousePassThroughEnabled as setMousePassThroughEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setWindowRenderer -}
+{#fun cegui_wnd_setWindowRenderer as setWindowRenderer 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function getWindowRendererName -}
+{#fun cegui_wnd_getWindowRendererName as getWindowRendererName 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function setWritingXMLAllowed -}
+{#fun cegui_wnd_setWritingXMLAllowed as setWritingXMLAllowed 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function notifyScreenAreaChanged -}
+{#fun cegui_wnd_notifyScreenAreaChanged as notifyScreenAreaChanged 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setFalagardType -}
+{#fun cegui_wnd_setFalagardType as setFalagardType 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function setDragDropTarget -}
+{#fun cegui_wnd_setDragDropTarget as setDragDropTarget 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function invalidateRenderingSurface -}
+{#fun cegui_wnd_invalidateRenderingSurface as invalidateRenderingSurface 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function setUsingAutoRenderingSurface -}
+{#fun cegui_wnd_setUsingAutoRenderingSurface as setUsingAutoRenderingSurface 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function setNonClientWindow -}
+{#fun cegui_wnd_setNonClientWindow as setNonClientWindow 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isTextParsingEnabled -}
+{#fun cegui_wnd_isTextParsingEnabled as isTextParsingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setTextParsingEnabled -}
+{#fun cegui_wnd_setTextParsingEnabled as setTextParsingEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function banPropertyFromXML -}
+{#fun cegui_wnd_banPropertyFromXML as banPropertyFromXML 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function unbanPropertyFromXML -}
+{#fun cegui_wnd_unbanPropertyFromXML as unbanPropertyFromXML 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function isPropertyBannedFromXML -}
+{#fun cegui_wnd_isPropertyBannedFromXML as isPropertyBannedFromXML 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function setUpdateMode -}
+{#fun cegui_wnd_setUpdateMode as setUpdateMode 
+{ withHG3DClass* `HG3DClass' ,
+ cIntFromEnum `EnumWindowUpdateMode' } -> `()'  #}
+
+{- function getUpdateMode -}
+{#fun cegui_wnd_getUpdateMode as getUpdateMode 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `EnumWindowUpdateMode' peekEnumUtil*} -> `()'  #}
+
+{- function setMouseInputPropagationEnabled -}
+{#fun cegui_wnd_setMouseInputPropagationEnabled as setMouseInputPropagationEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function isMouseInputPropagationEnabled -}
+{#fun cegui_wnd_isMouseInputPropagationEnabled as isMouseInputPropagationEnabled 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function clone -}
+{#fun cegui_wnd_clone as clone 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ fromBool `Bool' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function clonePropertiesTo -}
+{#fun cegui_wnd_clonePropertiesTo as clonePropertiesTo 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function cloneChildWidgetsTo -}
+{#fun cegui_wnd_cloneChildWidgetsTo as cloneChildWidgetsTo 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getZIndex -}
+{#fun cegui_wnd_getZIndex as getZIndex 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Int' peekIntConv*} -> `()'  #}
+
+{- function isInFront -}
+{#fun cegui_wnd_isInFront as isInFront 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function isBehind -}
+{#fun cegui_wnd_isBehind as isBehind 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getCaptureWindow -}
+{#fun cegui_wnd_getCaptureWindow as getCaptureWindow 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassWindowManager.chs b/HGamer3D/Bindings/CEGUI/ClassWindowManager.chs
--- a/HGamer3D/Bindings/CEGUI/ClassWindowManager.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassWindowManager.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassWindowManager.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassWindowManager where
 
@@ -36,105 +36,105 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassWindowManager.h"
-{- function WindowManager -}
-{#fun cegui_wmgr_construct as new 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~WindowManager -}
-{#fun cegui_wmgr_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function createWindow -}
-{#fun cegui_wmgr_createWindow as createWindow 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function destroyWindow -}
-{#fun cegui_wmgr_destroyWindow as destroyWindow 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function destroyWindow2 -}
-{#fun cegui_wmgr_destroyWindow2 as destroyWindow2 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function getWindow -}
-{#fun cegui_wmgr_getWindow as getWindow 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function isWindowPresent -}
-{#fun cegui_wmgr_isWindowPresent as isWindowPresent 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function destroyAllWindows -}
-{#fun cegui_wmgr_destroyAllWindows as destroyAllWindows 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function isDeadPoolEmpty -}
-{#fun cegui_wmgr_isDeadPoolEmpty as isDeadPoolEmpty 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function cleanDeadPool -}
-{#fun cegui_wmgr_cleanDeadPool as cleanDeadPool 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function saveWindowLayout -}
-{#fun cegui_wmgr_saveWindowLayout as saveWindowLayout 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function saveWindowLayout2 -}
-{#fun cegui_wmgr_saveWindowLayout2 as saveWindowLayout2 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- fromBool `Bool' } -> `()'  #}
-
-{- function renameWindow -}
-{#fun cegui_wmgr_renameWindow as renameWindow 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' } -> `()'  #}
-
-{- function renameWindow2 -}
-{#fun cegui_wmgr_renameWindow2 as renameWindow2 
-{ withHG3DClass* `HG3DClass' ,
- withHG3DClass* `HG3DClass' ,
- withCString* `String' } -> `()'  #}
-
-{- function lock -}
-{#fun cegui_wmgr_lock as lock 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function unlock -}
-{#fun cegui_wmgr_unlock as unlock 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function isLocked -}
-{#fun cegui_wmgr_isLocked as isLocked 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function getDefaultResourceGroup -}
-{#fun cegui_wmgr_getDefaultResourceGroup as getDefaultResourceGroup 
-{ alloc64k- `String' peekCString*} -> `()'  #}
-
-{- function setDefaultResourceGroup -}
-{#fun cegui_wmgr_setDefaultResourceGroup as setDefaultResourceGroup 
-{ withCString* `String' } -> `()'  #}
-
+{- function WindowManager -}
+{#fun cegui_wmgr_construct as new 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~WindowManager -}
+{#fun cegui_wmgr_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function createWindow -}
+{#fun cegui_wmgr_createWindow as createWindow 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function destroyWindow -}
+{#fun cegui_wmgr_destroyWindow as destroyWindow 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function destroyWindow2 -}
+{#fun cegui_wmgr_destroyWindow2 as destroyWindow2 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function getWindow -}
+{#fun cegui_wmgr_getWindow as getWindow 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function isWindowPresent -}
+{#fun cegui_wmgr_isWindowPresent as isWindowPresent 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function destroyAllWindows -}
+{#fun cegui_wmgr_destroyAllWindows as destroyAllWindows 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function isDeadPoolEmpty -}
+{#fun cegui_wmgr_isDeadPoolEmpty as isDeadPoolEmpty 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function cleanDeadPool -}
+{#fun cegui_wmgr_cleanDeadPool as cleanDeadPool 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function saveWindowLayout -}
+{#fun cegui_wmgr_saveWindowLayout as saveWindowLayout 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function saveWindowLayout2 -}
+{#fun cegui_wmgr_saveWindowLayout2 as saveWindowLayout2 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ fromBool `Bool' } -> `()'  #}
+
+{- function renameWindow -}
+{#fun cegui_wmgr_renameWindow as renameWindow 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' } -> `()'  #}
+
+{- function renameWindow2 -}
+{#fun cegui_wmgr_renameWindow2 as renameWindow2 
+{ withHG3DClass* `HG3DClass' ,
+ withHG3DClass* `HG3DClass' ,
+ withCString* `String' } -> `()'  #}
+
+{- function lock -}
+{#fun cegui_wmgr_lock as lock 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function unlock -}
+{#fun cegui_wmgr_unlock as unlock 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function isLocked -}
+{#fun cegui_wmgr_isLocked as isLocked 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function getDefaultResourceGroup -}
+{#fun cegui_wmgr_getDefaultResourceGroup as getDefaultResourceGroup 
+{ alloc64k- `String' peekCString*} -> `()'  #}
+
+{- function setDefaultResourceGroup -}
+{#fun cegui_wmgr_setDefaultResourceGroup as setDefaultResourceGroup 
+{ withCString* `String' } -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassWindowManagerHG3D.chs b/HGamer3D/Bindings/CEGUI/ClassWindowManagerHG3D.chs
--- a/HGamer3D/Bindings/CEGUI/ClassWindowManagerHG3D.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassWindowManagerHG3D.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassWindowManagerHG3D.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassWindowManagerHG3D where
 
@@ -36,27 +36,27 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassWindowManagerHG3D.h"
-{- function WindowManagerHG3D -}
-{#fun cegui_wmgr_hg3d_construct as new 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function ~WindowManagerHG3D -}
-{#fun cegui_wmgr_hg3d_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function loadWindowLayoutHG3D -}
-{#fun cegui_wmgr_hg3d_loadWindowLayoutHG3D as loadWindowLayoutHG3D 
-{ withHG3DClass* `HG3DClass' ,
- withCString* `String' ,
- withCString* `String' ,
- alloca- `HG3DClass' peek*} -> `()'  #}
-
-{- function getSingleton -}
-{#fun cegui_wmgr_hg3d_getSingleton as getSingleton 
-{ alloca- `HG3DClass' peek*} -> `()'  #}
-
+{- function WindowManagerHG3D -}
+{#fun cegui_wmgr_hg3d_construct as new 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function ~WindowManagerHG3D -}
+{#fun cegui_wmgr_hg3d_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function loadWindowLayoutHG3D -}
+{#fun cegui_wmgr_hg3d_loadWindowLayoutHG3D as loadWindowLayoutHG3D 
+{ withHG3DClass* `HG3DClass' ,
+ withCString* `String' ,
+ withCString* `String' ,
+ alloca- `HG3DClass' peek*} -> `()'  #}
+
+{- function getSingleton -}
+{#fun cegui_wmgr_hg3d_getSingleton as getSingleton 
+{ alloca- `HG3DClass' peek*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/ClassXMLParser.chs b/HGamer3D/Bindings/CEGUI/ClassXMLParser.chs
--- a/HGamer3D/Bindings/CEGUI/ClassXMLParser.chs
+++ b/HGamer3D/Bindings/CEGUI/ClassXMLParser.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- ClassXMLParser.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.ClassXMLParser where
 
@@ -36,26 +36,26 @@
 import HGamer3D.Data.Colour
 import HGamer3D.Data.Angle
 
-{# import HGamer3D.Bindings.CEGUI.Utils #}
-{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
-{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
+{# import HGamer3D.Bindings.CEGUI.Utils #}
+{# import HGamer3D.Bindings.CEGUI.ClassPtr #}
+{# import HGamer3D.Bindings.CEGUI.StructHG3DClass #}
 
 #include "ClassXMLParser.h"
-{- function ~XMLParser -}
-{#fun cegui_xmlprs_destruct as delete 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function initialise -}
-{#fun cegui_xmlprs_initialise as initialise 
-{ withHG3DClass* `HG3DClass' ,
- alloca- `Bool' peekBoolUtil*} -> `()'  #}
-
-{- function cleanup -}
-{#fun cegui_xmlprs_cleanup as cleanup 
-{ withHG3DClass* `HG3DClass' } -> `()'  #}
-
-{- function getIdentifierString -}
-{#fun cegui_xmlprs_getIdentifierString as getIdentifierString 
-{ withHG3DClass* `HG3DClass' ,
- alloc64k- `String' peekCString*} -> `()'  #}
-
+{- function ~XMLParser -}
+{#fun cegui_xmlprs_destruct as delete 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function initialise -}
+{#fun cegui_xmlprs_initialise as initialise 
+{ withHG3DClass* `HG3DClass' ,
+ alloca- `Bool' peekBoolUtil*} -> `()'  #}
+
+{- function cleanup -}
+{#fun cegui_xmlprs_cleanup as cleanup 
+{ withHG3DClass* `HG3DClass' } -> `()'  #}
+
+{- function getIdentifierString -}
+{#fun cegui_xmlprs_getIdentifierString as getIdentifierString 
+{ withHG3DClass* `HG3DClass' ,
+ alloc64k- `String' peekCString*} -> `()'  #}
+
diff --git a/HGamer3D/Bindings/CEGUI/EnumBlendMode.chs b/HGamer3D/Bindings/CEGUI/EnumBlendMode.chs
--- a/HGamer3D/Bindings/CEGUI/EnumBlendMode.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumBlendMode.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumBlendMode.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumBlendMode where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumFWSizingLocation.chs b/HGamer3D/Bindings/CEGUI/EnumFWSizingLocation.chs
--- a/HGamer3D/Bindings/CEGUI/EnumFWSizingLocation.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumFWSizingLocation.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumFWSizingLocation.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumFWSizingLocation where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumHorizontalAlignment.chs b/HGamer3D/Bindings/CEGUI/EnumHorizontalAlignment.chs
--- a/HGamer3D/Bindings/CEGUI/EnumHorizontalAlignment.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumHorizontalAlignment.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumHorizontalAlignment.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumHorizontalAlignment where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumKeyScan.chs b/HGamer3D/Bindings/CEGUI/EnumKeyScan.chs
--- a/HGamer3D/Bindings/CEGUI/EnumKeyScan.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumKeyScan.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumKeyScan.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumKeyScan where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumLoggingLevel.chs b/HGamer3D/Bindings/CEGUI/EnumLoggingLevel.chs
--- a/HGamer3D/Bindings/CEGUI/EnumLoggingLevel.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumLoggingLevel.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumLoggingLevel.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumLoggingLevel where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumMouseButton.chs b/HGamer3D/Bindings/CEGUI/EnumMouseButton.chs
--- a/HGamer3D/Bindings/CEGUI/EnumMouseButton.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumMouseButton.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumMouseButton.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumMouseButton where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumQuadSplitMode.chs b/HGamer3D/Bindings/CEGUI/EnumQuadSplitMode.chs
--- a/HGamer3D/Bindings/CEGUI/EnumQuadSplitMode.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumQuadSplitMode.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumQuadSplitMode.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumQuadSplitMode where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumSelectionMode.chs b/HGamer3D/Bindings/CEGUI/EnumSelectionMode.chs
--- a/HGamer3D/Bindings/CEGUI/EnumSelectionMode.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumSelectionMode.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumSelectionMode.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumSelectionMode where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumSortDirection.chs b/HGamer3D/Bindings/CEGUI/EnumSortDirection.chs
--- a/HGamer3D/Bindings/CEGUI/EnumSortDirection.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumSortDirection.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumSortDirection.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumSortDirection where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumSystemKey.chs b/HGamer3D/Bindings/CEGUI/EnumSystemKey.chs
--- a/HGamer3D/Bindings/CEGUI/EnumSystemKey.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumSystemKey.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumSystemKey.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumSystemKey where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumTabPanePosition.chs b/HGamer3D/Bindings/CEGUI/EnumTabPanePosition.chs
--- a/HGamer3D/Bindings/CEGUI/EnumTabPanePosition.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumTabPanePosition.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumTabPanePosition.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumTabPanePosition where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumTextInputMode.chs b/HGamer3D/Bindings/CEGUI/EnumTextInputMode.chs
--- a/HGamer3D/Bindings/CEGUI/EnumTextInputMode.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumTextInputMode.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumTextInputMode.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumTextInputMode where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumTipState.chs b/HGamer3D/Bindings/CEGUI/EnumTipState.chs
--- a/HGamer3D/Bindings/CEGUI/EnumTipState.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumTipState.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumTipState.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumTipState where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumVerticalAlignment.chs b/HGamer3D/Bindings/CEGUI/EnumVerticalAlignment.chs
--- a/HGamer3D/Bindings/CEGUI/EnumVerticalAlignment.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumVerticalAlignment.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumVerticalAlignment.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumVerticalAlignment where
 
diff --git a/HGamer3D/Bindings/CEGUI/EnumWindowUpdateMode.chs b/HGamer3D/Bindings/CEGUI/EnumWindowUpdateMode.chs
--- a/HGamer3D/Bindings/CEGUI/EnumWindowUpdateMode.chs
+++ b/HGamer3D/Bindings/CEGUI/EnumWindowUpdateMode.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- EnumWindowUpdateMode.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.EnumWindowUpdateMode where
 
diff --git a/HGamer3D/Bindings/CEGUI/StructHG3DClass.chs b/HGamer3D/Bindings/CEGUI/StructHG3DClass.chs
--- a/HGamer3D/Bindings/CEGUI/StructHG3DClass.chs
+++ b/HGamer3D/Bindings/CEGUI/StructHG3DClass.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- StructHG3DClass.chs
 
--- 
+-- 
 
 module HGamer3D.Bindings.CEGUI.StructHG3DClass where
 
@@ -38,17 +38,17 @@
 
 
 #include "StructHG3DClass.h"
-
-import Data.Bits
-import HGamer3D.Data.HG3DClass
-
-{#pointer *hg3dclass_struct as HG3DClassPtr -> HG3DClass #}
-
-withHG3DClass :: HG3DClass -> (HG3DClassPtr -> IO b) -> IO b
-withHG3DClass = with
-
-peekHG3DClass :: HG3DClassPtr -> IO HG3DClass
-peekHG3DClass = peek
-
-
-
+
+import Data.Bits
+import HGamer3D.Data.HG3DClass
+
+{#pointer *hg3dclass_struct as HG3DClassPtr -> HG3DClass #}
+
+withHG3DClass :: HG3DClass -> (HG3DClassPtr -> IO b) -> IO b
+withHG3DClass = with
+
+peekHG3DClass :: HG3DClassPtr -> IO HG3DClass
+peekHG3DClass = peek
+
+
+
diff --git a/HGamer3D/Bindings/CEGUI/Utils.chs b/HGamer3D/Bindings/CEGUI/Utils.chs
--- a/HGamer3D/Bindings/CEGUI/Utils.chs
+++ b/HGamer3D/Bindings/CEGUI/Utils.chs
@@ -3,7 +3,7 @@
 
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 
 -- (c) 2011-2014 Peter Althainz
 -- 
@@ -18,12 +18,12 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 
 
 -- Utils.hs
 
--- Marshalling Utilities
+-- Marshalling Utilities
 
 module HGamer3D.Bindings.CEGUI.Utils where
 
@@ -38,95 +38,95 @@
 
 
 #include "StructHG3DClass.h"
-
-import Control.Monad (liftM)
-
--- Strings with explicit length
---
-withCStringLenIntConv :: Num n => String -> ((CString, n) -> IO a) -> IO a
-withCStringLenIntConv s f    = withCStringLen s $ \(p, n) -> f (p, fromIntegral n)
-
-peekCStringLenIntConv :: Integral n => (CString, n) -> IO String
-peekCStringLenIntConv (s, n) = peekCStringLen (s, fromIntegral n)
-
--- Marshalling of numerals
---
-
-withIntConv   :: (Storable b, Integral a, Integral b) 
-              => a -> (Ptr b -> IO c) -> IO c
-withIntConv    = with . fromIntegral
-
-withFloatConv :: (Storable b, RealFloat a, RealFloat b) 
-              => a -> (Ptr b -> IO c) -> IO c
-withFloatConv  = with . realToFrac
-
-peekIntConv   :: (Storable a, Integral a, Integral b) 
-              => Ptr a -> IO b
-peekIntConv    = liftM fromIntegral . peek
-
-peekFloatConv :: (Storable a, RealFloat a, RealFloat b) 
-              => Ptr a -> IO b
-peekFloatConv  = liftM realToFrac . peek
-
-
--- String Conversion functions
---
-
-withCUString b f = withCWString b (f . castPtr)
-peekCUString = peekCWString . castPtr
-alloc64k = allocaBytes (1024 * 64)
-
--- c2hs replacements of utility functions, to get rid of annoying c2hs
--- deprecated messages
-
--- Passing Enums
-
-cIntFromEnum :: Enum a => a -> CInt
-cIntFromEnum = cIntConv . fromEnum
-
-cIntToEnum :: Enum a => CInt -> a
-cIntToEnum = toEnum . cIntConv
-
-
--- Passing Booleans by reference
---
-
-withBoolUtil :: (Integral a, Storable a) => Bool -> (Ptr a -> IO b) -> IO b
-withBoolUtil  = with . fromBool
-
-peekBoolUtil :: (Integral a, Storable a) => Ptr a -> IO Bool
-peekBoolUtil  = liftM toBool . peek
-
-
--- Passing enums by reference
---
-
-withEnumUtil :: (Enum a, Integral b, Storable b) => a -> (Ptr b -> IO c) -> IO c
-withEnumUtil  = with . cFromEnum
-
-peekEnumUtil :: (Enum a, Integral b, Storable b) => Ptr b -> IO a
-peekEnumUtil  = liftM cToEnum . peek
-
--- Conversion routines
--- -------------------
-
--- |Integral conversion
---
-cIntConv :: (Integral a, Integral b) => a -> b
-cIntConv  = fromIntegral
-
--- |Floating conversion
---
-cFloatConv :: (RealFloat a, RealFloat b) => a -> b
-cFloatConv  = realToFrac
-
--- |Convert a C enumeration to Haskell.
---
-cToEnum :: (Integral i, Enum e) => i -> e
-cToEnum  = toEnum . fromIntegral
-
--- |Convert a Haskell enumeration to C.
---
-cFromEnum :: (Enum e, Integral i) => e -> i
-cFromEnum  = fromIntegral . fromEnum
-
+
+import Control.Monad (liftM)
+
+-- Strings with explicit length
+--
+withCStringLenIntConv :: Num n => String -> ((CString, n) -> IO a) -> IO a
+withCStringLenIntConv s f    = withCStringLen s $ \(p, n) -> f (p, fromIntegral n)
+
+peekCStringLenIntConv :: Integral n => (CString, n) -> IO String
+peekCStringLenIntConv (s, n) = peekCStringLen (s, fromIntegral n)
+
+-- Marshalling of numerals
+--
+
+withIntConv   :: (Storable b, Integral a, Integral b) 
+              => a -> (Ptr b -> IO c) -> IO c
+withIntConv    = with . fromIntegral
+
+withFloatConv :: (Storable b, RealFloat a, RealFloat b) 
+              => a -> (Ptr b -> IO c) -> IO c
+withFloatConv  = with . realToFrac
+
+peekIntConv   :: (Storable a, Integral a, Integral b) 
+              => Ptr a -> IO b
+peekIntConv    = liftM fromIntegral . peek
+
+peekFloatConv :: (Storable a, RealFloat a, RealFloat b) 
+              => Ptr a -> IO b
+peekFloatConv  = liftM realToFrac . peek
+
+
+-- String Conversion functions
+--
+
+withCUString b f = withCWString b (f . castPtr)
+peekCUString = peekCWString . castPtr
+alloc64k = allocaBytes (1024 * 64)
+
+-- c2hs replacements of utility functions, to get rid of annoying c2hs
+-- deprecated messages
+
+-- Passing Enums
+
+cIntFromEnum :: Enum a => a -> CInt
+cIntFromEnum = cIntConv . fromEnum
+
+cIntToEnum :: Enum a => CInt -> a
+cIntToEnum = toEnum . cIntConv
+
+
+-- Passing Booleans by reference
+--
+
+withBoolUtil :: (Integral a, Storable a) => Bool -> (Ptr a -> IO b) -> IO b
+withBoolUtil  = with . fromBool
+
+peekBoolUtil :: (Integral a, Storable a) => Ptr a -> IO Bool
+peekBoolUtil  = liftM toBool . peek
+
+
+-- Passing enums by reference
+--
+
+withEnumUtil :: (Enum a, Integral b, Storable b) => a -> (Ptr b -> IO c) -> IO c
+withEnumUtil  = with . cFromEnum
+
+peekEnumUtil :: (Enum a, Integral b, Storable b) => Ptr b -> IO a
+peekEnumUtil  = liftM cToEnum . peek
+
+-- Conversion routines
+-- -------------------
+
+-- |Integral conversion
+--
+cIntConv :: (Integral a, Integral b) => a -> b
+cIntConv  = fromIntegral
+
+-- |Floating conversion
+--
+cFloatConv :: (RealFloat a, RealFloat b) => a -> b
+cFloatConv  = realToFrac
+
+-- |Convert a C enumeration to Haskell.
+--
+cToEnum :: (Integral i, Enum e) => i -> e
+cToEnum  = toEnum . fromIntegral
+
+-- |Convert a Haskell enumeration to C.
+--
+cFromEnum :: (Enum e, Integral i) => e -> i
+cFromEnum  = fromIntegral . fromEnum
+
diff --git a/Setup.hs b/Setup.hs
--- a/Setup.hs
+++ b/Setup.hs
@@ -1,6 +1,6 @@
 -- This source file is part of HGamer3D, a project to enable 3D game development 
 -- in Haskell. For the latest info, see http://www.hgamer3d.org .
--- 
+-- 
 -- (c) 2011-2014 Peter Althainz
 -- 
 -- Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +14,7 @@
 -- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 -- See the License for the specific language governing permissions and
 -- limitations under the License.
--- 
+-- 
 -- Setup.hs
 
 import Distribution.Simple
diff --git a/include/CEGUIDllDefines.h b/include/CEGUIDllDefines.h
--- a/include/CEGUIDllDefines.h
+++ b/include/CEGUIDllDefines.h
@@ -11,15 +11,15 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 
 // CEGUIDllDefines.h
 
-#ifndef _HGamer3DCEGUI040_DLLDEFINES_H_
-#define _HGamer3DCEGUI040_DLLDEFINES_H_
+#ifndef _HGamer3DCEGUI050_DLLDEFINES_H_
+#define _HGamer3DCEGUI050_DLLDEFINES_H_
 
-/* Cmake will define HGamer3DCEGUI040_EXPORTS on Windows when it
+/* Cmake will define HGamer3DCEGUI050_EXPORTS on Windows when it
 configures to build a shared library. If you are going to use
 another build system on windows or create the visual studio
 projects by hand you need to define MyLibrary_EXPORTS when
@@ -29,13 +29,13 @@
 // We are using the Visual Studio Compiler and building Shared libraries
 
 #if (defined (_WIN32)) && !(defined (__GNUC__)) 
-  #if defined(HGamer3DCEGUI040_EXPORTS)
+  #if defined(HGamer3DCEGUI050_EXPORTS)
     #define  CEGUI_LIB_EXPORT __declspec(dllexport)
   #else
     #define  CEGUI_LIB_EXPORT __declspec(dllimport)
-  #endif /* HGamer3DCEGUI040_EXPORTS */
+  #endif /* HGamer3DCEGUI050_EXPORTS */
 #else /* defined (_WIN32) */
  #define CEGUI_LIB_EXPORT
 #endif
 
-#endif /* _HGamer3DCEGUI040_DLLDEFINES_H_ */
+#endif /* _HGamer3DCEGUI050_DLLDEFINES_H_ */
diff --git a/include/ClassCheckbox.h b/include/ClassCheckbox.h
--- a/include/ClassCheckbox.h
+++ b/include/ClassCheckbox.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,29 +14,29 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassCheckbox.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassCheckbox
-#define _DEFINED_HG3D_ClassCheckbox
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassCheckbox
+#define _DEFINED_HG3D_ClassCheckbox
 
+#include "ClassPtr.h"
 
-// return true if the check-box is selected (has the checkmark) 
-void cegui_chkbx_isSelected(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// set whether the check-box is selected or not 
-void cegui_chkbx_setSelected(struct hg3dclass_struct * thisclass_c, int select_c);
-
-// Constructor for Checkbox
-void cegui_chkbx_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for Checkbox
-void cegui_chkbx_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// return true if the check-box is selected (has the checkmark) 
+void cegui_chkbx_isSelected(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// set whether the check-box is selected or not 
+void cegui_chkbx_setSelected(struct hg3dclass_struct * thisclass_c, int select_c);
+
+// Constructor for Checkbox
+void cegui_chkbx_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for Checkbox
+void cegui_chkbx_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassComboDropList.h b/include/ClassComboDropList.h
--- a/include/ClassComboDropList.h
+++ b/include/ClassComboDropList.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,38 +14,38 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassComboDropList.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassComboDropList
-#define _DEFINED_HG3D_ClassComboDropList
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassComboDropList
+#define _DEFINED_HG3D_ClassComboDropList
 
+#include "ClassPtr.h"
 
-// Initialise the Window
-void cegui_cmbdrplst_initialiseComponents(struct hg3dclass_struct * thisclass_c);
-
-// Set whether the drop-list is 'armed' for selection. 
-void cegui_cmbdrplst_setArmed(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Return the 'armed' state of the ComboDropList
-void cegui_cmbdrplst_isArmed(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Set the mode of operation for the ComboDropList
-void cegui_cmbdrplst_setAutoArmEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// returns the mode of operation for the drop-list 
-void cegui_cmbdrplst_isAutoArmEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Constructor for ComboDropList
-void cegui_cmbdrplst_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for ComboDropList
-void cegui_cmbdrplst_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Initialise the Window
+void cegui_cmbdrplst_initialiseComponents(struct hg3dclass_struct * thisclass_c);
+
+// Set whether the drop-list is 'armed' for selection. 
+void cegui_cmbdrplst_setArmed(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Return the 'armed' state of the ComboDropList
+void cegui_cmbdrplst_isArmed(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Set the mode of operation for the ComboDropList
+void cegui_cmbdrplst_setAutoArmEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// returns the mode of operation for the drop-list 
+void cegui_cmbdrplst_isAutoArmEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Constructor for ComboDropList
+void cegui_cmbdrplst_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for ComboDropList
+void cegui_cmbdrplst_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassCombobox.h b/include/ClassCombobox.h
--- a/include/ClassCombobox.h
+++ b/include/ClassCombobox.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,162 +14,162 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassCombobox.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassCombobox
-#define _DEFINED_HG3D_ClassCombobox
-
-#include "ClassPtr.h"
-#include "ClassEditbox.h"
-#include "ClassPushButton.h"
-#include "ClassComboDropList.h"
-#include "ClassListboxItem.h"
+#ifndef _DEFINED_HG3D_ClassCombobox
+#define _DEFINED_HG3D_ClassCombobox
 
+#include "ClassPtr.h"
+#include "ClassEditbox.h"
+#include "ClassPushButton.h"
+#include "ClassComboDropList.h"
+#include "ClassListboxItem.h"
 
-// returns the mode of operation for the combo box. 
-void cegui_cmbbx_getSingleClickEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// returns true if the drop down list is visible. 
-void cegui_cmbbx_isDropDownListVisible(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return a pointer to the EditboxCombobox
-void cegui_cmbbx_getEditbox(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return a pointer to the PushButtonCombobox
-void cegui_cmbbx_getPushButton(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return a pointer to the ComboDropListCombobox
-void cegui_cmbbx_getDropList(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// return true if the Editbox
-void cegui_cmbbx_hasInputFocus(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return true if the Editbox
-void cegui_cmbbx_isReadOnly(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return true if the Editbox
-void cegui_cmbbx_isTextValid(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the currently set validation string 
-void cegui_cmbbx_getValidationString(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// return the current position of the carat. 
-void cegui_cmbbx_getCaratIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the current selection start point. 
-void cegui_cmbbx_getSelectionStartIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the current selection end point. 
-void cegui_cmbbx_getSelectionEndIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the length of the current selection (in code points / characters). 
-void cegui_cmbbx_getSelectionLength(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the maximum text length set for this Editbox
-void cegui_cmbbx_getMaxTextLength(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return number of items attached to the list box. 
-void cegui_cmbbx_getItemCount(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return a pointer to the currently selected item. 
-void cegui_cmbbx_getSelectedItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return the item at index position index
-void cegui_cmbbx_getListboxItemFromIndex(struct hg3dclass_struct * thisclass_c, int index_c, struct hg3dclass_struct * result_c);
-
-// Return the index of ListboxItemitem
-void cegui_cmbbx_getItemIndex(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int * result_c);
-
-// return whether list sorting is enabled 
-void cegui_cmbbx_isSortEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return whether the string at index position index
-void cegui_cmbbx_isItemSelected(struct hg3dclass_struct * thisclass_c, int index_c, int * result_c);
-
-// Search the list for an item with the specified text. 
-void cegui_cmbbx_findItemWithText(struct hg3dclass_struct * thisclass_c, char * text_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
-
-// Return whether the specified ListboxItem
-void cegui_cmbbx_isListboxItemInList(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int * result_c);
-
-// Return whether the vertical scroll bar is always shown. 
-void cegui_cmbbx_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the horizontal scroll bar is always shown. 
-void cegui_cmbbx_isHorzScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Initialise the Window
-void cegui_cmbbx_initialiseComponents(struct hg3dclass_struct * thisclass_c);
-
-// Show the drop-down list. 
-void cegui_cmbbx_showDropList(struct hg3dclass_struct * thisclass_c);
-
-// Hide the drop-down list. 
-void cegui_cmbbx_hideDropList(struct hg3dclass_struct * thisclass_c);
-
-// Set the mode of operation for the combo box. 
-void cegui_cmbbx_setSingleClickEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Specify whether the Editbox
-void cegui_cmbbx_setReadOnly(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the text validation string. 
-void cegui_cmbbx_setValidationString(struct hg3dclass_struct * thisclass_c, char * validation_string_c);
-
-// Set the current position of the carat. 
-void cegui_cmbbx_setCaratIndex(struct hg3dclass_struct * thisclass_c, int carat_pos_c);
-
-// Define the current selection for the Editbox
-void cegui_cmbbx_setSelection(struct hg3dclass_struct * thisclass_c, int start_pos_c, int end_pos_c);
-
-// set the maximum text length for this Editbox
-void cegui_cmbbx_setMaxTextLength(struct hg3dclass_struct * thisclass_c, int max_len_c);
-
-// Activate the edit box component of the Combobox
-void cegui_cmbbx_activateEditbox(struct hg3dclass_struct * thisclass_c);
-
-// Remove all items from the list. 
-void cegui_cmbbx_resetList(struct hg3dclass_struct * thisclass_c);
-
-// Add the given ListboxItem
-void cegui_cmbbx_addItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
-
-// Insert an item into the list box after a specified item already in the list. 
-void cegui_cmbbx_insertItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, struct hg3dclass_struct * position_c);
-
-// Removes the given item from the list box. 
-void cegui_cmbbx_removeItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
-
-// Clear the selected state for all items. 
-void cegui_cmbbx_clearAllSelections(struct hg3dclass_struct * thisclass_c);
-
-// Set whether the list should be sorted. 
-void cegui_cmbbx_setSortingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the vertical scroll bar should always be shown. 
-void cegui_cmbbx_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the horizontal scroll bar should always be shown. 
-void cegui_cmbbx_setShowHorzScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the select state of an attached ListboxItem
-void cegui_cmbbx_setItemSelectState(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int state_c);
-
-// Set the select state of an attached ListboxItem
-void cegui_cmbbx_setItemSelectState2(struct hg3dclass_struct * thisclass_c, int item_index_c, int state_c);
-
-// Causes the list box to update it's internal state after changes have been made to one or more attached ListboxItem
-void cegui_cmbbx_handleUpdatedListItemData(struct hg3dclass_struct * thisclass_c);
-
-// Constructor for Combobox
-void cegui_cmbbx_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for Combobox
-void cegui_cmbbx_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// returns the mode of operation for the combo box. 
+void cegui_cmbbx_getSingleClickEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// returns true if the drop down list is visible. 
+void cegui_cmbbx_isDropDownListVisible(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return a pointer to the EditboxCombobox
+void cegui_cmbbx_getEditbox(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return a pointer to the PushButtonCombobox
+void cegui_cmbbx_getPushButton(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return a pointer to the ComboDropListCombobox
+void cegui_cmbbx_getDropList(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// return true if the Editbox
+void cegui_cmbbx_hasInputFocus(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return true if the Editbox
+void cegui_cmbbx_isReadOnly(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return true if the Editbox
+void cegui_cmbbx_isTextValid(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the currently set validation string 
+void cegui_cmbbx_getValidationString(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// return the current position of the carat. 
+void cegui_cmbbx_getCaratIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the current selection start point. 
+void cegui_cmbbx_getSelectionStartIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the current selection end point. 
+void cegui_cmbbx_getSelectionEndIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the length of the current selection (in code points / characters). 
+void cegui_cmbbx_getSelectionLength(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the maximum text length set for this Editbox
+void cegui_cmbbx_getMaxTextLength(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return number of items attached to the list box. 
+void cegui_cmbbx_getItemCount(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return a pointer to the currently selected item. 
+void cegui_cmbbx_getSelectedItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return the item at index position index
+void cegui_cmbbx_getListboxItemFromIndex(struct hg3dclass_struct * thisclass_c, int index_c, struct hg3dclass_struct * result_c);
+
+// Return the index of ListboxItemitem
+void cegui_cmbbx_getItemIndex(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int * result_c);
+
+// return whether list sorting is enabled 
+void cegui_cmbbx_isSortEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return whether the string at index position index
+void cegui_cmbbx_isItemSelected(struct hg3dclass_struct * thisclass_c, int index_c, int * result_c);
+
+// Search the list for an item with the specified text. 
+void cegui_cmbbx_findItemWithText(struct hg3dclass_struct * thisclass_c, char * text_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
+
+// Return whether the specified ListboxItem
+void cegui_cmbbx_isListboxItemInList(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int * result_c);
+
+// Return whether the vertical scroll bar is always shown. 
+void cegui_cmbbx_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the horizontal scroll bar is always shown. 
+void cegui_cmbbx_isHorzScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Initialise the Window
+void cegui_cmbbx_initialiseComponents(struct hg3dclass_struct * thisclass_c);
+
+// Show the drop-down list. 
+void cegui_cmbbx_showDropList(struct hg3dclass_struct * thisclass_c);
+
+// Hide the drop-down list. 
+void cegui_cmbbx_hideDropList(struct hg3dclass_struct * thisclass_c);
+
+// Set the mode of operation for the combo box. 
+void cegui_cmbbx_setSingleClickEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Specify whether the Editbox
+void cegui_cmbbx_setReadOnly(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the text validation string. 
+void cegui_cmbbx_setValidationString(struct hg3dclass_struct * thisclass_c, char * validation_string_c);
+
+// Set the current position of the carat. 
+void cegui_cmbbx_setCaratIndex(struct hg3dclass_struct * thisclass_c, int carat_pos_c);
+
+// Define the current selection for the Editbox
+void cegui_cmbbx_setSelection(struct hg3dclass_struct * thisclass_c, int start_pos_c, int end_pos_c);
+
+// set the maximum text length for this Editbox
+void cegui_cmbbx_setMaxTextLength(struct hg3dclass_struct * thisclass_c, int max_len_c);
+
+// Activate the edit box component of the Combobox
+void cegui_cmbbx_activateEditbox(struct hg3dclass_struct * thisclass_c);
+
+// Remove all items from the list. 
+void cegui_cmbbx_resetList(struct hg3dclass_struct * thisclass_c);
+
+// Add the given ListboxItem
+void cegui_cmbbx_addItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
+
+// Insert an item into the list box after a specified item already in the list. 
+void cegui_cmbbx_insertItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, struct hg3dclass_struct * position_c);
+
+// Removes the given item from the list box. 
+void cegui_cmbbx_removeItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
+
+// Clear the selected state for all items. 
+void cegui_cmbbx_clearAllSelections(struct hg3dclass_struct * thisclass_c);
+
+// Set whether the list should be sorted. 
+void cegui_cmbbx_setSortingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the vertical scroll bar should always be shown. 
+void cegui_cmbbx_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the horizontal scroll bar should always be shown. 
+void cegui_cmbbx_setShowHorzScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the select state of an attached ListboxItem
+void cegui_cmbbx_setItemSelectState(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int state_c);
+
+// Set the select state of an attached ListboxItem
+void cegui_cmbbx_setItemSelectState2(struct hg3dclass_struct * thisclass_c, int item_index_c, int state_c);
+
+// Causes the list box to update it's internal state after changes have been made to one or more attached ListboxItem
+void cegui_cmbbx_handleUpdatedListItemData(struct hg3dclass_struct * thisclass_c);
+
+// Constructor for Combobox
+void cegui_cmbbx_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for Combobox
+void cegui_cmbbx_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassDefaultLogger.h b/include/ClassDefaultLogger.h
--- a/include/ClassDefaultLogger.h
+++ b/include/ClassDefaultLogger.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,30 +14,30 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassDefaultLogger.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassDefaultLogger
-#define _DEFINED_HG3D_ClassDefaultLogger
-
-#include "ClassPtr.h"
-#include "EnumLoggingLevel.h"
+#ifndef _DEFINED_HG3D_ClassDefaultLogger
+#define _DEFINED_HG3D_ClassDefaultLogger
 
+#include "ClassPtr.h"
+#include "EnumLoggingLevel.h"
 
-// Constructor for DefaultLogger
-void cegui_dfltlgr_construct(struct hg3dclass_struct * result_c);
-
-// Destructor for DefaultLogger
-void cegui_dfltlgr_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Add an event to the log. 
-void cegui_dfltlgr_logEvent(struct hg3dclass_struct * thisclass_c, char * message_c, enum EnumLoggingLevel level_c);
-
-// Set the name of the log file where all subsequent log entries should be written. 
-void cegui_dfltlgr_setLogFilename(struct hg3dclass_struct * thisclass_c, char * filename_c, int append_c);
-
-#endif 
+
+// Constructor for DefaultLogger
+void cegui_dfltlgr_construct(struct hg3dclass_struct * result_c);
+
+// Destructor for DefaultLogger
+void cegui_dfltlgr_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Add an event to the log. 
+void cegui_dfltlgr_logEvent(struct hg3dclass_struct * thisclass_c, char * message_c, enum EnumLoggingLevel level_c);
+
+// Set the name of the log file where all subsequent log entries should be written. 
+void cegui_dfltlgr_setLogFilename(struct hg3dclass_struct * thisclass_c, char * filename_c, int append_c);
+
+#endif 
diff --git a/include/ClassDefaultResourceProvider.h b/include/ClassDefaultResourceProvider.h
--- a/include/ClassDefaultResourceProvider.h
+++ b/include/ClassDefaultResourceProvider.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,32 +14,32 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassDefaultResourceProvider.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassDefaultResourceProvider
-#define _DEFINED_HG3D_ClassDefaultResourceProvider
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassDefaultResourceProvider
+#define _DEFINED_HG3D_ClassDefaultResourceProvider
 
+#include "ClassPtr.h"
 
-// 
-void cegui_drpr_construct(struct hg3dclass_struct * result_c);
-
-// 
-void cegui_drpr_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Set the directory associated with a given resource group identifier. 
-void cegui_drpr_setResourceGroupDirectory(struct hg3dclass_struct * thisclass_c, char * resourceGroup_c, char * directory_c);
-
-// Return the directory associated with the specified resource group identifier. 
-void cegui_drpr_getResourceGroupDirectory(struct hg3dclass_struct * thisclass_c, char * resourceGroup_c, char * result_c);
-
-// clears any currently set directory for the specified resource group identifier. 
-void cegui_drpr_clearResourceGroupDirectory(struct hg3dclass_struct * thisclass_c, char * resourceGroup_c);
-
-#endif 
+
+// 
+void cegui_drpr_construct(struct hg3dclass_struct * result_c);
+
+// 
+void cegui_drpr_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Set the directory associated with a given resource group identifier. 
+void cegui_drpr_setResourceGroupDirectory(struct hg3dclass_struct * thisclass_c, char * resourceGroup_c, char * directory_c);
+
+// Return the directory associated with the specified resource group identifier. 
+void cegui_drpr_getResourceGroupDirectory(struct hg3dclass_struct * thisclass_c, char * resourceGroup_c, char * result_c);
+
+// clears any currently set directory for the specified resource group identifier. 
+void cegui_drpr_clearResourceGroupDirectory(struct hg3dclass_struct * thisclass_c, char * resourceGroup_c);
+
+#endif 
diff --git a/include/ClassDragContainer.h b/include/ClassDragContainer.h
--- a/include/ClassDragContainer.h
+++ b/include/ClassDragContainer.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,73 +14,73 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassDragContainer.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassDragContainer
-#define _DEFINED_HG3D_ClassDragContainer
-
-#include "ClassPtr.h"
-#include "ClassWindow.h"
-#include "ClassUVector2.h"
+#ifndef _DEFINED_HG3D_ClassDragContainer
+#define _DEFINED_HG3D_ClassDragContainer
 
+#include "ClassPtr.h"
+#include "ClassWindow.h"
+#include "ClassUVector2.h"
 
-// Constructor for DragContainer
-void cegui_drgcnt_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for DragContainer
-void cegui_drgcnt_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Return whether dragging is currently enabled for this DragContainer
-void cegui_drgcnt_isDraggingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Set whether dragging is currently enabled for this DragContainer
-void cegui_drgcnt_setDraggingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Return whether the DragContainer
-void cegui_drgcnt_isBeingDragged(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return the current drag threshold in pixels. 
-void cegui_drgcnt_getPixelDragThreshold(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Set the current drag threshold in pixels. 
-void cegui_drgcnt_setPixelDragThreshold(struct hg3dclass_struct * thisclass_c, float pixels_c);
-
-// Return the alpha value that will be set on the DragContainer
-void cegui_drgcnt_getDragAlpha(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Set the alpha value to be set on the DragContainer
-void cegui_drgcnt_setDragAlpha(struct hg3dclass_struct * thisclass_c, float alpha_c);
-
-// Set the Image to be used for the mouse cursor when a drag operation is in progress. 
-void cegui_drgcnt_setDragCursorImage3(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
-
-// Return the WindowDragContainer
-void cegui_drgcnt_getCurrentDropTarget(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return whether sticky mode is enable or disabled. 
-void cegui_drgcnt_isStickyModeEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Enable or disable sticky mode. 
-void cegui_drgcnt_setStickyModeEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Immediately pick up the DragContainer
-void cegui_drgcnt_pickUp(struct hg3dclass_struct * thisclass_c, const int force_sticky_c, int * result_c);
-
-// Set the fixed mouse cursor dragging offset to be used for this DragContainer
-void cegui_drgcnt_setFixedDragOffset(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * offset_c);
-
-// Return the fixed mouse cursor dragging offset to be used for this DragContainer
-void cegui_drgcnt_getFixedDragOffset(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Set whether the fixed dragging offset - as set with the setFixedDragOffset - function will be used, or whether the built-in positioning will be used. 
-void cegui_drgcnt_setUsingFixedDragOffset(struct hg3dclass_struct * thisclass_c, const int enable_c);
-
-// Return whether the fixed dragging offset - as set with the setFixedDragOffset function - will be used, or whether the built-in positioning will be used. 
-void cegui_drgcnt_isUsingFixedDragOffset(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-#endif 
+
+// Constructor for DragContainer
+void cegui_drgcnt_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for DragContainer
+void cegui_drgcnt_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Return whether dragging is currently enabled for this DragContainer
+void cegui_drgcnt_isDraggingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Set whether dragging is currently enabled for this DragContainer
+void cegui_drgcnt_setDraggingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Return whether the DragContainer
+void cegui_drgcnt_isBeingDragged(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return the current drag threshold in pixels. 
+void cegui_drgcnt_getPixelDragThreshold(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Set the current drag threshold in pixels. 
+void cegui_drgcnt_setPixelDragThreshold(struct hg3dclass_struct * thisclass_c, float pixels_c);
+
+// Return the alpha value that will be set on the DragContainer
+void cegui_drgcnt_getDragAlpha(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Set the alpha value to be set on the DragContainer
+void cegui_drgcnt_setDragAlpha(struct hg3dclass_struct * thisclass_c, float alpha_c);
+
+// Set the Image to be used for the mouse cursor when a drag operation is in progress. 
+void cegui_drgcnt_setDragCursorImage3(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
+
+// Return the WindowDragContainer
+void cegui_drgcnt_getCurrentDropTarget(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return whether sticky mode is enable or disabled. 
+void cegui_drgcnt_isStickyModeEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Enable or disable sticky mode. 
+void cegui_drgcnt_setStickyModeEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Immediately pick up the DragContainer
+void cegui_drgcnt_pickUp(struct hg3dclass_struct * thisclass_c, const int force_sticky_c, int * result_c);
+
+// Set the fixed mouse cursor dragging offset to be used for this DragContainer
+void cegui_drgcnt_setFixedDragOffset(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * offset_c);
+
+// Return the fixed mouse cursor dragging offset to be used for this DragContainer
+void cegui_drgcnt_getFixedDragOffset(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Set whether the fixed dragging offset - as set with the setFixedDragOffset - function will be used, or whether the built-in positioning will be used. 
+void cegui_drgcnt_setUsingFixedDragOffset(struct hg3dclass_struct * thisclass_c, const int enable_c);
+
+// Return whether the fixed dragging offset - as set with the setFixedDragOffset function - will be used, or whether the built-in positioning will be used. 
+void cegui_drgcnt_isUsingFixedDragOffset(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+#endif 
diff --git a/include/ClassEditbox.h b/include/ClassEditbox.h
--- a/include/ClassEditbox.h
+++ b/include/ClassEditbox.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,77 +14,77 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassEditbox.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassEditbox
-#define _DEFINED_HG3D_ClassEditbox
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassEditbox
+#define _DEFINED_HG3D_ClassEditbox
 
+#include "ClassPtr.h"
 
-// return true if the Editbox
-void cegui_edtbx_hasInputFocus(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return true if the Editbox
-void cegui_edtbx_isReadOnly(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return true if the text for the Editbox
-void cegui_edtbx_isTextMasked(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return true if the Editbox
-void cegui_edtbx_isTextValid(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the currently set validation string 
-void cegui_edtbx_getValidationString(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// return the current position of the carat. 
-void cegui_edtbx_getCaratIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the current selection start point. 
-void cegui_edtbx_getSelectionStartIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the current selection end point. 
-void cegui_edtbx_getSelectionEndIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the length of the current selection (in code points / characters). 
-void cegui_edtbx_getSelectionLength(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the utf32 code point used when rendering masked text. 
-void cegui_edtbx_getMaskCodePoint(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the maximum text length set for this Editbox
-void cegui_edtbx_getMaxTextLength(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Specify whether the Editbox
-void cegui_edtbx_setReadOnly(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Specify whether the text for the Editbox
-void cegui_edtbx_setTextMasked(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the text validation string. 
-void cegui_edtbx_setValidationString(struct hg3dclass_struct * thisclass_c, char * validation_string_c);
-
-// Set the current position of the carat. 
-void cegui_edtbx_setCaratIndex(struct hg3dclass_struct * thisclass_c, int carat_pos_c);
-
-// Define the current selection for the Editbox
-void cegui_edtbx_setSelection(struct hg3dclass_struct * thisclass_c, int start_pos_c, int end_pos_c);
-
-// set the utf32 code point used when rendering masked text. 
-void cegui_edtbx_setMaskCodePoint(struct hg3dclass_struct * thisclass_c, int code_point_c);
-
-// set the maximum text length for this Editbox
-void cegui_edtbx_setMaxTextLength(struct hg3dclass_struct * thisclass_c, int max_len_c);
-
-// Constructor for Editbox
-void cegui_edtbx_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for Editbox
-void cegui_edtbx_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// return true if the Editbox
+void cegui_edtbx_hasInputFocus(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return true if the Editbox
+void cegui_edtbx_isReadOnly(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return true if the text for the Editbox
+void cegui_edtbx_isTextMasked(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return true if the Editbox
+void cegui_edtbx_isTextValid(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the currently set validation string 
+void cegui_edtbx_getValidationString(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// return the current position of the carat. 
+void cegui_edtbx_getCaratIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the current selection start point. 
+void cegui_edtbx_getSelectionStartIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the current selection end point. 
+void cegui_edtbx_getSelectionEndIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the length of the current selection (in code points / characters). 
+void cegui_edtbx_getSelectionLength(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the utf32 code point used when rendering masked text. 
+void cegui_edtbx_getMaskCodePoint(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the maximum text length set for this Editbox
+void cegui_edtbx_getMaxTextLength(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Specify whether the Editbox
+void cegui_edtbx_setReadOnly(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Specify whether the text for the Editbox
+void cegui_edtbx_setTextMasked(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the text validation string. 
+void cegui_edtbx_setValidationString(struct hg3dclass_struct * thisclass_c, char * validation_string_c);
+
+// Set the current position of the carat. 
+void cegui_edtbx_setCaratIndex(struct hg3dclass_struct * thisclass_c, int carat_pos_c);
+
+// Define the current selection for the Editbox
+void cegui_edtbx_setSelection(struct hg3dclass_struct * thisclass_c, int start_pos_c, int end_pos_c);
+
+// set the utf32 code point used when rendering masked text. 
+void cegui_edtbx_setMaskCodePoint(struct hg3dclass_struct * thisclass_c, int code_point_c);
+
+// set the maximum text length for this Editbox
+void cegui_edtbx_setMaxTextLength(struct hg3dclass_struct * thisclass_c, int max_len_c);
+
+// Constructor for Editbox
+void cegui_edtbx_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for Editbox
+void cegui_edtbx_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassEventArgs.h b/include/ClassEventArgs.h
--- a/include/ClassEventArgs.h
+++ b/include/ClassEventArgs.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,23 +14,23 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassEventArgs.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassEventArgs
-#define _DEFINED_HG3D_ClassEventArgs
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassEventArgs
+#define _DEFINED_HG3D_ClassEventArgs
 
+#include "ClassPtr.h"
 
-// 
-void cegui_evntargs_construct(struct hg3dclass_struct * result_c);
-
-// 
-void cegui_evntargs_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// 
+void cegui_evntargs_construct(struct hg3dclass_struct * result_c);
+
+// 
+void cegui_evntargs_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassEventSet.h b/include/ClassEventSet.h
--- a/include/ClassEventSet.h
+++ b/include/ClassEventSet.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,45 +14,45 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassEventSet.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassEventSet
-#define _DEFINED_HG3D_ClassEventSet
-
-#include "ClassPtr.h"
-#include "ClassEventArgs.h"
+#ifndef _DEFINED_HG3D_ClassEventSet
+#define _DEFINED_HG3D_ClassEventSet
 
+#include "ClassPtr.h"
+#include "ClassEventArgs.h"
 
-// Constructor for EventSet
-void cegui_evtst_construct(struct hg3dclass_struct * result_c);
-
-// Destructor for EventSet
-void cegui_evtst_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Add a new EventEventSet
-void cegui_evtst_addEvent(struct hg3dclass_struct * thisclass_c, char * name_c);
-
-// Removes the Event
-void cegui_evtst_removeEvent(struct hg3dclass_struct * thisclass_c, char * name_c);
-
-// Remove all EventEventSet
-void cegui_evtst_removeAllEvents(struct hg3dclass_struct * thisclass_c);
-
-// Checks to see if an EventEventSet
-void cegui_evtst_isEventPresent(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
-
-// Fires the named event passing the given EventArgs
-void cegui_evtst_fireEvent(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * args_c, char * eventNamespace_c);
-
-// Return whether the EventSet
-void cegui_evtst_isMuted(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Set the mute state for this EventSet
-void cegui_evtst_setMutedState(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-#endif 
+
+// Constructor for EventSet
+void cegui_evtst_construct(struct hg3dclass_struct * result_c);
+
+// Destructor for EventSet
+void cegui_evtst_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Add a new EventEventSet
+void cegui_evtst_addEvent(struct hg3dclass_struct * thisclass_c, char * name_c);
+
+// Removes the Event
+void cegui_evtst_removeEvent(struct hg3dclass_struct * thisclass_c, char * name_c);
+
+// Remove all EventEventSet
+void cegui_evtst_removeAllEvents(struct hg3dclass_struct * thisclass_c);
+
+// Checks to see if an EventEventSet
+void cegui_evtst_isEventPresent(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
+
+// Fires the named event passing the given EventArgs
+void cegui_evtst_fireEvent(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * args_c, char * eventNamespace_c);
+
+// Return whether the EventSet
+void cegui_evtst_isMuted(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Set the mute state for this EventSet
+void cegui_evtst_setMutedState(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+#endif 
diff --git a/include/ClassFont.h b/include/ClassFont.h
--- a/include/ClassFont.h
+++ b/include/ClassFont.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,59 +14,59 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassFont.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassFont
-#define _DEFINED_HG3D_ClassFont
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassFont
+#define _DEFINED_HG3D_ClassFont
 
+#include "ClassPtr.h"
 
-// Destructor. 
-void cegui_fnt_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Return the string holding the font name. 
-void cegui_fnt_getName(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// Return the type of the font. 
-void cegui_fnt_getTypeName(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// Return whether this Font
-void cegui_fnt_isCodepointAvailable(struct hg3dclass_struct * thisclass_c, int cp_c, int * result_c);
-
-// Enable or disable auto-scaling for this Font
-void cegui_fnt_setAutoScaled(struct hg3dclass_struct * thisclass_c, const int auto_scaled_c);
-
-// Return whether this Font
-void cegui_fnt_isAutoScaled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return the pixel line spacing value for. 
-void cegui_fnt_getLineSpacing(struct hg3dclass_struct * thisclass_c, float y_scale_c, float * result_c);
-
-// return the exact pixel height of the font. 
-void cegui_fnt_getFontHeight(struct hg3dclass_struct * thisclass_c, float y_scale_c, float * result_c);
-
-// Return the number of pixels from the top of the highest glyph to the baseline. 
-void cegui_fnt_getBaseline(struct hg3dclass_struct * thisclass_c, float y_scale_c, float * result_c);
-
-// Return the pixel width of the specified text if rendered with this Font
-void cegui_fnt_getTextExtent(struct hg3dclass_struct * thisclass_c, char * text_c, float x_scale_c, float * result_c);
-
-// Return the index of the closest text character in String textpixel
-void cegui_fnt_getCharAtPixel(struct hg3dclass_struct * thisclass_c, char * text_c, float pixel_c, float x_scale_c, int * result_c);
-
-// Return the index of the closest text character in String textstart_charpixel
-void cegui_fnt_getCharAtPixel2(struct hg3dclass_struct * thisclass_c, char * text_c, int start_char_c, float pixel_c, float x_scale_c, int * result_c);
-
-// Sets the default resource group to be used when loading font data. 
-void cegui_fnt_setDefaultResourceGroup(char * resourceGroup_c);
-
-// Returns the default resource group currently set for Fonts. 
-void cegui_fnt_getDefaultResourceGroup(char * result_c);
-
-#endif 
+
+// Destructor. 
+void cegui_fnt_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Return the string holding the font name. 
+void cegui_fnt_getName(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// Return the type of the font. 
+void cegui_fnt_getTypeName(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// Return whether this Font
+void cegui_fnt_isCodepointAvailable(struct hg3dclass_struct * thisclass_c, int cp_c, int * result_c);
+
+// Enable or disable auto-scaling for this Font
+void cegui_fnt_setAutoScaled(struct hg3dclass_struct * thisclass_c, const int auto_scaled_c);
+
+// Return whether this Font
+void cegui_fnt_isAutoScaled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return the pixel line spacing value for. 
+void cegui_fnt_getLineSpacing(struct hg3dclass_struct * thisclass_c, float y_scale_c, float * result_c);
+
+// return the exact pixel height of the font. 
+void cegui_fnt_getFontHeight(struct hg3dclass_struct * thisclass_c, float y_scale_c, float * result_c);
+
+// Return the number of pixels from the top of the highest glyph to the baseline. 
+void cegui_fnt_getBaseline(struct hg3dclass_struct * thisclass_c, float y_scale_c, float * result_c);
+
+// Return the pixel width of the specified text if rendered with this Font
+void cegui_fnt_getTextExtent(struct hg3dclass_struct * thisclass_c, char * text_c, float x_scale_c, float * result_c);
+
+// Return the index of the closest text character in String textpixel
+void cegui_fnt_getCharAtPixel(struct hg3dclass_struct * thisclass_c, char * text_c, float pixel_c, float x_scale_c, int * result_c);
+
+// Return the index of the closest text character in String textstart_charpixel
+void cegui_fnt_getCharAtPixel2(struct hg3dclass_struct * thisclass_c, char * text_c, int start_char_c, float pixel_c, float x_scale_c, int * result_c);
+
+// Sets the default resource group to be used when loading font data. 
+void cegui_fnt_setDefaultResourceGroup(char * resourceGroup_c);
+
+// Returns the default resource group currently set for Fonts. 
+void cegui_fnt_getDefaultResourceGroup(char * result_c);
+
+#endif 
diff --git a/include/ClassFontManager.h b/include/ClassFontManager.h
--- a/include/ClassFontManager.h
+++ b/include/ClassFontManager.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,23 +14,23 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassFontManager.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassFontManager
-#define _DEFINED_HG3D_ClassFontManager
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassFontManager
+#define _DEFINED_HG3D_ClassFontManager
 
+#include "ClassPtr.h"
 
-// Constructor. 
-void cegui_fntmgr_construct(struct hg3dclass_struct * result_c);
-
-// Destructor. 
-void cegui_fntmgr_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Constructor. 
+void cegui_fntmgr_construct(struct hg3dclass_struct * result_c);
+
+// Destructor. 
+void cegui_fntmgr_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassFrameWindow.h b/include/ClassFrameWindow.h
--- a/include/ClassFrameWindow.h
+++ b/include/ClassFrameWindow.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,90 +14,90 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassFrameWindow.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassFrameWindow
-#define _DEFINED_HG3D_ClassFrameWindow
-
-#include "ClassPtr.h"
-#include "ClassPushButton.h"
+#ifndef _DEFINED_HG3D_ClassFrameWindow
+#define _DEFINED_HG3D_ClassFrameWindow
 
+#include "ClassPtr.h"
+#include "ClassPushButton.h"
 
-// Initialises the Window
-void cegui_frmwndw_initialiseComponents(struct hg3dclass_struct * thisclass_c);
-
-// Return whether this window is sizable. Note that this requires that the window have an enabled frame and that sizing itself is enabled. 
-void cegui_frmwndw_isSizingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the frame for this window is enabled. 
-void cegui_frmwndw_isFrameEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the title bar for this window is enabled. 
-void cegui_frmwndw_isTitleBarEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether this close button for this window is enabled. 
-void cegui_frmwndw_isCloseButtonEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether roll up (a.k.a shading) is enabled for this window. 
-void cegui_frmwndw_isRollupEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the window is currently rolled up (a.k.a shaded). 
-void cegui_frmwndw_isRolledup(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return the thickness of the sizing border. 
-void cegui_frmwndw_getSizingBorderThickness(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Enables or disables sizing for this window. 
-void cegui_frmwndw_setSizingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Enables or disables the frame for this window. 
-void cegui_frmwndw_setFrameEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Enables or disables the title bar for the frame window. 
-void cegui_frmwndw_setTitleBarEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Enables or disables the close button for the frame window. 
-void cegui_frmwndw_setCloseButtonEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Enables or disables roll-up (shading) for this window. 
-void cegui_frmwndw_setRollupEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Toggles the state of the window between rolled-up (shaded) and normal sizes. This requires roll-up to be enabled. 
-void cegui_frmwndw_toggleRollup(struct hg3dclass_struct * thisclass_c);
-
-// Set the size of the sizing border for this window. 
-void cegui_frmwndw_setSizingBorderThickness(struct hg3dclass_struct * thisclass_c, float pixels_c);
-
-// Return whether this FrameWindow
-void cegui_frmwndw_isDragMovingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Set whether this FrameWindow
-void cegui_frmwndw_setDragMovingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the image to be used for the north-south sizing mouse cursor. 
-void cegui_frmwndw_setNSSizingCursorImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
-
-// Set the image to be used for the east-west sizing mouse cursor. 
-void cegui_frmwndw_setEWSizingCursorImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
-
-// Set the image to be used for the northwest-southeast sizing mouse cursor. 
-void cegui_frmwndw_setNWSESizingCursorImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
-
-// Set the image to be used for the northeast-southwest sizing mouse cursor. 
-void cegui_frmwndw_setNESWSizingCursorImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
-
-// Return a pointer to the close button component widget for this FrameWindow
-void cegui_frmwndw_getCloseButton(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Constructor for FrameWindow
-void cegui_frmwndw_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for FramwWindow objects. 
-void cegui_frmwndw_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Initialises the Window
+void cegui_frmwndw_initialiseComponents(struct hg3dclass_struct * thisclass_c);
+
+// Return whether this window is sizable. Note that this requires that the window have an enabled frame and that sizing itself is enabled. 
+void cegui_frmwndw_isSizingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the frame for this window is enabled. 
+void cegui_frmwndw_isFrameEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the title bar for this window is enabled. 
+void cegui_frmwndw_isTitleBarEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether this close button for this window is enabled. 
+void cegui_frmwndw_isCloseButtonEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether roll up (a.k.a shading) is enabled for this window. 
+void cegui_frmwndw_isRollupEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the window is currently rolled up (a.k.a shaded). 
+void cegui_frmwndw_isRolledup(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return the thickness of the sizing border. 
+void cegui_frmwndw_getSizingBorderThickness(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Enables or disables sizing for this window. 
+void cegui_frmwndw_setSizingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Enables or disables the frame for this window. 
+void cegui_frmwndw_setFrameEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Enables or disables the title bar for the frame window. 
+void cegui_frmwndw_setTitleBarEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Enables or disables the close button for the frame window. 
+void cegui_frmwndw_setCloseButtonEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Enables or disables roll-up (shading) for this window. 
+void cegui_frmwndw_setRollupEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Toggles the state of the window between rolled-up (shaded) and normal sizes. This requires roll-up to be enabled. 
+void cegui_frmwndw_toggleRollup(struct hg3dclass_struct * thisclass_c);
+
+// Set the size of the sizing border for this window. 
+void cegui_frmwndw_setSizingBorderThickness(struct hg3dclass_struct * thisclass_c, float pixels_c);
+
+// Return whether this FrameWindow
+void cegui_frmwndw_isDragMovingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Set whether this FrameWindow
+void cegui_frmwndw_setDragMovingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the image to be used for the north-south sizing mouse cursor. 
+void cegui_frmwndw_setNSSizingCursorImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
+
+// Set the image to be used for the east-west sizing mouse cursor. 
+void cegui_frmwndw_setEWSizingCursorImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
+
+// Set the image to be used for the northwest-southeast sizing mouse cursor. 
+void cegui_frmwndw_setNWSESizingCursorImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
+
+// Set the image to be used for the northeast-southwest sizing mouse cursor. 
+void cegui_frmwndw_setNESWSizingCursorImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
+
+// Return a pointer to the close button component widget for this FrameWindow
+void cegui_frmwndw_getCloseButton(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Constructor for FrameWindow
+void cegui_frmwndw_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for FramwWindow objects. 
+void cegui_frmwndw_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassHG3DEventController.h b/include/ClassHG3DEventController.h
--- a/include/ClassHG3DEventController.h
+++ b/include/ClassHG3DEventController.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,33 +14,33 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassHG3DEventController.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassHG3DEventController
-#define _DEFINED_HG3D_ClassHG3DEventController
-
-#include "ClassPtr.h"
-#include "ClassWindow.h"
+#ifndef _DEFINED_HG3D_ClassHG3DEventController
+#define _DEFINED_HG3D_ClassHG3DEventController
 
+#include "ClassPtr.h"
+#include "ClassWindow.h"
 
-// 
-void construct(struct hg3dclass_struct * result_c);
-
-// 
-void destruct(struct hg3dclass_struct * thisclass_c);
-
-// 
-void pushEvent(struct hg3dclass_struct * thisclass_c, char * name_c, char * sender_c, struct hg3dclass_struct * window_c);
-
-// 
-void eventsAvailable(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// 
-void popEvent(struct hg3dclass_struct * thisclass_c, char * name_c, char * sender_c, struct hg3dclass_struct * window_c);
-
-#endif 
+
+// 
+void construct(struct hg3dclass_struct * result_c);
+
+// 
+void destruct(struct hg3dclass_struct * thisclass_c);
+
+// 
+void pushEvent(struct hg3dclass_struct * thisclass_c, char * name_c, char * sender_c, struct hg3dclass_struct * window_c);
+
+// 
+void eventsAvailable(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// 
+void popEvent(struct hg3dclass_struct * thisclass_c, char * name_c, char * sender_c, struct hg3dclass_struct * window_c);
+
+#endif 
diff --git a/include/ClassHG3DEventStaticFunctions.h b/include/ClassHG3DEventStaticFunctions.h
--- a/include/ClassHG3DEventStaticFunctions.h
+++ b/include/ClassHG3DEventStaticFunctions.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,21 +14,21 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassHG3DEventStaticFunctions.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassHG3DEventStaticFunctions
-#define _DEFINED_HG3D_ClassHG3DEventStaticFunctions
-
-#include "ClassPtr.h"
-#include "ClassEventSet.h"
+#ifndef _DEFINED_HG3D_ClassHG3DEventStaticFunctions
+#define _DEFINED_HG3D_ClassHG3DEventStaticFunctions
 
+#include "ClassPtr.h"
+#include "ClassEventSet.h"
 
-// 
-void cegui_hg3devtsf_subscribeScriptedEvent(struct hg3dclass_struct * window_c, char * name_c, char * subscriber_name_c);
-
-#endif 
+
+// 
+void cegui_hg3devtsf_subscribeScriptedEvent(struct hg3dclass_struct * window_c, char * name_c, char * subscriber_name_c);
+
+#endif 
diff --git a/include/ClassHG3DListboxStaticFunctions.h b/include/ClassHG3DListboxStaticFunctions.h
--- a/include/ClassHG3DListboxStaticFunctions.h
+++ b/include/ClassHG3DListboxStaticFunctions.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,25 +14,25 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassHG3DListboxStaticFunctions.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassHG3DListboxStaticFunctions
-#define _DEFINED_HG3D_ClassHG3DListboxStaticFunctions
-
-#include "ClassPtr.h"
-#include "ClassListbox.h"
-#include "ClassCombobox.h"
+#ifndef _DEFINED_HG3D_ClassHG3DListboxStaticFunctions
+#define _DEFINED_HG3D_ClassHG3DListboxStaticFunctions
 
+#include "ClassPtr.h"
+#include "ClassListbox.h"
+#include "ClassCombobox.h"
 
-// 
-void cegui_hg3dlstbxsf_listboxAddItem(struct hg3dclass_struct * listbox_c, char * itemString_c);
-
-// 
-void cegui_hg3dlstbxsf_comboboxAddItem(struct hg3dclass_struct * combobox_c, char * itemString_c);
-
-#endif 
+
+// 
+void cegui_hg3dlstbxsf_listboxAddItem(struct hg3dclass_struct * listbox_c, char * itemString_c);
+
+// 
+void cegui_hg3dlstbxsf_comboboxAddItem(struct hg3dclass_struct * combobox_c, char * itemString_c);
+
+#endif 
diff --git a/include/ClassHG3DWindowStaticFunctions.h b/include/ClassHG3DWindowStaticFunctions.h
--- a/include/ClassHG3DWindowStaticFunctions.h
+++ b/include/ClassHG3DWindowStaticFunctions.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,92 +14,92 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassHG3DWindowStaticFunctions.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassHG3DWindowStaticFunctions
-#define _DEFINED_HG3D_ClassHG3DWindowStaticFunctions
-
-#include "ClassPtr.h"
-#include "ClassPushButton.h"
-#include "ClassWindow.h"
-#include "ClassListbox.h"
-#include "ClassCombobox.h"
-#include "ClassRadioButton.h"
-#include "ClassEditbox.h"
-#include "ClassMultiLineEditbox.h"
-#include "ClassFrameWindow.h"
-#include "ClassProgressBar.h"
-#include "ClassSlider.h"
-#include "ClassSpinner.h"
-#include "ClassMultiColumnList.h"
-#include "ClassUDim.h"
-#include "ClassUVector2.h"
-#include "ClassSystem.h"
+#ifndef _DEFINED_HG3D_ClassHG3DWindowStaticFunctions
+#define _DEFINED_HG3D_ClassHG3DWindowStaticFunctions
 
+#include "ClassPtr.h"
+#include "ClassPushButton.h"
+#include "ClassWindow.h"
+#include "ClassListbox.h"
+#include "ClassCombobox.h"
+#include "ClassRadioButton.h"
+#include "ClassEditbox.h"
+#include "ClassMultiLineEditbox.h"
+#include "ClassFrameWindow.h"
+#include "ClassProgressBar.h"
+#include "ClassSlider.h"
+#include "ClassSpinner.h"
+#include "ClassMultiColumnList.h"
+#include "ClassUDim.h"
+#include "ClassUVector2.h"
+#include "ClassSystem.h"
 
-// 
-void cegui_hg3dwsfs_castWindowToPushButton(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_castWindowToListbox(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_castWindowToCombobox(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_castWindowToRadioButton(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_castWindowToEditbox(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_castWindowToMultiLineEditbox(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_castWindowToFrameWindow(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_castWindowToProgressBar(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_castWindowToSlider(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_castWindowToSpinner(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_castWindowToMultiColumnList(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_udScale(struct hg3dclass_struct * ud_c, float * result_c);
-
-// 
-void cegui_hg3dwsfs_udOffset(struct hg3dclass_struct * ud_c, float * result_c);
-
-// 
-void cegui_hg3dwsfs_v2X(struct hg3dclass_struct * uv2_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_v2Y(struct hg3dclass_struct * uv2_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_getWindowWidth(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_getWindowHeight(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_setNewWindowSize(struct hg3dclass_struct * system_c, float width_c, float height_c);
-
-// 
-void cegui_hg3dwsfs_getWindowMargin(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_hg3dwsfs_setWindowMargin(struct hg3dclass_struct * window_c, struct hg3dclass_struct * margin_c);
-
-#endif 
+
+// 
+void cegui_hg3dwsfs_castWindowToPushButton(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_castWindowToListbox(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_castWindowToCombobox(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_castWindowToRadioButton(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_castWindowToEditbox(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_castWindowToMultiLineEditbox(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_castWindowToFrameWindow(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_castWindowToProgressBar(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_castWindowToSlider(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_castWindowToSpinner(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_castWindowToMultiColumnList(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_udScale(struct hg3dclass_struct * ud_c, float * result_c);
+
+// 
+void cegui_hg3dwsfs_udOffset(struct hg3dclass_struct * ud_c, float * result_c);
+
+// 
+void cegui_hg3dwsfs_v2X(struct hg3dclass_struct * uv2_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_v2Y(struct hg3dclass_struct * uv2_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_getWindowWidth(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_getWindowHeight(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_setNewWindowSize(struct hg3dclass_struct * system_c, float width_c, float height_c);
+
+// 
+void cegui_hg3dwsfs_getWindowMargin(struct hg3dclass_struct * window_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_hg3dwsfs_setWindowMargin(struct hg3dclass_struct * window_c, struct hg3dclass_struct * margin_c);
+
+#endif 
diff --git a/include/ClassImageCodec.h b/include/ClassImageCodec.h
--- a/include/ClassImageCodec.h
+++ b/include/ClassImageCodec.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,26 +14,26 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassImageCodec.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassImageCodec
-#define _DEFINED_HG3D_ClassImageCodec
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassImageCodec
+#define _DEFINED_HG3D_ClassImageCodec
 
+#include "ClassPtr.h"
 
-// Destructor. 
-void cegui_imgcdc_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Return the name of the image codec object. 
-void cegui_imgcdc_getIdentifierString(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// Return the list of image file format supported. 
-void cegui_imgcdc_getSupportedFormat(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-#endif 
+
+// Destructor. 
+void cegui_imgcdc_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Return the name of the image codec object. 
+void cegui_imgcdc_getIdentifierString(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// Return the list of image file format supported. 
+void cegui_imgcdc_getSupportedFormat(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+#endif 
diff --git a/include/ClassImageset.h b/include/ClassImageset.h
--- a/include/ClassImageset.h
+++ b/include/ClassImageset.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,62 +14,62 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassImageset.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassImageset
-#define _DEFINED_HG3D_ClassImageset
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassImageset
+#define _DEFINED_HG3D_ClassImageset
 
+#include "ClassPtr.h"
 
-// Construct a new Imageset
-void cegui_imgst_construct(char * name_c, char * filename_c, char * resourceGroup_c, struct hg3dclass_struct * result_c);
-
-// Destroys Imageset
-void cegui_imgst_destruct(struct hg3dclass_struct * thisclass_c);
-
-// return String object holding the name of the Imageset
-void cegui_imgst_getName(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// return number of images defined for this Imageset
-void cegui_imgst_getImageCount(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// return true if an Image with the specified name exists. 
-void cegui_imgst_isImageDefined(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
-
-// remove the definition for the Image with the specified name. If no such Image exists, nothing happens. 
-void cegui_imgst_undefineImage(struct hg3dclass_struct * thisclass_c, char * name_c);
-
-// Removes the definitions for all Image objects currently defined in the Imageset
-void cegui_imgst_undefineAllImages(struct hg3dclass_struct * thisclass_c);
-
-// return the width of the named image. 
-void cegui_imgst_getImageWidth(struct hg3dclass_struct * thisclass_c, char * name_c, float * result_c);
-
-// return the height of the named image. 
-void cegui_imgst_getImageHeight(struct hg3dclass_struct * thisclass_c, char * name_c, float * result_c);
-
-// return the x rendering offset for the named image. 
-void cegui_imgst_getImageOffsetX(struct hg3dclass_struct * thisclass_c, char * name_c, float * result_c);
-
-// return the y rendering offset for the named image. 
-void cegui_imgst_getImageOffsetY(struct hg3dclass_struct * thisclass_c, char * name_c, float * result_c);
-
-// Return whether this Imageset
-void cegui_imgst_isAutoScaled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Enable or disable auto-scaling for this Imageset
-void cegui_imgst_setAutoScalingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Sets the default resource group to be used when loading imageset data. 
-void cegui_imgst_setDefaultResourceGroup(char * resourceGroup_c);
-
-// Returns the default resource group currently set for Imagesets. 
-void cegui_imgst_getDefaultResourceGroup(char * result_c);
-
-#endif 
+
+// Construct a new Imageset
+void cegui_imgst_construct(char * name_c, char * filename_c, char * resourceGroup_c, struct hg3dclass_struct * result_c);
+
+// Destroys Imageset
+void cegui_imgst_destruct(struct hg3dclass_struct * thisclass_c);
+
+// return String object holding the name of the Imageset
+void cegui_imgst_getName(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// return number of images defined for this Imageset
+void cegui_imgst_getImageCount(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// return true if an Image with the specified name exists. 
+void cegui_imgst_isImageDefined(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
+
+// remove the definition for the Image with the specified name. If no such Image exists, nothing happens. 
+void cegui_imgst_undefineImage(struct hg3dclass_struct * thisclass_c, char * name_c);
+
+// Removes the definitions for all Image objects currently defined in the Imageset
+void cegui_imgst_undefineAllImages(struct hg3dclass_struct * thisclass_c);
+
+// return the width of the named image. 
+void cegui_imgst_getImageWidth(struct hg3dclass_struct * thisclass_c, char * name_c, float * result_c);
+
+// return the height of the named image. 
+void cegui_imgst_getImageHeight(struct hg3dclass_struct * thisclass_c, char * name_c, float * result_c);
+
+// return the x rendering offset for the named image. 
+void cegui_imgst_getImageOffsetX(struct hg3dclass_struct * thisclass_c, char * name_c, float * result_c);
+
+// return the y rendering offset for the named image. 
+void cegui_imgst_getImageOffsetY(struct hg3dclass_struct * thisclass_c, char * name_c, float * result_c);
+
+// Return whether this Imageset
+void cegui_imgst_isAutoScaled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Enable or disable auto-scaling for this Imageset
+void cegui_imgst_setAutoScalingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Sets the default resource group to be used when loading imageset data. 
+void cegui_imgst_setDefaultResourceGroup(char * resourceGroup_c);
+
+// Returns the default resource group currently set for Imagesets. 
+void cegui_imgst_getDefaultResourceGroup(char * result_c);
+
+#endif 
diff --git a/include/ClassItemEntry.h b/include/ClassItemEntry.h
--- a/include/ClassItemEntry.h
+++ b/include/ClassItemEntry.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,44 +14,44 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassItemEntry.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassItemEntry
-#define _DEFINED_HG3D_ClassItemEntry
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassItemEntry
+#define _DEFINED_HG3D_ClassItemEntry
 
+#include "ClassPtr.h"
 
-// Returns whether this item is selected or not. 
-void cegui_itmentr_isSelected(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns whether this item is selectable or not. 
-void cegui_itmentr_isSelectable(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Sets the selection state of this item (on/off). If this item is not selectable this function does nothing. 
-void cegui_itmentr_setSelected(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Selects the item. 
-void cegui_itmentr_select(struct hg3dclass_struct * thisclass_c);
-
-// Deselects the item. 
-void cegui_itmentr_deselect(struct hg3dclass_struct * thisclass_c);
-
-// Set the selection state for this ListItem. Internal version. Should NOT be used by client code. 
-void cegui_itmentr_setSelected_impl(struct hg3dclass_struct * thisclass_c, int state_c, int notify_c);
-
-// Sets whether this item will be selectable. 
-void cegui_itmentr_setSelectable(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Constructor for ItemEntry
-void cegui_itmentr_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for ItemEntry
-void cegui_itmentr_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Returns whether this item is selected or not. 
+void cegui_itmentr_isSelected(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns whether this item is selectable or not. 
+void cegui_itmentr_isSelectable(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Sets the selection state of this item (on/off). If this item is not selectable this function does nothing. 
+void cegui_itmentr_setSelected(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Selects the item. 
+void cegui_itmentr_select(struct hg3dclass_struct * thisclass_c);
+
+// Deselects the item. 
+void cegui_itmentr_deselect(struct hg3dclass_struct * thisclass_c);
+
+// Set the selection state for this ListItem. Internal version. Should NOT be used by client code. 
+void cegui_itmentr_setSelected_impl(struct hg3dclass_struct * thisclass_c, int state_c, int notify_c);
+
+// Sets whether this item will be selectable. 
+void cegui_itmentr_setSelectable(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Constructor for ItemEntry
+void cegui_itmentr_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for ItemEntry
+void cegui_itmentr_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassItemListbox.h b/include/ClassItemListbox.h
--- a/include/ClassItemListbox.h
+++ b/include/ClassItemListbox.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,72 +14,72 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassItemListbox.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassItemListbox
-#define _DEFINED_HG3D_ClassItemListbox
-
-#include "ClassPtr.h"
-#include "ClassItemEntry.h"
+#ifndef _DEFINED_HG3D_ClassItemListbox
+#define _DEFINED_HG3D_ClassItemListbox
 
+#include "ClassPtr.h"
+#include "ClassItemEntry.h"
 
-// Returns the number of selected items in this ItemListbox
-void cegui_itmlstbx_getSelectedCount(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns a pointer to the last selected item. 
-void cegui_itmlstbx_getLastSelectedItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Returns a pointer to the first selected item. 
-void cegui_itmlstbx_getFirstSelectedItem(struct hg3dclass_struct * thisclass_c, int start_index_c, struct hg3dclass_struct * result_c);
-
-// Returns a pointer to the next seleced item relative to a previous call to getFirstSelectedItem or getNextSelectedItem. 
-void cegui_itmlstbx_getNextSelectedItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Returns a pointer to the next selected item after the item 'start_item' given. 
-void cegui_itmlstbx_getNextSelectedItemAfter(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
-
-// Returns 'true' if multiple selections are allowed. 'false' if not. 
-void cegui_itmlstbx_isMultiSelectEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns 'true' if the item at the given index is selectable and currently selected. 
-void cegui_itmlstbx_isItemSelected(struct hg3dclass_struct * thisclass_c, int index_c, int * result_c);
-
-// 
-void cegui_itmlstbx_initialiseComponents(struct hg3dclass_struct * thisclass_c);
-
-// Set whether or not multiple selections should be allowed. 
-void cegui_itmlstbx_setMultiSelectEnabled(struct hg3dclass_struct * thisclass_c, int state_c);
-
-// Clears all selections. 
-void cegui_itmlstbx_clearAllSelections(struct hg3dclass_struct * thisclass_c);
-
-// Select a range of items. 
-void cegui_itmlstbx_selectRange(struct hg3dclass_struct * thisclass_c, int a_c, int z_c);
-
-// Select all items. Does nothing if multiselect is disabled. 
-void cegui_itmlstbx_selectAllItems(struct hg3dclass_struct * thisclass_c);
-
-// Constructor for the ItemListbox
-void cegui_itmlstbx_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for the ItemListbox
-void cegui_itmlstbx_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Setup size and position for the item widgets attached to this ItemListbox
-void cegui_itmlstbx_layoutItemWidgets(struct hg3dclass_struct * thisclass_c);
-
-// Return whether this window was inherited from the given class name at some point in the inheritance hierarchy. 
-void cegui_itmlstbx_testClassName_impl(struct hg3dclass_struct * thisclass_c, char * class_name_c, int * result_c);
-
-// Notify this ItemListbox
-void cegui_itmlstbx_notifyItemClicked(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * li_c);
-
-// Notify this ItemListbox
-void cegui_itmlstbx_notifyItemSelectState(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * li_c, int state_c);
-
-#endif 
+
+// Returns the number of selected items in this ItemListbox
+void cegui_itmlstbx_getSelectedCount(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns a pointer to the last selected item. 
+void cegui_itmlstbx_getLastSelectedItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Returns a pointer to the first selected item. 
+void cegui_itmlstbx_getFirstSelectedItem(struct hg3dclass_struct * thisclass_c, int start_index_c, struct hg3dclass_struct * result_c);
+
+// Returns a pointer to the next seleced item relative to a previous call to getFirstSelectedItem or getNextSelectedItem. 
+void cegui_itmlstbx_getNextSelectedItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Returns a pointer to the next selected item after the item 'start_item' given. 
+void cegui_itmlstbx_getNextSelectedItemAfter(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
+
+// Returns 'true' if multiple selections are allowed. 'false' if not. 
+void cegui_itmlstbx_isMultiSelectEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns 'true' if the item at the given index is selectable and currently selected. 
+void cegui_itmlstbx_isItemSelected(struct hg3dclass_struct * thisclass_c, int index_c, int * result_c);
+
+// 
+void cegui_itmlstbx_initialiseComponents(struct hg3dclass_struct * thisclass_c);
+
+// Set whether or not multiple selections should be allowed. 
+void cegui_itmlstbx_setMultiSelectEnabled(struct hg3dclass_struct * thisclass_c, int state_c);
+
+// Clears all selections. 
+void cegui_itmlstbx_clearAllSelections(struct hg3dclass_struct * thisclass_c);
+
+// Select a range of items. 
+void cegui_itmlstbx_selectRange(struct hg3dclass_struct * thisclass_c, int a_c, int z_c);
+
+// Select all items. Does nothing if multiselect is disabled. 
+void cegui_itmlstbx_selectAllItems(struct hg3dclass_struct * thisclass_c);
+
+// Constructor for the ItemListbox
+void cegui_itmlstbx_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for the ItemListbox
+void cegui_itmlstbx_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Setup size and position for the item widgets attached to this ItemListbox
+void cegui_itmlstbx_layoutItemWidgets(struct hg3dclass_struct * thisclass_c);
+
+// Return whether this window was inherited from the given class name at some point in the inheritance hierarchy. 
+void cegui_itmlstbx_testClassName_impl(struct hg3dclass_struct * thisclass_c, char * class_name_c, int * result_c);
+
+// Notify this ItemListbox
+void cegui_itmlstbx_notifyItemClicked(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * li_c);
+
+// Notify this ItemListbox
+void cegui_itmlstbx_notifyItemSelectState(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * li_c, int state_c);
+
+#endif 
diff --git a/include/ClassListHeader.h b/include/ClassListHeader.h
--- a/include/ClassListHeader.h
+++ b/include/ClassListHeader.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,128 +14,128 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassListHeader.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassListHeader
-#define _DEFINED_HG3D_ClassListHeader
-
-#include "ClassPtr.h"
-#include "ClassListHeaderSegment.h"
-#include "EnumSortDirection.h"
-#include "ClassUDim.h"
+#ifndef _DEFINED_HG3D_ClassListHeader
+#define _DEFINED_HG3D_ClassListHeader
 
+#include "ClassPtr.h"
+#include "ClassListHeaderSegment.h"
+#include "EnumSortDirection.h"
+#include "ClassUDim.h"
 
-// Return the number of columns or segments attached to the header. 
-void cegui_lsthdr_getColumnCount(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// Return the ListHeaderSegment
-void cegui_lsthdr_getSegmentFromColumn(struct hg3dclass_struct * thisclass_c, unsigned int column_c, struct hg3dclass_struct * result_c);
-
-// Return the ListHeaderSegment
-void cegui_lsthdr_getSegmentFromID(struct hg3dclass_struct * thisclass_c, unsigned int id_c, struct hg3dclass_struct * result_c);
-
-// Return the ListHeaderSegment
-void cegui_lsthdr_getSortSegment(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return the zero based column index of the specified segment. 
-void cegui_lsthdr_getColumnFromSegment(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * segment_c, unsigned int * result_c);
-
-// Return the zero based column index of the segment with the specified ID. 
-void cegui_lsthdr_getColumnFromID(struct hg3dclass_struct * thisclass_c, unsigned int id_c, unsigned int * result_c);
-
-// Return the zero based index of the current sort column. There must be at least one segment/column to successfully call this method. 
-void cegui_lsthdr_getSortColumn(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// Return the zero based column index of the segment with the specified text. 
-void cegui_lsthdr_getColumnWithText(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int * result_c);
-
-// Return the pixel offset to the given ListHeaderSegment
-void cegui_lsthdr_getPixelOffsetToSegment(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * segment_c, float * result_c);
-
-// Return the pixel offset to the ListHeaderSegment
-void cegui_lsthdr_getPixelOffsetToColumn(struct hg3dclass_struct * thisclass_c, unsigned int column_c, float * result_c);
-
-// Return the total pixel width of all attached segments. 
-void cegui_lsthdr_getTotalSegmentsPixelExtent(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Return the currently set sort direction. 
-void cegui_lsthdr_getSortDirection(struct hg3dclass_struct * thisclass_c, enum EnumSortDirection * result_c);
-
-// Return whether user manipulation of the sort column & direction are enabled. 
-void cegui_lsthdr_isSortingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the user may size column segments. 
-void cegui_lsthdr_isColumnSizingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the user may modify the order of the segments. 
-void cegui_lsthdr_isColumnDraggingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return the current segment offset value. This value is used to implement scrolling of the header segments within the ListHeader
-void cegui_lsthdr_getSegmentOffset(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Set whether user manipulation of the sort column and direction is enabled. 
-void cegui_lsthdr_setSortingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the current sort direction. 
-void cegui_lsthdr_setSortDirection(struct hg3dclass_struct * thisclass_c, enum EnumSortDirection direction_c);
-
-// Set the column segment to be used as the sort column. 
-void cegui_lsthdr_setSortSegment(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * segment_c);
-
-// Set the column to be used as the sort column. 
-void cegui_lsthdr_setSortColumn(struct hg3dclass_struct * thisclass_c, unsigned int column_c);
-
-// Set the column to to be used for sorting via its ID code. 
-void cegui_lsthdr_setSortColumnFromID(struct hg3dclass_struct * thisclass_c, unsigned int id_c);
-
-// Set whether columns may be sized by the user. 
-void cegui_lsthdr_setColumnSizingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether columns may be reordered by the user via drag and drop. 
-void cegui_lsthdr_setColumnDraggingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Add a new column segment to the end of the header. 
-void cegui_lsthdr_addColumn(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int id_c, struct hg3dclass_struct * width_c);
-
-// Insert a new column segment at the specified position. 
-void cegui_lsthdr_insertColumn(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int id_c, struct hg3dclass_struct * width_c, unsigned int position_c);
-
-// Insert a new column segment at the specified position. 
-void cegui_lsthdr_insertColumn2(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int id_c, struct hg3dclass_struct * width_c, struct hg3dclass_struct * position_c);
-
-// Removes a column segment from the ListHeader
-void cegui_lsthdr_removeColumn(struct hg3dclass_struct * thisclass_c, unsigned int column_c);
-
-// Remove the specified segment from the ListHeader
-void cegui_lsthdr_removeSegment(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * segment_c);
-
-// Moves a column segment into a new position. 
-void cegui_lsthdr_moveColumn(struct hg3dclass_struct * thisclass_c, unsigned int column_c, unsigned int position_c);
-
-// Move a column segment to a new position. 
-void cegui_lsthdr_moveColumn2(struct hg3dclass_struct * thisclass_c, unsigned int column_c, struct hg3dclass_struct * position_c);
-
-// Moves a segment into a new position. 
-void cegui_lsthdr_moveSegment(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * segment_c, unsigned int position_c);
-
-// Move a segment to a new position. 
-void cegui_lsthdr_moveSegment2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * segment_c, struct hg3dclass_struct * position_c);
-
-// Set the current base segment offset. (This implements scrolling of the header segments within the header area). 
-void cegui_lsthdr_setSegmentOffset(struct hg3dclass_struct * thisclass_c, float offset_c);
-
-// Set the width of the specified column. 
-void cegui_lsthdr_setColumnWidth(struct hg3dclass_struct * thisclass_c, unsigned int column_c, struct hg3dclass_struct * width_c);
-
-// Constructor for the list header base class. 
-void cegui_lsthdr_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for the list header base class. 
-void cegui_lsthdr_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Return the number of columns or segments attached to the header. 
+void cegui_lsthdr_getColumnCount(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// Return the ListHeaderSegment
+void cegui_lsthdr_getSegmentFromColumn(struct hg3dclass_struct * thisclass_c, unsigned int column_c, struct hg3dclass_struct * result_c);
+
+// Return the ListHeaderSegment
+void cegui_lsthdr_getSegmentFromID(struct hg3dclass_struct * thisclass_c, unsigned int id_c, struct hg3dclass_struct * result_c);
+
+// Return the ListHeaderSegment
+void cegui_lsthdr_getSortSegment(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return the zero based column index of the specified segment. 
+void cegui_lsthdr_getColumnFromSegment(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * segment_c, unsigned int * result_c);
+
+// Return the zero based column index of the segment with the specified ID. 
+void cegui_lsthdr_getColumnFromID(struct hg3dclass_struct * thisclass_c, unsigned int id_c, unsigned int * result_c);
+
+// Return the zero based index of the current sort column. There must be at least one segment/column to successfully call this method. 
+void cegui_lsthdr_getSortColumn(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// Return the zero based column index of the segment with the specified text. 
+void cegui_lsthdr_getColumnWithText(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int * result_c);
+
+// Return the pixel offset to the given ListHeaderSegment
+void cegui_lsthdr_getPixelOffsetToSegment(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * segment_c, float * result_c);
+
+// Return the pixel offset to the ListHeaderSegment
+void cegui_lsthdr_getPixelOffsetToColumn(struct hg3dclass_struct * thisclass_c, unsigned int column_c, float * result_c);
+
+// Return the total pixel width of all attached segments. 
+void cegui_lsthdr_getTotalSegmentsPixelExtent(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Return the currently set sort direction. 
+void cegui_lsthdr_getSortDirection(struct hg3dclass_struct * thisclass_c, enum EnumSortDirection * result_c);
+
+// Return whether user manipulation of the sort column & direction are enabled. 
+void cegui_lsthdr_isSortingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the user may size column segments. 
+void cegui_lsthdr_isColumnSizingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the user may modify the order of the segments. 
+void cegui_lsthdr_isColumnDraggingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return the current segment offset value. This value is used to implement scrolling of the header segments within the ListHeader
+void cegui_lsthdr_getSegmentOffset(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Set whether user manipulation of the sort column and direction is enabled. 
+void cegui_lsthdr_setSortingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the current sort direction. 
+void cegui_lsthdr_setSortDirection(struct hg3dclass_struct * thisclass_c, enum EnumSortDirection direction_c);
+
+// Set the column segment to be used as the sort column. 
+void cegui_lsthdr_setSortSegment(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * segment_c);
+
+// Set the column to be used as the sort column. 
+void cegui_lsthdr_setSortColumn(struct hg3dclass_struct * thisclass_c, unsigned int column_c);
+
+// Set the column to to be used for sorting via its ID code. 
+void cegui_lsthdr_setSortColumnFromID(struct hg3dclass_struct * thisclass_c, unsigned int id_c);
+
+// Set whether columns may be sized by the user. 
+void cegui_lsthdr_setColumnSizingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether columns may be reordered by the user via drag and drop. 
+void cegui_lsthdr_setColumnDraggingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Add a new column segment to the end of the header. 
+void cegui_lsthdr_addColumn(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int id_c, struct hg3dclass_struct * width_c);
+
+// Insert a new column segment at the specified position. 
+void cegui_lsthdr_insertColumn(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int id_c, struct hg3dclass_struct * width_c, unsigned int position_c);
+
+// Insert a new column segment at the specified position. 
+void cegui_lsthdr_insertColumn2(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int id_c, struct hg3dclass_struct * width_c, struct hg3dclass_struct * position_c);
+
+// Removes a column segment from the ListHeader
+void cegui_lsthdr_removeColumn(struct hg3dclass_struct * thisclass_c, unsigned int column_c);
+
+// Remove the specified segment from the ListHeader
+void cegui_lsthdr_removeSegment(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * segment_c);
+
+// Moves a column segment into a new position. 
+void cegui_lsthdr_moveColumn(struct hg3dclass_struct * thisclass_c, unsigned int column_c, unsigned int position_c);
+
+// Move a column segment to a new position. 
+void cegui_lsthdr_moveColumn2(struct hg3dclass_struct * thisclass_c, unsigned int column_c, struct hg3dclass_struct * position_c);
+
+// Moves a segment into a new position. 
+void cegui_lsthdr_moveSegment(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * segment_c, unsigned int position_c);
+
+// Move a segment to a new position. 
+void cegui_lsthdr_moveSegment2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * segment_c, struct hg3dclass_struct * position_c);
+
+// Set the current base segment offset. (This implements scrolling of the header segments within the header area). 
+void cegui_lsthdr_setSegmentOffset(struct hg3dclass_struct * thisclass_c, float offset_c);
+
+// Set the width of the specified column. 
+void cegui_lsthdr_setColumnWidth(struct hg3dclass_struct * thisclass_c, unsigned int column_c, struct hg3dclass_struct * width_c);
+
+// Constructor for the list header base class. 
+void cegui_lsthdr_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for the list header base class. 
+void cegui_lsthdr_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassListHeaderSegment.h b/include/ClassListHeaderSegment.h
--- a/include/ClassListHeaderSegment.h
+++ b/include/ClassListHeaderSegment.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,69 +14,69 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassListHeaderSegment.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassListHeaderSegment
-#define _DEFINED_HG3D_ClassListHeaderSegment
-
-#include "ClassPtr.h"
-#include "EnumSortDirection.h"
+#ifndef _DEFINED_HG3D_ClassListHeaderSegment
+#define _DEFINED_HG3D_ClassListHeaderSegment
 
+#include "ClassPtr.h"
+#include "EnumSortDirection.h"
 
-// Return whether this segment can be sized. 
-void cegui_lsthdrsgm_isSizingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return the current sort direction set for this segment. 
-void cegui_lsthdrsgm_getSortDirection(struct hg3dclass_struct * thisclass_c, enum EnumSortDirection * result_c);
-
-// Return whether drag moving is enabled for this segment. 
-void cegui_lsthdrsgm_isDragMovingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the segment is clickable. 
-void cegui_lsthdrsgm_isClickable(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the segment is currently in its hovering state. 
-void cegui_lsthdrsgm_isSegmentHovering(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the segment is currently in its pushed state. 
-void cegui_lsthdrsgm_isSegmentPushed(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the splitter is currently in its hovering state. 
-void cegui_lsthdrsgm_isSplitterHovering(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the segment is currently being drag-moved. 
-void cegui_lsthdrsgm_isBeingDragMoved(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the segment is currently being drag-moved. 
-void cegui_lsthdrsgm_isBeingDragSized(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Set whether this segment can be sized. 
-void cegui_lsthdrsgm_setSizingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the current sort direction set for this segment. 
-void cegui_lsthdrsgm_setSortDirection(struct hg3dclass_struct * thisclass_c, enum EnumSortDirection sort_dir_c);
-
-// Set whether drag moving is allowed for this segment. 
-void cegui_lsthdrsgm_setDragMovingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the segment is clickable. 
-void cegui_lsthdrsgm_setClickable(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// 
-void cegui_lsthdrsgm_setSizingCursorImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
-
-// 
-void cegui_lsthdrsgm_setMovingCursorImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
-
-// Constructor for list header segment base class. 
-void cegui_lsthdrsgm_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for list header segment base class. 
-void cegui_lsthdrsgm_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Return whether this segment can be sized. 
+void cegui_lsthdrsgm_isSizingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return the current sort direction set for this segment. 
+void cegui_lsthdrsgm_getSortDirection(struct hg3dclass_struct * thisclass_c, enum EnumSortDirection * result_c);
+
+// Return whether drag moving is enabled for this segment. 
+void cegui_lsthdrsgm_isDragMovingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the segment is clickable. 
+void cegui_lsthdrsgm_isClickable(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the segment is currently in its hovering state. 
+void cegui_lsthdrsgm_isSegmentHovering(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the segment is currently in its pushed state. 
+void cegui_lsthdrsgm_isSegmentPushed(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the splitter is currently in its hovering state. 
+void cegui_lsthdrsgm_isSplitterHovering(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the segment is currently being drag-moved. 
+void cegui_lsthdrsgm_isBeingDragMoved(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the segment is currently being drag-moved. 
+void cegui_lsthdrsgm_isBeingDragSized(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Set whether this segment can be sized. 
+void cegui_lsthdrsgm_setSizingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the current sort direction set for this segment. 
+void cegui_lsthdrsgm_setSortDirection(struct hg3dclass_struct * thisclass_c, enum EnumSortDirection sort_dir_c);
+
+// Set whether drag moving is allowed for this segment. 
+void cegui_lsthdrsgm_setDragMovingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the segment is clickable. 
+void cegui_lsthdrsgm_setClickable(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// 
+void cegui_lsthdrsgm_setSizingCursorImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
+
+// 
+void cegui_lsthdrsgm_setMovingCursorImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
+
+// Constructor for list header segment base class. 
+void cegui_lsthdrsgm_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for list header segment base class. 
+void cegui_lsthdrsgm_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassListbox.h b/include/ClassListbox.h
--- a/include/ClassListbox.h
+++ b/include/ClassListbox.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,127 +14,127 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassListbox.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassListbox
-#define _DEFINED_HG3D_ClassListbox
-
-#include "ClassPtr.h"
-#include "ClassListboxItem.h"
-#include "ClassScrollbar.h"
+#ifndef _DEFINED_HG3D_ClassListbox
+#define _DEFINED_HG3D_ClassListbox
 
+#include "ClassPtr.h"
+#include "ClassListboxItem.h"
+#include "ClassScrollbar.h"
 
-// Return number of items attached to the list box. 
-void cegui_lstbx_getItemCount(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return the number of selected items in the list box. 
-void cegui_lstbx_getSelectedCount(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return a pointer to the first selected item. 
-void cegui_lstbx_getFirstSelectedItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return a pointer to the next selected item after item start_item
-void cegui_lstbx_getNextSelected(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
-
-// Return the item at index position index
-void cegui_lstbx_getListboxItemFromIndex(struct hg3dclass_struct * thisclass_c, int index_c, struct hg3dclass_struct * result_c);
-
-// Return the index of ListboxItemitem
-void cegui_lstbx_getItemIndex(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int * result_c);
-
-// return whether list sorting is enabled 
-void cegui_lstbx_isSortEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return whether multi-select is enabled 
-void cegui_lstbx_isMultiselectEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// 
-void cegui_lstbx_isItemTooltipsEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return whether the string at index position index
-void cegui_lstbx_isItemSelected(struct hg3dclass_struct * thisclass_c, int index_c, int * result_c);
-
-// Search the list for an item with the specified text. 
-void cegui_lstbx_findItemWithText(struct hg3dclass_struct * thisclass_c, char * text_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
-
-// Return whether the specified ListboxItem
-void cegui_lstbx_isListboxItemInList(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int * result_c);
-
-// Return whether the vertical scroll bar is always shown. 
-void cegui_lstbx_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the horizontal scroll bar is always shown. 
-void cegui_lstbx_isHorzScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Initialise the Window
-void cegui_lstbx_initialiseComponents(struct hg3dclass_struct * thisclass_c);
-
-// Remove all items from the list. 
-void cegui_lstbx_resetList(struct hg3dclass_struct * thisclass_c);
-
-// Add the given ListboxItem
-void cegui_lstbx_addItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
-
-// Insert an item into the list box before a specified item already in the list. 
-void cegui_lstbx_insertItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, struct hg3dclass_struct * position_c);
-
-// Removes the given item from the list box. If the item is has the auto delete state set, the item will be deleted. 
-void cegui_lstbx_removeItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
-
-// Clear the selected state for all items. 
-void cegui_lstbx_clearAllSelections(struct hg3dclass_struct * thisclass_c);
-
-// Set whether the list should be sorted. 
-void cegui_lstbx_setSortingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the list should allow multiple selections or just a single selection. 
-void cegui_lstbx_setMultiselectEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the vertical scroll bar should always be shown. 
-void cegui_lstbx_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the horizontal scroll bar should always be shown. 
-void cegui_lstbx_setShowHorzScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// 
-void cegui_lstbx_setItemTooltipsEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the select state of an attached ListboxItem
-void cegui_lstbx_setItemSelectState(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int state_c);
-
-// Set the select state of an attached ListboxItem
-void cegui_lstbx_setItemSelectState2(struct hg3dclass_struct * thisclass_c, int item_index_c, int state_c);
-
-// Causes the list box to update it's internal state after changes have been made to one or more attached ListboxItem
-void cegui_lstbx_handleUpdatedItemData(struct hg3dclass_struct * thisclass_c);
-
-// Ensure the item at the specified index is visible within the list box. 
-void cegui_lstbx_ensureItemIsVisible(struct hg3dclass_struct * thisclass_c, int item_index_c);
-
-// Ensure the item at the specified index is visible within the list box. 
-void cegui_lstbx_ensureItemIsVisible2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
-
-// Return a pointer to the vertical scrollbar component widget for this Listbox
-void cegui_lstbx_getVertScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return a pointer to the horizontal scrollbar component widget for this Listbox
-void cegui_lstbx_getHorzScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return the sum of all item heights. 
-void cegui_lstbx_getTotalItemsHeight(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Return the width of the widest item. 
-void cegui_lstbx_getWidestItemWidth(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Constructor for Listbox
-void cegui_lstbx_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for Listbox
-void cegui_lstbx_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Return number of items attached to the list box. 
+void cegui_lstbx_getItemCount(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return the number of selected items in the list box. 
+void cegui_lstbx_getSelectedCount(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return a pointer to the first selected item. 
+void cegui_lstbx_getFirstSelectedItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return a pointer to the next selected item after item start_item
+void cegui_lstbx_getNextSelected(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
+
+// Return the item at index position index
+void cegui_lstbx_getListboxItemFromIndex(struct hg3dclass_struct * thisclass_c, int index_c, struct hg3dclass_struct * result_c);
+
+// Return the index of ListboxItemitem
+void cegui_lstbx_getItemIndex(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int * result_c);
+
+// return whether list sorting is enabled 
+void cegui_lstbx_isSortEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return whether multi-select is enabled 
+void cegui_lstbx_isMultiselectEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// 
+void cegui_lstbx_isItemTooltipsEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return whether the string at index position index
+void cegui_lstbx_isItemSelected(struct hg3dclass_struct * thisclass_c, int index_c, int * result_c);
+
+// Search the list for an item with the specified text. 
+void cegui_lstbx_findItemWithText(struct hg3dclass_struct * thisclass_c, char * text_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
+
+// Return whether the specified ListboxItem
+void cegui_lstbx_isListboxItemInList(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int * result_c);
+
+// Return whether the vertical scroll bar is always shown. 
+void cegui_lstbx_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the horizontal scroll bar is always shown. 
+void cegui_lstbx_isHorzScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Initialise the Window
+void cegui_lstbx_initialiseComponents(struct hg3dclass_struct * thisclass_c);
+
+// Remove all items from the list. 
+void cegui_lstbx_resetList(struct hg3dclass_struct * thisclass_c);
+
+// Add the given ListboxItem
+void cegui_lstbx_addItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
+
+// Insert an item into the list box before a specified item already in the list. 
+void cegui_lstbx_insertItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, struct hg3dclass_struct * position_c);
+
+// Removes the given item from the list box. If the item is has the auto delete state set, the item will be deleted. 
+void cegui_lstbx_removeItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
+
+// Clear the selected state for all items. 
+void cegui_lstbx_clearAllSelections(struct hg3dclass_struct * thisclass_c);
+
+// Set whether the list should be sorted. 
+void cegui_lstbx_setSortingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the list should allow multiple selections or just a single selection. 
+void cegui_lstbx_setMultiselectEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the vertical scroll bar should always be shown. 
+void cegui_lstbx_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the horizontal scroll bar should always be shown. 
+void cegui_lstbx_setShowHorzScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// 
+void cegui_lstbx_setItemTooltipsEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the select state of an attached ListboxItem
+void cegui_lstbx_setItemSelectState(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int state_c);
+
+// Set the select state of an attached ListboxItem
+void cegui_lstbx_setItemSelectState2(struct hg3dclass_struct * thisclass_c, int item_index_c, int state_c);
+
+// Causes the list box to update it's internal state after changes have been made to one or more attached ListboxItem
+void cegui_lstbx_handleUpdatedItemData(struct hg3dclass_struct * thisclass_c);
+
+// Ensure the item at the specified index is visible within the list box. 
+void cegui_lstbx_ensureItemIsVisible(struct hg3dclass_struct * thisclass_c, int item_index_c);
+
+// Ensure the item at the specified index is visible within the list box. 
+void cegui_lstbx_ensureItemIsVisible2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
+
+// Return a pointer to the vertical scrollbar component widget for this Listbox
+void cegui_lstbx_getVertScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return a pointer to the horizontal scrollbar component widget for this Listbox
+void cegui_lstbx_getHorzScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return the sum of all item heights. 
+void cegui_lstbx_getTotalItemsHeight(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Return the width of the widest item. 
+void cegui_lstbx_getWidestItemWidth(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Constructor for Listbox
+void cegui_lstbx_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for Listbox
+void cegui_lstbx_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassListboxItem.h b/include/ClassListboxItem.h
--- a/include/ClassListboxItem.h
+++ b/include/ClassListboxItem.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,69 +14,69 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassListboxItem.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassListboxItem
-#define _DEFINED_HG3D_ClassListboxItem
-
-#include "ClassPtr.h"
-#include "ClassWindow.h"
+#ifndef _DEFINED_HG3D_ClassListboxItem
+#define _DEFINED_HG3D_ClassListboxItem
 
+#include "ClassPtr.h"
+#include "ClassWindow.h"
 
-// base class destructor 
-void cegui_lstbxitm_destruct(struct hg3dclass_struct * thisclass_c);
-
-// return the text string set for this list box item. 
-void cegui_lstbxitm_getTooltipText(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// 
-void cegui_lstbxitm_getText(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// return text string with visual
-void cegui_lstbxitm_getTextVisual(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// Return the current ID assigned to this list box item. 
-void cegui_lstbxitm_getID(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// return whether this item is selected. 
-void cegui_lstbxitm_isSelected(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return whether this item is disabled. 
-void cegui_lstbxitm_isDisabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return whether this item will be automatically deleted when the list box it is attached to is destroyed, or when the item is removed from the list box. 
-void cegui_lstbxitm_isAutoDeleted(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Get the owner window for this ListboxItem
-void cegui_lstbxitm_getOwnerWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// set the text string for this list box item. 
-void cegui_lstbxitm_setText(struct hg3dclass_struct * thisclass_c, char * text_c);
-
-// 
-void cegui_lstbxitm_setTooltipText(struct hg3dclass_struct * thisclass_c, char * text_c);
-
-// Set the ID assigned to this list box item. 
-void cegui_lstbxitm_setID(struct hg3dclass_struct * thisclass_c, unsigned int item_id_c);
-
-// set whether this item is selected. 
-void cegui_lstbxitm_setSelected(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// set whether this item is disabled. 
-void cegui_lstbxitm_setDisabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether this item will be automatically deleted when the list box it is attached to is destroyed, or when the item is removed from the list box. 
-void cegui_lstbxitm_setAutoDeleted(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the owner window for this ListboxItem
-void cegui_lstbxitm_setOwnerWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * owner_c);
-
-// Set the selection highlighting brush image. 
-void cegui_lstbxitm_setSelectionBrushImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
-
-#endif 
+
+// base class destructor 
+void cegui_lstbxitm_destruct(struct hg3dclass_struct * thisclass_c);
+
+// return the text string set for this list box item. 
+void cegui_lstbxitm_getTooltipText(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// 
+void cegui_lstbxitm_getText(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// return text string with visual
+void cegui_lstbxitm_getTextVisual(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// Return the current ID assigned to this list box item. 
+void cegui_lstbxitm_getID(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// return whether this item is selected. 
+void cegui_lstbxitm_isSelected(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return whether this item is disabled. 
+void cegui_lstbxitm_isDisabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return whether this item will be automatically deleted when the list box it is attached to is destroyed, or when the item is removed from the list box. 
+void cegui_lstbxitm_isAutoDeleted(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Get the owner window for this ListboxItem
+void cegui_lstbxitm_getOwnerWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// set the text string for this list box item. 
+void cegui_lstbxitm_setText(struct hg3dclass_struct * thisclass_c, char * text_c);
+
+// 
+void cegui_lstbxitm_setTooltipText(struct hg3dclass_struct * thisclass_c, char * text_c);
+
+// Set the ID assigned to this list box item. 
+void cegui_lstbxitm_setID(struct hg3dclass_struct * thisclass_c, unsigned int item_id_c);
+
+// set whether this item is selected. 
+void cegui_lstbxitm_setSelected(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// set whether this item is disabled. 
+void cegui_lstbxitm_setDisabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether this item will be automatically deleted when the list box it is attached to is destroyed, or when the item is removed from the list box. 
+void cegui_lstbxitm_setAutoDeleted(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the owner window for this ListboxItem
+void cegui_lstbxitm_setOwnerWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * owner_c);
+
+// Set the selection highlighting brush image. 
+void cegui_lstbxitm_setSelectionBrushImage2(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_c);
+
+#endif 
diff --git a/include/ClassListboxTextItem.h b/include/ClassListboxTextItem.h
--- a/include/ClassListboxTextItem.h
+++ b/include/ClassListboxTextItem.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,39 +14,39 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassListboxTextItem.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassListboxTextItem
-#define _DEFINED_HG3D_ClassListboxTextItem
-
-#include "ClassPtr.h"
-#include "ClassFont.h"
+#ifndef _DEFINED_HG3D_ClassListboxTextItem
+#define _DEFINED_HG3D_ClassListboxTextItem
 
+#include "ClassPtr.h"
+#include "ClassFont.h"
 
-// base class destructor 
-void cegui_lstbxti_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Return a pointer to the font being used by this ListboxTextItem
-void cegui_lstbxti_getFont(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Set the font to be used by this ListboxTextItem
-void cegui_lstbxti_setFont(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * font_c);
-
-// Set the font to be used by this ListboxTextItem
-void cegui_lstbxti_setFont2(struct hg3dclass_struct * thisclass_c, char * font_name_c);
-
-// Set whether the the ListboxTextItem
-void cegui_lstbxti_setTextParsingEnabled(struct hg3dclass_struct * thisclass_c, const int enable_c);
-
-// return whether text parsing is enabled for this ListboxTextItem
-void cegui_lstbxti_isTextParsingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// set the text string for this list box item. 
-void cegui_lstbxti_setText(struct hg3dclass_struct * thisclass_c, char * text_c);
-
-#endif 
+
+// base class destructor 
+void cegui_lstbxti_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Return a pointer to the font being used by this ListboxTextItem
+void cegui_lstbxti_getFont(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Set the font to be used by this ListboxTextItem
+void cegui_lstbxti_setFont(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * font_c);
+
+// Set the font to be used by this ListboxTextItem
+void cegui_lstbxti_setFont2(struct hg3dclass_struct * thisclass_c, char * font_name_c);
+
+// Set whether the the ListboxTextItem
+void cegui_lstbxti_setTextParsingEnabled(struct hg3dclass_struct * thisclass_c, const int enable_c);
+
+// return whether text parsing is enabled for this ListboxTextItem
+void cegui_lstbxti_isTextParsingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// set the text string for this list box item. 
+void cegui_lstbxti_setText(struct hg3dclass_struct * thisclass_c, char * text_c);
+
+#endif 
diff --git a/include/ClassLogger.h b/include/ClassLogger.h
--- a/include/ClassLogger.h
+++ b/include/ClassLogger.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,33 +14,33 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassLogger.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassLogger
-#define _DEFINED_HG3D_ClassLogger
-
-#include "ClassPtr.h"
-#include "EnumLoggingLevel.h"
+#ifndef _DEFINED_HG3D_ClassLogger
+#define _DEFINED_HG3D_ClassLogger
 
+#include "ClassPtr.h"
+#include "EnumLoggingLevel.h"
 
-// Destructor for Logger
-void cegui_lggr_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Set the level of logging information that will get out to the log file. 
-void cegui_lggr_setLoggingLevel(struct hg3dclass_struct * thisclass_c, enum EnumLoggingLevel level_c);
-
-// return the current logging level setting 
-void cegui_lggr_getLoggingLevel(struct hg3dclass_struct * thisclass_c, enum EnumLoggingLevel * result_c);
-
-// Add an event to the log. 
-void cegui_lggr_logEvent(struct hg3dclass_struct * thisclass_c, char * message_c, enum EnumLoggingLevel level_c);
-
-// Set the name of the log file where all subsequent log entries should be written. The interpretation of file name may differ depending on the concrete logger implementation. 
-void cegui_lggr_setLogFilename(struct hg3dclass_struct * thisclass_c, char * filename_c, int append_c);
-
-#endif 
+
+// Destructor for Logger
+void cegui_lggr_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Set the level of logging information that will get out to the log file. 
+void cegui_lggr_setLoggingLevel(struct hg3dclass_struct * thisclass_c, enum EnumLoggingLevel level_c);
+
+// return the current logging level setting 
+void cegui_lggr_getLoggingLevel(struct hg3dclass_struct * thisclass_c, enum EnumLoggingLevel * result_c);
+
+// Add an event to the log. 
+void cegui_lggr_logEvent(struct hg3dclass_struct * thisclass_c, char * message_c, enum EnumLoggingLevel level_c);
+
+// Set the name of the log file where all subsequent log entries should be written. The interpretation of file name may differ depending on the concrete logger implementation. 
+void cegui_lggr_setLogFilename(struct hg3dclass_struct * thisclass_c, char * filename_c, int append_c);
+
+#endif 
diff --git a/include/ClassMenuBase.h b/include/ClassMenuBase.h
--- a/include/ClassMenuBase.h
+++ b/include/ClassMenuBase.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,45 +14,45 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassMenuBase.h
 
-// abstrakte Klasse!
+// abstrakte Klasse!
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassMenuBase
-#define _DEFINED_HG3D_ClassMenuBase
-
-#include "ClassPtr.h"
-#include "ClassMenuItem.h"
+#ifndef _DEFINED_HG3D_ClassMenuBase
+#define _DEFINED_HG3D_ClassMenuBase
 
+#include "ClassPtr.h"
+#include "ClassMenuItem.h"
 
-// Get the item spacing for this menu. 
-void cegui_mnbs_getItemSpacing(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Return whether this menu allows multiple popup menus to open at the same time. 
-void cegui_mnbs_isMultiplePopupsAllowed(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether this menu should close all its open child popups, when it gets hidden. 
-void cegui_mnbs_getAutoCloseNestedPopups(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Get currently opened MenuItem
-void cegui_mnbs_getPopupMenuItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Set the item spacing for this menu. 
-void cegui_mnbs_setItemSpacing(struct hg3dclass_struct * thisclass_c, float spacing_c);
-
-// Change the currently open MenuItem
-void cegui_mnbs_changePopupMenuItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
-
-// Set whether this menu allows multiple popup menus to be opened simultaneously. 
-void cegui_mnbs_setAllowMultiplePopups(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the menu should close all its open child popups, when it gets hidden. 
-void cegui_mnbs_setAutoCloseNestedPopups(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// tells the current popup that it should start its closing timer. 
-void cegui_mnbs_setPopupMenuItemClosing(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Get the item spacing for this menu. 
+void cegui_mnbs_getItemSpacing(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Return whether this menu allows multiple popup menus to open at the same time. 
+void cegui_mnbs_isMultiplePopupsAllowed(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether this menu should close all its open child popups, when it gets hidden. 
+void cegui_mnbs_getAutoCloseNestedPopups(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Get currently opened MenuItem
+void cegui_mnbs_getPopupMenuItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Set the item spacing for this menu. 
+void cegui_mnbs_setItemSpacing(struct hg3dclass_struct * thisclass_c, float spacing_c);
+
+// Change the currently open MenuItem
+void cegui_mnbs_changePopupMenuItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
+
+// Set whether this menu allows multiple popup menus to be opened simultaneously. 
+void cegui_mnbs_setAllowMultiplePopups(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the menu should close all its open child popups, when it gets hidden. 
+void cegui_mnbs_setAutoCloseNestedPopups(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// tells the current popup that it should start its closing timer. 
+void cegui_mnbs_setPopupMenuItemClosing(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassMenuItem.h b/include/ClassMenuItem.h
--- a/include/ClassMenuItem.h
+++ b/include/ClassMenuItem.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,66 +14,66 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassMenuItem.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassMenuItem
-#define _DEFINED_HG3D_ClassMenuItem
-
-#include "ClassPtr.h"
-#include "ClassUVector2.h"
+#ifndef _DEFINED_HG3D_ClassMenuItem
+#define _DEFINED_HG3D_ClassMenuItem
 
+#include "ClassPtr.h"
+#include "ClassUVector2.h"
 
-// return true if user is hovering over this widget (or it's pushed and user is not over it for highlight) 
-void cegui_mnitm_isHovering(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return true if the button widget is in the pushed state. 
-void cegui_mnitm_isPushed(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns true if the popup menu attached to the menu item is open. 
-void cegui_mnitm_isOpened(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns true if the menu item popup is closing or not. 
-void cegui_mnitm_isPopupClosing(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns true if the menu item popup is closed or opened automatically if hovering with the mouse. 
-void cegui_mnitm_hasAutoPopup(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns the time, which has to elapse before the popup window is opened/closed if the hovering state changes. 
-void cegui_mnitm_getAutoPopupTimeout(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Sets the time, which has to elapse before the popup window is opened/closed if the hovering state changes. 
-void cegui_mnitm_setAutoPopupTimeout(struct hg3dclass_struct * thisclass_c, float time_c);
-
-// Returns the current offset for popup placement. 
-void cegui_mnitm_getPopupOffset(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// sets the current offset for popup placement. 
-void cegui_mnitm_setPopupOffset(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * popupOffset_c);
-
-// Opens the PopupMenu. 
-void cegui_mnitm_openPopupMenu(struct hg3dclass_struct * thisclass_c, int notify_c);
-
-// Closes the PopupMenu. 
-void cegui_mnitm_closePopupMenu(struct hg3dclass_struct * thisclass_c, int notify_c);
-
-// Toggles the PopupMenu. 
-void cegui_mnitm_togglePopupMenu(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// starts the closing timer for the popup, which will close it if the timer is enabled. 
-void cegui_mnitm_startPopupClosing(struct hg3dclass_struct * thisclass_c);
-
-// starts the opening timer for the popup, which will open it if the timer is enabled. 
-void cegui_mnitm_startPopupOpening(struct hg3dclass_struct * thisclass_c);
-
-// Constructor for MenuItem
-void cegui_mnitm_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for MenuItem
-void cegui_mnitm_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// return true if user is hovering over this widget (or it's pushed and user is not over it for highlight) 
+void cegui_mnitm_isHovering(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return true if the button widget is in the pushed state. 
+void cegui_mnitm_isPushed(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns true if the popup menu attached to the menu item is open. 
+void cegui_mnitm_isOpened(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns true if the menu item popup is closing or not. 
+void cegui_mnitm_isPopupClosing(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns true if the menu item popup is closed or opened automatically if hovering with the mouse. 
+void cegui_mnitm_hasAutoPopup(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns the time, which has to elapse before the popup window is opened/closed if the hovering state changes. 
+void cegui_mnitm_getAutoPopupTimeout(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Sets the time, which has to elapse before the popup window is opened/closed if the hovering state changes. 
+void cegui_mnitm_setAutoPopupTimeout(struct hg3dclass_struct * thisclass_c, float time_c);
+
+// Returns the current offset for popup placement. 
+void cegui_mnitm_getPopupOffset(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// sets the current offset for popup placement. 
+void cegui_mnitm_setPopupOffset(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * popupOffset_c);
+
+// Opens the PopupMenu. 
+void cegui_mnitm_openPopupMenu(struct hg3dclass_struct * thisclass_c, int notify_c);
+
+// Closes the PopupMenu. 
+void cegui_mnitm_closePopupMenu(struct hg3dclass_struct * thisclass_c, int notify_c);
+
+// Toggles the PopupMenu. 
+void cegui_mnitm_togglePopupMenu(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// starts the closing timer for the popup, which will close it if the timer is enabled. 
+void cegui_mnitm_startPopupClosing(struct hg3dclass_struct * thisclass_c);
+
+// starts the opening timer for the popup, which will open it if the timer is enabled. 
+void cegui_mnitm_startPopupOpening(struct hg3dclass_struct * thisclass_c);
+
+// Constructor for MenuItem
+void cegui_mnitm_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for MenuItem
+void cegui_mnitm_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassMultiColumnList.h b/include/ClassMultiColumnList.h
--- a/include/ClassMultiColumnList.h
+++ b/include/ClassMultiColumnList.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,234 +14,234 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassMultiColumnList.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassMultiColumnList
-#define _DEFINED_HG3D_ClassMultiColumnList
-
-#include "ClassPtr.h"
-#include "EnumSortDirection.h"
-#include "ClassListHeaderSegment.h"
-#include "ClassListboxItem.h"
-#include "EnumSelectionMode.h"
-#include "ClassScrollbar.h"
-#include "ClassListHeader.h"
-#include "ClassUDim.h"
+#ifndef _DEFINED_HG3D_ClassMultiColumnList
+#define _DEFINED_HG3D_ClassMultiColumnList
 
+#include "ClassPtr.h"
+#include "EnumSortDirection.h"
+#include "ClassListHeaderSegment.h"
+#include "ClassListboxItem.h"
+#include "EnumSelectionMode.h"
+#include "ClassScrollbar.h"
+#include "ClassListHeader.h"
+#include "ClassUDim.h"
 
-// Return whether user manipulation of the sort column and direction are enabled. 
-void cegui_mltclmlst_isUserSortControlEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the user may size column segments. 
-void cegui_mltclmlst_isUserColumnSizingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the user may modify the order of the columns. 
-void cegui_mltclmlst_isUserColumnDraggingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return the number of columns in the multi-column list. 
-void cegui_mltclmlst_getColumnCount(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// Return the number of rows in the multi-column list. 
-void cegui_mltclmlst_getRowCount(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// Return the zero based index of the current sort column. There must be at least one column to successfully call this method. 
-void cegui_mltclmlst_getSortColumn(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// Return the zero based column index of the column with the specified ID. 
-void cegui_mltclmlst_getColumnWithID(struct hg3dclass_struct * thisclass_c, unsigned int col_id_c, unsigned int * result_c);
-
-// Return the zero based index of the column whos header text matches the specified text. 
-void cegui_mltclmlst_getColumnWithHeaderText(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int * result_c);
-
-// Return the currently set sort direction. 
-void cegui_mltclmlst_getSortDirection(struct hg3dclass_struct * thisclass_c, enum EnumSortDirection * result_c);
-
-// Return the ListHeaderSegment
-void cegui_mltclmlst_getHeaderSegmentForColumn(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c, struct hg3dclass_struct * result_c);
-
-// Return the zero based index of the Row that contains item
-void cegui_mltclmlst_getItemRowIndex(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int * result_c);
-
-// Return the current zero based index of the column that contains item
-void cegui_mltclmlst_getItemColumnIndex(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int * result_c);
-
-// return whether ListboxItemitemcol_idx
-void cegui_mltclmlst_isListboxItemInColumn(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int col_idx_c, int * result_c);
-
-// return whether ListboxItemitemrow_idx
-void cegui_mltclmlst_isListboxItemInRow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int row_idx_c, int * result_c);
-
-// return whether ListboxItemitem
-void cegui_mltclmlst_isListboxItemInList(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int * result_c);
-
-// Return the ListboxItemcol_idxtext
-void cegui_mltclmlst_findColumnItemWithText(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int col_idx_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
-
-// Return the ListboxItemrow_idxtext
-void cegui_mltclmlst_findRowItemWithText(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int row_idx_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
-
-// Return the ListboxItemtext
-void cegui_mltclmlst_findListItemWithText(struct hg3dclass_struct * thisclass_c, char * text_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
-
-// Return a pointer to the first selected ListboxItem
-void cegui_mltclmlst_getFirstSelectedItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return a pointer to the next selected ListboxItemstart_item
-void cegui_mltclmlst_getNextSelected(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
-
-// Return the number of selected ListboxItems attached to this list box. 
-void cegui_mltclmlst_getSelectedCount(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// Return the ID of the currently set nominated selection column to be used when in one of the NominatedColumn* selection modes. There must be at least one column to successfully call this method. 
-void cegui_mltclmlst_getNominatedSelectionColumnID(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// Return the index of the currently set nominated selection column to be used when in one of the NominatedColumn* selection modes. 
-void cegui_mltclmlst_getNominatedSelectionColumn(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// Return the index of the currently set nominated selection row to be used when in one of the NominatedRow* selection modes. 
-void cegui_mltclmlst_getNominatedSelectionRow(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// Return the currently set selection mode. 
-void cegui_mltclmlst_getSelectionMode(struct hg3dclass_struct * thisclass_c, enum EnumSelectionMode * result_c);
-
-// Return whether the vertical scroll bar is always shown. 
-void cegui_mltclmlst_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the horizontal scroll bar is always shown. 
-void cegui_mltclmlst_isHorzScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return the ID code assigned to the requested column. 
-void cegui_mltclmlst_getColumnID(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c, unsigned int * result_c);
-
-// Return the ID code assigned to the requested row. 
-void cegui_mltclmlst_getRowID(struct hg3dclass_struct * thisclass_c, unsigned int row_idx_c, unsigned int * result_c);
-
-// Return the zero based row index of the row with the specified ID. 
-void cegui_mltclmlst_getRowWithID(struct hg3dclass_struct * thisclass_c, unsigned int row_id_c, unsigned int * result_c);
-
-// Return a pointer to the vertical scrollbar component widget for this MultiColumnList
-void cegui_mltclmlst_getVertScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return a pointer to the horizontal scrollbar component widget for this MultiColumnList
-void cegui_mltclmlst_getHorzScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return a pointer to the list header component widget for this MultiColumnList
-void cegui_mltclmlst_getListHeader(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return the sum of all row heights in pixels. 
-void cegui_mltclmlst_getTotalRowsHeight(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Return the pixel width of the widest item in the given column. 
-void cegui_mltclmlst_getWidestColumnItemWidth(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c, float * result_c);
-
-// Return, in pixels, the height of the highest item in the given row. 
-void cegui_mltclmlst_getHighestRowItemHeight(struct hg3dclass_struct * thisclass_c, unsigned int row_idx_c, float * result_c);
-
-// Initialise the Window
-void cegui_mltclmlst_initialiseComponents(struct hg3dclass_struct * thisclass_c);
-
-// Remove all items from the list. 
-void cegui_mltclmlst_resetList(struct hg3dclass_struct * thisclass_c);
-
-// Add a column to the list box. 
-void cegui_mltclmlst_addColumn(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int col_id_c, struct hg3dclass_struct * width_c);
-
-// Insert a new column in the list. 
-void cegui_mltclmlst_insertColumn(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int col_id_c, struct hg3dclass_struct * width_c, unsigned int position_c);
-
-// Removes a column from the list box. This will cause any ListboxItem
-void cegui_mltclmlst_removeColumn(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c);
-
-// Removes a column from the list box. This will cause any ListboxItem
-void cegui_mltclmlst_removeColumnWithID(struct hg3dclass_struct * thisclass_c, unsigned int col_id_c);
-
-// Move the column at index col_idxposition
-void cegui_mltclmlst_moveColumn(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c, unsigned int position_c);
-
-// Move the column with ID col_idposition
-void cegui_mltclmlst_moveColumnWithID(struct hg3dclass_struct * thisclass_c, unsigned int col_id_c, unsigned int position_c);
-
-// Add an empty row to the list box. 
-void cegui_mltclmlst_addRow(struct hg3dclass_struct * thisclass_c, unsigned int row_id_c, unsigned int * result_c);
-
-// Add a row to the list box, and set the item in the column with ID col_iditem
-void cegui_mltclmlst_addRow2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int col_id_c, unsigned int row_id_c, unsigned int * result_c);
-
-// Insert an empty row into the list box. 
-void cegui_mltclmlst_insertRow(struct hg3dclass_struct * thisclass_c, unsigned int row_idx_c, unsigned int row_id_c, unsigned int * result_c);
-
-// Insert a row into the list box, and set the item in the column with ID col_iditem
-void cegui_mltclmlst_insertRow2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int col_id_c, unsigned int row_idx_c, unsigned int row_id_c, unsigned int * result_c);
-
-// Remove the list box row with index row_idxListboxItemrow_idx
-void cegui_mltclmlst_removeRow(struct hg3dclass_struct * thisclass_c, unsigned int row_idx_c);
-
-// Set the ListboxItemcol_idrow_idx
-void cegui_mltclmlst_setItem2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int col_id_c, unsigned int row_idx_c);
-
-// Set the selection mode for the list box. 
-void cegui_mltclmlst_setSelectionMode(struct hg3dclass_struct * thisclass_c, enum EnumSelectionMode sel_mode_c);
-
-// Set the column to be used for the NominatedColumn* selection modes. 
-void cegui_mltclmlst_setNominatedSelectionColumnID(struct hg3dclass_struct * thisclass_c, unsigned int col_id_c);
-
-// Set the column to be used for the NominatedColumn* selection modes. 
-void cegui_mltclmlst_setNominatedSelectionColumn(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c);
-
-// Set the row to be used for the NominatedRow* selection modes. 
-void cegui_mltclmlst_setNominatedSelectionRow(struct hg3dclass_struct * thisclass_c, unsigned int row_idx_c);
-
-// Set the sort direction to be used. 
-void cegui_mltclmlst_setSortDirection(struct hg3dclass_struct * thisclass_c, enum EnumSortDirection direction_c);
-
-// Set the column to be used as the sort key. 
-void cegui_mltclmlst_setSortColumn(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c);
-
-// Set the column to be used as the sort key. 
-void cegui_mltclmlst_setSortColumnByID(struct hg3dclass_struct * thisclass_c, unsigned int col_id_c);
-
-// Set whether the vertical scroll bar should always be shown, or just when needed. 
-void cegui_mltclmlst_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the horizontal scroll bar should always be shown, or just when needed. 
-void cegui_mltclmlst_setShowHorzScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Removed the selected state from any currently selected ListboxItem
-void cegui_mltclmlst_clearAllSelections(struct hg3dclass_struct * thisclass_c);
-
-// Sets or clears the selected state of the given ListboxItem
-void cegui_mltclmlst_setItemSelectState(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int state_c);
-
-// Inform the list box that one or more attached ListboxItems have been externally modified, and the list should re-sync its internal state and refresh the display as needed. 
-void cegui_mltclmlst_handleUpdatedItemData(struct hg3dclass_struct * thisclass_c);
-
-// Set the width of the specified column header (and therefore the column itself). 
-void cegui_mltclmlst_setColumnHeaderWidth(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c, struct hg3dclass_struct * width_c);
-
-// Set whether user manipulation of the sort column and direction are enabled. 
-void cegui_mltclmlst_setUserSortControlEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the user may size column segments. 
-void cegui_mltclmlst_setUserColumnSizingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the user may modify the order of the columns. 
-void cegui_mltclmlst_setUserColumnDraggingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Automatically determines the "best fit" size for the specified column and sets the column width to the same. 
-void cegui_mltclmlst_autoSizeColumnHeader(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c);
-
-// Set the ID code assigned to a given row. 
-void cegui_mltclmlst_setRowID(struct hg3dclass_struct * thisclass_c, unsigned int row_idx_c, unsigned int row_id_c);
-
-// Constructor for the Multi-column list base class. 
-void cegui_mltclmlst_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for the multi-column list base class. 
-void cegui_mltclmlst_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Return whether user manipulation of the sort column and direction are enabled. 
+void cegui_mltclmlst_isUserSortControlEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the user may size column segments. 
+void cegui_mltclmlst_isUserColumnSizingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the user may modify the order of the columns. 
+void cegui_mltclmlst_isUserColumnDraggingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return the number of columns in the multi-column list. 
+void cegui_mltclmlst_getColumnCount(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// Return the number of rows in the multi-column list. 
+void cegui_mltclmlst_getRowCount(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// Return the zero based index of the current sort column. There must be at least one column to successfully call this method. 
+void cegui_mltclmlst_getSortColumn(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// Return the zero based column index of the column with the specified ID. 
+void cegui_mltclmlst_getColumnWithID(struct hg3dclass_struct * thisclass_c, unsigned int col_id_c, unsigned int * result_c);
+
+// Return the zero based index of the column whos header text matches the specified text. 
+void cegui_mltclmlst_getColumnWithHeaderText(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int * result_c);
+
+// Return the currently set sort direction. 
+void cegui_mltclmlst_getSortDirection(struct hg3dclass_struct * thisclass_c, enum EnumSortDirection * result_c);
+
+// Return the ListHeaderSegment
+void cegui_mltclmlst_getHeaderSegmentForColumn(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c, struct hg3dclass_struct * result_c);
+
+// Return the zero based index of the Row that contains item
+void cegui_mltclmlst_getItemRowIndex(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int * result_c);
+
+// Return the current zero based index of the column that contains item
+void cegui_mltclmlst_getItemColumnIndex(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int * result_c);
+
+// return whether ListboxItemitemcol_idx
+void cegui_mltclmlst_isListboxItemInColumn(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int col_idx_c, int * result_c);
+
+// return whether ListboxItemitemrow_idx
+void cegui_mltclmlst_isListboxItemInRow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int row_idx_c, int * result_c);
+
+// return whether ListboxItemitem
+void cegui_mltclmlst_isListboxItemInList(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int * result_c);
+
+// Return the ListboxItemcol_idxtext
+void cegui_mltclmlst_findColumnItemWithText(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int col_idx_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
+
+// Return the ListboxItemrow_idxtext
+void cegui_mltclmlst_findRowItemWithText(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int row_idx_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
+
+// Return the ListboxItemtext
+void cegui_mltclmlst_findListItemWithText(struct hg3dclass_struct * thisclass_c, char * text_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
+
+// Return a pointer to the first selected ListboxItem
+void cegui_mltclmlst_getFirstSelectedItem(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return a pointer to the next selected ListboxItemstart_item
+void cegui_mltclmlst_getNextSelected(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * start_item_c, struct hg3dclass_struct * result_c);
+
+// Return the number of selected ListboxItems attached to this list box. 
+void cegui_mltclmlst_getSelectedCount(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// Return the ID of the currently set nominated selection column to be used when in one of the NominatedColumn* selection modes. There must be at least one column to successfully call this method. 
+void cegui_mltclmlst_getNominatedSelectionColumnID(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// Return the index of the currently set nominated selection column to be used when in one of the NominatedColumn* selection modes. 
+void cegui_mltclmlst_getNominatedSelectionColumn(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// Return the index of the currently set nominated selection row to be used when in one of the NominatedRow* selection modes. 
+void cegui_mltclmlst_getNominatedSelectionRow(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// Return the currently set selection mode. 
+void cegui_mltclmlst_getSelectionMode(struct hg3dclass_struct * thisclass_c, enum EnumSelectionMode * result_c);
+
+// Return whether the vertical scroll bar is always shown. 
+void cegui_mltclmlst_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the horizontal scroll bar is always shown. 
+void cegui_mltclmlst_isHorzScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return the ID code assigned to the requested column. 
+void cegui_mltclmlst_getColumnID(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c, unsigned int * result_c);
+
+// Return the ID code assigned to the requested row. 
+void cegui_mltclmlst_getRowID(struct hg3dclass_struct * thisclass_c, unsigned int row_idx_c, unsigned int * result_c);
+
+// Return the zero based row index of the row with the specified ID. 
+void cegui_mltclmlst_getRowWithID(struct hg3dclass_struct * thisclass_c, unsigned int row_id_c, unsigned int * result_c);
+
+// Return a pointer to the vertical scrollbar component widget for this MultiColumnList
+void cegui_mltclmlst_getVertScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return a pointer to the horizontal scrollbar component widget for this MultiColumnList
+void cegui_mltclmlst_getHorzScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return a pointer to the list header component widget for this MultiColumnList
+void cegui_mltclmlst_getListHeader(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return the sum of all row heights in pixels. 
+void cegui_mltclmlst_getTotalRowsHeight(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Return the pixel width of the widest item in the given column. 
+void cegui_mltclmlst_getWidestColumnItemWidth(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c, float * result_c);
+
+// Return, in pixels, the height of the highest item in the given row. 
+void cegui_mltclmlst_getHighestRowItemHeight(struct hg3dclass_struct * thisclass_c, unsigned int row_idx_c, float * result_c);
+
+// Initialise the Window
+void cegui_mltclmlst_initialiseComponents(struct hg3dclass_struct * thisclass_c);
+
+// Remove all items from the list. 
+void cegui_mltclmlst_resetList(struct hg3dclass_struct * thisclass_c);
+
+// Add a column to the list box. 
+void cegui_mltclmlst_addColumn(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int col_id_c, struct hg3dclass_struct * width_c);
+
+// Insert a new column in the list. 
+void cegui_mltclmlst_insertColumn(struct hg3dclass_struct * thisclass_c, char * text_c, unsigned int col_id_c, struct hg3dclass_struct * width_c, unsigned int position_c);
+
+// Removes a column from the list box. This will cause any ListboxItem
+void cegui_mltclmlst_removeColumn(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c);
+
+// Removes a column from the list box. This will cause any ListboxItem
+void cegui_mltclmlst_removeColumnWithID(struct hg3dclass_struct * thisclass_c, unsigned int col_id_c);
+
+// Move the column at index col_idxposition
+void cegui_mltclmlst_moveColumn(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c, unsigned int position_c);
+
+// Move the column with ID col_idposition
+void cegui_mltclmlst_moveColumnWithID(struct hg3dclass_struct * thisclass_c, unsigned int col_id_c, unsigned int position_c);
+
+// Add an empty row to the list box. 
+void cegui_mltclmlst_addRow(struct hg3dclass_struct * thisclass_c, unsigned int row_id_c, unsigned int * result_c);
+
+// Add a row to the list box, and set the item in the column with ID col_iditem
+void cegui_mltclmlst_addRow2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int col_id_c, unsigned int row_id_c, unsigned int * result_c);
+
+// Insert an empty row into the list box. 
+void cegui_mltclmlst_insertRow(struct hg3dclass_struct * thisclass_c, unsigned int row_idx_c, unsigned int row_id_c, unsigned int * result_c);
+
+// Insert a row into the list box, and set the item in the column with ID col_iditem
+void cegui_mltclmlst_insertRow2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int col_id_c, unsigned int row_idx_c, unsigned int row_id_c, unsigned int * result_c);
+
+// Remove the list box row with index row_idxListboxItemrow_idx
+void cegui_mltclmlst_removeRow(struct hg3dclass_struct * thisclass_c, unsigned int row_idx_c);
+
+// Set the ListboxItemcol_idrow_idx
+void cegui_mltclmlst_setItem2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, unsigned int col_id_c, unsigned int row_idx_c);
+
+// Set the selection mode for the list box. 
+void cegui_mltclmlst_setSelectionMode(struct hg3dclass_struct * thisclass_c, enum EnumSelectionMode sel_mode_c);
+
+// Set the column to be used for the NominatedColumn* selection modes. 
+void cegui_mltclmlst_setNominatedSelectionColumnID(struct hg3dclass_struct * thisclass_c, unsigned int col_id_c);
+
+// Set the column to be used for the NominatedColumn* selection modes. 
+void cegui_mltclmlst_setNominatedSelectionColumn(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c);
+
+// Set the row to be used for the NominatedRow* selection modes. 
+void cegui_mltclmlst_setNominatedSelectionRow(struct hg3dclass_struct * thisclass_c, unsigned int row_idx_c);
+
+// Set the sort direction to be used. 
+void cegui_mltclmlst_setSortDirection(struct hg3dclass_struct * thisclass_c, enum EnumSortDirection direction_c);
+
+// Set the column to be used as the sort key. 
+void cegui_mltclmlst_setSortColumn(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c);
+
+// Set the column to be used as the sort key. 
+void cegui_mltclmlst_setSortColumnByID(struct hg3dclass_struct * thisclass_c, unsigned int col_id_c);
+
+// Set whether the vertical scroll bar should always be shown, or just when needed. 
+void cegui_mltclmlst_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the horizontal scroll bar should always be shown, or just when needed. 
+void cegui_mltclmlst_setShowHorzScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Removed the selected state from any currently selected ListboxItem
+void cegui_mltclmlst_clearAllSelections(struct hg3dclass_struct * thisclass_c);
+
+// Sets or clears the selected state of the given ListboxItem
+void cegui_mltclmlst_setItemSelectState(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c, int state_c);
+
+// Inform the list box that one or more attached ListboxItems have been externally modified, and the list should re-sync its internal state and refresh the display as needed. 
+void cegui_mltclmlst_handleUpdatedItemData(struct hg3dclass_struct * thisclass_c);
+
+// Set the width of the specified column header (and therefore the column itself). 
+void cegui_mltclmlst_setColumnHeaderWidth(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c, struct hg3dclass_struct * width_c);
+
+// Set whether user manipulation of the sort column and direction are enabled. 
+void cegui_mltclmlst_setUserSortControlEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the user may size column segments. 
+void cegui_mltclmlst_setUserColumnSizingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the user may modify the order of the columns. 
+void cegui_mltclmlst_setUserColumnDraggingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Automatically determines the "best fit" size for the specified column and sets the column width to the same. 
+void cegui_mltclmlst_autoSizeColumnHeader(struct hg3dclass_struct * thisclass_c, unsigned int col_idx_c);
+
+// Set the ID code assigned to a given row. 
+void cegui_mltclmlst_setRowID(struct hg3dclass_struct * thisclass_c, unsigned int row_idx_c, unsigned int row_id_c);
+
+// Constructor for the Multi-column list base class. 
+void cegui_mltclmlst_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for the multi-column list base class. 
+void cegui_mltclmlst_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassMultiLineEditbox.h b/include/ClassMultiLineEditbox.h
--- a/include/ClassMultiLineEditbox.h
+++ b/include/ClassMultiLineEditbox.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,84 +14,84 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassMultiLineEditbox.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassMultiLineEditbox
-#define _DEFINED_HG3D_ClassMultiLineEditbox
-
-#include "ClassPtr.h"
-#include "ClassScrollbar.h"
+#ifndef _DEFINED_HG3D_ClassMultiLineEditbox
+#define _DEFINED_HG3D_ClassMultiLineEditbox
 
+#include "ClassPtr.h"
+#include "ClassScrollbar.h"
 
-// return true if the edit box has input focus. 
-void cegui_mltlnedtbx_hasInputFocus(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return true if the edit box is read-only. 
-void cegui_mltlnedtbx_isReadOnly(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the current position of the carat. 
-void cegui_mltlnedtbx_getCaratIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the current selection start point. 
-void cegui_mltlnedtbx_getSelectionStartIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the current selection end point. 
-void cegui_mltlnedtbx_getSelectionEndIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the length of the current selection (in code points / characters). 
-void cegui_mltlnedtbx_getSelectionLength(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the maximum text length set for this edit box. 
-void cegui_mltlnedtbx_getMaxTextLength(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the text in the edit box will be word-wrapped. 
-void cegui_mltlnedtbx_isWordWrapped(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return a pointer to the vertical scrollbar component widget for this MultiLineEditbox
-void cegui_mltlnedtbx_getVertScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return whether the vertical scroll bar is always shown. 
-void cegui_mltlnedtbx_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return a pointer to the horizontal scrollbar component widget for this MultiLineEditbox
-void cegui_mltlnedtbx_getHorzScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return the line number a given index falls on with the current formatting. Will return last line if index is out of range. 
-void cegui_mltlnedtbx_getLineNumberFromIndex(struct hg3dclass_struct * thisclass_c, int index_c, int * result_c);
-
-// Initialise the Window
-void cegui_mltlnedtbx_initialiseComponents(struct hg3dclass_struct * thisclass_c);
-
-// Specify whether the edit box is read-only. 
-void cegui_mltlnedtbx_setReadOnly(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the current position of the carat. 
-void cegui_mltlnedtbx_setCaratIndex(struct hg3dclass_struct * thisclass_c, int carat_pos_c);
-
-// Define the current selection for the edit box. 
-void cegui_mltlnedtbx_setSelection(struct hg3dclass_struct * thisclass_c, int start_pos_c, int end_pos_c);
-
-// set the maximum text length for this edit box. 
-void cegui_mltlnedtbx_setMaxTextLength(struct hg3dclass_struct * thisclass_c, int max_len_c);
-
-// Scroll the view so that the current carat position is visible. 
-void cegui_mltlnedtbx_ensureCaratIsVisible(struct hg3dclass_struct * thisclass_c);
-
-// Set whether the text will be word wrapped or not. 
-void cegui_mltlnedtbx_setWordWrapping(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the vertical scroll bar should always be shown. 
-void cegui_mltlnedtbx_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Constructor for the MultiLineEditbox
-void cegui_mltlnedtbx_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for the MultiLineEditbox
-void cegui_mltlnedtbx_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// return true if the edit box has input focus. 
+void cegui_mltlnedtbx_hasInputFocus(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return true if the edit box is read-only. 
+void cegui_mltlnedtbx_isReadOnly(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the current position of the carat. 
+void cegui_mltlnedtbx_getCaratIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the current selection start point. 
+void cegui_mltlnedtbx_getSelectionStartIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the current selection end point. 
+void cegui_mltlnedtbx_getSelectionEndIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the length of the current selection (in code points / characters). 
+void cegui_mltlnedtbx_getSelectionLength(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the maximum text length set for this edit box. 
+void cegui_mltlnedtbx_getMaxTextLength(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the text in the edit box will be word-wrapped. 
+void cegui_mltlnedtbx_isWordWrapped(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return a pointer to the vertical scrollbar component widget for this MultiLineEditbox
+void cegui_mltlnedtbx_getVertScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return whether the vertical scroll bar is always shown. 
+void cegui_mltlnedtbx_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return a pointer to the horizontal scrollbar component widget for this MultiLineEditbox
+void cegui_mltlnedtbx_getHorzScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return the line number a given index falls on with the current formatting. Will return last line if index is out of range. 
+void cegui_mltlnedtbx_getLineNumberFromIndex(struct hg3dclass_struct * thisclass_c, int index_c, int * result_c);
+
+// Initialise the Window
+void cegui_mltlnedtbx_initialiseComponents(struct hg3dclass_struct * thisclass_c);
+
+// Specify whether the edit box is read-only. 
+void cegui_mltlnedtbx_setReadOnly(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the current position of the carat. 
+void cegui_mltlnedtbx_setCaratIndex(struct hg3dclass_struct * thisclass_c, int carat_pos_c);
+
+// Define the current selection for the edit box. 
+void cegui_mltlnedtbx_setSelection(struct hg3dclass_struct * thisclass_c, int start_pos_c, int end_pos_c);
+
+// set the maximum text length for this edit box. 
+void cegui_mltlnedtbx_setMaxTextLength(struct hg3dclass_struct * thisclass_c, int max_len_c);
+
+// Scroll the view so that the current carat position is visible. 
+void cegui_mltlnedtbx_ensureCaratIsVisible(struct hg3dclass_struct * thisclass_c);
+
+// Set whether the text will be word wrapped or not. 
+void cegui_mltlnedtbx_setWordWrapping(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the vertical scroll bar should always be shown. 
+void cegui_mltlnedtbx_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Constructor for the MultiLineEditbox
+void cegui_mltlnedtbx_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for the MultiLineEditbox
+void cegui_mltlnedtbx_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassOgreRenderer.h b/include/ClassOgreRenderer.h
--- a/include/ClassOgreRenderer.h
+++ b/include/ClassOgreRenderer.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,76 +14,76 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassOgreRenderer.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassOgreRenderer
-#define _DEFINED_HG3D_ClassOgreRenderer
-
-#include "ClassPtr.h"
-#include "ClassOgreResourceProvider.h"
-#include "EnumBlendMode.h"
+#ifndef _DEFINED_HG3D_ClassOgreRenderer
+#define _DEFINED_HG3D_ClassOgreRenderer
 
+#include "ClassPtr.h"
+#include "ClassOgreResourceProvider.h"
+#include "EnumBlendMode.h"
 
-// Convenience function that creates all the OgreCEGUI
-void cegui_ogrrndr_bootstrapSystem(struct hg3dclass_struct * result_c);
-
-// Convenience function to cleanup the CEGUI
-void cegui_ogrrndr_destroySystem();
-
-// Create an OgreRendererOgre
-void cegui_ogrrndr_create(struct hg3dclass_struct * result_c);
-
-// destory an OgreRenderer
-void cegui_ogrrndr_destroy(struct hg3dclass_struct * renderer_c);
-
-// function to create a CEGUI::OgreResourceProvider
-void cegui_ogrrndr_createOgreResourceProvider(struct hg3dclass_struct * result_c);
-
-// function to destroy a CEGUI::OgreResourceProvider
-void cegui_ogrrndr_destroyOgreResourceProvider(struct hg3dclass_struct * rp_c);
-
-// set whether CEGUI
-void cegui_ogrrndr_setRenderingEnabled(struct hg3dclass_struct * thisclass_c, const int enabled_c);
-
-// return whether CEGUI
-void cegui_ogrrndr_isRenderingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// set the render states for the specified BlendMode. 
-void cegui_ogrrndr_setupRenderingBlendMode(struct hg3dclass_struct * thisclass_c, const enum EnumBlendMode mode_c, const int force_c);
-
-// Controls whether rendering done by CEGUI
-void cegui_ogrrndr_setFrameControlExecutionEnabled(struct hg3dclass_struct * thisclass_c, const int enabled_c);
-
-// Returns whether rendering done by CEGUI
-void cegui_ogrrndr_isFrameControlExecutionEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Sets all the required render states needed for CEGUI
-void cegui_ogrrndr_initialiseRenderStateSettings(struct hg3dclass_struct * thisclass_c);
-
-// Destroy all GeometryBuffer objects created by this Renderer
-void cegui_ogrrndr_destroyAllGeometryBuffers(struct hg3dclass_struct * thisclass_c);
-
-// Destory all TextureTarget objects created by this Renderer
-void cegui_ogrrndr_destroyAllTextureTargets(struct hg3dclass_struct * thisclass_c);
-
-// Destroy all Texture objects created by this Renderer
-void cegui_ogrrndr_destroyAllTextures(struct hg3dclass_struct * thisclass_c);
-
-// Perform any operations required to put the system into a state ready for rendering operations to begin. 
-void cegui_ogrrndr_beginRendering(struct hg3dclass_struct * thisclass_c);
-
-// Perform any operations required to finalise rendering. 
-void cegui_ogrrndr_endRendering(struct hg3dclass_struct * thisclass_c);
-
-// Return the pixel size of the maximum supported texture. 
-void cegui_ogrrndr_getMaxTextureSize(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// Return identification string for the renderer module. 
-void cegui_ogrrndr_getIdentifierString(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-#endif 
+
+// Convenience function that creates all the OgreCEGUI
+void cegui_ogrrndr_bootstrapSystem(struct hg3dclass_struct * result_c);
+
+// Convenience function to cleanup the CEGUI
+void cegui_ogrrndr_destroySystem();
+
+// Create an OgreRendererOgre
+void cegui_ogrrndr_create(struct hg3dclass_struct * result_c);
+
+// destory an OgreRenderer
+void cegui_ogrrndr_destroy(struct hg3dclass_struct * renderer_c);
+
+// function to create a CEGUI::OgreResourceProvider
+void cegui_ogrrndr_createOgreResourceProvider(struct hg3dclass_struct * result_c);
+
+// function to destroy a CEGUI::OgreResourceProvider
+void cegui_ogrrndr_destroyOgreResourceProvider(struct hg3dclass_struct * rp_c);
+
+// set whether CEGUI
+void cegui_ogrrndr_setRenderingEnabled(struct hg3dclass_struct * thisclass_c, const int enabled_c);
+
+// return whether CEGUI
+void cegui_ogrrndr_isRenderingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// set the render states for the specified BlendMode. 
+void cegui_ogrrndr_setupRenderingBlendMode(struct hg3dclass_struct * thisclass_c, const enum EnumBlendMode mode_c, const int force_c);
+
+// Controls whether rendering done by CEGUI
+void cegui_ogrrndr_setFrameControlExecutionEnabled(struct hg3dclass_struct * thisclass_c, const int enabled_c);
+
+// Returns whether rendering done by CEGUI
+void cegui_ogrrndr_isFrameControlExecutionEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Sets all the required render states needed for CEGUI
+void cegui_ogrrndr_initialiseRenderStateSettings(struct hg3dclass_struct * thisclass_c);
+
+// Destroy all GeometryBuffer objects created by this Renderer
+void cegui_ogrrndr_destroyAllGeometryBuffers(struct hg3dclass_struct * thisclass_c);
+
+// Destory all TextureTarget objects created by this Renderer
+void cegui_ogrrndr_destroyAllTextureTargets(struct hg3dclass_struct * thisclass_c);
+
+// Destroy all Texture objects created by this Renderer
+void cegui_ogrrndr_destroyAllTextures(struct hg3dclass_struct * thisclass_c);
+
+// Perform any operations required to put the system into a state ready for rendering operations to begin. 
+void cegui_ogrrndr_beginRendering(struct hg3dclass_struct * thisclass_c);
+
+// Perform any operations required to finalise rendering. 
+void cegui_ogrrndr_endRendering(struct hg3dclass_struct * thisclass_c);
+
+// Return the pixel size of the maximum supported texture. 
+void cegui_ogrrndr_getMaxTextureSize(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// Return identification string for the renderer module. 
+void cegui_ogrrndr_getIdentifierString(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+#endif 
diff --git a/include/ClassOgreResourceProvider.h b/include/ClassOgreResourceProvider.h
--- a/include/ClassOgreResourceProvider.h
+++ b/include/ClassOgreResourceProvider.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,17 +14,17 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassOgreResourceProvider.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassOgreResourceProvider
-#define _DEFINED_HG3D_ClassOgreResourceProvider
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassOgreResourceProvider
+#define _DEFINED_HG3D_ClassOgreResourceProvider
 
+#include "ClassPtr.h"
 
-#endif 
+
+#endif 
diff --git a/include/ClassProgressBar.h b/include/ClassProgressBar.h
--- a/include/ClassProgressBar.h
+++ b/include/ClassProgressBar.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,41 +14,41 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassProgressBar.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassProgressBar
-#define _DEFINED_HG3D_ClassProgressBar
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassProgressBar
+#define _DEFINED_HG3D_ClassProgressBar
 
+#include "ClassPtr.h"
 
-// return the current progress value 
-void cegui_prgbr_getProgress(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// return the current step size 
-void cegui_prgbr_getStep(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// set the current progress. 
-void cegui_prgbr_setProgress(struct hg3dclass_struct * thisclass_c, float progress_c);
-
-// set the size of the 'step' in percentage points (default is 0.01f or 1%). 
-void cegui_prgbr_setStepSize(struct hg3dclass_struct * thisclass_c, float step_val_c);
-
-// cause the progress to step 
-void cegui_prgbr_step(struct hg3dclass_struct * thisclass_c);
-
-// Modify the progress level by a specified delta. 
-void cegui_prgbr_adjustProgress(struct hg3dclass_struct * thisclass_c, float delta_c);
-
-// Constructor for ProgressBar
-void cegui_prgbr_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for ProgressBar
-void cegui_prgbr_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// return the current progress value 
+void cegui_prgbr_getProgress(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// return the current step size 
+void cegui_prgbr_getStep(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// set the current progress. 
+void cegui_prgbr_setProgress(struct hg3dclass_struct * thisclass_c, float progress_c);
+
+// set the size of the 'step' in percentage points (default is 0.01f or 1%). 
+void cegui_prgbr_setStepSize(struct hg3dclass_struct * thisclass_c, float step_val_c);
+
+// cause the progress to step 
+void cegui_prgbr_step(struct hg3dclass_struct * thisclass_c);
+
+// Modify the progress level by a specified delta. 
+void cegui_prgbr_adjustProgress(struct hg3dclass_struct * thisclass_c, float delta_c);
+
+// Constructor for ProgressBar
+void cegui_prgbr_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for ProgressBar
+void cegui_prgbr_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassPropertySet.h b/include/ClassPropertySet.h
--- a/include/ClassPropertySet.h
+++ b/include/ClassPropertySet.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,47 +14,47 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassPropertySet.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassPropertySet
-#define _DEFINED_HG3D_ClassPropertySet
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassPropertySet
+#define _DEFINED_HG3D_ClassPropertySet
 
+#include "ClassPtr.h"
 
-// Constructs a new PropertySet
-void cegui_prpst_construct(struct hg3dclass_struct * result_c);
-
-// Destructor for PropertySet
-void cegui_prpst_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Removes a Property from the PropertySet
-void cegui_prpst_removeProperty(struct hg3dclass_struct * thisclass_c, char * name_c);
-
-// Removes all Property objects from the PropertySet
-void cegui_prpst_clearProperties(struct hg3dclass_struct * thisclass_c);
-
-// Checks to see if a Property with the given name is in the PropertySet
-void cegui_prpst_isPropertyPresent(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
-
-// Return the help text for the specified Property. 
-void cegui_prpst_getPropertyHelp(struct hg3dclass_struct * thisclass_c, char * name_c, char * result_c);
-
-// Gets the current value of the specified Property. 
-void cegui_prpst_getProperty(struct hg3dclass_struct * thisclass_c, char * name_c, char * result_c);
-
-// Sets the current value of a Property. 
-void cegui_prpst_setProperty(struct hg3dclass_struct * thisclass_c, char * name_c, char * value_c);
-
-// Returns whether a Property is at it's default value. 
-void cegui_prpst_isPropertyDefault(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
-
-// Returns the default value of a Property as a String. 
-void cegui_prpst_getPropertyDefault(struct hg3dclass_struct * thisclass_c, char * name_c, char * result_c);
-
-#endif 
+
+// Constructs a new PropertySet
+void cegui_prpst_construct(struct hg3dclass_struct * result_c);
+
+// Destructor for PropertySet
+void cegui_prpst_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Removes a Property from the PropertySet
+void cegui_prpst_removeProperty(struct hg3dclass_struct * thisclass_c, char * name_c);
+
+// Removes all Property objects from the PropertySet
+void cegui_prpst_clearProperties(struct hg3dclass_struct * thisclass_c);
+
+// Checks to see if a Property with the given name is in the PropertySet
+void cegui_prpst_isPropertyPresent(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
+
+// Return the help text for the specified Property. 
+void cegui_prpst_getPropertyHelp(struct hg3dclass_struct * thisclass_c, char * name_c, char * result_c);
+
+// Gets the current value of the specified Property. 
+void cegui_prpst_getProperty(struct hg3dclass_struct * thisclass_c, char * name_c, char * result_c);
+
+// Sets the current value of a Property. 
+void cegui_prpst_setProperty(struct hg3dclass_struct * thisclass_c, char * name_c, char * value_c);
+
+// Returns whether a Property is at it's default value. 
+void cegui_prpst_isPropertyDefault(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
+
+// Returns the default value of a Property as a String. 
+void cegui_prpst_getPropertyDefault(struct hg3dclass_struct * thisclass_c, char * name_c, char * result_c);
+
+#endif 
diff --git a/include/ClassPtr.h b/include/ClassPtr.h
--- a/include/ClassPtr.h
+++ b/include/ClassPtr.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,208 +14,208 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassPtr.h
 
-// Here are the methods defined, which do the class pointer
-// marshalling and the casting of subclasses to higher classes
+// Here are the methods defined, which do the class pointer
+// marshalling and the casting of subclasses to higher classes
 
 #include "wchar.h"
 
 
-#ifndef CLASSPTR_INCLUDE_H
-#define CLASSPTR_INCLUDE_H
-
-typedef struct hg3dclass_struct {
-	void *ptr;
-	void *fptr;
-} hg3dclass_struct;
-
-void *getHG3DClassPtr(hg3dclass_struct inSt, const char* className);
-
-
-typedef void ClassCheckbox; 
-hg3dclass_struct getHG3DClass_Checkbox(void *ptrIn);
-
-typedef void ClassCombobox; 
-hg3dclass_struct getHG3DClass_Combobox(void *ptrIn);
-
-typedef void ClassComboDropList; 
-hg3dclass_struct getHG3DClass_ComboDropList(void *ptrIn);
-
-typedef void ClassDefaultLogger; 
-hg3dclass_struct getHG3DClass_DefaultLogger(void *ptrIn);
-
-typedef void ClassDefaultResourceProvider; 
-hg3dclass_struct getHG3DClass_DefaultResourceProvider(void *ptrIn);
-
-typedef void ClassDragContainer; 
-hg3dclass_struct getHG3DClass_DragContainer(void *ptrIn);
-
-typedef void ClassEditbox; 
-hg3dclass_struct getHG3DClass_Editbox(void *ptrIn);
-
-typedef void ClassEventArgs; 
-hg3dclass_struct getHG3DClass_EventArgs(void *ptrIn);
-
-typedef void ClassEventSet; 
-hg3dclass_struct getHG3DClass_EventSet(void *ptrIn);
-
-typedef void ClassFont; 
-hg3dclass_struct getHG3DClass_Font(void *ptrIn);
-
-typedef void ClassFontManager; 
-hg3dclass_struct getHG3DClass_FontManager(void *ptrIn);
-
-typedef void ClassFrameWindow; 
-hg3dclass_struct getHG3DClass_FrameWindow(void *ptrIn);
-
-typedef void ClassImageCodec; 
-hg3dclass_struct getHG3DClass_ImageCodec(void *ptrIn);
-
-typedef void ClassImageset; 
-hg3dclass_struct getHG3DClass_Imageset(void *ptrIn);
-
-typedef void ClassItemEntry; 
-hg3dclass_struct getHG3DClass_ItemEntry(void *ptrIn);
-
-typedef void ClassItemListbox; 
-hg3dclass_struct getHG3DClass_ItemListbox(void *ptrIn);
-
-typedef void ClassListbox; 
-hg3dclass_struct getHG3DClass_Listbox(void *ptrIn);
-
-typedef void ClassListboxItem; 
-hg3dclass_struct getHG3DClass_ListboxItem(void *ptrIn);
-
-typedef void ClassListboxTextItem; 
-hg3dclass_struct getHG3DClass_ListboxTextItem(void *ptrIn);
-
-typedef void ClassListHeader; 
-hg3dclass_struct getHG3DClass_ListHeader(void *ptrIn);
-
-typedef void ClassListHeaderSegment; 
-hg3dclass_struct getHG3DClass_ListHeaderSegment(void *ptrIn);
-
-typedef void ClassLogger; 
-hg3dclass_struct getHG3DClass_Logger(void *ptrIn);
-
-typedef void ClassMenuBase; 
-hg3dclass_struct getHG3DClass_MenuBase(void *ptrIn);
-
-typedef void ClassMenuItem; 
-hg3dclass_struct getHG3DClass_MenuItem(void *ptrIn);
-
-typedef void ClassMultiColumnList; 
-hg3dclass_struct getHG3DClass_MultiColumnList(void *ptrIn);
-
-typedef void ClassMultiLineEditbox; 
-hg3dclass_struct getHG3DClass_MultiLineEditbox(void *ptrIn);
-
-typedef void ClassOgreRenderer; 
-hg3dclass_struct getHG3DClass_OgreRenderer(void *ptrIn);
-
-typedef void ClassOgreResourceProvider; 
-hg3dclass_struct getHG3DClass_OgreResourceProvider(void *ptrIn);
-
-typedef void ClassProgressBar; 
-hg3dclass_struct getHG3DClass_ProgressBar(void *ptrIn);
-
-typedef void ClassPropertySet; 
-hg3dclass_struct getHG3DClass_PropertySet(void *ptrIn);
-
-typedef void ClassPushButton; 
-hg3dclass_struct getHG3DClass_PushButton(void *ptrIn);
-
-typedef void ClassRadioButton; 
-hg3dclass_struct getHG3DClass_RadioButton(void *ptrIn);
-
-typedef void ClassRenderer; 
-hg3dclass_struct getHG3DClass_Renderer(void *ptrIn);
-
-typedef void ClassResourceProvider; 
-hg3dclass_struct getHG3DClass_ResourceProvider(void *ptrIn);
-
-typedef void ClassScheme; 
-hg3dclass_struct getHG3DClass_Scheme(void *ptrIn);
-
-typedef void ClassSchemeManager; 
-hg3dclass_struct getHG3DClass_SchemeManager(void *ptrIn);
-
-typedef void ClassScriptFunctor; 
-hg3dclass_struct getHG3DClass_ScriptFunctor(void *ptrIn);
-
-typedef void ClassScriptModule; 
-hg3dclass_struct getHG3DClass_ScriptModule(void *ptrIn);
-
-typedef void ClassScrollablePane; 
-hg3dclass_struct getHG3DClass_ScrollablePane(void *ptrIn);
-
-typedef void ClassScrollbar; 
-hg3dclass_struct getHG3DClass_Scrollbar(void *ptrIn);
-
-typedef void ClassScrolledContainer; 
-hg3dclass_struct getHG3DClass_ScrolledContainer(void *ptrIn);
-
-typedef void ClassScrolledItemListBase; 
-hg3dclass_struct getHG3DClass_ScrolledItemListBase(void *ptrIn);
-
-typedef void ClassSlider; 
-hg3dclass_struct getHG3DClass_Slider(void *ptrIn);
-
-typedef void ClassSpinner; 
-hg3dclass_struct getHG3DClass_Spinner(void *ptrIn);
-
-typedef void ClassSystem; 
-hg3dclass_struct getHG3DClass_System(void *ptrIn);
-
-typedef void ClassTabButton; 
-hg3dclass_struct getHG3DClass_TabButton(void *ptrIn);
-
-typedef void ClassThumb; 
-hg3dclass_struct getHG3DClass_Thumb(void *ptrIn);
-
-typedef void ClassTooltip; 
-hg3dclass_struct getHG3DClass_Tooltip(void *ptrIn);
-
-typedef void ClassTree; 
-hg3dclass_struct getHG3DClass_Tree(void *ptrIn);
-
-typedef void ClassUDim; 
-hg3dclass_struct getHG3DClass_UDim(void *ptrIn);
-
-typedef void ClassUVector2; 
-hg3dclass_struct getHG3DClass_UVector2(void *ptrIn);
-
-typedef void ClassWidgetLookManager; 
-hg3dclass_struct getHG3DClass_WidgetLookManager(void *ptrIn);
-
-typedef void ClassWindow; 
-hg3dclass_struct getHG3DClass_Window(void *ptrIn);
-
-typedef void ClassWindowManager; 
-hg3dclass_struct getHG3DClass_WindowManager(void *ptrIn);
-
-typedef void ClassXMLParser; 
-hg3dclass_struct getHG3DClass_XMLParser(void *ptrIn);
-
-typedef void ClassHG3DEventController; 
-hg3dclass_struct getHG3DClass_HG3DEventController(void *ptrIn);
-
-typedef void ClassHG3DEventStaticFunctions; 
-hg3dclass_struct getHG3DClass_HG3DEventStaticFunctions(void *ptrIn);
-
-typedef void ClassHG3DListboxStaticFunctions; 
-hg3dclass_struct getHG3DClass_HG3DListboxStaticFunctions(void *ptrIn);
-
-typedef void ClassHG3DWindowStaticFunctions; 
-hg3dclass_struct getHG3DClass_HG3DWindowStaticFunctions(void *ptrIn);
-
-typedef void ClassSystemHG3D; 
-hg3dclass_struct getHG3DClass_SystemHG3D(void *ptrIn);
-
-typedef void ClassWindowManagerHG3D; 
-hg3dclass_struct getHG3DClass_WindowManagerHG3D(void *ptrIn);
-
-#endif
+#ifndef CLASSPTR_INCLUDE_H
+#define CLASSPTR_INCLUDE_H
+
+typedef struct hg3dclass_struct {
+	void *ptr;
+	void *fptr;
+} hg3dclass_struct;
+
+void *getHG3DClassPtr(hg3dclass_struct inSt, const char* className);
+
+
+typedef void ClassCheckbox; 
+hg3dclass_struct getHG3DClass_Checkbox(void *ptrIn);
+
+typedef void ClassCombobox; 
+hg3dclass_struct getHG3DClass_Combobox(void *ptrIn);
+
+typedef void ClassComboDropList; 
+hg3dclass_struct getHG3DClass_ComboDropList(void *ptrIn);
+
+typedef void ClassDefaultLogger; 
+hg3dclass_struct getHG3DClass_DefaultLogger(void *ptrIn);
+
+typedef void ClassDefaultResourceProvider; 
+hg3dclass_struct getHG3DClass_DefaultResourceProvider(void *ptrIn);
+
+typedef void ClassDragContainer; 
+hg3dclass_struct getHG3DClass_DragContainer(void *ptrIn);
+
+typedef void ClassEditbox; 
+hg3dclass_struct getHG3DClass_Editbox(void *ptrIn);
+
+typedef void ClassEventArgs; 
+hg3dclass_struct getHG3DClass_EventArgs(void *ptrIn);
+
+typedef void ClassEventSet; 
+hg3dclass_struct getHG3DClass_EventSet(void *ptrIn);
+
+typedef void ClassFont; 
+hg3dclass_struct getHG3DClass_Font(void *ptrIn);
+
+typedef void ClassFontManager; 
+hg3dclass_struct getHG3DClass_FontManager(void *ptrIn);
+
+typedef void ClassFrameWindow; 
+hg3dclass_struct getHG3DClass_FrameWindow(void *ptrIn);
+
+typedef void ClassImageCodec; 
+hg3dclass_struct getHG3DClass_ImageCodec(void *ptrIn);
+
+typedef void ClassImageset; 
+hg3dclass_struct getHG3DClass_Imageset(void *ptrIn);
+
+typedef void ClassItemEntry; 
+hg3dclass_struct getHG3DClass_ItemEntry(void *ptrIn);
+
+typedef void ClassItemListbox; 
+hg3dclass_struct getHG3DClass_ItemListbox(void *ptrIn);
+
+typedef void ClassListbox; 
+hg3dclass_struct getHG3DClass_Listbox(void *ptrIn);
+
+typedef void ClassListboxItem; 
+hg3dclass_struct getHG3DClass_ListboxItem(void *ptrIn);
+
+typedef void ClassListboxTextItem; 
+hg3dclass_struct getHG3DClass_ListboxTextItem(void *ptrIn);
+
+typedef void ClassListHeader; 
+hg3dclass_struct getHG3DClass_ListHeader(void *ptrIn);
+
+typedef void ClassListHeaderSegment; 
+hg3dclass_struct getHG3DClass_ListHeaderSegment(void *ptrIn);
+
+typedef void ClassLogger; 
+hg3dclass_struct getHG3DClass_Logger(void *ptrIn);
+
+typedef void ClassMenuBase; 
+hg3dclass_struct getHG3DClass_MenuBase(void *ptrIn);
+
+typedef void ClassMenuItem; 
+hg3dclass_struct getHG3DClass_MenuItem(void *ptrIn);
+
+typedef void ClassMultiColumnList; 
+hg3dclass_struct getHG3DClass_MultiColumnList(void *ptrIn);
+
+typedef void ClassMultiLineEditbox; 
+hg3dclass_struct getHG3DClass_MultiLineEditbox(void *ptrIn);
+
+typedef void ClassOgreRenderer; 
+hg3dclass_struct getHG3DClass_OgreRenderer(void *ptrIn);
+
+typedef void ClassOgreResourceProvider; 
+hg3dclass_struct getHG3DClass_OgreResourceProvider(void *ptrIn);
+
+typedef void ClassProgressBar; 
+hg3dclass_struct getHG3DClass_ProgressBar(void *ptrIn);
+
+typedef void ClassPropertySet; 
+hg3dclass_struct getHG3DClass_PropertySet(void *ptrIn);
+
+typedef void ClassPushButton; 
+hg3dclass_struct getHG3DClass_PushButton(void *ptrIn);
+
+typedef void ClassRadioButton; 
+hg3dclass_struct getHG3DClass_RadioButton(void *ptrIn);
+
+typedef void ClassRenderer; 
+hg3dclass_struct getHG3DClass_Renderer(void *ptrIn);
+
+typedef void ClassResourceProvider; 
+hg3dclass_struct getHG3DClass_ResourceProvider(void *ptrIn);
+
+typedef void ClassScheme; 
+hg3dclass_struct getHG3DClass_Scheme(void *ptrIn);
+
+typedef void ClassSchemeManager; 
+hg3dclass_struct getHG3DClass_SchemeManager(void *ptrIn);
+
+typedef void ClassScriptFunctor; 
+hg3dclass_struct getHG3DClass_ScriptFunctor(void *ptrIn);
+
+typedef void ClassScriptModule; 
+hg3dclass_struct getHG3DClass_ScriptModule(void *ptrIn);
+
+typedef void ClassScrollablePane; 
+hg3dclass_struct getHG3DClass_ScrollablePane(void *ptrIn);
+
+typedef void ClassScrollbar; 
+hg3dclass_struct getHG3DClass_Scrollbar(void *ptrIn);
+
+typedef void ClassScrolledContainer; 
+hg3dclass_struct getHG3DClass_ScrolledContainer(void *ptrIn);
+
+typedef void ClassScrolledItemListBase; 
+hg3dclass_struct getHG3DClass_ScrolledItemListBase(void *ptrIn);
+
+typedef void ClassSlider; 
+hg3dclass_struct getHG3DClass_Slider(void *ptrIn);
+
+typedef void ClassSpinner; 
+hg3dclass_struct getHG3DClass_Spinner(void *ptrIn);
+
+typedef void ClassSystem; 
+hg3dclass_struct getHG3DClass_System(void *ptrIn);
+
+typedef void ClassTabButton; 
+hg3dclass_struct getHG3DClass_TabButton(void *ptrIn);
+
+typedef void ClassThumb; 
+hg3dclass_struct getHG3DClass_Thumb(void *ptrIn);
+
+typedef void ClassTooltip; 
+hg3dclass_struct getHG3DClass_Tooltip(void *ptrIn);
+
+typedef void ClassTree; 
+hg3dclass_struct getHG3DClass_Tree(void *ptrIn);
+
+typedef void ClassUDim; 
+hg3dclass_struct getHG3DClass_UDim(void *ptrIn);
+
+typedef void ClassUVector2; 
+hg3dclass_struct getHG3DClass_UVector2(void *ptrIn);
+
+typedef void ClassWidgetLookManager; 
+hg3dclass_struct getHG3DClass_WidgetLookManager(void *ptrIn);
+
+typedef void ClassWindow; 
+hg3dclass_struct getHG3DClass_Window(void *ptrIn);
+
+typedef void ClassWindowManager; 
+hg3dclass_struct getHG3DClass_WindowManager(void *ptrIn);
+
+typedef void ClassXMLParser; 
+hg3dclass_struct getHG3DClass_XMLParser(void *ptrIn);
+
+typedef void ClassHG3DEventController; 
+hg3dclass_struct getHG3DClass_HG3DEventController(void *ptrIn);
+
+typedef void ClassHG3DEventStaticFunctions; 
+hg3dclass_struct getHG3DClass_HG3DEventStaticFunctions(void *ptrIn);
+
+typedef void ClassHG3DListboxStaticFunctions; 
+hg3dclass_struct getHG3DClass_HG3DListboxStaticFunctions(void *ptrIn);
+
+typedef void ClassHG3DWindowStaticFunctions; 
+hg3dclass_struct getHG3DClass_HG3DWindowStaticFunctions(void *ptrIn);
+
+typedef void ClassSystemHG3D; 
+hg3dclass_struct getHG3DClass_SystemHG3D(void *ptrIn);
+
+typedef void ClassWindowManagerHG3D; 
+hg3dclass_struct getHG3DClass_WindowManagerHG3D(void *ptrIn);
+
+#endif
diff --git a/include/ClassPushButton.h b/include/ClassPushButton.h
--- a/include/ClassPushButton.h
+++ b/include/ClassPushButton.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,23 +14,23 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassPushButton.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassPushButton
-#define _DEFINED_HG3D_ClassPushButton
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassPushButton
+#define _DEFINED_HG3D_ClassPushButton
 
+#include "ClassPtr.h"
 
-// Constructor for base PushButton
-void cegui_pshbttn_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for PushButton
-void cegui_pshbttn_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Constructor for base PushButton
+void cegui_pshbttn_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for PushButton
+void cegui_pshbttn_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassRadioButton.h b/include/ClassRadioButton.h
--- a/include/ClassRadioButton.h
+++ b/include/ClassRadioButton.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,32 +14,32 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassRadioButton.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassRadioButton
-#define _DEFINED_HG3D_ClassRadioButton
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassRadioButton
+#define _DEFINED_HG3D_ClassRadioButton
 
+#include "ClassPtr.h"
 
-// return true if the radio button is selected (has the checkmark) 
-void cegui_rdbttn_isSelected(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return a pointer to the RadioButtonRadioButton
-void cegui_rdbttn_getSelectedButtonInGroup(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// set whether the radio button is selected or not 
-void cegui_rdbttn_setSelected(struct hg3dclass_struct * thisclass_c, int select_c);
-
-// 
-void cegui_rdbttn_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_rdbttn_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// return true if the radio button is selected (has the checkmark) 
+void cegui_rdbttn_isSelected(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return a pointer to the RadioButtonRadioButton
+void cegui_rdbttn_getSelectedButtonInGroup(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// set whether the radio button is selected or not 
+void cegui_rdbttn_setSelected(struct hg3dclass_struct * thisclass_c, int select_c);
+
+// 
+void cegui_rdbttn_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_rdbttn_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassRenderer.h b/include/ClassRenderer.h
--- a/include/ClassRenderer.h
+++ b/include/ClassRenderer.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,41 +14,41 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassRenderer.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassRenderer
-#define _DEFINED_HG3D_ClassRenderer
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassRenderer
+#define _DEFINED_HG3D_ClassRenderer
 
+#include "ClassPtr.h"
 
-// Destroy all GeometryBuffer objects created by this Renderer
-void cegui_rndr_destroyAllGeometryBuffers(struct hg3dclass_struct * thisclass_c);
-
-// Destory all TextureTarget objects created by this Renderer
-void cegui_rndr_destroyAllTextureTargets(struct hg3dclass_struct * thisclass_c);
-
-// Destroy all Texture objects created by this Renderer
-void cegui_rndr_destroyAllTextures(struct hg3dclass_struct * thisclass_c);
-
-// Perform any operations required to put the system into a state ready for rendering operations to begin. 
-void cegui_rndr_beginRendering(struct hg3dclass_struct * thisclass_c);
-
-// Perform any operations required to finalise rendering. 
-void cegui_rndr_endRendering(struct hg3dclass_struct * thisclass_c);
-
-// Return the pixel size of the maximum supported texture. 
-void cegui_rndr_getMaxTextureSize(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// Return identification string for the renderer module. 
-void cegui_rndr_getIdentifierString(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// Destructor. 
-void cegui_rndr_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Destroy all GeometryBuffer objects created by this Renderer
+void cegui_rndr_destroyAllGeometryBuffers(struct hg3dclass_struct * thisclass_c);
+
+// Destory all TextureTarget objects created by this Renderer
+void cegui_rndr_destroyAllTextureTargets(struct hg3dclass_struct * thisclass_c);
+
+// Destroy all Texture objects created by this Renderer
+void cegui_rndr_destroyAllTextures(struct hg3dclass_struct * thisclass_c);
+
+// Perform any operations required to put the system into a state ready for rendering operations to begin. 
+void cegui_rndr_beginRendering(struct hg3dclass_struct * thisclass_c);
+
+// Perform any operations required to finalise rendering. 
+void cegui_rndr_endRendering(struct hg3dclass_struct * thisclass_c);
+
+// Return the pixel size of the maximum supported texture. 
+void cegui_rndr_getMaxTextureSize(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// Return identification string for the renderer module. 
+void cegui_rndr_getIdentifierString(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// Destructor. 
+void cegui_rndr_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassResourceProvider.h b/include/ClassResourceProvider.h
--- a/include/ClassResourceProvider.h
+++ b/include/ClassResourceProvider.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,26 +14,26 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassResourceProvider.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassResourceProvider
-#define _DEFINED_HG3D_ClassResourceProvider
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassResourceProvider
+#define _DEFINED_HG3D_ClassResourceProvider
 
+#include "ClassPtr.h"
 
-// Destructor for the ResourceProvider
-void cegui_rsrcpr_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Return the current default resource group identifier. 
-void cegui_rsrcpr_getDefaultResourceGroup(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// Set the default resource group identifier. 
-void cegui_rsrcpr_setDefaultResourceGroup(struct hg3dclass_struct * thisclass_c, char * resourceGroup_c);
-
-#endif 
+
+// Destructor for the ResourceProvider
+void cegui_rsrcpr_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Return the current default resource group identifier. 
+void cegui_rsrcpr_getDefaultResourceGroup(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// Set the default resource group identifier. 
+void cegui_rsrcpr_setDefaultResourceGroup(struct hg3dclass_struct * thisclass_c, char * resourceGroup_c);
+
+#endif 
diff --git a/include/ClassScheme.h b/include/ClassScheme.h
--- a/include/ClassScheme.h
+++ b/include/ClassScheme.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,38 +14,38 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassScheme.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassScheme
-#define _DEFINED_HG3D_ClassScheme
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassScheme
+#define _DEFINED_HG3D_ClassScheme
 
+#include "ClassPtr.h"
 
-// Loads all resources for this scheme. 
-void cegui_schm_loadResources(struct hg3dclass_struct * thisclass_c);
-
-// Unloads all resources for this scheme. This should be used very carefully. 
-void cegui_schm_unloadResources(struct hg3dclass_struct * thisclass_c);
-
-// Return whether the resources for this Scheme
-void cegui_schm_resourcesLoaded(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return the name of this Scheme
-void cegui_schm_getName(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// Destroys a Scheme
-void cegui_schm_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Returns the default resource group currently set for Schemes. 
-void cegui_schm_getDefaultResourceGroup(char * result_c);
-
-// Sets the default resource group to be used when loading scheme xml data. 
-void cegui_schm_setDefaultResourceGroup(char * resourceGroup_c);
-
-#endif 
+
+// Loads all resources for this scheme. 
+void cegui_schm_loadResources(struct hg3dclass_struct * thisclass_c);
+
+// Unloads all resources for this scheme. This should be used very carefully. 
+void cegui_schm_unloadResources(struct hg3dclass_struct * thisclass_c);
+
+// Return whether the resources for this Scheme
+void cegui_schm_resourcesLoaded(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return the name of this Scheme
+void cegui_schm_getName(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// Destroys a Scheme
+void cegui_schm_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Returns the default resource group currently set for Schemes. 
+void cegui_schm_getDefaultResourceGroup(char * result_c);
+
+// Sets the default resource group to be used when loading scheme xml data. 
+void cegui_schm_setDefaultResourceGroup(char * resourceGroup_c);
+
+#endif 
diff --git a/include/ClassSchemeManager.h b/include/ClassSchemeManager.h
--- a/include/ClassSchemeManager.h
+++ b/include/ClassSchemeManager.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,23 +14,23 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassSchemeManager.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassSchemeManager
-#define _DEFINED_HG3D_ClassSchemeManager
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassSchemeManager
+#define _DEFINED_HG3D_ClassSchemeManager
 
+#include "ClassPtr.h"
 
-// Constructor. 
-void cegui_schmmgr_construct(struct hg3dclass_struct * result_c);
-
-// Destructor. 
-void cegui_schmmgr_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Constructor. 
+void cegui_schmmgr_construct(struct hg3dclass_struct * result_c);
+
+// Destructor. 
+void cegui_schmmgr_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassScriptFunctor.h b/include/ClassScriptFunctor.h
--- a/include/ClassScriptFunctor.h
+++ b/include/ClassScriptFunctor.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,20 +14,20 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassScriptFunctor.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassScriptFunctor
-#define _DEFINED_HG3D_ClassScriptFunctor
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassScriptFunctor
+#define _DEFINED_HG3D_ClassScriptFunctor
 
+#include "ClassPtr.h"
 
-// 
-void cegui_scrfnct_construct(char * functionName_c, struct hg3dclass_struct * result_c);
-
-#endif 
+
+// 
+void cegui_scrfnct_construct(char * functionName_c, struct hg3dclass_struct * result_c);
+
+#endif 
diff --git a/include/ClassScriptModule.h b/include/ClassScriptModule.h
--- a/include/ClassScriptModule.h
+++ b/include/ClassScriptModule.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,48 +14,48 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassScriptModule.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassScriptModule
-#define _DEFINED_HG3D_ClassScriptModule
-
-#include "ClassPtr.h"
-#include "ClassEventArgs.h"
+#ifndef _DEFINED_HG3D_ClassScriptModule
+#define _DEFINED_HG3D_ClassScriptModule
 
+#include "ClassPtr.h"
+#include "ClassEventArgs.h"
 
-// Destructor for ScriptModule
-void cegui_scrmd_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Execute a script file. 
-void cegui_scrmd_executeScriptFile(struct hg3dclass_struct * thisclass_c, char * filename_c, char * resourceGroup_c);
-
-// Execute a scripted global function. The function should not take any parameters and should return an integer. 
-void cegui_scrmd_executeScriptGlobal(struct hg3dclass_struct * thisclass_c, char * function_name_c, int * result_c);
-
-// Execute a scripted global 'event handler' function. The function should take some kind of EventArgsEventArgs
-void cegui_scrmd_executeScriptedEventHandler(struct hg3dclass_struct * thisclass_c, char * handler_name_c, struct hg3dclass_struct * e_c, int * result_c);
-
-// Execute script code contained in the given CEGUI::String object. 
-void cegui_scrmd_executeString(struct hg3dclass_struct * thisclass_c, char * str_c);
-
-// Method called during system initialisation, prior to running any scripts via the ScriptModuleScriptModule
-void cegui_scrmd_createBindings(struct hg3dclass_struct * thisclass_c);
-
-// Method called during system destruction, after all scripts have been run via the ScriptModuleScriptModule
-void cegui_scrmd_destroyBindings(struct hg3dclass_struct * thisclass_c);
-
-// Return identification string for the ScriptModuleScriptModule
-void cegui_scrmd_getIdentifierString(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// Sets the default resource group to be used when loading script files. 
-void cegui_scrmd_setDefaultResourceGroup(char * resourceGroup_c);
-
-// Returns the default resource group used when loading script files. 
-void cegui_scrmd_getDefaultResourceGroup(char * result_c);
-
-#endif 
+
+// Destructor for ScriptModule
+void cegui_scrmd_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Execute a script file. 
+void cegui_scrmd_executeScriptFile(struct hg3dclass_struct * thisclass_c, char * filename_c, char * resourceGroup_c);
+
+// Execute a scripted global function. The function should not take any parameters and should return an integer. 
+void cegui_scrmd_executeScriptGlobal(struct hg3dclass_struct * thisclass_c, char * function_name_c, int * result_c);
+
+// Execute a scripted global 'event handler' function. The function should take some kind of EventArgsEventArgs
+void cegui_scrmd_executeScriptedEventHandler(struct hg3dclass_struct * thisclass_c, char * handler_name_c, struct hg3dclass_struct * e_c, int * result_c);
+
+// Execute script code contained in the given CEGUI::String object. 
+void cegui_scrmd_executeString(struct hg3dclass_struct * thisclass_c, char * str_c);
+
+// Method called during system initialisation, prior to running any scripts via the ScriptModuleScriptModule
+void cegui_scrmd_createBindings(struct hg3dclass_struct * thisclass_c);
+
+// Method called during system destruction, after all scripts have been run via the ScriptModuleScriptModule
+void cegui_scrmd_destroyBindings(struct hg3dclass_struct * thisclass_c);
+
+// Return identification string for the ScriptModuleScriptModule
+void cegui_scrmd_getIdentifierString(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// Sets the default resource group to be used when loading script files. 
+void cegui_scrmd_setDefaultResourceGroup(char * resourceGroup_c);
+
+// Returns the default resource group used when loading script files. 
+void cegui_scrmd_getDefaultResourceGroup(char * result_c);
+
+#endif 
diff --git a/include/ClassScrollablePane.h b/include/ClassScrollablePane.h
--- a/include/ClassScrollablePane.h
+++ b/include/ClassScrollablePane.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,94 +14,94 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassScrollablePane.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassScrollablePane
-#define _DEFINED_HG3D_ClassScrollablePane
-
-#include "ClassPtr.h"
-#include "ClassScrolledContainer.h"
-#include "ClassScrollbar.h"
+#ifndef _DEFINED_HG3D_ClassScrollablePane
+#define _DEFINED_HG3D_ClassScrollablePane
 
+#include "ClassPtr.h"
+#include "ClassScrolledContainer.h"
+#include "ClassScrollbar.h"
 
-// Constructor for the ScrollablePane
-void cegui_scrlpn_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for the ScrollablePane
-void cegui_scrlpn_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Returns a pointer to the window holding the pane contents. 
-void cegui_scrlpn_getContentPane(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return whether the vertical scroll bar is always shown. 
-void cegui_scrlpn_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Set whether the vertical scroll bar should always be shown. 
-void cegui_scrlpn_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Return whether the horizontal scroll bar is always shown. 
-void cegui_scrlpn_isHorzScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Set whether the horizontal scroll bar should always be shown. 
-void cegui_scrlpn_setShowHorzScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Return whether the content pane is auto sized. 
-void cegui_scrlpn_isContentPaneAutoSized(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Set whether the content pane should be auto-sized. 
-void cegui_scrlpn_setContentPaneAutoSized(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Returns the horizontal scrollbar step size as a fraction of one complete view page. 
-void cegui_scrlpn_getHorizontalStepSize(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Sets the horizontal scrollbar step size as a fraction of one complete view page. 
-void cegui_scrlpn_setHorizontalStepSize(struct hg3dclass_struct * thisclass_c, float step_c);
-
-// Returns the horizontal scrollbar overlap size as a fraction of one complete view page. 
-void cegui_scrlpn_getHorizontalOverlapSize(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Sets the horizontal scrollbar overlap size as a fraction of one complete view page. 
-void cegui_scrlpn_setHorizontalOverlapSize(struct hg3dclass_struct * thisclass_c, float overlap_c);
-
-// Returns the horizontal scroll position as a fraction of the complete scrollable width. 
-void cegui_scrlpn_getHorizontalScrollPosition(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Sets the horizontal scroll position as a fraction of the complete scrollable width. 
-void cegui_scrlpn_setHorizontalScrollPosition(struct hg3dclass_struct * thisclass_c, float position_c);
-
-// Returns the vertical scrollbar step size as a fraction of one complete view page. 
-void cegui_scrlpn_getVerticalStepSize(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Sets the vertical scrollbar step size as a fraction of one complete view page. 
-void cegui_scrlpn_setVerticalStepSize(struct hg3dclass_struct * thisclass_c, float step_c);
-
-// Returns the vertical scrollbar overlap size as a fraction of one complete view page. 
-void cegui_scrlpn_getVerticalOverlapSize(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Sets the vertical scrollbar overlap size as a fraction of one complete view page. 
-void cegui_scrlpn_setVerticalOverlapSize(struct hg3dclass_struct * thisclass_c, float overlap_c);
-
-// Returns the vertical scroll position as a fraction of the complete scrollable height. 
-void cegui_scrlpn_getVerticalScrollPosition(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Sets the vertical scroll position as a fraction of the complete scrollable height. 
-void cegui_scrlpn_setVerticalScrollPosition(struct hg3dclass_struct * thisclass_c, float position_c);
-
-// Return a pointer to the vertical scrollbar component widget for this ScrollablePane
-void cegui_scrlpn_getVertScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return a pointer to the horizontal scrollbar component widget for this ScrollablePane
-void cegui_scrlpn_getHorzScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Initialises the Window
-void cegui_scrlpn_initialiseComponents(struct hg3dclass_struct * thisclass_c);
-
-// Internal destroy method which actually just adds the window and any parent destructed child windows to the dead pool. 
-void cegui_scrlpn_destroy(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Constructor for the ScrollablePane
+void cegui_scrlpn_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for the ScrollablePane
+void cegui_scrlpn_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Returns a pointer to the window holding the pane contents. 
+void cegui_scrlpn_getContentPane(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return whether the vertical scroll bar is always shown. 
+void cegui_scrlpn_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Set whether the vertical scroll bar should always be shown. 
+void cegui_scrlpn_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Return whether the horizontal scroll bar is always shown. 
+void cegui_scrlpn_isHorzScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Set whether the horizontal scroll bar should always be shown. 
+void cegui_scrlpn_setShowHorzScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Return whether the content pane is auto sized. 
+void cegui_scrlpn_isContentPaneAutoSized(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Set whether the content pane should be auto-sized. 
+void cegui_scrlpn_setContentPaneAutoSized(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Returns the horizontal scrollbar step size as a fraction of one complete view page. 
+void cegui_scrlpn_getHorizontalStepSize(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Sets the horizontal scrollbar step size as a fraction of one complete view page. 
+void cegui_scrlpn_setHorizontalStepSize(struct hg3dclass_struct * thisclass_c, float step_c);
+
+// Returns the horizontal scrollbar overlap size as a fraction of one complete view page. 
+void cegui_scrlpn_getHorizontalOverlapSize(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Sets the horizontal scrollbar overlap size as a fraction of one complete view page. 
+void cegui_scrlpn_setHorizontalOverlapSize(struct hg3dclass_struct * thisclass_c, float overlap_c);
+
+// Returns the horizontal scroll position as a fraction of the complete scrollable width. 
+void cegui_scrlpn_getHorizontalScrollPosition(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Sets the horizontal scroll position as a fraction of the complete scrollable width. 
+void cegui_scrlpn_setHorizontalScrollPosition(struct hg3dclass_struct * thisclass_c, float position_c);
+
+// Returns the vertical scrollbar step size as a fraction of one complete view page. 
+void cegui_scrlpn_getVerticalStepSize(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Sets the vertical scrollbar step size as a fraction of one complete view page. 
+void cegui_scrlpn_setVerticalStepSize(struct hg3dclass_struct * thisclass_c, float step_c);
+
+// Returns the vertical scrollbar overlap size as a fraction of one complete view page. 
+void cegui_scrlpn_getVerticalOverlapSize(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Sets the vertical scrollbar overlap size as a fraction of one complete view page. 
+void cegui_scrlpn_setVerticalOverlapSize(struct hg3dclass_struct * thisclass_c, float overlap_c);
+
+// Returns the vertical scroll position as a fraction of the complete scrollable height. 
+void cegui_scrlpn_getVerticalScrollPosition(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Sets the vertical scroll position as a fraction of the complete scrollable height. 
+void cegui_scrlpn_setVerticalScrollPosition(struct hg3dclass_struct * thisclass_c, float position_c);
+
+// Return a pointer to the vertical scrollbar component widget for this ScrollablePane
+void cegui_scrlpn_getVertScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return a pointer to the horizontal scrollbar component widget for this ScrollablePane
+void cegui_scrlpn_getHorzScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Initialises the Window
+void cegui_scrlpn_initialiseComponents(struct hg3dclass_struct * thisclass_c);
+
+// Internal destroy method which actually just adds the window and any parent destructed child windows to the dead pool. 
+void cegui_scrlpn_destroy(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassScrollbar.h b/include/ClassScrollbar.h
--- a/include/ClassScrollbar.h
+++ b/include/ClassScrollbar.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,73 +14,73 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassScrollbar.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassScrollbar
-#define _DEFINED_HG3D_ClassScrollbar
-
-#include "ClassPtr.h"
-#include "ClassPushButton.h"
-#include "ClassThumb.h"
+#ifndef _DEFINED_HG3D_ClassScrollbar
+#define _DEFINED_HG3D_ClassScrollbar
 
+#include "ClassPtr.h"
+#include "ClassPushButton.h"
+#include "ClassThumb.h"
 
-// Return the size of the document or data. 
-void cegui_scrlbr_getDocumentSize(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Return the page size for this scroll bar. 
-void cegui_scrlbr_getPageSize(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Return the step size for this scroll bar. 
-void cegui_scrlbr_getStepSize(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Return the overlap size for this scroll bar. 
-void cegui_scrlbr_getOverlapSize(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Return the current position of scroll bar within the document. 
-void cegui_scrlbr_getScrollPosition(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Return a pointer to the 'increase' PushButtoncomponent widget for this Scrollbar
-void cegui_scrlbr_getIncreaseButton(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return a pointer to the 'decrease' PushButtonScrollbar
-void cegui_scrlbr_getDecreaseButton(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return a pointer to the ThumbScrollbar
-void cegui_scrlbr_getThumb(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Initialises the Scrollbar
-void cegui_scrlbr_initialiseComponents(struct hg3dclass_struct * thisclass_c);
-
-// Set the size of the document or data. 
-void cegui_scrlbr_setDocumentSize(struct hg3dclass_struct * thisclass_c, float document_size_c);
-
-// Set the page size for this scroll bar. 
-void cegui_scrlbr_setPageSize(struct hg3dclass_struct * thisclass_c, float page_size_c);
-
-// Set the step size for this scroll bar. 
-void cegui_scrlbr_setStepSize(struct hg3dclass_struct * thisclass_c, float step_size_c);
-
-// Set the overlap size for this scroll bar. 
-void cegui_scrlbr_setOverlapSize(struct hg3dclass_struct * thisclass_c, float overlap_size_c);
-
-// Set the current position of scroll bar within the document. 
-void cegui_scrlbr_setScrollPosition(struct hg3dclass_struct * thisclass_c, float position_c);
-
-// Enable or disable the 'end lock' mode for the scrollbar. 
-void cegui_scrlbr_setEndLockEnabled(struct hg3dclass_struct * thisclass_c, const int enabled_c);
-
-// Returns whether the 'end lock'mode for the scrollbar is enabled. 
-void cegui_scrlbr_isEndLockEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Constructor for Scrollbar
-void cegui_scrlbr_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for Scrollbar
-void cegui_scrlbr_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Return the size of the document or data. 
+void cegui_scrlbr_getDocumentSize(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Return the page size for this scroll bar. 
+void cegui_scrlbr_getPageSize(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Return the step size for this scroll bar. 
+void cegui_scrlbr_getStepSize(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Return the overlap size for this scroll bar. 
+void cegui_scrlbr_getOverlapSize(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Return the current position of scroll bar within the document. 
+void cegui_scrlbr_getScrollPosition(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Return a pointer to the 'increase' PushButtoncomponent widget for this Scrollbar
+void cegui_scrlbr_getIncreaseButton(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return a pointer to the 'decrease' PushButtonScrollbar
+void cegui_scrlbr_getDecreaseButton(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return a pointer to the ThumbScrollbar
+void cegui_scrlbr_getThumb(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Initialises the Scrollbar
+void cegui_scrlbr_initialiseComponents(struct hg3dclass_struct * thisclass_c);
+
+// Set the size of the document or data. 
+void cegui_scrlbr_setDocumentSize(struct hg3dclass_struct * thisclass_c, float document_size_c);
+
+// Set the page size for this scroll bar. 
+void cegui_scrlbr_setPageSize(struct hg3dclass_struct * thisclass_c, float page_size_c);
+
+// Set the step size for this scroll bar. 
+void cegui_scrlbr_setStepSize(struct hg3dclass_struct * thisclass_c, float step_size_c);
+
+// Set the overlap size for this scroll bar. 
+void cegui_scrlbr_setOverlapSize(struct hg3dclass_struct * thisclass_c, float overlap_size_c);
+
+// Set the current position of scroll bar within the document. 
+void cegui_scrlbr_setScrollPosition(struct hg3dclass_struct * thisclass_c, float position_c);
+
+// Enable or disable the 'end lock' mode for the scrollbar. 
+void cegui_scrlbr_setEndLockEnabled(struct hg3dclass_struct * thisclass_c, const int enabled_c);
+
+// Returns whether the 'end lock'mode for the scrollbar is enabled. 
+void cegui_scrlbr_isEndLockEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Constructor for Scrollbar
+void cegui_scrlbr_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for Scrollbar
+void cegui_scrlbr_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassScrolledContainer.h b/include/ClassScrolledContainer.h
--- a/include/ClassScrolledContainer.h
+++ b/include/ClassScrolledContainer.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,29 +14,29 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassScrolledContainer.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassScrolledContainer
-#define _DEFINED_HG3D_ClassScrolledContainer
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassScrolledContainer
+#define _DEFINED_HG3D_ClassScrolledContainer
 
+#include "ClassPtr.h"
 
-// Constructor for ScrolledContainer
-void cegui_scrlcnt_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for ScrolledContainer
-void cegui_scrlcnt_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Return whether the content pane is auto sized. 
-void cegui_scrlcnt_isContentPaneAutoSized(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Set whether the content pane should be auto-sized. 
-void cegui_scrlcnt_setContentPaneAutoSized(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-#endif 
+
+// Constructor for ScrolledContainer
+void cegui_scrlcnt_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for ScrolledContainer
+void cegui_scrlcnt_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Return whether the content pane is auto sized. 
+void cegui_scrlcnt_isContentPaneAutoSized(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Set whether the content pane should be auto-sized. 
+void cegui_scrlcnt_setContentPaneAutoSized(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+#endif 
diff --git a/include/ClassScrolledItemListBase.h b/include/ClassScrolledItemListBase.h
--- a/include/ClassScrolledItemListBase.h
+++ b/include/ClassScrolledItemListBase.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,46 +14,46 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassScrolledItemListBase.h
 
-// abstrakte Klasse!
+// abstrakte Klasse!
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassScrolledItemListBase
-#define _DEFINED_HG3D_ClassScrolledItemListBase
-
-#include "ClassPtr.h"
-#include "ClassScrollbar.h"
-#include "ClassItemEntry.h"
+#ifndef _DEFINED_HG3D_ClassScrolledItemListBase
+#define _DEFINED_HG3D_ClassScrolledItemListBase
 
+#include "ClassPtr.h"
+#include "ClassScrollbar.h"
+#include "ClassItemEntry.h"
 
-// Returns whether the vertical scrollbar is being forced visible. Despite content size. 
-void cegui_scrlitmlstbs_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns whether the horizontal scrollbar is being forced visible. Despite content size. 
-void cegui_scrlitmlstbs_isHorzScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Get the vertical scrollbar component attached to this window. 
-void cegui_scrlitmlstbs_getVertScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Get the horizontal scrollbar component attached to this window. 
-void cegui_scrlitmlstbs_getHorzScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Sets whether the vertical scrollbar should be forced visible. Despite content size. 
-void cegui_scrlitmlstbs_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int mode_c);
-
-// Sets whether the horizontal scrollbar should be forced visible. Despite content size. 
-void cegui_scrlitmlstbs_setShowHorzScrollbar(struct hg3dclass_struct * thisclass_c, int mode_c);
-
-// Scroll the vertical list position if needed to ensure that the ItemEntryitemScrolledItemListBase
-void cegui_scrlitmlstbs_ensureItemIsVisibleVert(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
-
-// Scroll the horizontal list position if needed to ensure that the ItemEntryitemScrolledItemListBase
-void cegui_scrlitmlstbs_ensureItemIsVisibleHorz(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
-
-// 
-void cegui_scrlitmlstbs_initialiseComponents(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Returns whether the vertical scrollbar is being forced visible. Despite content size. 
+void cegui_scrlitmlstbs_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns whether the horizontal scrollbar is being forced visible. Despite content size. 
+void cegui_scrlitmlstbs_isHorzScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Get the vertical scrollbar component attached to this window. 
+void cegui_scrlitmlstbs_getVertScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Get the horizontal scrollbar component attached to this window. 
+void cegui_scrlitmlstbs_getHorzScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Sets whether the vertical scrollbar should be forced visible. Despite content size. 
+void cegui_scrlitmlstbs_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int mode_c);
+
+// Sets whether the horizontal scrollbar should be forced visible. Despite content size. 
+void cegui_scrlitmlstbs_setShowHorzScrollbar(struct hg3dclass_struct * thisclass_c, int mode_c);
+
+// Scroll the vertical list position if needed to ensure that the ItemEntryitemScrolledItemListBase
+void cegui_scrlitmlstbs_ensureItemIsVisibleVert(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
+
+// Scroll the horizontal list position if needed to ensure that the ItemEntryitemScrolledItemListBase
+void cegui_scrlitmlstbs_ensureItemIsVisibleHorz(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
+
+// 
+void cegui_scrlitmlstbs_initialiseComponents(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassSlider.h b/include/ClassSlider.h
--- a/include/ClassSlider.h
+++ b/include/ClassSlider.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,48 +14,48 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassSlider.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassSlider
-#define _DEFINED_HG3D_ClassSlider
-
-#include "ClassPtr.h"
-#include "ClassThumb.h"
+#ifndef _DEFINED_HG3D_ClassSlider
+#define _DEFINED_HG3D_ClassSlider
 
+#include "ClassPtr.h"
+#include "ClassThumb.h"
 
-// return the current slider value. 
-void cegui_sldr_getCurrentValue(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// return the maximum value set for this widget 
-void cegui_sldr_getMaxValue(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// return the current click step setting for the slider. 
-void cegui_sldr_getClickStep(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Return a pointer to the ThumbSlider
-void cegui_sldr_getThumb(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Initialises the Window
-void cegui_sldr_initialiseComponents(struct hg3dclass_struct * thisclass_c);
-
-// set the maximum value for the slider. Note that the minimum value is fixed at 0. 
-void cegui_sldr_setMaxValue(struct hg3dclass_struct * thisclass_c, float maxVal_c);
-
-// set the current slider value. 
-void cegui_sldr_setCurrentValue(struct hg3dclass_struct * thisclass_c, float value_c);
-
-// set the current click step setting for the slider. 
-void cegui_sldr_setClickStep(struct hg3dclass_struct * thisclass_c, float step_c);
-
-// Slider
-void cegui_sldr_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Slider
-void cegui_sldr_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// return the current slider value. 
+void cegui_sldr_getCurrentValue(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// return the maximum value set for this widget 
+void cegui_sldr_getMaxValue(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// return the current click step setting for the slider. 
+void cegui_sldr_getClickStep(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Return a pointer to the ThumbSlider
+void cegui_sldr_getThumb(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Initialises the Window
+void cegui_sldr_initialiseComponents(struct hg3dclass_struct * thisclass_c);
+
+// set the maximum value for the slider. Note that the minimum value is fixed at 0. 
+void cegui_sldr_setMaxValue(struct hg3dclass_struct * thisclass_c, float maxVal_c);
+
+// set the current slider value. 
+void cegui_sldr_setCurrentValue(struct hg3dclass_struct * thisclass_c, float value_c);
+
+// set the current click step setting for the slider. 
+void cegui_sldr_setClickStep(struct hg3dclass_struct * thisclass_c, float step_c);
+
+// Slider
+void cegui_sldr_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Slider
+void cegui_sldr_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassSpinner.h b/include/ClassSpinner.h
--- a/include/ClassSpinner.h
+++ b/include/ClassSpinner.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,57 +14,57 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassSpinner.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassSpinner
-#define _DEFINED_HG3D_ClassSpinner
-
-#include "ClassPtr.h"
-#include "EnumTextInputMode.h"
+#ifndef _DEFINED_HG3D_ClassSpinner
+#define _DEFINED_HG3D_ClassSpinner
 
+#include "ClassPtr.h"
+#include "EnumTextInputMode.h"
 
-// Constructor for Spinner
-void cegui_spnnr_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for Spinner
-void cegui_spnnr_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Initialises the Window
-void cegui_spnnr_initialiseComponents(struct hg3dclass_struct * thisclass_c);
-
-// Return the current spinner value. 
-void cegui_spnnr_getCurrentValue(struct hg3dclass_struct * thisclass_c, double * result_c);
-
-// Return the current step value. 
-void cegui_spnnr_getStepSize(struct hg3dclass_struct * thisclass_c, double * result_c);
-
-// Return the current maximum limit value for the Spinner
-void cegui_spnnr_getMaximumValue(struct hg3dclass_struct * thisclass_c, double * result_c);
-
-// Return the current minimum limit value for the Spinner
-void cegui_spnnr_getMinimumValue(struct hg3dclass_struct * thisclass_c, double * result_c);
-
-// Return the current text input / display mode setting. 
-void cegui_spnnr_getTextInputMode(struct hg3dclass_struct * thisclass_c, enum EnumTextInputMode * result_c);
-
-// Set the current spinner value. 
-void cegui_spnnr_setCurrentValue(struct hg3dclass_struct * thisclass_c, double value_c);
-
-// Set the current step value. 
-void cegui_spnnr_setStepSize(struct hg3dclass_struct * thisclass_c, double step_c);
-
-// Set the spinner maximum value. 
-void cegui_spnnr_setMaximumValue(struct hg3dclass_struct * thisclass_c, double maxValue_c);
-
-// Set the spinner minimum value. 
-void cegui_spnnr_setMinimumValue(struct hg3dclass_struct * thisclass_c, double minVaue_c);
-
-// Set the spinner input / display mode. 
-void cegui_spnnr_setTextInputMode(struct hg3dclass_struct * thisclass_c, enum EnumTextInputMode mode_c);
-
-#endif 
+
+// Constructor for Spinner
+void cegui_spnnr_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for Spinner
+void cegui_spnnr_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Initialises the Window
+void cegui_spnnr_initialiseComponents(struct hg3dclass_struct * thisclass_c);
+
+// Return the current spinner value. 
+void cegui_spnnr_getCurrentValue(struct hg3dclass_struct * thisclass_c, double * result_c);
+
+// Return the current step value. 
+void cegui_spnnr_getStepSize(struct hg3dclass_struct * thisclass_c, double * result_c);
+
+// Return the current maximum limit value for the Spinner
+void cegui_spnnr_getMaximumValue(struct hg3dclass_struct * thisclass_c, double * result_c);
+
+// Return the current minimum limit value for the Spinner
+void cegui_spnnr_getMinimumValue(struct hg3dclass_struct * thisclass_c, double * result_c);
+
+// Return the current text input / display mode setting. 
+void cegui_spnnr_getTextInputMode(struct hg3dclass_struct * thisclass_c, enum EnumTextInputMode * result_c);
+
+// Set the current spinner value. 
+void cegui_spnnr_setCurrentValue(struct hg3dclass_struct * thisclass_c, double value_c);
+
+// Set the current step value. 
+void cegui_spnnr_setStepSize(struct hg3dclass_struct * thisclass_c, double step_c);
+
+// Set the spinner maximum value. 
+void cegui_spnnr_setMaximumValue(struct hg3dclass_struct * thisclass_c, double maxValue_c);
+
+// Set the spinner minimum value. 
+void cegui_spnnr_setMinimumValue(struct hg3dclass_struct * thisclass_c, double minVaue_c);
+
+// Set the spinner input / display mode. 
+void cegui_spnnr_setTextInputMode(struct hg3dclass_struct * thisclass_c, enum EnumTextInputMode mode_c);
+
+#endif 
diff --git a/include/ClassSystem.h b/include/ClassSystem.h
--- a/include/ClassSystem.h
+++ b/include/ClassSystem.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,209 +14,209 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassSystem.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassSystem
-#define _DEFINED_HG3D_ClassSystem
-
-#include "ClassPtr.h"
-#include "ClassRenderer.h"
-#include "ClassResourceProvider.h"
-#include "ClassXMLParser.h"
-#include "ClassImageCodec.h"
-#include "ClassScriptModule.h"
-#include "ClassFont.h"
-#include "ClassWindow.h"
-#include "ClassTooltip.h"
-#include "EnumMouseButton.h"
+#ifndef _DEFINED_HG3D_ClassSystem
+#define _DEFINED_HG3D_ClassSystem
 
+#include "ClassPtr.h"
+#include "ClassRenderer.h"
+#include "ClassResourceProvider.h"
+#include "ClassXMLParser.h"
+#include "ClassImageCodec.h"
+#include "ClassScriptModule.h"
+#include "ClassFont.h"
+#include "ClassWindow.h"
+#include "ClassTooltip.h"
+#include "EnumMouseButton.h"
 
-// Create the System
-void cegui_sstm_create(struct hg3dclass_struct * renderer_c, struct hg3dclass_struct * resourceProvider_c, struct hg3dclass_struct * xmlParser_c, struct hg3dclass_struct * imageCodec_c, struct hg3dclass_struct * scriptModule_c, char * configFile_c, char * logFile_c, struct hg3dclass_struct * result_c);
-
-// Destroy the System
-void cegui_sstm_destroy();
-
-// Return singleton System
-void cegui_sstm_getSingleton(struct hg3dclass_struct * result_c);
-
-// Return pointer to singleton System
-void cegui_sstm_getSingletonPtr(struct hg3dclass_struct * result_c);
-
-// Static member to set the name of the default XML parser module that should be used. 
-void cegui_sstm_setDefaultXMLParserName(char * parserName_c);
-
-// Return the name of the currently set default xml parser module. 
-void cegui_sstm_getDefaultXMLParserName(char * result_c);
-
-// Set the name of the default image codec to be used. 
-void cegui_sstm_setDefaultImageCodecName(char * codecName_c);
-
-// Get the name of the default image codec. 
-void cegui_sstm_getDefaultImageCodecName(char * result_c);
-
-// Return a pointer to the Renderer
-void cegui_sstm_getRenderer(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Set the default font to be used by the system. 
-void cegui_sstm_setDefaultFont(struct hg3dclass_struct * thisclass_c, char * name_c);
-
-// Set the default font to be used by the system. 
-void cegui_sstm_setDefaultFont2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * font_c);
-
-// Return a pointer to the default Font
-void cegui_sstm_getDefaultFont(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Causes a full re-draw next time renderGUI()
-void cegui_sstm_signalRedraw(struct hg3dclass_struct * thisclass_c);
-
-// Return a boolean value to indicate whether a full re-draw is requested next time renderGUI()
-void cegui_sstm_isRedrawRequested(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Render the GUI. 
-void cegui_sstm_renderGUI(struct hg3dclass_struct * thisclass_c);
-
-// Set the active GUI sheet (root) window. 
-void cegui_sstm_setGUISheet(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * sheet_c, struct hg3dclass_struct * result_c);
-
-// Return a pointer to the active GUI sheet (root) window. 
-void cegui_sstm_getGUISheet(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return the current timeout for generation of single-click events. 
-void cegui_sstm_getSingleClickTimeout(struct hg3dclass_struct * thisclass_c, double * result_c);
-
-// Return the current timeout for generation of multi-click events. 
-void cegui_sstm_getMultiClickTimeout(struct hg3dclass_struct * thisclass_c, double * result_c);
-
-// Set the timeout used for generation of single-click events. 
-void cegui_sstm_setSingleClickTimeout(struct hg3dclass_struct * thisclass_c, double timeout_c);
-
-// Set the timeout to be used for the generation of multi-click events. 
-void cegui_sstm_setMultiClickTimeout(struct hg3dclass_struct * thisclass_c, double timeout_c);
-
-// Return whether automatic mouse button click and multi-click (i.e. double-click and treble-click) event generation is enabled. 
-void cegui_sstm_isMouseClickEventGenerationEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Set whether automatic mouse button click and multi-click (i.e. double-click and treble-click) event generation will occur. 
-void cegui_sstm_setMouseClickEventGenerationEnabled(struct hg3dclass_struct * thisclass_c, const int enable_c);
-
-// Set the image to be used as the default mouse cursor. 
-void cegui_sstm_setDefaultMouseCursor3(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_name_c);
-
-// Return the Window
-void cegui_sstm_getWindowContainingMouse(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return a pointer to the ScriptModule
-void cegui_sstm_getScriptingModule(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Set the ScriptModule
-void cegui_sstm_setScriptingModule(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * scriptModule_c);
-
-// Return a pointer to the ResourceProvider
-void cegui_sstm_getResourceProvider(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Execute a script file if possible. 
-void cegui_sstm_executeScriptFile(struct hg3dclass_struct * thisclass_c, char * filename_c, char * resourceGroup_c);
-
-// Execute a scripted global function if possible. The function should not take any parameters and should return an integer. 
-void cegui_sstm_executeScriptGlobal(struct hg3dclass_struct * thisclass_c, char * function_name_c, int * result_c);
-
-// If possible, execute script code contained in the given CEGUI::String object. 
-void cegui_sstm_executeScriptString(struct hg3dclass_struct * thisclass_c, char * str_c);
-
-// return the current mouse movement scaling factor. 
-void cegui_sstm_getMouseMoveScaling(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Set the current mouse movement scaling factor. 
-void cegui_sstm_setMouseMoveScaling(struct hg3dclass_struct * thisclass_c, float scaling_c);
-
-// Internal method used to inform the SystemSystem
-void cegui_sstm_notifyWindowDestroyed(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c);
-
-// Return the current system keys value. 
-void cegui_sstm_getSystemKeys(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// Set a new XML parser module to be used. 
-void cegui_sstm_setXMLParser(struct hg3dclass_struct * thisclass_c, char * parserName_c);
-
-// Sets the XMLParser
-void cegui_sstm_setXMLParser2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * parser_c);
-
-// Return the XMLParser
-void cegui_sstm_getXMLParser(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Set the system default TooltipTooltip
-void cegui_sstm_setDefaultTooltip(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * tooltip_c);
-
-// Set the system default TooltipWindow
-void cegui_sstm_setDefaultTooltip2(struct hg3dclass_struct * thisclass_c, char * tooltipType_c);
-
-// return a poiter to the system default tooltip. May return 0. 
-void cegui_sstm_getDefaultTooltip(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Internal method to directly set the current modal target. 
-void cegui_sstm_setModalTarget(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * target_c);
-
-// Return a pointer to the Window
-void cegui_sstm_getModalTarget(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Perform updates with regards to the window that contains the mouse cursor, firing any required MouseEnters / MouseLeaves events. 
-void cegui_sstm_updateWindowContainingMouse(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Retrieve the image codec to be used by the system. 
-void cegui_sstm_getImageCodec(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Set the image codec to be used by the system. 
-void cegui_sstm_setImageCodec(struct hg3dclass_struct * thisclass_c, char * codecName_c);
-
-// Set the image codec to use from an existing image codec. 
-void cegui_sstm_setImageCodec2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * codec_c);
-
-// Invalidate all imagery and geometry caches for CEGUI
-void cegui_sstm_invalidateAllCachedRendering(struct hg3dclass_struct * thisclass_c);
-
-// Method that injects a mouse movement event into the system. 
-void cegui_sstm_injectMouseMove(struct hg3dclass_struct * thisclass_c, float delta_x_c, float delta_y_c, int * result_c);
-
-// Method that injects that the mouse has left the application window. 
-void cegui_sstm_injectMouseLeaves(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Method that injects a mouse button down event into the system. 
-void cegui_sstm_injectMouseButtonDown(struct hg3dclass_struct * thisclass_c, enum EnumMouseButton button_c, int * result_c);
-
-// Method that injects a mouse button up event into the system. 
-void cegui_sstm_injectMouseButtonUp(struct hg3dclass_struct * thisclass_c, enum EnumMouseButton button_c, int * result_c);
-
-// Method that injects a key down event into the system. 
-void cegui_sstm_injectKeyDown(struct hg3dclass_struct * thisclass_c, unsigned int key_code_c, int * result_c);
-
-// Method that injects a key up event into the system. 
-void cegui_sstm_injectKeyUp(struct hg3dclass_struct * thisclass_c, unsigned int key_code_c, int * result_c);
-
-// Method that injects a typed character event into the system. 
-void cegui_sstm_injectChar(struct hg3dclass_struct * thisclass_c, int code_point_c, int * result_c);
-
-// Method that injects a mouse-wheel / scroll-wheel event into the system. 
-void cegui_sstm_injectMouseWheelChange(struct hg3dclass_struct * thisclass_c, float delta_c, int * result_c);
-
-// Method that injects a new position for the mouse cursor. 
-void cegui_sstm_injectMousePosition(struct hg3dclass_struct * thisclass_c, float x_pos_c, float y_pos_c, int * result_c);
-
-// Method to inject time pulses into the system. 
-void cegui_sstm_injectTimePulse(struct hg3dclass_struct * thisclass_c, float timeElapsed_c, int * result_c);
-
-// Function to directly inject a mouse button click event. 
-void cegui_sstm_injectMouseButtonClick(struct hg3dclass_struct * thisclass_c, const enum EnumMouseButton button_c, int * result_c);
-
-// Function to directly inject a mouse button double-click event. 
-void cegui_sstm_injectMouseButtonDoubleClick(struct hg3dclass_struct * thisclass_c, const enum EnumMouseButton button_c, int * result_c);
-
-// Function to directly inject a mouse button triple-click event. 
-void cegui_sstm_injectMouseButtonTripleClick(struct hg3dclass_struct * thisclass_c, const enum EnumMouseButton button_c, int * result_c);
-
-#endif 
+
+// Create the System
+void cegui_sstm_create(struct hg3dclass_struct * renderer_c, struct hg3dclass_struct * resourceProvider_c, struct hg3dclass_struct * xmlParser_c, struct hg3dclass_struct * imageCodec_c, struct hg3dclass_struct * scriptModule_c, char * configFile_c, char * logFile_c, struct hg3dclass_struct * result_c);
+
+// Destroy the System
+void cegui_sstm_destroy();
+
+// Return singleton System
+void cegui_sstm_getSingleton(struct hg3dclass_struct * result_c);
+
+// Return pointer to singleton System
+void cegui_sstm_getSingletonPtr(struct hg3dclass_struct * result_c);
+
+// Static member to set the name of the default XML parser module that should be used. 
+void cegui_sstm_setDefaultXMLParserName(char * parserName_c);
+
+// Return the name of the currently set default xml parser module. 
+void cegui_sstm_getDefaultXMLParserName(char * result_c);
+
+// Set the name of the default image codec to be used. 
+void cegui_sstm_setDefaultImageCodecName(char * codecName_c);
+
+// Get the name of the default image codec. 
+void cegui_sstm_getDefaultImageCodecName(char * result_c);
+
+// Return a pointer to the Renderer
+void cegui_sstm_getRenderer(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Set the default font to be used by the system. 
+void cegui_sstm_setDefaultFont(struct hg3dclass_struct * thisclass_c, char * name_c);
+
+// Set the default font to be used by the system. 
+void cegui_sstm_setDefaultFont2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * font_c);
+
+// Return a pointer to the default Font
+void cegui_sstm_getDefaultFont(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Causes a full re-draw next time renderGUI()
+void cegui_sstm_signalRedraw(struct hg3dclass_struct * thisclass_c);
+
+// Return a boolean value to indicate whether a full re-draw is requested next time renderGUI()
+void cegui_sstm_isRedrawRequested(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Render the GUI. 
+void cegui_sstm_renderGUI(struct hg3dclass_struct * thisclass_c);
+
+// Set the active GUI sheet (root) window. 
+void cegui_sstm_setGUISheet(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * sheet_c, struct hg3dclass_struct * result_c);
+
+// Return a pointer to the active GUI sheet (root) window. 
+void cegui_sstm_getGUISheet(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return the current timeout for generation of single-click events. 
+void cegui_sstm_getSingleClickTimeout(struct hg3dclass_struct * thisclass_c, double * result_c);
+
+// Return the current timeout for generation of multi-click events. 
+void cegui_sstm_getMultiClickTimeout(struct hg3dclass_struct * thisclass_c, double * result_c);
+
+// Set the timeout used for generation of single-click events. 
+void cegui_sstm_setSingleClickTimeout(struct hg3dclass_struct * thisclass_c, double timeout_c);
+
+// Set the timeout to be used for the generation of multi-click events. 
+void cegui_sstm_setMultiClickTimeout(struct hg3dclass_struct * thisclass_c, double timeout_c);
+
+// Return whether automatic mouse button click and multi-click (i.e. double-click and treble-click) event generation is enabled. 
+void cegui_sstm_isMouseClickEventGenerationEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Set whether automatic mouse button click and multi-click (i.e. double-click and treble-click) event generation will occur. 
+void cegui_sstm_setMouseClickEventGenerationEnabled(struct hg3dclass_struct * thisclass_c, const int enable_c);
+
+// Set the image to be used as the default mouse cursor. 
+void cegui_sstm_setDefaultMouseCursor3(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_name_c);
+
+// Return the Window
+void cegui_sstm_getWindowContainingMouse(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return a pointer to the ScriptModule
+void cegui_sstm_getScriptingModule(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Set the ScriptModule
+void cegui_sstm_setScriptingModule(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * scriptModule_c);
+
+// Return a pointer to the ResourceProvider
+void cegui_sstm_getResourceProvider(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Execute a script file if possible. 
+void cegui_sstm_executeScriptFile(struct hg3dclass_struct * thisclass_c, char * filename_c, char * resourceGroup_c);
+
+// Execute a scripted global function if possible. The function should not take any parameters and should return an integer. 
+void cegui_sstm_executeScriptGlobal(struct hg3dclass_struct * thisclass_c, char * function_name_c, int * result_c);
+
+// If possible, execute script code contained in the given CEGUI::String object. 
+void cegui_sstm_executeScriptString(struct hg3dclass_struct * thisclass_c, char * str_c);
+
+// return the current mouse movement scaling factor. 
+void cegui_sstm_getMouseMoveScaling(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Set the current mouse movement scaling factor. 
+void cegui_sstm_setMouseMoveScaling(struct hg3dclass_struct * thisclass_c, float scaling_c);
+
+// Internal method used to inform the SystemSystem
+void cegui_sstm_notifyWindowDestroyed(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c);
+
+// Return the current system keys value. 
+void cegui_sstm_getSystemKeys(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// Set a new XML parser module to be used. 
+void cegui_sstm_setXMLParser(struct hg3dclass_struct * thisclass_c, char * parserName_c);
+
+// Sets the XMLParser
+void cegui_sstm_setXMLParser2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * parser_c);
+
+// Return the XMLParser
+void cegui_sstm_getXMLParser(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Set the system default TooltipTooltip
+void cegui_sstm_setDefaultTooltip(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * tooltip_c);
+
+// Set the system default TooltipWindow
+void cegui_sstm_setDefaultTooltip2(struct hg3dclass_struct * thisclass_c, char * tooltipType_c);
+
+// return a poiter to the system default tooltip. May return 0. 
+void cegui_sstm_getDefaultTooltip(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Internal method to directly set the current modal target. 
+void cegui_sstm_setModalTarget(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * target_c);
+
+// Return a pointer to the Window
+void cegui_sstm_getModalTarget(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Perform updates with regards to the window that contains the mouse cursor, firing any required MouseEnters / MouseLeaves events. 
+void cegui_sstm_updateWindowContainingMouse(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Retrieve the image codec to be used by the system. 
+void cegui_sstm_getImageCodec(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Set the image codec to be used by the system. 
+void cegui_sstm_setImageCodec(struct hg3dclass_struct * thisclass_c, char * codecName_c);
+
+// Set the image codec to use from an existing image codec. 
+void cegui_sstm_setImageCodec2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * codec_c);
+
+// Invalidate all imagery and geometry caches for CEGUI
+void cegui_sstm_invalidateAllCachedRendering(struct hg3dclass_struct * thisclass_c);
+
+// Method that injects a mouse movement event into the system. 
+void cegui_sstm_injectMouseMove(struct hg3dclass_struct * thisclass_c, float delta_x_c, float delta_y_c, int * result_c);
+
+// Method that injects that the mouse has left the application window. 
+void cegui_sstm_injectMouseLeaves(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Method that injects a mouse button down event into the system. 
+void cegui_sstm_injectMouseButtonDown(struct hg3dclass_struct * thisclass_c, enum EnumMouseButton button_c, int * result_c);
+
+// Method that injects a mouse button up event into the system. 
+void cegui_sstm_injectMouseButtonUp(struct hg3dclass_struct * thisclass_c, enum EnumMouseButton button_c, int * result_c);
+
+// Method that injects a key down event into the system. 
+void cegui_sstm_injectKeyDown(struct hg3dclass_struct * thisclass_c, unsigned int key_code_c, int * result_c);
+
+// Method that injects a key up event into the system. 
+void cegui_sstm_injectKeyUp(struct hg3dclass_struct * thisclass_c, unsigned int key_code_c, int * result_c);
+
+// Method that injects a typed character event into the system. 
+void cegui_sstm_injectChar(struct hg3dclass_struct * thisclass_c, int code_point_c, int * result_c);
+
+// Method that injects a mouse-wheel / scroll-wheel event into the system. 
+void cegui_sstm_injectMouseWheelChange(struct hg3dclass_struct * thisclass_c, float delta_c, int * result_c);
+
+// Method that injects a new position for the mouse cursor. 
+void cegui_sstm_injectMousePosition(struct hg3dclass_struct * thisclass_c, float x_pos_c, float y_pos_c, int * result_c);
+
+// Method to inject time pulses into the system. 
+void cegui_sstm_injectTimePulse(struct hg3dclass_struct * thisclass_c, float timeElapsed_c, int * result_c);
+
+// Function to directly inject a mouse button click event. 
+void cegui_sstm_injectMouseButtonClick(struct hg3dclass_struct * thisclass_c, const enum EnumMouseButton button_c, int * result_c);
+
+// Function to directly inject a mouse button double-click event. 
+void cegui_sstm_injectMouseButtonDoubleClick(struct hg3dclass_struct * thisclass_c, const enum EnumMouseButton button_c, int * result_c);
+
+// Function to directly inject a mouse button triple-click event. 
+void cegui_sstm_injectMouseButtonTripleClick(struct hg3dclass_struct * thisclass_c, const enum EnumMouseButton button_c, int * result_c);
+
+#endif 
diff --git a/include/ClassSystemHG3D.h b/include/ClassSystemHG3D.h
--- a/include/ClassSystemHG3D.h
+++ b/include/ClassSystemHG3D.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,43 +14,43 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassSystemHG3D.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassSystemHG3D
-#define _DEFINED_HG3D_ClassSystemHG3D
-
-#include "ClassPtr.h"
-#include "ClassLogger.h"
-#include "ClassDefaultResourceProvider.h"
-#include "ClassSystem.h"
-#include "ClassSchemeManager.h"
-#include "ClassFontManager.h"
+#ifndef _DEFINED_HG3D_ClassSystemHG3D
+#define _DEFINED_HG3D_ClassSystemHG3D
 
+#include "ClassPtr.h"
+#include "ClassLogger.h"
+#include "ClassDefaultResourceProvider.h"
+#include "ClassSystem.h"
+#include "ClassSchemeManager.h"
+#include "ClassFontManager.h"
 
-// 
-void cegui_sstm_hg3d_createNoLogger(struct hg3dclass_struct * result_c);
-
-// 
-void cegui_sstm_hg3d_getDefaultResourceProvider(struct hg3dclass_struct * system_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_sstm_hg3d_getSchemeManagerSingleton(struct hg3dclass_struct * result_c);
-
-// 
-void cegui_sstm_hg3d_schemeManagerCreate(struct hg3dclass_struct * smgr_c, char * scheme_c);
-
-// 
-void cegui_sstm_hg3d_fontManagerCreate(struct hg3dclass_struct * fmgr_c, char * font_c);
-
-// 
-void cegui_sstm_hg3d_getFontManagerSingleton(struct hg3dclass_struct * result_c);
-
-// 
-void cegui_sstm_hg3d_getLoggerSingleton(struct hg3dclass_struct * result_c);
-
-#endif 
+
+// 
+void cegui_sstm_hg3d_createNoLogger(struct hg3dclass_struct * result_c);
+
+// 
+void cegui_sstm_hg3d_getDefaultResourceProvider(struct hg3dclass_struct * system_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_sstm_hg3d_getSchemeManagerSingleton(struct hg3dclass_struct * result_c);
+
+// 
+void cegui_sstm_hg3d_schemeManagerCreate(struct hg3dclass_struct * smgr_c, char * scheme_c);
+
+// 
+void cegui_sstm_hg3d_fontManagerCreate(struct hg3dclass_struct * fmgr_c, char * font_c);
+
+// 
+void cegui_sstm_hg3d_getFontManagerSingleton(struct hg3dclass_struct * result_c);
+
+// 
+void cegui_sstm_hg3d_getLoggerSingleton(struct hg3dclass_struct * result_c);
+
+#endif 
diff --git a/include/ClassTabButton.h b/include/ClassTabButton.h
--- a/include/ClassTabButton.h
+++ b/include/ClassTabButton.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,36 +14,36 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassTabButton.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassTabButton
-#define _DEFINED_HG3D_ClassTabButton
-
-#include "ClassPtr.h"
-#include "ClassWindow.h"
+#ifndef _DEFINED_HG3D_ClassTabButton
+#define _DEFINED_HG3D_ClassTabButton
 
+#include "ClassPtr.h"
+#include "ClassWindow.h"
 
-// Constructor for base TabButton
-void cegui_tbbtn_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for TabButton
-void cegui_tbbtn_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Set whether this tab button is selected or not. 
-void cegui_tbbtn_setSelected(struct hg3dclass_struct * thisclass_c, int selected_c);
-
-// Return whether this tab button is selected or not. 
-void cegui_tbbtn_isSelected(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Set the target window which is the content pane which this button is covering. 
-void cegui_tbbtn_setTargetWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * wnd_c);
-
-// Get the target window which is the content pane which this button is covering. 
-void cegui_tbbtn_getTargetWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-#endif 
+
+// Constructor for base TabButton
+void cegui_tbbtn_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for TabButton
+void cegui_tbbtn_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Set whether this tab button is selected or not. 
+void cegui_tbbtn_setSelected(struct hg3dclass_struct * thisclass_c, int selected_c);
+
+// Return whether this tab button is selected or not. 
+void cegui_tbbtn_isSelected(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Set the target window which is the content pane which this button is covering. 
+void cegui_tbbtn_setTargetWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * wnd_c);
+
+// Get the target window which is the content pane which this button is covering. 
+void cegui_tbbtn_getTargetWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+#endif 
diff --git a/include/ClassThumb.h b/include/ClassThumb.h
--- a/include/ClassThumb.h
+++ b/include/ClassThumb.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,47 +14,47 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassThumb.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassThumb
-#define _DEFINED_HG3D_ClassThumb
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassThumb
+#define _DEFINED_HG3D_ClassThumb
 
+#include "ClassPtr.h"
 
-// return whether hot-tracking is enabled or not. 
-void cegui_thmb_isHotTracked(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return whether the thumb is movable on the vertical axis. 
-void cegui_thmb_isVertFree(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return whether the thumb is movable on the horizontal axis. 
-void cegui_thmb_isHorzFree(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// set whether the thumb uses hot-tracking. 
-void cegui_thmb_setHotTracked(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// set whether thumb is movable on the vertical axis. 
-void cegui_thmb_setVertFree(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// set whether thumb is movable on the horizontal axis. 
-void cegui_thmb_setHorzFree(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// set the movement range of the thumb for the vertical axis. 
-void cegui_thmb_setVertRange(struct hg3dclass_struct * thisclass_c, float min_c, float max_c);
-
-// set the movement range of the thumb for the horizontal axis. 
-void cegui_thmb_setHorzRange(struct hg3dclass_struct * thisclass_c, float min_c, float max_c);
-
-// Constructor for Thumb
-void cegui_thmb_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for Thumb
-void cegui_thmb_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// return whether hot-tracking is enabled or not. 
+void cegui_thmb_isHotTracked(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return whether the thumb is movable on the vertical axis. 
+void cegui_thmb_isVertFree(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return whether the thumb is movable on the horizontal axis. 
+void cegui_thmb_isHorzFree(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// set whether the thumb uses hot-tracking. 
+void cegui_thmb_setHotTracked(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// set whether thumb is movable on the vertical axis. 
+void cegui_thmb_setVertFree(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// set whether thumb is movable on the horizontal axis. 
+void cegui_thmb_setHorzFree(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// set the movement range of the thumb for the vertical axis. 
+void cegui_thmb_setVertRange(struct hg3dclass_struct * thisclass_c, float min_c, float max_c);
+
+// set the movement range of the thumb for the horizontal axis. 
+void cegui_thmb_setHorzRange(struct hg3dclass_struct * thisclass_c, float min_c, float max_c);
+
+// Constructor for Thumb
+void cegui_thmb_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for Thumb
+void cegui_thmb_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassTooltip.h b/include/ClassTooltip.h
--- a/include/ClassTooltip.h
+++ b/include/ClassTooltip.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,57 +14,57 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassTooltip.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassTooltip
-#define _DEFINED_HG3D_ClassTooltip
-
-#include "ClassPtr.h"
-#include "ClassWindow.h"
+#ifndef _DEFINED_HG3D_ClassTooltip
+#define _DEFINED_HG3D_ClassTooltip
 
+#include "ClassPtr.h"
+#include "ClassWindow.h"
 
-// Constructor for the Tooltip
-void cegui_tltp_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for the Tooltip
-void cegui_tltp_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Sets the target window for the tooltip. This used internally to manage tooltips, you should not have to call this yourself. 
-void cegui_tltp_setTargetWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * wnd_c);
-
-// return the current target window for this Tooltip
-void cegui_tltp_getTargetWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Resets the timer on the tooltip when in the Active / Inactive states. This is used internally to control the tooltip, it is not normally necessary to call this method yourself. 
-void cegui_tltp_resetTimer(struct hg3dclass_struct * thisclass_c);
-
-// Return the number of seconds the mouse should hover stationary over the target window before the tooltip gets activated. 
-void cegui_tltp_getHoverTime(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Set the number of seconds the tooltip should be displayed for before it automatically de-activates itself. 0 indicates that the tooltip should never timesout and auto-deactivate. 
-void cegui_tltp_setDisplayTime(struct hg3dclass_struct * thisclass_c, float seconds_c);
-
-// Return the number of seconds that should be taken to fade the tooltip into and out of visibility. 
-void cegui_tltp_getFadeTime(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Set the number of seconds the mouse should hover stationary over the target window before the tooltip gets activated. 
-void cegui_tltp_setHoverTime(struct hg3dclass_struct * thisclass_c, float seconds_c);
-
-// Return the number of seconds the tooltip should be displayed for before it automatically de-activates itself. 0 indicates that the tooltip never timesout and auto-deactivates. 
-void cegui_tltp_getDisplayTime(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Set the number of seconds that should be taken to fade the tooltip into and out of visibility. 
-void cegui_tltp_setFadeTime(struct hg3dclass_struct * thisclass_c, float seconds_c);
-
-// Causes the tooltip to position itself appropriately. 
-void cegui_tltp_positionSelf(struct hg3dclass_struct * thisclass_c);
-
-// Causes the tooltip to resize itself appropriately. 
-void cegui_tltp_sizeSelf(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// Constructor for the Tooltip
+void cegui_tltp_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for the Tooltip
+void cegui_tltp_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Sets the target window for the tooltip. This used internally to manage tooltips, you should not have to call this yourself. 
+void cegui_tltp_setTargetWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * wnd_c);
+
+// return the current target window for this Tooltip
+void cegui_tltp_getTargetWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Resets the timer on the tooltip when in the Active / Inactive states. This is used internally to control the tooltip, it is not normally necessary to call this method yourself. 
+void cegui_tltp_resetTimer(struct hg3dclass_struct * thisclass_c);
+
+// Return the number of seconds the mouse should hover stationary over the target window before the tooltip gets activated. 
+void cegui_tltp_getHoverTime(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Set the number of seconds the tooltip should be displayed for before it automatically de-activates itself. 0 indicates that the tooltip should never timesout and auto-deactivate. 
+void cegui_tltp_setDisplayTime(struct hg3dclass_struct * thisclass_c, float seconds_c);
+
+// Return the number of seconds that should be taken to fade the tooltip into and out of visibility. 
+void cegui_tltp_getFadeTime(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Set the number of seconds the mouse should hover stationary over the target window before the tooltip gets activated. 
+void cegui_tltp_setHoverTime(struct hg3dclass_struct * thisclass_c, float seconds_c);
+
+// Return the number of seconds the tooltip should be displayed for before it automatically de-activates itself. 0 indicates that the tooltip never timesout and auto-deactivates. 
+void cegui_tltp_getDisplayTime(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Set the number of seconds that should be taken to fade the tooltip into and out of visibility. 
+void cegui_tltp_setFadeTime(struct hg3dclass_struct * thisclass_c, float seconds_c);
+
+// Causes the tooltip to position itself appropriately. 
+void cegui_tltp_positionSelf(struct hg3dclass_struct * thisclass_c);
+
+// Causes the tooltip to resize itself appropriately. 
+void cegui_tltp_sizeSelf(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassTree.h b/include/ClassTree.h
--- a/include/ClassTree.h
+++ b/include/ClassTree.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,90 +14,90 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassTree.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassTree
-#define _DEFINED_HG3D_ClassTree
-
-#include "ClassPtr.h"
-#include "ClassScrollbar.h"
+#ifndef _DEFINED_HG3D_ClassTree
+#define _DEFINED_HG3D_ClassTree
 
+#include "ClassPtr.h"
+#include "ClassScrollbar.h"
 
-// 
-void cegui_tree_doTreeRender(struct hg3dclass_struct * thisclass_c);
-
-// 
-void cegui_tree_doScrollbars(struct hg3dclass_struct * thisclass_c);
-
-// Return number of items attached to the tree. 
-void cegui_tree_getItemCount(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return the number of selected items in the tree. 
-void cegui_tree_getSelectedCount(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return whether tree sorting is enabled 
-void cegui_tree_isSortEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// 
-void cegui_tree_getVertScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_tree_getHorzScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// return whether multi-select is enabled 
-void cegui_tree_isMultiselectEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// 
-void cegui_tree_isItemTooltipsEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the vertical scroll bar is always shown. 
-void cegui_tree_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether the horizontal scroll bar is always shown. 
-void cegui_tree_isHorzScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Initialise the Window
-void cegui_tree_initialise(struct hg3dclass_struct * thisclass_c);
-
-// Remove all items from the tree. 
-void cegui_tree_resetList(struct hg3dclass_struct * thisclass_c);
-
-// Clear the selected state for all items. 
-void cegui_tree_clearAllSelections(struct hg3dclass_struct * thisclass_c);
-
-// Set whether the tree should be sorted. 
-void cegui_tree_setSortingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the tree should allow multiple selections or just a single selection. 
-void cegui_tree_setMultiselectEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the vertical scroll bar should always be shown. 
-void cegui_tree_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the horizontal scroll bar should always be shown. 
-void cegui_tree_setShowHorzScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// 
-void cegui_tree_setItemTooltipsEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the select state of an attached TreeItem. 
-void cegui_tree_setItemSelectState2(struct hg3dclass_struct * thisclass_c, int item_index_c, int state_c);
-
-// Set the LookNFeel that shoule be used for this window. 
-void cegui_tree_setLookNFeel(struct hg3dclass_struct * thisclass_c, char * look_c);
-
-// Causes the tree to update it's internal state after changes have been made to one or more attached TreeItem objects. 
-void cegui_tree_handleUpdatedItemData(struct hg3dclass_struct * thisclass_c);
-
-// Constructor for Tree
-void cegui_tree_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for Tree
-void cegui_tree_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// 
+void cegui_tree_doTreeRender(struct hg3dclass_struct * thisclass_c);
+
+// 
+void cegui_tree_doScrollbars(struct hg3dclass_struct * thisclass_c);
+
+// Return number of items attached to the tree. 
+void cegui_tree_getItemCount(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return the number of selected items in the tree. 
+void cegui_tree_getSelectedCount(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return whether tree sorting is enabled 
+void cegui_tree_isSortEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// 
+void cegui_tree_getVertScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_tree_getHorzScrollbar(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// return whether multi-select is enabled 
+void cegui_tree_isMultiselectEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// 
+void cegui_tree_isItemTooltipsEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the vertical scroll bar is always shown. 
+void cegui_tree_isVertScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether the horizontal scroll bar is always shown. 
+void cegui_tree_isHorzScrollbarAlwaysShown(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Initialise the Window
+void cegui_tree_initialise(struct hg3dclass_struct * thisclass_c);
+
+// Remove all items from the tree. 
+void cegui_tree_resetList(struct hg3dclass_struct * thisclass_c);
+
+// Clear the selected state for all items. 
+void cegui_tree_clearAllSelections(struct hg3dclass_struct * thisclass_c);
+
+// Set whether the tree should be sorted. 
+void cegui_tree_setSortingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the tree should allow multiple selections or just a single selection. 
+void cegui_tree_setMultiselectEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the vertical scroll bar should always be shown. 
+void cegui_tree_setShowVertScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the horizontal scroll bar should always be shown. 
+void cegui_tree_setShowHorzScrollbar(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// 
+void cegui_tree_setItemTooltipsEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the select state of an attached TreeItem. 
+void cegui_tree_setItemSelectState2(struct hg3dclass_struct * thisclass_c, int item_index_c, int state_c);
+
+// Set the LookNFeel that shoule be used for this window. 
+void cegui_tree_setLookNFeel(struct hg3dclass_struct * thisclass_c, char * look_c);
+
+// Causes the tree to update it's internal state after changes have been made to one or more attached TreeItem objects. 
+void cegui_tree_handleUpdatedItemData(struct hg3dclass_struct * thisclass_c);
+
+// Constructor for Tree
+void cegui_tree_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for Tree
+void cegui_tree_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassUDim.h b/include/ClassUDim.h
--- a/include/ClassUDim.h
+++ b/include/ClassUDim.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,29 +14,29 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassUDim.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassUDim
-#define _DEFINED_HG3D_ClassUDim
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassUDim
+#define _DEFINED_HG3D_ClassUDim
 
+#include "ClassPtr.h"
 
-// 
-void cegui_udim_construct(float scale_c, float offset_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_udim_destruct(struct hg3dclass_struct * thisclass_c);
-
-// 
-void cegui_udim_asAbsolute(struct hg3dclass_struct * thisclass_c, float base_c, float * result_c);
-
-// 
-void cegui_udim_asRelative(struct hg3dclass_struct * thisclass_c, float base_c, float * result_c);
-
-#endif 
+
+// 
+void cegui_udim_construct(float scale_c, float offset_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_udim_destruct(struct hg3dclass_struct * thisclass_c);
+
+// 
+void cegui_udim_asAbsolute(struct hg3dclass_struct * thisclass_c, float base_c, float * result_c);
+
+// 
+void cegui_udim_asRelative(struct hg3dclass_struct * thisclass_c, float base_c, float * result_c);
+
+#endif 
diff --git a/include/ClassUVector2.h b/include/ClassUVector2.h
--- a/include/ClassUVector2.h
+++ b/include/ClassUVector2.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,24 +14,24 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassUVector2.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassUVector2
-#define _DEFINED_HG3D_ClassUVector2
-
-#include "ClassPtr.h"
-#include "ClassUDim.h"
+#ifndef _DEFINED_HG3D_ClassUVector2
+#define _DEFINED_HG3D_ClassUVector2
 
+#include "ClassPtr.h"
+#include "ClassUDim.h"
 
-// 
-void cegui_uv2_construct(struct hg3dclass_struct * x_c, struct hg3dclass_struct * y_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_uv2_destruct(struct hg3dclass_struct * thisclass_c);
-
-#endif 
+
+// 
+void cegui_uv2_construct(struct hg3dclass_struct * x_c, struct hg3dclass_struct * y_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_uv2_destruct(struct hg3dclass_struct * thisclass_c);
+
+#endif 
diff --git a/include/ClassWidgetLookManager.h b/include/ClassWidgetLookManager.h
--- a/include/ClassWidgetLookManager.h
+++ b/include/ClassWidgetLookManager.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,44 +14,44 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassWidgetLookManager.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassWidgetLookManager
-#define _DEFINED_HG3D_ClassWidgetLookManager
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassWidgetLookManager
+#define _DEFINED_HG3D_ClassWidgetLookManager
 
+#include "ClassPtr.h"
 
-// Constructor. 
-void cegui_wdgtlmgr_construct(struct hg3dclass_struct * result_c);
-
-// Destructor. 
-void cegui_wdgtlmgr_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Parses a file containing window look & feel specifications (in the form of XML). 
-void cegui_wdgtlmgr_parseLookNFeelSpecification(struct hg3dclass_struct * thisclass_c, char * filename_c, char * resourceGroup_c);
-
-// Return whether a WidgetLookFeel has been created with the specified name. 
-void cegui_wdgtlmgr_isWidgetLookAvailable(struct hg3dclass_struct * thisclass_c, char * widget_c, int * result_c);
-
-// Erase the WidgetLookFeel that has the specified name. 
-void cegui_wdgtlmgr_eraseWidgetLook(struct hg3dclass_struct * thisclass_c, char * widget_c);
-
-// Return singleton WidgetLookManager
-void cegui_wdgtlmgr_getSingleton(struct hg3dclass_struct * result_c);
-
-// Return pointer to singleton WidgetLookManager
-void cegui_wdgtlmgr_getSingletonPtr(struct hg3dclass_struct * result_c);
-
-// Returns the default resource group currently set for LookNFeels. 
-void cegui_wdgtlmgr_getDefaultResourceGroup(char * result_c);
-
-// Sets the default resource group to be used when loading LookNFeel data. 
-void cegui_wdgtlmgr_setDefaultResourceGroup(char * resourceGroup_c);
-
-#endif 
+
+// Constructor. 
+void cegui_wdgtlmgr_construct(struct hg3dclass_struct * result_c);
+
+// Destructor. 
+void cegui_wdgtlmgr_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Parses a file containing window look & feel specifications (in the form of XML). 
+void cegui_wdgtlmgr_parseLookNFeelSpecification(struct hg3dclass_struct * thisclass_c, char * filename_c, char * resourceGroup_c);
+
+// Return whether a WidgetLookFeel has been created with the specified name. 
+void cegui_wdgtlmgr_isWidgetLookAvailable(struct hg3dclass_struct * thisclass_c, char * widget_c, int * result_c);
+
+// Erase the WidgetLookFeel that has the specified name. 
+void cegui_wdgtlmgr_eraseWidgetLook(struct hg3dclass_struct * thisclass_c, char * widget_c);
+
+// Return singleton WidgetLookManager
+void cegui_wdgtlmgr_getSingleton(struct hg3dclass_struct * result_c);
+
+// Return pointer to singleton WidgetLookManager
+void cegui_wdgtlmgr_getSingletonPtr(struct hg3dclass_struct * result_c);
+
+// Returns the default resource group currently set for LookNFeels. 
+void cegui_wdgtlmgr_getDefaultResourceGroup(char * result_c);
+
+// Sets the default resource group to be used when loading LookNFeel data. 
+void cegui_wdgtlmgr_setDefaultResourceGroup(char * resourceGroup_c);
+
+#endif 
diff --git a/include/ClassWindow.h b/include/ClassWindow.h
--- a/include/ClassWindow.h
+++ b/include/ClassWindow.h
@@ -1,536 +1,536 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
-// (c) 2011-2014 Peter Althainz
-// 
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-// 
-//     http://www.apache.org/licenses/LICENSE-2.0
-// 
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-// 
-
-// ClassWindow.h
-
-// 
-
-#include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassWindow
-#define _DEFINED_HG3D_ClassWindow
-
-#include "ClassPtr.h"
-#include "ClassFont.h"
-#include "ClassTooltip.h"
-#include "EnumVerticalAlignment.h"
-#include "EnumHorizontalAlignment.h"
-#include "ClassDragContainer.h"
-#include "ClassUDim.h"
-#include "ClassUVector2.h"
-#include "EnumWindowUpdateMode.h"
-
-
-// Constructor for Window
-void cegui_wnd_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destructor for Window
-void cegui_wnd_destruct(struct hg3dclass_struct * thisclass_c);
-
-// return a String object holding the type name for this Window
-void cegui_wnd_getType(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// return a String object holding the name of this Window
-void cegui_wnd_getName(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// returns whether or not this Window
-void cegui_wnd_isDestroyedByParent(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// returns whether or not this WindowWindow
-void cegui_wnd_isAlwaysOnTop(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return whether the Window
-void cegui_wnd_isDisabled(struct hg3dclass_struct * thisclass_c, int localOnly_c, int * result_c);
-
-// return true if the Window
-void cegui_wnd_isVisible(struct hg3dclass_struct * thisclass_c, int localOnly_c, int * result_c);
-
-// return true if this is the active Window
-void cegui_wnd_isActive(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return true if this WindowWindow
-void cegui_wnd_isClippedByParent(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the ID code currently assigned to this Window
-void cegui_wnd_getID(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
-
-// return the number of child WindowWindow
-void cegui_wnd_getChildCount(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// returns whether a WindowWindow
-void cegui_wnd_isChild(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
-
-// returns whether at least one window with the given ID code is attached to this Window
-void cegui_wnd_isChild2(struct hg3dclass_struct * thisclass_c, unsigned int ID_c, int * result_c);
-
-// returns whether at least one window with the given ID code is attached to this Window
-void cegui_wnd_isChildRecursive(struct hg3dclass_struct * thisclass_c, unsigned int ID_c, int * result_c);
-
-// return true if the given Window
-void cegui_wnd_isChild3(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c, int * result_c);
-
-// return a pointer to the child window with the specified name. 
-void cegui_wnd_getChild(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// return a pointer to the first attached child window with the specified ID value. 
-void cegui_wnd_getChild2(struct hg3dclass_struct * thisclass_c, unsigned int ID_c, struct hg3dclass_struct * result_c);
-
-// return a pointer to the first attached child window with the specified name. Children are traversed recursively. 
-void cegui_wnd_getChildRecursive(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// return a pointer to the first attached child window with the specified ID value. Children are traversed recursively. 
-void cegui_wnd_getChildRecursive2(struct hg3dclass_struct * thisclass_c, unsigned int ID_c, struct hg3dclass_struct * result_c);
-
-// return a pointer to the child window that is attached to 'this' at the given index. 
-void cegui_wnd_getChildAtIdx(struct hg3dclass_struct * thisclass_c, int idx_c, struct hg3dclass_struct * result_c);
-
-// return a pointer to the WindowWindow
-void cegui_wnd_getActiveChild(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_wnd_getActiveChild2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// return true if the specified WindowWindow
-void cegui_wnd_isAncestor(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
-
-// return true if any WindowWindow
-void cegui_wnd_isAncestor2(struct hg3dclass_struct * thisclass_c, unsigned int ID_c, int * result_c);
-
-// return true if the specified WindowWindow
-void cegui_wnd_isAncestor3(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c, int * result_c);
-
-// return the active FontWindow
-void cegui_wnd_getFont(struct hg3dclass_struct * thisclass_c, int useDefault_c, struct hg3dclass_struct * result_c);
-
-// return the current text for the Window
-void cegui_wnd_getText(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// return text string with visual
-void cegui_wnd_getTextVisual(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// return true if the Window
-void cegui_wnd_inheritsAlpha(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the current alpha value set for this Window
-void cegui_wnd_getAlpha(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// return the effective alpha value that will be used when rendering this window, taking into account inheritance of parent window(s) alpha. 
-void cegui_wnd_getEffectiveAlpha(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// return true if this Window
-void cegui_wnd_isCapturedByThis(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return true if an ancestor window has captured inputs. 
-void cegui_wnd_isCapturedByAncestor(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return true if a child window has captured inputs. 
-void cegui_wnd_isCapturedByChild(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// return the parent of this Window
-void cegui_wnd_getParent(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return whether this window is set to restore old input capture when it loses input capture. 
-void cegui_wnd_restoresOldCapture(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether z-order changes are enabled or disabled for this Window
-void cegui_wnd_isZOrderingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether this window will receive multi-click events or multiple 'down' events instead. 
-void cegui_wnd_wantsMultiClickEvents(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether mouse button down event autorepeat is enabled for this window. 
-void cegui_wnd_isMouseAutoRepeatEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return the current auto-repeat delay setting for this window. 
-void cegui_wnd_getAutoRepeatDelay(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Return the current auto-repeat rate setting for this window. 
-void cegui_wnd_getAutoRepeatRate(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Return whether the window wants inputs passed to its attached child windows when the window has inputs captured. 
-void cegui_wnd_distributesCapturedInputs(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether this WindowTooltipTooltip
-void cegui_wnd_isUsingDefaultTooltip(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return a pointer to the TooltipWindowTooltipWindowTooltip
-void cegui_wnd_getTooltip(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return the custom tooltip type. 
-void cegui_wnd_getTooltipType(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// Return the current tooltip text set for this Window
-void cegui_wnd_getTooltipText(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// Return whether this window inherits Tooltip
-void cegui_wnd_inheritsTooltipText(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether this window will rise to the top of the z-order when clicked with the left mouse button. 
-void cegui_wnd_isRiseOnClickEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether this window was inherited from the given class name at some point in the inheritance hierarchy. 
-void cegui_wnd_testClassName(struct hg3dclass_struct * thisclass_c, char * class_name_c, int * result_c);
-
-// Get the vertical alignment. 
-void cegui_wnd_getVerticalAlignment(struct hg3dclass_struct * thisclass_c, enum EnumVerticalAlignment * result_c);
-
-// Get the horizontal alignment. 
-void cegui_wnd_getHorizontalAlignment(struct hg3dclass_struct * thisclass_c, enum EnumHorizontalAlignment * result_c);
-
-// Get the name of the LookNFeel assigned to this window. 
-void cegui_wnd_getLookNFeel(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// Get whether or not this Window
-void cegui_wnd_getModalState(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns a named user string. 
-void cegui_wnd_getUserString(struct hg3dclass_struct * thisclass_c, char * name_c, char * result_c);
-
-// Return whether a user string with the specified name exists. 
-void cegui_wnd_isUserStringDefined(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
-
-// Returns the active sibling window. 
-void cegui_wnd_getActiveSibling(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return the pixel Width of the parent element. This always returns a valid number. 
-void cegui_wnd_getParentPixelWidth(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Return the pixel Height of the parent element. This always returns a valid number. 
-void cegui_wnd_getParentPixelHeight(struct hg3dclass_struct * thisclass_c, float * result_c);
-
-// Returns whether this window should ignore mouse event and pass them through to and other windows behind it. In effect making the window transparent to the mouse. 
-void cegui_wnd_isMousePassThroughEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns whether this window is an auto-child window. All auto-child windows have "__auto_" in their name, but this is faster. 
-void cegui_wnd_isAutoWindow(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns whether this window is allowed to write XML. 
-void cegui_wnd_isWritingXMLAllowed(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns whether this Window
-void cegui_wnd_isDragDropTarget(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns whether automatic
-void cegui_wnd_isUsingAutoRenderingSurface(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns the window at the root of the hierarchy starting at this Window
-void cegui_wnd_getRootWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_wnd_getRootWindow2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Return whether the Window
-void cegui_wnd_isNonClientWindow(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Renames the window. 
-void cegui_wnd_rename(struct hg3dclass_struct * thisclass_c, char * new_name_c);
-
-// Initialises the Window
-void cegui_wnd_initialiseComponents(struct hg3dclass_struct * thisclass_c);
-
-// Set whether or not this WindowWindow
-void cegui_wnd_setDestroyedByParent(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether this window is always on top, or not. 
-void cegui_wnd_setAlwaysOnTop(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether this window is enabled or disabled. A disabled window normally can not be interacted with, and may have different rendering. 
-void cegui_wnd_setEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// enable the Window
-void cegui_wnd_enable(struct hg3dclass_struct * thisclass_c);
-
-// disable the Window
-void cegui_wnd_disable(struct hg3dclass_struct * thisclass_c);
-
-// Set whether the Window
-void cegui_wnd_setVisible(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// show the Window
-void cegui_wnd_show(struct hg3dclass_struct * thisclass_c);
-
-// hide the Window
-void cegui_wnd_hide(struct hg3dclass_struct * thisclass_c);
-
-// Activate the WindowWindow
-void cegui_wnd_activate(struct hg3dclass_struct * thisclass_c);
-
-// Deactivate the window. No further inputs will be received by the window until it is re-activated either programmatically or by the user interacting with the gui. 
-void cegui_wnd_deactivate(struct hg3dclass_struct * thisclass_c);
-
-// Set whether this Window
-void cegui_wnd_setClippedByParent(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the current ID for the Window
-void cegui_wnd_setID(struct hg3dclass_struct * thisclass_c, unsigned int ID_c);
-
-// Set the current text string for the Window
-void cegui_wnd_setText(struct hg3dclass_struct * thisclass_c, char * text_c);
-
-// Append the string textWindow
-void cegui_wnd_appendText(struct hg3dclass_struct * thisclass_c, char * text_c);
-
-// Set the font used by this Window
-void cegui_wnd_setFont(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * font_c);
-
-// Set the font used by this Window
-void cegui_wnd_setFont2(struct hg3dclass_struct * thisclass_c, char * name_c);
-
-// Add the named WindowWindowWindownameWindowWindow
-void cegui_wnd_addChildWindow(struct hg3dclass_struct * thisclass_c, char * name_c);
-
-// Add the specified WindowWindowWindowwindowWindowWindow
-void cegui_wnd_addChildWindow2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c);
-
-// Remove the named Window
-void cegui_wnd_removeChildWindow(struct hg3dclass_struct * thisclass_c, char * name_c);
-
-// Remove the specified Window
-void cegui_wnd_removeChildWindow2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c);
-
-// Remove the first child WindowWindow
-void cegui_wnd_removeChildWindow3(struct hg3dclass_struct * thisclass_c, unsigned int ID_c);
-
-// Move the Window
-void cegui_wnd_moveToFront(struct hg3dclass_struct * thisclass_c);
-
-// Move the Window
-void cegui_wnd_moveToBack(struct hg3dclass_struct * thisclass_c);
-
-// Captures input to this window. 
-void cegui_wnd_captureInput(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Releases input capture from this WindowWindow
-void cegui_wnd_releaseInput(struct hg3dclass_struct * thisclass_c);
-
-// Set whether this window will remember and restore the previous window that had inputs captured. 
-void cegui_wnd_setRestoreCapture(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the current alpha value for this window. 
-void cegui_wnd_setAlpha(struct hg3dclass_struct * thisclass_c, float alpha_c);
-
-// Sets whether this Window
-void cegui_wnd_setInheritsAlpha(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Invalidate this window causing at least this window to be redrawn during the next rendering pass. 
-void cegui_wnd_invalidate(struct hg3dclass_struct * thisclass_c);
-
-// Invalidate this window and - dependant upon recursive
-void cegui_wnd_invalidate2(struct hg3dclass_struct * thisclass_c, const int recursive_c);
-
-// Set the mouse cursor image to be used when the mouse enters this window. 
-void cegui_wnd_setMouseCursor3(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_name_c);
-
-// Set whether z-order changes are enabled or disabled for this Window
-void cegui_wnd_setZOrderingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether this window will receive multi-click events or multiple 'down' events instead. 
-void cegui_wnd_setWantsMultiClickEvents(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether mouse button down event autorepeat is enabled for this window. 
-void cegui_wnd_setMouseAutoRepeatEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the current auto-repeat delay setting for this window. 
-void cegui_wnd_setAutoRepeatDelay(struct hg3dclass_struct * thisclass_c, float delay_c);
-
-// Set the current auto-repeat rate setting for this window. 
-void cegui_wnd_setAutoRepeatRate(struct hg3dclass_struct * thisclass_c, float rate_c);
-
-// Set whether the window wants inputs passed to its attached child windows when the window has inputs captured. 
-void cegui_wnd_setDistributesCapturedInputs(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Internal support method for drag & drop. You do not normally call this directly from client code. See the DragContainer
-void cegui_wnd_notifyDragDropItemEnters(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
-
-// Internal support method for drag & drop. You do not normally call this directly from client code. See the DragContainer
-void cegui_wnd_notifyDragDropItemLeaves(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
-
-// Internal support method for drag & drop. You do not normally call this directly from client code. See the DragContainer
-void cegui_wnd_notifyDragDropItemDropped(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
-
-// Internal destroy method which actually just adds the window and any parent destructed child windows to the dead pool. 
-void cegui_wnd_destroy(struct hg3dclass_struct * thisclass_c);
-
-// Set the custom TooltipWindowWindowTooltip
-void cegui_wnd_setTooltip(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * tooltip_c);
-
-// Set the custom TooltipWindowWindow
-void cegui_wnd_setTooltipType(struct hg3dclass_struct * thisclass_c, char * tooltipType_c);
-
-// Set the tooltip text for this window. 
-void cegui_wnd_setTooltipText(struct hg3dclass_struct * thisclass_c, char * tip_c);
-
-// Set whether this window inherits Tooltip
-void cegui_wnd_setInheritsTooltipText(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether this window will rise to the top of the z-order when clicked with the left mouse button. 
-void cegui_wnd_setRiseOnClickEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set the vertical alignment. 
-void cegui_wnd_setVerticalAlignment(struct hg3dclass_struct * thisclass_c, const enum EnumVerticalAlignment alignment_c);
-
-// Set the horizontal alignment. 
-void cegui_wnd_setHorizontalAlignment(struct hg3dclass_struct * thisclass_c, const enum EnumHorizontalAlignment alignment_c);
-
-// Set the LookNFeel that shoule be used for this window. 
-void cegui_wnd_setLookNFeel(struct hg3dclass_struct * thisclass_c, char * look_c);
-
-// Set the modal state for this Window
-void cegui_wnd_setModalState(struct hg3dclass_struct * thisclass_c, int state_c);
-
-// method called to perform extended laying out of attached child windows. 
-void cegui_wnd_performChildWindowLayout(struct hg3dclass_struct * thisclass_c);
-
-// Sets the value a named user string, creating it as required. 
-void cegui_wnd_setUserString(struct hg3dclass_struct * thisclass_c, char * name_c, char * value_c);
-
-// Set the window area. 
-void cegui_wnd_setArea(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * xpos_c, struct hg3dclass_struct * ypos_c, struct hg3dclass_struct * width_c, struct hg3dclass_struct * height_c);
-
-// Set the window area. 
-void cegui_wnd_setArea2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * pos_c, struct hg3dclass_struct * size_c);
-
-// Set the window's position. 
-void cegui_wnd_setPosition(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * pos_c);
-
-// Set the window's X position. 
-void cegui_wnd_setXPosition(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * x_c);
-
-// Set the window's Y position. 
-void cegui_wnd_setYPosition(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * y_c);
-
-// Set the window's size. 
-void cegui_wnd_setSize(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * size_c);
-
-// Set the window's width. 
-void cegui_wnd_setWidth(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * width_c);
-
-// Set the window's height. 
-void cegui_wnd_setHeight(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * height_c);
-
-// Set the window's maximum size. 
-void cegui_wnd_setMaxSize(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * size_c);
-
-// Set the window's minimum size. 
-void cegui_wnd_setMinSize(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * size_c);
-
-// Get the window's position. 
-void cegui_wnd_getPosition(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Get the window's X position. 
-void cegui_wnd_getXPosition(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Get the window's Y position. 
-void cegui_wnd_getYPosition(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Get the window's maximum size. 
-void cegui_wnd_getMaxSize(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Get the window's minimum size. 
-void cegui_wnd_getMinSize(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
-
-// Causes the Window
-void cegui_wnd_render(struct hg3dclass_struct * thisclass_c);
-
-// Cause window to update itself and any attached children. Client code does not need to call this method; to ensure full, and proper updates, call the injectTimePulse methodname method provided by the System
-void cegui_wnd_update(struct hg3dclass_struct * thisclass_c, float elapsed_c);
-
-// Sets the internal 'initialising' flag to true. This can be use to optimize initialisation of some widgets, and is called automatically by the layout XML handler when it has created a window. That is just after the window has been created, but before any children or properties are read. 
-void cegui_wnd_beginInitialisation(struct hg3dclass_struct * thisclass_c);
-
-// Sets the internal 'initialising' flag to false. This is called automatically by the layout XML handler when it is done creating a window. That is after all properties and children have been loaded and just before the next sibling gets created. 
-void cegui_wnd_endInitialisation(struct hg3dclass_struct * thisclass_c);
-
-// Sets whether this window should ignore mouse events and pass them through to any windows behind it. In effect making the window transparent to the mouse. 
-void cegui_wnd_setMousePassThroughEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Assign the WindowRenderer to specify the Look'N'Feel specification to be used. 
-void cegui_wnd_setWindowRenderer(struct hg3dclass_struct * thisclass_c, char * name_c);
-
-// Get the factory name of the currently assigned WindowRenderer. (Look'N'Feel specification). 
-void cegui_wnd_getWindowRendererName(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-// Sets whether this window is allowed to write XML. 
-void cegui_wnd_setWritingXMLAllowed(struct hg3dclass_struct * thisclass_c, int allow_c);
-
-// Inform the window, and optionally all children, that screen area rectangles have changed. 
-void cegui_wnd_notifyScreenAreaChanged(struct hg3dclass_struct * thisclass_c, int recursive_c);
-
-// Changes the widget's falagard type, thus changing its look'n'feel and optionally its renderer in the process. 
-void cegui_wnd_setFalagardType(struct hg3dclass_struct * thisclass_c, char * type_c, char * rendererType_c);
-
-// Specifies whether this Window
-void cegui_wnd_setDragDropTarget(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Invalidate the chain of rendering surfaces from this window backwards to ensure they get properly redrawn - but doing the minimum amount of work possibe - next render. 
-void cegui_wnd_invalidateRenderingSurface(struct hg3dclass_struct * thisclass_c);
-
-// Sets whether automatic
-void cegui_wnd_setUsingAutoRenderingSurface(struct hg3dclass_struct * thisclass_c, int setting_c);
-
-// Set whether the Window
-void cegui_wnd_setNonClientWindow(struct hg3dclass_struct * thisclass_c, const int setting_c);
-
-// return whether text parsing is enabled for this window. 
-void cegui_wnd_isTextParsingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// set whether text parsing is enabled for this window. 
-void cegui_wnd_setTextParsingEnabled(struct hg3dclass_struct * thisclass_c, const int setting_c);
-
-// Add the named property to the XML ban list for this window. 
-void cegui_wnd_banPropertyFromXML(struct hg3dclass_struct * thisclass_c, char * property_name_c);
-
-// Remove the named property from the XML ban list for this window. 
-void cegui_wnd_unbanPropertyFromXML(struct hg3dclass_struct * thisclass_c, char * property_name_c);
-
-// Return whether the named property is banned from XML. 
-void cegui_wnd_isPropertyBannedFromXML(struct hg3dclass_struct * thisclass_c, char * property_name_c, int * result_c);
-
-// Set the window update mode. This mode controls the behaviour of the Window::update
-void cegui_wnd_setUpdateMode(struct hg3dclass_struct * thisclass_c, const enum EnumWindowUpdateMode mode_c);
-
-// Return the current window update mode that is set for this WindowWindow::update
-void cegui_wnd_getUpdateMode(struct hg3dclass_struct * thisclass_c, enum EnumWindowUpdateMode * result_c);
-
-// Set whether mouse input that is not directly handled by this WindowWindow
-void cegui_wnd_setMouseInputPropagationEnabled(struct hg3dclass_struct * thisclass_c, const int enabled_c);
-
-// Return whether mouse input that is not directly handled by this WindowWindow
-void cegui_wnd_isMouseInputPropagationEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Clones this Window
-void cegui_wnd_clone(struct hg3dclass_struct * thisclass_c, char * newName_c, const int deepCopy_c, struct hg3dclass_struct * result_c);
-
-// copies this widget's properties to given target widget 
-void cegui_wnd_clonePropertiesTo(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * target_c);
-
-// copies this widget's child widgets to given target widget 
-void cegui_wnd_cloneChildWidgetsTo(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * target_c);
-
-// Return the (visual) z index of the window on it's parent. 
-void cegui_wnd_getZIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Return whether /a this Window
-void cegui_wnd_isInFront(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * wnd_c, int * result_c);
-
-// Return whether /a this Window
-void cegui_wnd_isBehind(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * wnd_c, int * result_c);
-
-// return the Window
-void cegui_wnd_getCaptureWindow(struct hg3dclass_struct * result_c);
-
-#endif 
+// 
+// (c) 2011-2014 Peter Althainz
+// 
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// 
+//     http://www.apache.org/licenses/LICENSE-2.0
+// 
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// 
+
+// ClassWindow.h
+
+// 
+
+#include "wchar.h"
+#ifndef _DEFINED_HG3D_ClassWindow
+#define _DEFINED_HG3D_ClassWindow
+
+#include "ClassPtr.h"
+#include "ClassFont.h"
+#include "ClassTooltip.h"
+#include "EnumVerticalAlignment.h"
+#include "EnumHorizontalAlignment.h"
+#include "ClassDragContainer.h"
+#include "ClassUDim.h"
+#include "ClassUVector2.h"
+#include "EnumWindowUpdateMode.h"
+
+
+// Constructor for Window
+void cegui_wnd_construct(char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destructor for Window
+void cegui_wnd_destruct(struct hg3dclass_struct * thisclass_c);
+
+// return a String object holding the type name for this Window
+void cegui_wnd_getType(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// return a String object holding the name of this Window
+void cegui_wnd_getName(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// returns whether or not this Window
+void cegui_wnd_isDestroyedByParent(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// returns whether or not this WindowWindow
+void cegui_wnd_isAlwaysOnTop(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return whether the Window
+void cegui_wnd_isDisabled(struct hg3dclass_struct * thisclass_c, int localOnly_c, int * result_c);
+
+// return true if the Window
+void cegui_wnd_isVisible(struct hg3dclass_struct * thisclass_c, int localOnly_c, int * result_c);
+
+// return true if this is the active Window
+void cegui_wnd_isActive(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return true if this WindowWindow
+void cegui_wnd_isClippedByParent(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the ID code currently assigned to this Window
+void cegui_wnd_getID(struct hg3dclass_struct * thisclass_c, unsigned int * result_c);
+
+// return the number of child WindowWindow
+void cegui_wnd_getChildCount(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// returns whether a WindowWindow
+void cegui_wnd_isChild(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
+
+// returns whether at least one window with the given ID code is attached to this Window
+void cegui_wnd_isChild2(struct hg3dclass_struct * thisclass_c, unsigned int ID_c, int * result_c);
+
+// returns whether at least one window with the given ID code is attached to this Window
+void cegui_wnd_isChildRecursive(struct hg3dclass_struct * thisclass_c, unsigned int ID_c, int * result_c);
+
+// return true if the given Window
+void cegui_wnd_isChild3(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c, int * result_c);
+
+// return a pointer to the child window with the specified name. 
+void cegui_wnd_getChild(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// return a pointer to the first attached child window with the specified ID value. 
+void cegui_wnd_getChild2(struct hg3dclass_struct * thisclass_c, unsigned int ID_c, struct hg3dclass_struct * result_c);
+
+// return a pointer to the first attached child window with the specified name. Children are traversed recursively. 
+void cegui_wnd_getChildRecursive(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// return a pointer to the first attached child window with the specified ID value. Children are traversed recursively. 
+void cegui_wnd_getChildRecursive2(struct hg3dclass_struct * thisclass_c, unsigned int ID_c, struct hg3dclass_struct * result_c);
+
+// return a pointer to the child window that is attached to 'this' at the given index. 
+void cegui_wnd_getChildAtIdx(struct hg3dclass_struct * thisclass_c, int idx_c, struct hg3dclass_struct * result_c);
+
+// return a pointer to the WindowWindow
+void cegui_wnd_getActiveChild(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_wnd_getActiveChild2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// return true if the specified WindowWindow
+void cegui_wnd_isAncestor(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
+
+// return true if any WindowWindow
+void cegui_wnd_isAncestor2(struct hg3dclass_struct * thisclass_c, unsigned int ID_c, int * result_c);
+
+// return true if the specified WindowWindow
+void cegui_wnd_isAncestor3(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c, int * result_c);
+
+// return the active FontWindow
+void cegui_wnd_getFont(struct hg3dclass_struct * thisclass_c, int useDefault_c, struct hg3dclass_struct * result_c);
+
+// return the current text for the Window
+void cegui_wnd_getText(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// return text string with visual
+void cegui_wnd_getTextVisual(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// return true if the Window
+void cegui_wnd_inheritsAlpha(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the current alpha value set for this Window
+void cegui_wnd_getAlpha(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// return the effective alpha value that will be used when rendering this window, taking into account inheritance of parent window(s) alpha. 
+void cegui_wnd_getEffectiveAlpha(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// return true if this Window
+void cegui_wnd_isCapturedByThis(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return true if an ancestor window has captured inputs. 
+void cegui_wnd_isCapturedByAncestor(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return true if a child window has captured inputs. 
+void cegui_wnd_isCapturedByChild(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// return the parent of this Window
+void cegui_wnd_getParent(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return whether this window is set to restore old input capture when it loses input capture. 
+void cegui_wnd_restoresOldCapture(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether z-order changes are enabled or disabled for this Window
+void cegui_wnd_isZOrderingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether this window will receive multi-click events or multiple 'down' events instead. 
+void cegui_wnd_wantsMultiClickEvents(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether mouse button down event autorepeat is enabled for this window. 
+void cegui_wnd_isMouseAutoRepeatEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return the current auto-repeat delay setting for this window. 
+void cegui_wnd_getAutoRepeatDelay(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Return the current auto-repeat rate setting for this window. 
+void cegui_wnd_getAutoRepeatRate(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Return whether the window wants inputs passed to its attached child windows when the window has inputs captured. 
+void cegui_wnd_distributesCapturedInputs(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether this WindowTooltipTooltip
+void cegui_wnd_isUsingDefaultTooltip(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return a pointer to the TooltipWindowTooltipWindowTooltip
+void cegui_wnd_getTooltip(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return the custom tooltip type. 
+void cegui_wnd_getTooltipType(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// Return the current tooltip text set for this Window
+void cegui_wnd_getTooltipText(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// Return whether this window inherits Tooltip
+void cegui_wnd_inheritsTooltipText(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether this window will rise to the top of the z-order when clicked with the left mouse button. 
+void cegui_wnd_isRiseOnClickEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether this window was inherited from the given class name at some point in the inheritance hierarchy. 
+void cegui_wnd_testClassName(struct hg3dclass_struct * thisclass_c, char * class_name_c, int * result_c);
+
+// Get the vertical alignment. 
+void cegui_wnd_getVerticalAlignment(struct hg3dclass_struct * thisclass_c, enum EnumVerticalAlignment * result_c);
+
+// Get the horizontal alignment. 
+void cegui_wnd_getHorizontalAlignment(struct hg3dclass_struct * thisclass_c, enum EnumHorizontalAlignment * result_c);
+
+// Get the name of the LookNFeel assigned to this window. 
+void cegui_wnd_getLookNFeel(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// Get whether or not this Window
+void cegui_wnd_getModalState(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns a named user string. 
+void cegui_wnd_getUserString(struct hg3dclass_struct * thisclass_c, char * name_c, char * result_c);
+
+// Return whether a user string with the specified name exists. 
+void cegui_wnd_isUserStringDefined(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
+
+// Returns the active sibling window. 
+void cegui_wnd_getActiveSibling(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return the pixel Width of the parent element. This always returns a valid number. 
+void cegui_wnd_getParentPixelWidth(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Return the pixel Height of the parent element. This always returns a valid number. 
+void cegui_wnd_getParentPixelHeight(struct hg3dclass_struct * thisclass_c, float * result_c);
+
+// Returns whether this window should ignore mouse event and pass them through to and other windows behind it. In effect making the window transparent to the mouse. 
+void cegui_wnd_isMousePassThroughEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns whether this window is an auto-child window. All auto-child windows have "__auto_" in their name, but this is faster. 
+void cegui_wnd_isAutoWindow(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns whether this window is allowed to write XML. 
+void cegui_wnd_isWritingXMLAllowed(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns whether this Window
+void cegui_wnd_isDragDropTarget(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns whether automatic
+void cegui_wnd_isUsingAutoRenderingSurface(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns the window at the root of the hierarchy starting at this Window
+void cegui_wnd_getRootWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_wnd_getRootWindow2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Return whether the Window
+void cegui_wnd_isNonClientWindow(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Renames the window. 
+void cegui_wnd_rename(struct hg3dclass_struct * thisclass_c, char * new_name_c);
+
+// Initialises the Window
+void cegui_wnd_initialiseComponents(struct hg3dclass_struct * thisclass_c);
+
+// Set whether or not this WindowWindow
+void cegui_wnd_setDestroyedByParent(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether this window is always on top, or not. 
+void cegui_wnd_setAlwaysOnTop(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether this window is enabled or disabled. A disabled window normally can not be interacted with, and may have different rendering. 
+void cegui_wnd_setEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// enable the Window
+void cegui_wnd_enable(struct hg3dclass_struct * thisclass_c);
+
+// disable the Window
+void cegui_wnd_disable(struct hg3dclass_struct * thisclass_c);
+
+// Set whether the Window
+void cegui_wnd_setVisible(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// show the Window
+void cegui_wnd_show(struct hg3dclass_struct * thisclass_c);
+
+// hide the Window
+void cegui_wnd_hide(struct hg3dclass_struct * thisclass_c);
+
+// Activate the WindowWindow
+void cegui_wnd_activate(struct hg3dclass_struct * thisclass_c);
+
+// Deactivate the window. No further inputs will be received by the window until it is re-activated either programmatically or by the user interacting with the gui. 
+void cegui_wnd_deactivate(struct hg3dclass_struct * thisclass_c);
+
+// Set whether this Window
+void cegui_wnd_setClippedByParent(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the current ID for the Window
+void cegui_wnd_setID(struct hg3dclass_struct * thisclass_c, unsigned int ID_c);
+
+// Set the current text string for the Window
+void cegui_wnd_setText(struct hg3dclass_struct * thisclass_c, char * text_c);
+
+// Append the string textWindow
+void cegui_wnd_appendText(struct hg3dclass_struct * thisclass_c, char * text_c);
+
+// Set the font used by this Window
+void cegui_wnd_setFont(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * font_c);
+
+// Set the font used by this Window
+void cegui_wnd_setFont2(struct hg3dclass_struct * thisclass_c, char * name_c);
+
+// Add the named WindowWindowWindownameWindowWindow
+void cegui_wnd_addChildWindow(struct hg3dclass_struct * thisclass_c, char * name_c);
+
+// Add the specified WindowWindowWindowwindowWindowWindow
+void cegui_wnd_addChildWindow2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c);
+
+// Remove the named Window
+void cegui_wnd_removeChildWindow(struct hg3dclass_struct * thisclass_c, char * name_c);
+
+// Remove the specified Window
+void cegui_wnd_removeChildWindow2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c);
+
+// Remove the first child WindowWindow
+void cegui_wnd_removeChildWindow3(struct hg3dclass_struct * thisclass_c, unsigned int ID_c);
+
+// Move the Window
+void cegui_wnd_moveToFront(struct hg3dclass_struct * thisclass_c);
+
+// Move the Window
+void cegui_wnd_moveToBack(struct hg3dclass_struct * thisclass_c);
+
+// Captures input to this window. 
+void cegui_wnd_captureInput(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Releases input capture from this WindowWindow
+void cegui_wnd_releaseInput(struct hg3dclass_struct * thisclass_c);
+
+// Set whether this window will remember and restore the previous window that had inputs captured. 
+void cegui_wnd_setRestoreCapture(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the current alpha value for this window. 
+void cegui_wnd_setAlpha(struct hg3dclass_struct * thisclass_c, float alpha_c);
+
+// Sets whether this Window
+void cegui_wnd_setInheritsAlpha(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Invalidate this window causing at least this window to be redrawn during the next rendering pass. 
+void cegui_wnd_invalidate(struct hg3dclass_struct * thisclass_c);
+
+// Invalidate this window and - dependant upon recursive
+void cegui_wnd_invalidate2(struct hg3dclass_struct * thisclass_c, const int recursive_c);
+
+// Set the mouse cursor image to be used when the mouse enters this window. 
+void cegui_wnd_setMouseCursor3(struct hg3dclass_struct * thisclass_c, char * imageset_c, char * image_name_c);
+
+// Set whether z-order changes are enabled or disabled for this Window
+void cegui_wnd_setZOrderingEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether this window will receive multi-click events or multiple 'down' events instead. 
+void cegui_wnd_setWantsMultiClickEvents(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether mouse button down event autorepeat is enabled for this window. 
+void cegui_wnd_setMouseAutoRepeatEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the current auto-repeat delay setting for this window. 
+void cegui_wnd_setAutoRepeatDelay(struct hg3dclass_struct * thisclass_c, float delay_c);
+
+// Set the current auto-repeat rate setting for this window. 
+void cegui_wnd_setAutoRepeatRate(struct hg3dclass_struct * thisclass_c, float rate_c);
+
+// Set whether the window wants inputs passed to its attached child windows when the window has inputs captured. 
+void cegui_wnd_setDistributesCapturedInputs(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Internal support method for drag & drop. You do not normally call this directly from client code. See the DragContainer
+void cegui_wnd_notifyDragDropItemEnters(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
+
+// Internal support method for drag & drop. You do not normally call this directly from client code. See the DragContainer
+void cegui_wnd_notifyDragDropItemLeaves(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
+
+// Internal support method for drag & drop. You do not normally call this directly from client code. See the DragContainer
+void cegui_wnd_notifyDragDropItemDropped(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * item_c);
+
+// Internal destroy method which actually just adds the window and any parent destructed child windows to the dead pool. 
+void cegui_wnd_destroy(struct hg3dclass_struct * thisclass_c);
+
+// Set the custom TooltipWindowWindowTooltip
+void cegui_wnd_setTooltip(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * tooltip_c);
+
+// Set the custom TooltipWindowWindow
+void cegui_wnd_setTooltipType(struct hg3dclass_struct * thisclass_c, char * tooltipType_c);
+
+// Set the tooltip text for this window. 
+void cegui_wnd_setTooltipText(struct hg3dclass_struct * thisclass_c, char * tip_c);
+
+// Set whether this window inherits Tooltip
+void cegui_wnd_setInheritsTooltipText(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether this window will rise to the top of the z-order when clicked with the left mouse button. 
+void cegui_wnd_setRiseOnClickEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set the vertical alignment. 
+void cegui_wnd_setVerticalAlignment(struct hg3dclass_struct * thisclass_c, const enum EnumVerticalAlignment alignment_c);
+
+// Set the horizontal alignment. 
+void cegui_wnd_setHorizontalAlignment(struct hg3dclass_struct * thisclass_c, const enum EnumHorizontalAlignment alignment_c);
+
+// Set the LookNFeel that shoule be used for this window. 
+void cegui_wnd_setLookNFeel(struct hg3dclass_struct * thisclass_c, char * look_c);
+
+// Set the modal state for this Window
+void cegui_wnd_setModalState(struct hg3dclass_struct * thisclass_c, int state_c);
+
+// method called to perform extended laying out of attached child windows. 
+void cegui_wnd_performChildWindowLayout(struct hg3dclass_struct * thisclass_c);
+
+// Sets the value a named user string, creating it as required. 
+void cegui_wnd_setUserString(struct hg3dclass_struct * thisclass_c, char * name_c, char * value_c);
+
+// Set the window area. 
+void cegui_wnd_setArea(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * xpos_c, struct hg3dclass_struct * ypos_c, struct hg3dclass_struct * width_c, struct hg3dclass_struct * height_c);
+
+// Set the window area. 
+void cegui_wnd_setArea2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * pos_c, struct hg3dclass_struct * size_c);
+
+// Set the window's position. 
+void cegui_wnd_setPosition(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * pos_c);
+
+// Set the window's X position. 
+void cegui_wnd_setXPosition(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * x_c);
+
+// Set the window's Y position. 
+void cegui_wnd_setYPosition(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * y_c);
+
+// Set the window's size. 
+void cegui_wnd_setSize(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * size_c);
+
+// Set the window's width. 
+void cegui_wnd_setWidth(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * width_c);
+
+// Set the window's height. 
+void cegui_wnd_setHeight(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * height_c);
+
+// Set the window's maximum size. 
+void cegui_wnd_setMaxSize(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * size_c);
+
+// Set the window's minimum size. 
+void cegui_wnd_setMinSize(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * size_c);
+
+// Get the window's position. 
+void cegui_wnd_getPosition(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Get the window's X position. 
+void cegui_wnd_getXPosition(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Get the window's Y position. 
+void cegui_wnd_getYPosition(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Get the window's maximum size. 
+void cegui_wnd_getMaxSize(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Get the window's minimum size. 
+void cegui_wnd_getMinSize(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * result_c);
+
+// Causes the Window
+void cegui_wnd_render(struct hg3dclass_struct * thisclass_c);
+
+// Cause window to update itself and any attached children. Client code does not need to call this method; to ensure full, and proper updates, call the injectTimePulse methodname method provided by the System
+void cegui_wnd_update(struct hg3dclass_struct * thisclass_c, float elapsed_c);
+
+// Sets the internal 'initialising' flag to true. This can be use to optimize initialisation of some widgets, and is called automatically by the layout XML handler when it has created a window. That is just after the window has been created, but before any children or properties are read. 
+void cegui_wnd_beginInitialisation(struct hg3dclass_struct * thisclass_c);
+
+// Sets the internal 'initialising' flag to false. This is called automatically by the layout XML handler when it is done creating a window. That is after all properties and children have been loaded and just before the next sibling gets created. 
+void cegui_wnd_endInitialisation(struct hg3dclass_struct * thisclass_c);
+
+// Sets whether this window should ignore mouse events and pass them through to any windows behind it. In effect making the window transparent to the mouse. 
+void cegui_wnd_setMousePassThroughEnabled(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Assign the WindowRenderer to specify the Look'N'Feel specification to be used. 
+void cegui_wnd_setWindowRenderer(struct hg3dclass_struct * thisclass_c, char * name_c);
+
+// Get the factory name of the currently assigned WindowRenderer. (Look'N'Feel specification). 
+void cegui_wnd_getWindowRendererName(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+// Sets whether this window is allowed to write XML. 
+void cegui_wnd_setWritingXMLAllowed(struct hg3dclass_struct * thisclass_c, int allow_c);
+
+// Inform the window, and optionally all children, that screen area rectangles have changed. 
+void cegui_wnd_notifyScreenAreaChanged(struct hg3dclass_struct * thisclass_c, int recursive_c);
+
+// Changes the widget's falagard type, thus changing its look'n'feel and optionally its renderer in the process. 
+void cegui_wnd_setFalagardType(struct hg3dclass_struct * thisclass_c, char * type_c, char * rendererType_c);
+
+// Specifies whether this Window
+void cegui_wnd_setDragDropTarget(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Invalidate the chain of rendering surfaces from this window backwards to ensure they get properly redrawn - but doing the minimum amount of work possibe - next render. 
+void cegui_wnd_invalidateRenderingSurface(struct hg3dclass_struct * thisclass_c);
+
+// Sets whether automatic
+void cegui_wnd_setUsingAutoRenderingSurface(struct hg3dclass_struct * thisclass_c, int setting_c);
+
+// Set whether the Window
+void cegui_wnd_setNonClientWindow(struct hg3dclass_struct * thisclass_c, const int setting_c);
+
+// return whether text parsing is enabled for this window. 
+void cegui_wnd_isTextParsingEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// set whether text parsing is enabled for this window. 
+void cegui_wnd_setTextParsingEnabled(struct hg3dclass_struct * thisclass_c, const int setting_c);
+
+// Add the named property to the XML ban list for this window. 
+void cegui_wnd_banPropertyFromXML(struct hg3dclass_struct * thisclass_c, char * property_name_c);
+
+// Remove the named property from the XML ban list for this window. 
+void cegui_wnd_unbanPropertyFromXML(struct hg3dclass_struct * thisclass_c, char * property_name_c);
+
+// Return whether the named property is banned from XML. 
+void cegui_wnd_isPropertyBannedFromXML(struct hg3dclass_struct * thisclass_c, char * property_name_c, int * result_c);
+
+// Set the window update mode. This mode controls the behaviour of the Window::update
+void cegui_wnd_setUpdateMode(struct hg3dclass_struct * thisclass_c, const enum EnumWindowUpdateMode mode_c);
+
+// Return the current window update mode that is set for this WindowWindow::update
+void cegui_wnd_getUpdateMode(struct hg3dclass_struct * thisclass_c, enum EnumWindowUpdateMode * result_c);
+
+// Set whether mouse input that is not directly handled by this WindowWindow
+void cegui_wnd_setMouseInputPropagationEnabled(struct hg3dclass_struct * thisclass_c, const int enabled_c);
+
+// Return whether mouse input that is not directly handled by this WindowWindow
+void cegui_wnd_isMouseInputPropagationEnabled(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Clones this Window
+void cegui_wnd_clone(struct hg3dclass_struct * thisclass_c, char * newName_c, const int deepCopy_c, struct hg3dclass_struct * result_c);
+
+// copies this widget's properties to given target widget 
+void cegui_wnd_clonePropertiesTo(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * target_c);
+
+// copies this widget's child widgets to given target widget 
+void cegui_wnd_cloneChildWidgetsTo(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * target_c);
+
+// Return the (visual) z index of the window on it's parent. 
+void cegui_wnd_getZIndex(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Return whether /a this Window
+void cegui_wnd_isInFront(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * wnd_c, int * result_c);
+
+// Return whether /a this Window
+void cegui_wnd_isBehind(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * wnd_c, int * result_c);
+
+// return the Window
+void cegui_wnd_getCaptureWindow(struct hg3dclass_struct * result_c);
+
+#endif 
diff --git a/include/ClassWindowManager.h b/include/ClassWindowManager.h
--- a/include/ClassWindowManager.h
+++ b/include/ClassWindowManager.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,75 +14,75 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassWindowManager.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassWindowManager
-#define _DEFINED_HG3D_ClassWindowManager
-
-#include "ClassPtr.h"
-#include "ClassWindow.h"
+#ifndef _DEFINED_HG3D_ClassWindowManager
+#define _DEFINED_HG3D_ClassWindowManager
 
+#include "ClassPtr.h"
+#include "ClassWindow.h"
 
-// Constructs a new WindowManager
-void cegui_wmgr_construct(struct hg3dclass_struct * result_c);
-
-// Destructor for WindowManager
-void cegui_wmgr_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Creates a new Window
-void cegui_wmgr_createWindow(struct hg3dclass_struct * thisclass_c, char * type_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Destroy the specified Window
-void cegui_wmgr_destroyWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c);
-
-// Destroy the specified Window
-void cegui_wmgr_destroyWindow2(struct hg3dclass_struct * thisclass_c, char * window_c);
-
-// Return a pointer to the specified Window
-void cegui_wmgr_getWindow(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c);
-
-// Examines the list of Window
-void cegui_wmgr_isWindowPresent(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
-
-// Destroys all Window
-void cegui_wmgr_destroyAllWindows(struct hg3dclass_struct * thisclass_c);
-
-// Return whether the window dead pool is empty. 
-void cegui_wmgr_isDeadPoolEmpty(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Permanently destroys any windows placed in the dead pool. 
-void cegui_wmgr_cleanDeadPool(struct hg3dclass_struct * thisclass_c);
-
-// Save a full XML window layout, starting at the given Window
-void cegui_wmgr_saveWindowLayout(struct hg3dclass_struct * thisclass_c, char * window_c, char * filename_c, const int writeParent_c);
-
-// Save a full XML window layout, starting at the given Window
-void cegui_wmgr_saveWindowLayout2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c, char * filename_c, const int writeParent_c);
-
-// Rename a window. 
-void cegui_wmgr_renameWindow(struct hg3dclass_struct * thisclass_c, char * window_c, char * new_name_c);
-
-// Rename a window. 
-void cegui_wmgr_renameWindow2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c, char * new_name_c);
-
-// Put WindowManager
-void cegui_wmgr_lock(struct hg3dclass_struct * thisclass_c);
-
-// Put WindowManager
-void cegui_wmgr_unlock(struct hg3dclass_struct * thisclass_c);
-
-// Returns whether WindowManager
-void cegui_wmgr_isLocked(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Returns the default resource group currently set for layouts. 
-void cegui_wmgr_getDefaultResourceGroup(char * result_c);
-
-// Sets the default resource group to be used when loading layouts. 
-void cegui_wmgr_setDefaultResourceGroup(char * resourceGroup_c);
-
-#endif 
+
+// Constructs a new WindowManager
+void cegui_wmgr_construct(struct hg3dclass_struct * result_c);
+
+// Destructor for WindowManager
+void cegui_wmgr_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Creates a new Window
+void cegui_wmgr_createWindow(struct hg3dclass_struct * thisclass_c, char * type_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Destroy the specified Window
+void cegui_wmgr_destroyWindow(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c);
+
+// Destroy the specified Window
+void cegui_wmgr_destroyWindow2(struct hg3dclass_struct * thisclass_c, char * window_c);
+
+// Return a pointer to the specified Window
+void cegui_wmgr_getWindow(struct hg3dclass_struct * thisclass_c, char * name_c, struct hg3dclass_struct * result_c);
+
+// Examines the list of Window
+void cegui_wmgr_isWindowPresent(struct hg3dclass_struct * thisclass_c, char * name_c, int * result_c);
+
+// Destroys all Window
+void cegui_wmgr_destroyAllWindows(struct hg3dclass_struct * thisclass_c);
+
+// Return whether the window dead pool is empty. 
+void cegui_wmgr_isDeadPoolEmpty(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Permanently destroys any windows placed in the dead pool. 
+void cegui_wmgr_cleanDeadPool(struct hg3dclass_struct * thisclass_c);
+
+// Save a full XML window layout, starting at the given Window
+void cegui_wmgr_saveWindowLayout(struct hg3dclass_struct * thisclass_c, char * window_c, char * filename_c, const int writeParent_c);
+
+// Save a full XML window layout, starting at the given Window
+void cegui_wmgr_saveWindowLayout2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c, char * filename_c, const int writeParent_c);
+
+// Rename a window. 
+void cegui_wmgr_renameWindow(struct hg3dclass_struct * thisclass_c, char * window_c, char * new_name_c);
+
+// Rename a window. 
+void cegui_wmgr_renameWindow2(struct hg3dclass_struct * thisclass_c, struct hg3dclass_struct * window_c, char * new_name_c);
+
+// Put WindowManager
+void cegui_wmgr_lock(struct hg3dclass_struct * thisclass_c);
+
+// Put WindowManager
+void cegui_wmgr_unlock(struct hg3dclass_struct * thisclass_c);
+
+// Returns whether WindowManager
+void cegui_wmgr_isLocked(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Returns the default resource group currently set for layouts. 
+void cegui_wmgr_getDefaultResourceGroup(char * result_c);
+
+// Sets the default resource group to be used when loading layouts. 
+void cegui_wmgr_setDefaultResourceGroup(char * resourceGroup_c);
+
+#endif 
diff --git a/include/ClassWindowManagerHG3D.h b/include/ClassWindowManagerHG3D.h
--- a/include/ClassWindowManagerHG3D.h
+++ b/include/ClassWindowManagerHG3D.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,31 +14,31 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassWindowManagerHG3D.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassWindowManagerHG3D
-#define _DEFINED_HG3D_ClassWindowManagerHG3D
-
-#include "ClassPtr.h"
-#include "ClassWindow.h"
-#include "ClassWindowManager.h"
+#ifndef _DEFINED_HG3D_ClassWindowManagerHG3D
+#define _DEFINED_HG3D_ClassWindowManagerHG3D
 
+#include "ClassPtr.h"
+#include "ClassWindow.h"
+#include "ClassWindowManager.h"
 
-// 
-void cegui_wmgr_hg3d_construct(struct hg3dclass_struct * result_c);
-
-// 
-void cegui_wmgr_hg3d_destruct(struct hg3dclass_struct * thisclass_c);
-
-// 
-void cegui_wmgr_hg3d_loadWindowLayoutHG3D(struct hg3dclass_struct * thisclass_c, char * filename_c, char * name_prefix_c, struct hg3dclass_struct * result_c);
-
-// 
-void cegui_wmgr_hg3d_getSingleton(struct hg3dclass_struct * result_c);
-
-#endif 
+
+// 
+void cegui_wmgr_hg3d_construct(struct hg3dclass_struct * result_c);
+
+// 
+void cegui_wmgr_hg3d_destruct(struct hg3dclass_struct * thisclass_c);
+
+// 
+void cegui_wmgr_hg3d_loadWindowLayoutHG3D(struct hg3dclass_struct * thisclass_c, char * filename_c, char * name_prefix_c, struct hg3dclass_struct * result_c);
+
+// 
+void cegui_wmgr_hg3d_getSingleton(struct hg3dclass_struct * result_c);
+
+#endif 
diff --git a/include/ClassXMLParser.h b/include/ClassXMLParser.h
--- a/include/ClassXMLParser.h
+++ b/include/ClassXMLParser.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,29 +14,29 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // ClassXMLParser.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_ClassXMLParser
-#define _DEFINED_HG3D_ClassXMLParser
-
-#include "ClassPtr.h"
+#ifndef _DEFINED_HG3D_ClassXMLParser
+#define _DEFINED_HG3D_ClassXMLParser
 
+#include "ClassPtr.h"
 
-// XMLParser
-void cegui_xmlprs_destruct(struct hg3dclass_struct * thisclass_c);
-
-// Initialises the XMLParser
-void cegui_xmlprs_initialise(struct hg3dclass_struct * thisclass_c, int * result_c);
-
-// Cleans up the XMLParser
-void cegui_xmlprs_cleanup(struct hg3dclass_struct * thisclass_c);
-
-// Return identification string for the XML parser module. If the internal id string has not been set by the XML parser module creator, a generic string of "Unknown XML parser" will be returned. 
-void cegui_xmlprs_getIdentifierString(struct hg3dclass_struct * thisclass_c, char * result_c);
-
-#endif 
+
+// XMLParser
+void cegui_xmlprs_destruct(struct hg3dclass_struct * thisclass_c);
+
+// Initialises the XMLParser
+void cegui_xmlprs_initialise(struct hg3dclass_struct * thisclass_c, int * result_c);
+
+// Cleans up the XMLParser
+void cegui_xmlprs_cleanup(struct hg3dclass_struct * thisclass_c);
+
+// Return identification string for the XML parser module. If the internal id string has not been set by the XML parser module creator, a generic string of "Unknown XML parser" will be returned. 
+void cegui_xmlprs_getIdentifierString(struct hg3dclass_struct * thisclass_c, char * result_c);
+
+#endif 
diff --git a/include/EnumBlendMode.h b/include/EnumBlendMode.h
--- a/include/EnumBlendMode.h
+++ b/include/EnumBlendMode.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,21 +14,21 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumBlendMode.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumBlendMode
-#define _DEFINED_HG3D_EnumBlendMode
+#ifndef _DEFINED_HG3D_EnumBlendMode
+#define _DEFINED_HG3D_EnumBlendMode
 
 
-enum EnumBlendMode
-{
-  BM_INVALID, // Invalid mode indicator. 
-  BM_NORMAL, // Use normal blending mode. 
-  BM_RTT_PREMULTIPLIED // Use blending mode suitable for textures with premultiplied colours. 
-};
-#endif 
+enum EnumBlendMode
+{
+  BM_INVALID, // Invalid mode indicator. 
+  BM_NORMAL, // Use normal blending mode. 
+  BM_RTT_PREMULTIPLIED // Use blending mode suitable for textures with premultiplied colours. 
+};
+#endif 
diff --git a/include/EnumFWSizingLocation.h b/include/EnumFWSizingLocation.h
--- a/include/EnumFWSizingLocation.h
+++ b/include/EnumFWSizingLocation.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,27 +14,27 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumFWSizingLocation.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumFWSizingLocation
-#define _DEFINED_HG3D_EnumFWSizingLocation
+#ifndef _DEFINED_HG3D_EnumFWSizingLocation
+#define _DEFINED_HG3D_EnumFWSizingLocation
 
 
-enum EnumFWSizingLocation
-{
-  SizingNone, // Position is not a sizing location. 
-  SizingTopLeft, // Position will size from the top-left. 
-  SizingTopRight, // Position will size from the top-right. 
-  SizingBottomLeft, // Position will size from the bottom left. 
-  SizingBottomRight, // Position will size from the bottom right. 
-  SizingTop, // Position will size from the top. 
-  SizingLeft, // Position will size from the left. 
-  SizingBottom, // Position will size from the bottom. 
-  SizingRight // Position will size from the right. 
-};
-#endif 
+enum EnumFWSizingLocation
+{
+  SizingNone, // Position is not a sizing location. 
+  SizingTopLeft, // Position will size from the top-left. 
+  SizingTopRight, // Position will size from the top-right. 
+  SizingBottomLeft, // Position will size from the bottom left. 
+  SizingBottomRight, // Position will size from the bottom right. 
+  SizingTop, // Position will size from the top. 
+  SizingLeft, // Position will size from the left. 
+  SizingBottom, // Position will size from the bottom. 
+  SizingRight // Position will size from the right. 
+};
+#endif 
diff --git a/include/EnumHorizontalAlignment.h b/include/EnumHorizontalAlignment.h
--- a/include/EnumHorizontalAlignment.h
+++ b/include/EnumHorizontalAlignment.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,21 +14,21 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumHorizontalAlignment.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumHorizontalAlignment
-#define _DEFINED_HG3D_EnumHorizontalAlignment
+#ifndef _DEFINED_HG3D_EnumHorizontalAlignment
+#define _DEFINED_HG3D_EnumHorizontalAlignment
 
 
-enum EnumHorizontalAlignment
-{
-  HA_LEFT, // 
-  HA_CENTRE, // 
-  HA_RIGHT // 
-};
-#endif 
+enum EnumHorizontalAlignment
+{
+  HA_LEFT, // 
+  HA_CENTRE, // 
+  HA_RIGHT // 
+};
+#endif 
diff --git a/include/EnumKeyScan.h b/include/EnumKeyScan.h
--- a/include/EnumKeyScan.h
+++ b/include/EnumKeyScan.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,162 +14,162 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumKeyScan.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumKeyScan
-#define _DEFINED_HG3D_EnumKeyScan
+#ifndef _DEFINED_HG3D_EnumKeyScan
+#define _DEFINED_HG3D_EnumKeyScan
 
 
-enum EnumKeyScan
-{
-  KeyEscape = 0x01, // 
-  KeyOne = 0x02, // 
-  KeyTwo = 0x03, // 
-  KeyThree = 0x04, // 
-  KeyFour = 0x05, // 
-  KeyFive = 0x06, // 
-  KeySix = 0x07, // 
-  KeySeven = 0x08, // 
-  KeyEight = 0x09, // 
-  KeyNine = 0x0A, // 
-  KeyZero = 0x0B, // 
-  KeyMinus = 0x0C, // 
-  KeyEquals = 0x0D, // 
-  KeyBackspace = 0x0E, // 
-  KeyTab = 0x0F, // 
-  KeyQ = 0x10, // 
-  KeyW = 0x11, // 
-  KeyE = 0x12, // 
-  KeyR = 0x13, // 
-  KeyT = 0x14, // 
-  KeyY = 0x15, // 
-  KeyU = 0x16, // 
-  KeyI = 0x17, // 
-  KeyO = 0x18, // 
-  KeyP = 0x19, // 
-  KeyLeftBracket = 0x1A, // 
-  KeyRightBracket = 0x1B, // 
-  KeyReturn = 0x1C, // 
-  KeyLeftControl = 0x1D, // 
-  KeyA = 0x1E, // 
-  KeyS = 0x1F, // 
-  KeyD = 0x20, // 
-  KeyF = 0x21, // 
-  KeyG = 0x22, // 
-  KeyH = 0x23, // 
-  KeyJ = 0x24, // 
-  KeyK = 0x25, // 
-  KeyL = 0x26, // 
-  KeySemicolon = 0x27, // 
-  KeyApostrophe = 0x28, // 
-  KeyGrave = 0x29, // 
-  KeyLeftShift = 0x2A, // 
-  KeyBackslash = 0x2B, // 
-  KeyZ = 0x2C, // 
-  KeyX = 0x2D, // 
-  KeyC = 0x2E, // 
-  KeyV = 0x2F, // 
-  KeyB = 0x30, // 
-  KeyN = 0x31, // 
-  KeyM = 0x32, // 
-  KeyComma = 0x33, // 
-  KeyPeriod = 0x34, // 
-  KeySlash = 0x35, // 
-  KeyRightShift = 0x36, // 
-  KeyMultiply = 0x37, // 
-  KeyLeftAlt = 0x38, // 
-  KeySpace = 0x39, // 
-  KeyCapital = 0x3A, // 
-  KeyF1 = 0x3B, // 
-  KeyF2 = 0x3C, // 
-  KeyF3 = 0x3D, // 
-  KeyF4 = 0x3E, // 
-  KeyF5 = 0x3F, // 
-  KeyF6 = 0x40, // 
-  KeyF7 = 0x41, // 
-  KeyF8 = 0x42, // 
-  KeyF9 = 0x43, // 
-  KeyF10 = 0x44, // 
-  KeyNumLock = 0x45, // 
-  KeyScrollLock = 0x46, // 
-  KeyNumpad7 = 0x47, // 
-  KeyNumpad8 = 0x48, // 
-  KeyNumpad9 = 0x49, // 
-  KeySubtract = 0x4A, // 
-  KeyNumpad4 = 0x4B, // 
-  KeyNumpad5 = 0x4C, // 
-  KeyNumpad6 = 0x4D, // 
-  KeyAdd = 0x4E, // 
-  KeyNumpad1 = 0x4F, // 
-  KeyNumpad2 = 0x50, // 
-  KeyNumpad3 = 0x51, // 
-  KeyNumpad0 = 0x52, // 
-  KeyDecimal = 0x53, // 
-  KeyOEM_102 = 0x56, // 
-  KeyF11 = 0x57, // 
-  KeyF12 = 0x58, // 
-  KeyF13 = 0x64, // 
-  KeyF14 = 0x65, // 
-  KeyF15 = 0x66, // 
-  KeyKana = 0x70, // 
-  KeyABNT_C1 = 0x73, // 
-  KeyConvert = 0x79, // 
-  KeyNoConvert = 0x7B, // 
-  KeyYen = 0x7D, // 
-  KeyABNT_C2 = 0x7E, // 
-  KeyNumpadEquals = 0x8D, // 
-  KeyPrevTrack = 0x90, // 
-  KeyAt = 0x91, // 
-  KeyColon = 0x92, // 
-  KeyUnderline = 0x93, // 
-  KeyKanji = 0x94, // 
-  KeyStop = 0x95, // 
-  KeyAX = 0x96, // 
-  KeyUnlabeled = 0x97, // 
-  KeyNextTrack = 0x99, // 
-  KeyNumpadEnter = 0x9C, // 
-  KeyRightControl = 0x9D, // 
-  KeyMute = 0xA0, // 
-  KeyCalculator = 0xA1, // 
-  KeyPlayPause = 0xA2, // 
-  KeyMediaStop = 0xA4, // 
-  KeyVolumeDown = 0xAE, // 
-  KeyVolumeUp = 0xB0, // 
-  KeyWebHome = 0xB2, // 
-  KeyNumpadComma = 0xB3, // 
-  KeyDivide = 0xB5, // 
-  KeySysRq = 0xB7, // 
-  KeyRightAlt = 0xB8, // 
-  KeyPause = 0xC5, // 
-  KeyHome = 0xC7, // 
-  KeyArrowUp = 0xC8, // 
-  KeyPageUp = 0xC9, // 
-  KeyArrowLeft = 0xCB, // 
-  KeyArrowRight = 0xCD, // 
-  KeyEnd = 0xCF, // 
-  KeyArrowDown = 0xD0, // 
-  KeyPageDown = 0xD1, // 
-  KeyInsert = 0xD2, // 
-  KeyDelete = 0xD3, // 
-  KeyLeftWindows = 0xDB, // 
-  KeyRightWindows = 0xDC, // 
-  KeyAppMenu = 0xDD, // 
-  KeyPower = 0xDE, // 
-  KeySleep = 0xDF, // 
-  KeyWake = 0xE3, // 
-  KeyWebSearch = 0xE5, // 
-  KeyWebFavorites = 0xE6, // 
-  KeyWebRefresh = 0xE7, // 
-  KeyWebStop = 0xE8, // 
-  KeyWebForward = 0xE9, // 
-  KeyWebBack = 0xEA, // 
-  KeyMyComputer = 0xEB, // 
-  KeyMail = 0xEC, // 
-  KeyMediaSelect = 0xED // 
-};
-#endif 
+enum EnumKeyScan
+{
+  KeyEscape = 0x01, // 
+  KeyOne = 0x02, // 
+  KeyTwo = 0x03, // 
+  KeyThree = 0x04, // 
+  KeyFour = 0x05, // 
+  KeyFive = 0x06, // 
+  KeySix = 0x07, // 
+  KeySeven = 0x08, // 
+  KeyEight = 0x09, // 
+  KeyNine = 0x0A, // 
+  KeyZero = 0x0B, // 
+  KeyMinus = 0x0C, // 
+  KeyEquals = 0x0D, // 
+  KeyBackspace = 0x0E, // 
+  KeyTab = 0x0F, // 
+  KeyQ = 0x10, // 
+  KeyW = 0x11, // 
+  KeyE = 0x12, // 
+  KeyR = 0x13, // 
+  KeyT = 0x14, // 
+  KeyY = 0x15, // 
+  KeyU = 0x16, // 
+  KeyI = 0x17, // 
+  KeyO = 0x18, // 
+  KeyP = 0x19, // 
+  KeyLeftBracket = 0x1A, // 
+  KeyRightBracket = 0x1B, // 
+  KeyReturn = 0x1C, // 
+  KeyLeftControl = 0x1D, // 
+  KeyA = 0x1E, // 
+  KeyS = 0x1F, // 
+  KeyD = 0x20, // 
+  KeyF = 0x21, // 
+  KeyG = 0x22, // 
+  KeyH = 0x23, // 
+  KeyJ = 0x24, // 
+  KeyK = 0x25, // 
+  KeyL = 0x26, // 
+  KeySemicolon = 0x27, // 
+  KeyApostrophe = 0x28, // 
+  KeyGrave = 0x29, // 
+  KeyLeftShift = 0x2A, // 
+  KeyBackslash = 0x2B, // 
+  KeyZ = 0x2C, // 
+  KeyX = 0x2D, // 
+  KeyC = 0x2E, // 
+  KeyV = 0x2F, // 
+  KeyB = 0x30, // 
+  KeyN = 0x31, // 
+  KeyM = 0x32, // 
+  KeyComma = 0x33, // 
+  KeyPeriod = 0x34, // 
+  KeySlash = 0x35, // 
+  KeyRightShift = 0x36, // 
+  KeyMultiply = 0x37, // 
+  KeyLeftAlt = 0x38, // 
+  KeySpace = 0x39, // 
+  KeyCapital = 0x3A, // 
+  KeyF1 = 0x3B, // 
+  KeyF2 = 0x3C, // 
+  KeyF3 = 0x3D, // 
+  KeyF4 = 0x3E, // 
+  KeyF5 = 0x3F, // 
+  KeyF6 = 0x40, // 
+  KeyF7 = 0x41, // 
+  KeyF8 = 0x42, // 
+  KeyF9 = 0x43, // 
+  KeyF10 = 0x44, // 
+  KeyNumLock = 0x45, // 
+  KeyScrollLock = 0x46, // 
+  KeyNumpad7 = 0x47, // 
+  KeyNumpad8 = 0x48, // 
+  KeyNumpad9 = 0x49, // 
+  KeySubtract = 0x4A, // 
+  KeyNumpad4 = 0x4B, // 
+  KeyNumpad5 = 0x4C, // 
+  KeyNumpad6 = 0x4D, // 
+  KeyAdd = 0x4E, // 
+  KeyNumpad1 = 0x4F, // 
+  KeyNumpad2 = 0x50, // 
+  KeyNumpad3 = 0x51, // 
+  KeyNumpad0 = 0x52, // 
+  KeyDecimal = 0x53, // 
+  KeyOEM_102 = 0x56, // 
+  KeyF11 = 0x57, // 
+  KeyF12 = 0x58, // 
+  KeyF13 = 0x64, // 
+  KeyF14 = 0x65, // 
+  KeyF15 = 0x66, // 
+  KeyKana = 0x70, // 
+  KeyABNT_C1 = 0x73, // 
+  KeyConvert = 0x79, // 
+  KeyNoConvert = 0x7B, // 
+  KeyYen = 0x7D, // 
+  KeyABNT_C2 = 0x7E, // 
+  KeyNumpadEquals = 0x8D, // 
+  KeyPrevTrack = 0x90, // 
+  KeyAt = 0x91, // 
+  KeyColon = 0x92, // 
+  KeyUnderline = 0x93, // 
+  KeyKanji = 0x94, // 
+  KeyStop = 0x95, // 
+  KeyAX = 0x96, // 
+  KeyUnlabeled = 0x97, // 
+  KeyNextTrack = 0x99, // 
+  KeyNumpadEnter = 0x9C, // 
+  KeyRightControl = 0x9D, // 
+  KeyMute = 0xA0, // 
+  KeyCalculator = 0xA1, // 
+  KeyPlayPause = 0xA2, // 
+  KeyMediaStop = 0xA4, // 
+  KeyVolumeDown = 0xAE, // 
+  KeyVolumeUp = 0xB0, // 
+  KeyWebHome = 0xB2, // 
+  KeyNumpadComma = 0xB3, // 
+  KeyDivide = 0xB5, // 
+  KeySysRq = 0xB7, // 
+  KeyRightAlt = 0xB8, // 
+  KeyPause = 0xC5, // 
+  KeyHome = 0xC7, // 
+  KeyArrowUp = 0xC8, // 
+  KeyPageUp = 0xC9, // 
+  KeyArrowLeft = 0xCB, // 
+  KeyArrowRight = 0xCD, // 
+  KeyEnd = 0xCF, // 
+  KeyArrowDown = 0xD0, // 
+  KeyPageDown = 0xD1, // 
+  KeyInsert = 0xD2, // 
+  KeyDelete = 0xD3, // 
+  KeyLeftWindows = 0xDB, // 
+  KeyRightWindows = 0xDC, // 
+  KeyAppMenu = 0xDD, // 
+  KeyPower = 0xDE, // 
+  KeySleep = 0xDF, // 
+  KeyWake = 0xE3, // 
+  KeyWebSearch = 0xE5, // 
+  KeyWebFavorites = 0xE6, // 
+  KeyWebRefresh = 0xE7, // 
+  KeyWebStop = 0xE8, // 
+  KeyWebForward = 0xE9, // 
+  KeyWebBack = 0xEA, // 
+  KeyMyComputer = 0xEB, // 
+  KeyMail = 0xEC, // 
+  KeyMediaSelect = 0xED // 
+};
+#endif 
diff --git a/include/EnumLoggingLevel.h b/include/EnumLoggingLevel.h
--- a/include/EnumLoggingLevel.h
+++ b/include/EnumLoggingLevel.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,23 +14,23 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumLoggingLevel.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumLoggingLevel
-#define _DEFINED_HG3D_EnumLoggingLevel
+#ifndef _DEFINED_HG3D_EnumLoggingLevel
+#define _DEFINED_HG3D_EnumLoggingLevel
 
 
-enum EnumLoggingLevel
-{
-  LoggingLevelErrors, // Only actual error conditions will be logged. 
-  LoggingLevelWarnings, // Warnings will be logged as well. 
-  LoggingLevelStandard, // Basic events will be logged (default level). 
-  LoggingLevelInformative, // Useful tracing (object creations etc) information will be logged. 
-  LoggingLevelInsane // Mostly everything gets logged (use for heavy tracing only, log WILL be big). 
-};
-#endif 
+enum EnumLoggingLevel
+{
+  LoggingLevelErrors, // Only actual error conditions will be logged. 
+  LoggingLevelWarnings, // Warnings will be logged as well. 
+  LoggingLevelStandard, // Basic events will be logged (default level). 
+  LoggingLevelInformative, // Useful tracing (object creations etc) information will be logged. 
+  LoggingLevelInsane // Mostly everything gets logged (use for heavy tracing only, log WILL be big). 
+};
+#endif 
diff --git a/include/EnumMouseButton.h b/include/EnumMouseButton.h
--- a/include/EnumMouseButton.h
+++ b/include/EnumMouseButton.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,25 +14,25 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumMouseButton.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumMouseButton
-#define _DEFINED_HG3D_EnumMouseButton
+#ifndef _DEFINED_HG3D_EnumMouseButton
+#define _DEFINED_HG3D_EnumMouseButton
 
 
-enum EnumMouseButton
-{
-  MouseLeftButton, // The left mouse button. 
-  MouseRightButton, // The right mouse button. 
-  MouseMiddleButton, // The middle mouse button. 
-  MouseX1Button, // The first 'extra' mouse button. 
-  MouseX2Button, // The second 'extra' mouse button. 
-  MouseMouseButtonCount, // Value that equals the number of mouse buttons supported by CEGUI
-  MouseNoButton // Value set for no mouse button. NB: This is not 0, do not assume! 
-};
-#endif 
+enum EnumMouseButton
+{
+  MouseLeftButton, // The left mouse button. 
+  MouseRightButton, // The right mouse button. 
+  MouseMiddleButton, // The middle mouse button. 
+  MouseX1Button, // The first 'extra' mouse button. 
+  MouseX2Button, // The second 'extra' mouse button. 
+  MouseMouseButtonCount, // Value that equals the number of mouse buttons supported by CEGUI
+  MouseNoButton // Value set for no mouse button. NB: This is not 0, do not assume! 
+};
+#endif 
diff --git a/include/EnumQuadSplitMode.h b/include/EnumQuadSplitMode.h
--- a/include/EnumQuadSplitMode.h
+++ b/include/EnumQuadSplitMode.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,20 +14,20 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumQuadSplitMode.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumQuadSplitMode
-#define _DEFINED_HG3D_EnumQuadSplitMode
+#ifndef _DEFINED_HG3D_EnumQuadSplitMode
+#define _DEFINED_HG3D_EnumQuadSplitMode
 
 
-enum EnumQuadSplitMode
-{
-  TopLeftToBottomRight, // Diagonal split goes from top-left to bottom-right. 
-  BottomLeftToTopRight // Diagonal split goes from bottom-left to top-right. 
-};
-#endif 
+enum EnumQuadSplitMode
+{
+  TopLeftToBottomRight, // Diagonal split goes from top-left to bottom-right. 
+  BottomLeftToTopRight // Diagonal split goes from bottom-left to top-right. 
+};
+#endif 
diff --git a/include/EnumSelectionMode.h b/include/EnumSelectionMode.h
--- a/include/EnumSelectionMode.h
+++ b/include/EnumSelectionMode.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,28 +14,28 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumSelectionMode.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumSelectionMode
-#define _DEFINED_HG3D_EnumSelectionMode
+#ifndef _DEFINED_HG3D_EnumSelectionMode
+#define _DEFINED_HG3D_EnumSelectionMode
 
 
-enum EnumSelectionMode
-{
-  SelectionModeRowSingle, // 
-  SelectionModeRowMultiple, // 
-  SelectionModeCellSingle, // 
-  SelectionModeCellMultiple, // 
-  SelectionModeNominatedColumnSingle, // 
-  SelectionModeNominatedColumnMultiple, // 
-  SelectionModeColumnSingle, // 
-  SelectionModeColumnMultiple, // 
-  SelectionModeNominatedRowSingle, // 
-  SelectionModeNominatedRowMultiple // 
-};
-#endif 
+enum EnumSelectionMode
+{
+  SelectionModeRowSingle, // 
+  SelectionModeRowMultiple, // 
+  SelectionModeCellSingle, // 
+  SelectionModeCellMultiple, // 
+  SelectionModeNominatedColumnSingle, // 
+  SelectionModeNominatedColumnMultiple, // 
+  SelectionModeColumnSingle, // 
+  SelectionModeColumnMultiple, // 
+  SelectionModeNominatedRowSingle, // 
+  SelectionModeNominatedRowMultiple // 
+};
+#endif 
diff --git a/include/EnumSortDirection.h b/include/EnumSortDirection.h
--- a/include/EnumSortDirection.h
+++ b/include/EnumSortDirection.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,21 +14,21 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumSortDirection.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumSortDirection
-#define _DEFINED_HG3D_EnumSortDirection
+#ifndef _DEFINED_HG3D_EnumSortDirection
+#define _DEFINED_HG3D_EnumSortDirection
 
 
-enum EnumSortDirection
-{
-  SortDirectionNone, // Items under this segment should not be sorted. 
-  SortDirectionAscending, // Items under this segment should be sorted in ascending order. 
-  SortDirectionDescending // Items under this segment should be sorted in descending order. 
-};
-#endif 
+enum EnumSortDirection
+{
+  SortDirectionNone, // Items under this segment should not be sorted. 
+  SortDirectionAscending, // Items under this segment should be sorted in ascending order. 
+  SortDirectionDescending // Items under this segment should be sorted in descending order. 
+};
+#endif 
diff --git a/include/EnumSystemKey.h b/include/EnumSystemKey.h
--- a/include/EnumSystemKey.h
+++ b/include/EnumSystemKey.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,26 +14,26 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumSystemKey.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumSystemKey
-#define _DEFINED_HG3D_EnumSystemKey
+#ifndef _DEFINED_HG3D_EnumSystemKey
+#define _DEFINED_HG3D_EnumSystemKey
 
 
-enum EnumSystemKey
-{
-  SystemKeyLeftMouse =  0x0001, // The left mouse button. 
-  SystemKeyRightMouse =  0x0002, // The right mouse button. 
-  SystemKeyShift =  0x0004, // Either shift key. 
-  SystemKeyControl =  0x0008, // Either control key. 
-  SystemKeyMiddleMouse =  0x0010, // The middle mouse button. 
-  SystemKeyX1Mouse =  0x0020, // The first 'extra' mouse button. 
-  SystemKeyX2Mouse =  0x0040, // The second 'extra' mouse button. 
-  SystemKeyAlt =  0x0080 // Either alt key. 
-};
-#endif 
+enum EnumSystemKey
+{
+  SystemKeyLeftMouse =  0x0001, // The left mouse button. 
+  SystemKeyRightMouse =  0x0002, // The right mouse button. 
+  SystemKeyShift =  0x0004, // Either shift key. 
+  SystemKeyControl =  0x0008, // Either control key. 
+  SystemKeyMiddleMouse =  0x0010, // The middle mouse button. 
+  SystemKeyX1Mouse =  0x0020, // The first 'extra' mouse button. 
+  SystemKeyX2Mouse =  0x0040, // The second 'extra' mouse button. 
+  SystemKeyAlt =  0x0080 // Either alt key. 
+};
+#endif 
diff --git a/include/EnumTabPanePosition.h b/include/EnumTabPanePosition.h
--- a/include/EnumTabPanePosition.h
+++ b/include/EnumTabPanePosition.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,20 +14,20 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumTabPanePosition.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumTabPanePosition
-#define _DEFINED_HG3D_EnumTabPanePosition
+#ifndef _DEFINED_HG3D_EnumTabPanePosition
+#define _DEFINED_HG3D_EnumTabPanePosition
 
 
-enum EnumTabPanePosition
-{
-  TabPanePositionTop, // 
-  TabPanePositionBottom // 
-};
-#endif 
+enum EnumTabPanePosition
+{
+  TabPanePositionTop, // 
+  TabPanePositionBottom // 
+};
+#endif 
diff --git a/include/EnumTextInputMode.h b/include/EnumTextInputMode.h
--- a/include/EnumTextInputMode.h
+++ b/include/EnumTextInputMode.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,22 +14,22 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumTextInputMode.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumTextInputMode
-#define _DEFINED_HG3D_EnumTextInputMode
+#ifndef _DEFINED_HG3D_EnumTextInputMode
+#define _DEFINED_HG3D_EnumTextInputMode
 
 
-enum EnumTextInputMode
-{
-  TextInputModeFloatingPoint, // Floating point decimal. 
-  TextInputModeInteger, // Integer decimal. 
-  TextInputModeHexadecimal, // Hexadecimal. 
-  TextInputModeOctal // Octal. 
-};
-#endif 
+enum EnumTextInputMode
+{
+  TextInputModeFloatingPoint, // Floating point decimal. 
+  TextInputModeInteger, // Integer decimal. 
+  TextInputModeHexadecimal, // Hexadecimal. 
+  TextInputModeOctal // Octal. 
+};
+#endif 
diff --git a/include/EnumTipState.h b/include/EnumTipState.h
--- a/include/EnumTipState.h
+++ b/include/EnumTipState.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,22 +14,22 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumTipState.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumTipState
-#define _DEFINED_HG3D_EnumTipState
+#ifndef _DEFINED_HG3D_EnumTipState
+#define _DEFINED_HG3D_EnumTipState
 
 
-enum EnumTipState
-{
-  TipStateInactive, // Tooltip
-  TipStateActive, // Tooltip
-  TipStateFadeIn, // Tooltip
-  TipStateFadeOut // Tooltip
-};
-#endif 
+enum EnumTipState
+{
+  TipStateInactive, // Tooltip
+  TipStateActive, // Tooltip
+  TipStateFadeIn, // Tooltip
+  TipStateFadeOut // Tooltip
+};
+#endif 
diff --git a/include/EnumVerticalAlignment.h b/include/EnumVerticalAlignment.h
--- a/include/EnumVerticalAlignment.h
+++ b/include/EnumVerticalAlignment.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,21 +14,21 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumVerticalAlignment.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumVerticalAlignment
-#define _DEFINED_HG3D_EnumVerticalAlignment
+#ifndef _DEFINED_HG3D_EnumVerticalAlignment
+#define _DEFINED_HG3D_EnumVerticalAlignment
 
 
-enum EnumVerticalAlignment
-{
-  VA_TOP, // 
-  VA_CENTRE, // 
-  VA_BOTTOM // 
-};
-#endif 
+enum EnumVerticalAlignment
+{
+  VA_TOP, // 
+  VA_CENTRE, // 
+  VA_BOTTOM // 
+};
+#endif 
diff --git a/include/EnumWindowUpdateMode.h b/include/EnumWindowUpdateMode.h
--- a/include/EnumWindowUpdateMode.h
+++ b/include/EnumWindowUpdateMode.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,21 +14,21 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // EnumWindowUpdateMode.h
 
-// 
+// 
 
 #include "wchar.h"
-#ifndef _DEFINED_HG3D_EnumWindowUpdateMode
-#define _DEFINED_HG3D_EnumWindowUpdateMode
+#ifndef _DEFINED_HG3D_EnumWindowUpdateMode
+#define _DEFINED_HG3D_EnumWindowUpdateMode
 
 
-enum EnumWindowUpdateMode
-{
-  WUM_ALWAYS, // Always call the Window::update
-  WUM_NEVER, // Never call the Window::update
-  WUM_VISIBLE // Only call the Window::update
-};
-#endif 
+enum EnumWindowUpdateMode
+{
+  WUM_ALWAYS, // Always call the Window::update
+  WUM_NEVER, // Never call the Window::update
+  WUM_VISIBLE // Only call the Window::update
+};
+#endif 
diff --git a/include/StructHG3DClass.h b/include/StructHG3DClass.h
--- a/include/StructHG3DClass.h
+++ b/include/StructHG3DClass.h
@@ -1,6 +1,6 @@
 // This source file is part of HGamer3D, a project to enable 3D game development 
 // in Haskell. For the latest info, see http://www.hgamer3d.org .
-// 
+// 
 // (c) 2011-2014 Peter Althainz
 // 
 // Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,21 +14,21 @@
 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 // See the License for the specific language governing permissions and
 // limitations under the License.
-// 
+// 
 
 // StructHG3DClass.h
 
-// 
+// 
 
 #include "wchar.h"
 
 
-#ifndef _INC_STRUCT_HG3DCLASS
-#define _INC_STRUCT_HG3DCLASS
-
-typedef struct hg3dclass_struct {
-	void *ptr;
-	void *fptr;
-} hg3dclass_struct;
-
-#endif
+#ifndef _INC_STRUCT_HG3DCLASS
+#define _INC_STRUCT_HG3DCLASS
+
+typedef struct hg3dclass_struct {
+	void *ptr;
+	void *fptr;
+} hg3dclass_struct;
+
+#endif
diff --git a/include/colorvalue_struct.h b/include/colorvalue_struct.h
--- a/include/colorvalue_struct.h
+++ b/include/colorvalue_struct.h
@@ -1,6 +1,6 @@
-typedef struct colourvalue_struct {
-	float r;
-	float g;
-	float b;
-	float a;
-} colourvalue_struct;
+typedef struct colourvalue_struct {
+	float r;
+	float g;
+	float b;
+	float a;
+} colourvalue_struct;
diff --git a/include/degree_struct.h b/include/degree_struct.h
--- a/include/degree_struct.h
+++ b/include/degree_struct.h
@@ -1,3 +1,3 @@
-typedef struct degree_struct {
-	float d;
-} degree_struct;
+typedef struct degree_struct {
+	float d;
+} degree_struct;
diff --git a/include/quaternion_struct.h b/include/quaternion_struct.h
--- a/include/quaternion_struct.h
+++ b/include/quaternion_struct.h
@@ -1,6 +1,6 @@
-typedef struct quaternion_struct {
-	float fw;
-	float fx;
-	float fy;
-	float fz;
-} quaternion_struct;
+typedef struct quaternion_struct {
+	float fw;
+	float fx;
+	float fy;
+	float fz;
+} quaternion_struct;
diff --git a/include/radian_struct.h b/include/radian_struct.h
--- a/include/radian_struct.h
+++ b/include/radian_struct.h
@@ -1,3 +1,3 @@
-typedef struct radian_struct {
-	float r;
-} radian_struct;
+typedef struct radian_struct {
+	float r;
+} radian_struct;
diff --git a/include/sharedptr_struct.h b/include/sharedptr_struct.h
--- a/include/sharedptr_struct.h
+++ b/include/sharedptr_struct.h
@@ -1,5 +1,5 @@
-typedef struct sharedptr_struct {
-	void* pT;
-	void* pCount;
-	void* pFreeFunc;
-} sharedptr_struct;
+typedef struct sharedptr_struct {
+	void* pT;
+	void* pCount;
+	void* pFreeFunc;
+} sharedptr_struct;
diff --git a/include/vector2_struct.h b/include/vector2_struct.h
--- a/include/vector2_struct.h
+++ b/include/vector2_struct.h
@@ -1,4 +1,4 @@
-typedef struct vector2_struct {
-	float x;
-	float y;
-} vector2_struct;
+typedef struct vector2_struct {
+	float x;
+	float y;
+} vector2_struct;
diff --git a/include/vector3_struct.h b/include/vector3_struct.h
--- a/include/vector3_struct.h
+++ b/include/vector3_struct.h
@@ -1,5 +1,5 @@
-typedef struct vector3_struct {
-	float x;
-	float y;
-	float z;
-} vector3_struct;
+typedef struct vector3_struct {
+	float x;
+	float y;
+	float z;
+} vector3_struct;
diff --git a/include/vector4_struct.h b/include/vector4_struct.h
--- a/include/vector4_struct.h
+++ b/include/vector4_struct.h
@@ -1,6 +1,6 @@
-typedef struct vector4_struct {
-	float x;
-	float y;
-	float z;
-	float w;
-} vector4_struct;
+typedef struct vector4_struct {
+	float x;
+	float y;
+	float z;
+	float w;
+} vector4_struct;
